Isn't it something like
Code: Select all
editors_paint
Thanks

Moderator: English Moderator
Code: Select all
editors_paint
Code: Select all
TitleFlow.EditSkins();
Thank you very much!!!Qlex wrote: ↑07 Aug 2017, 10:09 Hi,
The documentation regarding class CTitleFlow generally gives you all these tools :
https://maniaplanet.github.io/maniascri ... _flow.html
In your example :
Should workCode: Select all
TitleFlow.EditSkins();
Hope that helps!
Just
Code: Select all
TitleFlow.EditSkins();
Thanks, I've tried it. In ML editor it shows no errors, but after click on my paint button in my menu it shows this:zocka wrote: ↑12 Aug 2017, 19:30 I expect you to have the context CManiaAppTitle (https://maniaplanet.github.io/maniascri ... title.html) which should have to property TitleFlow so you would call
TitleFlow.EditSkins();
(In the screenshot you missed the () as well)
Maybe this helps
Code: Select all
ERR [8, 15] Invalid access to parameter (Null object or elem not found in array) : >EditSkins
media::Main() [8, 15]
Code: Select all
TitleFlow.PlayMap("A01", "", "");
Code: Select all
#RequireContext CManiaAppTitle
#Const ScriptName "Menu.Script.txt"
Text MainView() {
return """
<manialink version="3">
<label text="skins" scriptaction="openeditor'skins"/>
</manialink>
""";
}
main() {
declare Layer = UILayerCreate();
Layer.ManialinkPage = MainView();
while(True) {
yield;
foreach (Event in PendingEvents) {
if (Event.Type == CManiaAppEvent::EType::LayerCustomEvent) {
if (Event.CustomEventType == "openeditor") {
switch (Event.CustomEventData[0]) {
case "skins": {
TitleFlow.EditSkins();
}
}
}
}
}
}
}
Users browsing this forum: No registered users and 0 guests