update with new format & new enum policy
This commit is contained in:
parent
32cb4d75ef
commit
ed331a57c0
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>ً؛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
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 @@
|
|||||||
|
щ╧╓╧╨g└ЩС г│Вбс⌡╘· ╥fЦJс%⌡]иJ_аP╨╨ah⌠кВ5┴'NNпZЭ2аДrМ≤TЕ
|
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.
Loading…
Reference in New Issue
Block a user