From ed331a57c037e86f7ff50b361bba2e31ab46895b Mon Sep 17 00:00:00 2001 From: Beu Date: Mon, 5 Jul 2021 23:48:27 +0200 Subject: [PATCH] update with new format & new enum policy --- .gitignore | 2 ++ .../Source/MapValidator.as | 10 +------ MapValidator/Source/MapValidator.as.sig | 2 ++ MapValidator/info.toml | 12 ++++++++ MapValidator/info.toml.sig | Bin 0 -> 64 bytes QuickLinkOpener/Source/QuickLinkOpener.as | 26 ++++++++++++++++++ QuickLinkOpener/Source/QuickLinkOpener.as.sig | 1 + QuickLinkOpener/info.toml | 14 ++++++++++ QuickLinkOpener/info.toml.sig | Bin 0 -> 64 bytes 9 files changed, 58 insertions(+), 9 deletions(-) create mode 100644 .gitignore rename Plugin_MapValidator.as => MapValidator/Source/MapValidator.as (86%) create mode 100644 MapValidator/Source/MapValidator.as.sig create mode 100644 MapValidator/info.toml create mode 100644 MapValidator/info.toml.sig create mode 100644 QuickLinkOpener/Source/QuickLinkOpener.as create mode 100644 QuickLinkOpener/Source/QuickLinkOpener.as.sig create mode 100644 QuickLinkOpener/info.toml create mode 100644 QuickLinkOpener/info.toml.sig diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1372d7f --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*.op +*.zip diff --git a/Plugin_MapValidator.as b/MapValidator/Source/MapValidator.as similarity index 86% rename from Plugin_MapValidator.as rename to MapValidator/Source/MapValidator.as index 9ffed49..e309398 100644 --- a/Plugin_MapValidator.as +++ b/MapValidator/Source/MapValidator.as @@ -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 :) -#include "Icons.as" - bool menu_visibility = false; int author_time; @@ -22,7 +14,7 @@ void validate(int author_time) { } if (editor.PluginMapType !is null) { - editor.PluginMapType.ValidationStatus = EValidationStatus::Validated; + editor.PluginMapType.ValidationStatus = CGameEditorPluginMapMapType::EValidationStatus::Validated; } if (map !is null) { map.TMObjective_AuthorTime = author_time; diff --git a/MapValidator/Source/MapValidator.as.sig b/MapValidator/Source/MapValidator.as.sig new file mode 100644 index 0000000..b9e015f --- /dev/null +++ b/MapValidator/Source/MapValidator.as.sig @@ -0,0 +1,2 @@ +SZBj} 泌\vHsǪmZmr- +'uO \ No newline at end of file diff --git a/MapValidator/info.toml b/MapValidator/info.toml new file mode 100644 index 0000000..49f2e22 --- /dev/null +++ b/MapValidator/info.toml @@ -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" ] \ No newline at end of file diff --git a/MapValidator/info.toml.sig b/MapValidator/info.toml.sig new file mode 100644 index 0000000000000000000000000000000000000000..9b461edc9fb06c3c55edbebcc030b5157759bbe9 GIT binary patch literal 64 zcmV-G0KfnJ2b{+lSiYL3m}bIrg6y_Trp55?h{8m|PmoM1@;1Aq6e&AYnj_)_Dx`zW Wlf4CPH7tJjCqgrot?6k+HZ}lD8y@ul literal 0 HcmV?d00001 diff --git a/QuickLinkOpener/Source/QuickLinkOpener.as b/QuickLinkOpener/Source/QuickLinkOpener.as new file mode 100644 index 0000000..a261061 --- /dev/null +++ b/QuickLinkOpener/Source/QuickLinkOpener.as @@ -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(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; + } +} diff --git a/QuickLinkOpener/Source/QuickLinkOpener.as.sig b/QuickLinkOpener/Source/QuickLinkOpener.as.sig new file mode 100644 index 0000000..9fcfc50 --- /dev/null +++ b/QuickLinkOpener/Source/QuickLinkOpener.as.sig @@ -0,0 +1 @@ +ݹg ǁӛfJ%]J_Pah5'NNZ2rT \ No newline at end of file diff --git a/QuickLinkOpener/info.toml b/QuickLinkOpener/info.toml new file mode 100644 index 0000000..cb28ead --- /dev/null +++ b/QuickLinkOpener/info.toml @@ -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" ] \ No newline at end of file diff --git a/QuickLinkOpener/info.toml.sig b/QuickLinkOpener/info.toml.sig new file mode 100644 index 0000000000000000000000000000000000000000..44afc8835b02655239c4005a52d69c309cb65289 GIT binary patch literal 64 zcmV-G0Kfky|Bx8_tw4vJ;yyUN{S_Jz@+wkgf&B`=qDhz;w4kvZjVH}c99o_{7^_r3 W$h2<)?EqC`wFFMTOAu1BB2op;g&U~= literal 0 HcmV?d00001