update with new format & new enum policy

This commit is contained in:
Beu 2021-07-05 23:48:27 +02:00
parent 32cb4d75ef
commit ed331a57c0
9 changed files with 58 additions and 9 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
*.op
*.zip

View File

@ -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;

View File

@ -0,0 +1,2 @@
ـ<EFBFBD><EFBFBD>ً؛S<16><>خZB<5A><42><EFBFBD>j} ةإَ<EFBFBD>ـ<EFBFBD>ن<EFBFBD><EFBFBD>\<5C><><EFBFBD>vH،<48>ٍs<18>غما<>دmZmr -<2D>
ك'uـO<D980>

12
MapValidator/info.toml Normal file
View 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

Binary file not shown.

View 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;
}
}

View File

@ -0,0 +1 @@
щ╧╓╧╨g└ЩС г│Вбс⌡╘· ╥fЦJс%⌡]иJ_аP╨╨ah⌠кВ5┴'NNпZЭ2аДrМ≤TЕ

14
QuickLinkOpener/info.toml Normal file
View 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" ]

Binary file not shown.