update with new format & new enum policy
This commit is contained in:
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
*.op
|
||||||
|
*.zip
|
@ -1,13 +1,5 @@
|
|||||||
#name "Map Validator"
|
|
||||||
#author "Beu"
|
|
||||||
#category "Map Editor"
|
|
||||||
#siteid 91
|
|
||||||
#version "1.2"
|
|
||||||
|
|
||||||
// Based on the Moski plugin which is also based on the Miss plugin :)
|
// Based on the Moski plugin which is also based on the Miss plugin :)
|
||||||
|
|
||||||
#include "Icons.as"
|
|
||||||
|
|
||||||
bool menu_visibility = false;
|
bool menu_visibility = false;
|
||||||
int author_time;
|
int author_time;
|
||||||
|
|
||||||
@ -22,7 +14,7 @@ void validate(int author_time) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (editor.PluginMapType !is null) {
|
if (editor.PluginMapType !is null) {
|
||||||
editor.PluginMapType.ValidationStatus = EValidationStatus::Validated;
|
editor.PluginMapType.ValidationStatus = CGameEditorPluginMapMapType::EValidationStatus::Validated;
|
||||||
}
|
}
|
||||||
if (map !is null) {
|
if (map !is null) {
|
||||||
map.TMObjective_AuthorTime = author_time;
|
map.TMObjective_AuthorTime = author_time;
|
2
MapValidator/Source/MapValidator.as.sig
Normal file
2
MapValidator/Source/MapValidator.as.sig
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>S<16><><EFBFBD>ZB<5A><42><EFBFBD>j} <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>泌\<5C><><EFBFBD>vH<76><48><EFBFBD>s<18><><EFBFBD>Ǫ<>mZmr<6D>-<2D>
|
||||||
|
<EFBFBD>'u<>O<EFBFBD>
|
12
MapValidator/info.toml
Normal file
12
MapValidator/info.toml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
[meta]
|
||||||
|
name = "Map Validator"
|
||||||
|
author = "Beu"
|
||||||
|
category = "Map Editor"
|
||||||
|
|
||||||
|
siteid = 91
|
||||||
|
version = "1.3"
|
||||||
|
|
||||||
|
blocks = [ "Plugin_MapValidator" ]
|
||||||
|
|
||||||
|
[script]
|
||||||
|
imports = [ "Icons.as" ]
|
BIN
MapValidator/info.toml.sig
Normal file
BIN
MapValidator/info.toml.sig
Normal file
Binary file not shown.
26
QuickLinkOpener/Source/QuickLinkOpener.as
Normal file
26
QuickLinkOpener/Source/QuickLinkOpener.as
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
bool menu_visibility = false;
|
||||||
|
string quickURL;
|
||||||
|
|
||||||
|
void Main() {}
|
||||||
|
|
||||||
|
void Render() {
|
||||||
|
if (!menu_visibility) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
UI::Begin("\\$cf9" + Icons::ExternalLinkAlt + "\\$z Quick Link Opener###Quick Link Opener", menu_visibility, UI::WindowFlags::NoResize | UI::WindowFlags::AlwaysAutoResize | UI::WindowFlags::NoCollapse);
|
||||||
|
quickURL = UI::InputText("", quickURL);
|
||||||
|
UI::SameLine();
|
||||||
|
if (UI::Button(Icons::ExternalLinkAlt + " Go !###QuickURL")) {
|
||||||
|
string parsedURL = Regex::Replace(quickURL,'uplay:\\/\\/launch\\/5595\\/0\\/','maniaplanet://');
|
||||||
|
CTrackMania@ app = cast<CTrackMania>(GetApp());
|
||||||
|
app.ManiaPlanetScriptAPI.OpenLink(parsedURL, CGameManiaPlanetScriptAPI::ELinkType::ManialinkBrowser);
|
||||||
|
menu_visibility = false;
|
||||||
|
}
|
||||||
|
UI::End();
|
||||||
|
}
|
||||||
|
|
||||||
|
void RenderMenu() {
|
||||||
|
if(UI::MenuItem("\\$cf9" + Icons::ExternalLinkAlt + "\\$z Quick Link Opener", "", menu_visibility)) {
|
||||||
|
menu_visibility = !menu_visibility;
|
||||||
|
}
|
||||||
|
}
|
1
QuickLinkOpener/Source/QuickLinkOpener.as.sig
Normal file
1
QuickLinkOpener/Source/QuickLinkOpener.as.sig
Normal file
@ -0,0 +1 @@
|
|||||||
|
ݹ<><DDB9><EFBFBD>g<EFBFBD><67><EFBFBD> ǁ<EFBFBD><EFBFBD>ӛ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>f<EFBFBD>J<06>%<1A>]<06>J_<4A>P<EFBFBD><50>ah<61><68><0F>5<08>'NN<4E>Z<EFBFBD>2<><32>r<EFBFBD><72>T<EFBFBD>
|
14
QuickLinkOpener/info.toml
Normal file
14
QuickLinkOpener/info.toml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
[meta]
|
||||||
|
name = "Quick Link Opener"
|
||||||
|
author = "Beu"
|
||||||
|
category = "Utilities"
|
||||||
|
|
||||||
|
siteid = 101
|
||||||
|
version = "1.1"
|
||||||
|
|
||||||
|
perms = "paid"
|
||||||
|
|
||||||
|
blocks = [ "Plugin_QuickLinkOpener" ]
|
||||||
|
|
||||||
|
[script]
|
||||||
|
imports = [ "Icons.as" ]
|
BIN
QuickLinkOpener/info.toml.sig
Normal file
BIN
QuickLinkOpener/info.toml.sig
Normal file
Binary file not shown.
Reference in New Issue
Block a user