|
|
Quellcode |
1 2 3 |
<action name="askforhelp"> if(plugin[myvar].HelpAtStart == true, action(showHelp)); </action> |
|
|
Quellcode |
1 2 3 |
<action name="askforhelp"> if(plugin[myvar].HelpAtStart == "true", action(showHelp)); </action> |
|
|
Quellcode |
1 2 3 4 |
<action name="askforhelp"> trace(plugin[myvar].HelpAtStart); // ---> traces true action(showHelp); // ---> and runs the expected action </action> |
|
|
Quellcode |
1 2 3 |
<action name="askforhelp"> if(plugin[myvar].HelpAtStart, action(showHelp)); </action> |
ohh, you're right, this was the problemString != Boolean



|
|
Quellcode |
1 2 3 |
<action name="askforhelp"> if(plugin[myvar].HelpAtStart == "true", action(showHelp)); </action> |
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 |
<plugin name = "myvar" keep="true" maincolor="0xFFCC00" radarcolor="0xFFCC00" radarfillalpha="0.7" prevTextbackcolor="0x000000" mapStart="closed" HelpStart="true" /> |
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
<plugin name="Help" url="HelpPane.png" zorder="120" shift="0" keep="true" align="center" edge="center" alpha="1" visible="false" onclick="action(hideHelp);" onhover="showtext(Klick zum Schließen, buttonstyle);" onloaded="action(askforhelp)"; /> <action name="askforhelp"> if(plugin[myvar].HelpStart, action(showHelp)); </action> <action name ="showHelp"> plugin[Help].changeorigin(top,center); set(plugin[Help].y,-400); set(plugin[Help].alpha,1); set(plugin[Help].visible,true); plugin[Help].changeorigin(center,center); action(blackyOn, 0.5,freeze); delayedcall(0.3,tween(plugin[Help].y,0,1.5,easeOutQuint)); </action> <action name="hideHelp"> action(blackyOff); tween(plugin[Help].alpha,0,0.5,,set(plugin[Help].visible,false)); </action> |
that's because the quotes ("") are currently not resolved (but in beta 8 they are),but if user declared variables always are interpreted as strings
this (i tried)
<action name="askforhelp">
if(plugin[myvar].HelpAtStart == "true", action(showHelp));
</action>
should work, but also did not...
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
<action name="closehelp">
[b]blackyOn(0.5, true);[/b]
set(plugin[dragmode].visible, true);
set(plugin[movemode].visible, false);
tween(plugin[help].alpha,0,distance(1,0.15),,set(plugin[help].visible,false));
</action>
<action name="starthelp">
set(plugin[dragmode].visible, false);
set(plugin[movemode].visible, true);
tween(plugin[closebutton].alpha,0.9,distance(1,0.1),,set(plugin[closebutton].visible,true));
tween(plugin[help].alpha,0.9,distance(1.5,0.1),,set(plugin[help].visible,true));
[b] blackyOff();[/b]
</action>
|