Originally Posted by ariszlo
View Post

<text id="firstchunk"
x="271" y="81" h="20" w="50" align="right"
font="bitmapfont.timer.id" text=""
/> <!-- firstchunk should be right-aligned because it may have any number of digits before the colon -->
<text id="firstcolon"
x="321" y="81" h="20" w="13" align="left"
font="bitmapfont.timer.id" text=":"
/>
<text id="secondchunk"
x="334" y="81" h="20" w="50" align="left"
font="bitmapfont.timer.id" text=""
/>
<text id="secondcolon"
x="384" y="81" h="20" w="13" align="left"
font="bitmapfont.timer.id" text=":"
/>
<text id="thirdchunk"
x="397" y="81" h="20" w="50" align="left"
font="bitmapfont.timer.id" text=""
/>
<script id="playlistlengthchunks" file="SCRIPTS/playlistlengthchunks.maki"/>
String PLTimev = getToken(infoInput.getText(), "/" , 1);
String rightstring = getToken(PLTimev, ":" , 2);
triggerObject.onEnterArea()
{
String object_id = triggerObject.getId();
if (object_id == "mp.button.play.id" && System.getStatus() == STATUS_PLAYING)
{
glowObject.cancelTarget();
}
else if (object_id == "mp.button.play.id" && (System.getStatus() == STATUS_PAUSED || System.getStatus() == STATUS_STOPPED))
{
glowObject.cancelTarget();
glowObject.setXmlParam("alpha","255");
}
else if (object_id == "mp.button.pause.id" && System.getStatus() == STATUS_PAUSED)
{
glowObject.cancelTarget();
}
else if (object_id == "mp.button.pause.id" && (System.getStatus() == STATUS_PLAYING || System.getStatus() == STATUS_STOPPED))
{
glowObject.cancelTarget();
glowObject.setXmlParam("alpha","255");
}
else if (object_id == "mp.button.stop.id" && System.getStatus() == STATUS_STOPPED)
{
glowObject.cancelTarget();
}
else if (object_id == "mp.button.stop.id" && (System.getStatus() == STATUS_PLAYING || System.getStatus() == STATUS_PAUSED))
{
glowObject.cancelTarget();
glowObject.setXmlParam("alpha","255");
}
else
{
glowObject.cancelTarget();
glowObject.setXmlParam("alpha","255");
}
}
triggerObject.onEnterArea()
{
glowObject.cancelTarget();
glowObject.setXmlParam("alpha","255");
}
<button
x="64" y="0"
id="mp.button.play.id"
image="mp.button.play"
downimage="mp.button.play.down"
hoverimage="my.play.hover"
action="PLAY"
tooltip="Play/Restart "
/>
<!--layer
x="64" y="0"
id="mp.button.play.glow.id"
image="mp.button.play.glow"
ghost="1"
/-->
<!--script file="SCRIPTS\11-hoverglow.maki" param="mp.button.play.id/mp.button.play.glow.id"/-->
<script file="SCRIPTS/statuswidth.maki" param="mp.button.play.id/mp.button.play.active.id"/>
Comment