Attract-Mode Support Forum
Attract-Mode Support => Scripting => Topic started by: kent79 on May 06, 2017, 09:25:58 PM
-
Dear All,
Beta version was released and you may try it.
http://forum.attractmode.org/index.php?topic=1615.0
I would like to compete as below items on next version. Please help me if you know the code. Thanks
1. Translate history function to "submenu" module
2. Press button effect while pressing select button
3. Press button sound while pressing select button
4. Favorite icon scaling effect while pressing Add/remove Favorite button
5. Press button sound while pressing Add/remove Favorite button
-
2. Press button effect while pressing select button
I try to add below code in theme, but not run properly. :(
case "select":
local flash4 = {when = When.Always, property = "scale", start = 1.2, end = 1.0, time = 300
}
animation.add( PropertyAnimation( gridc.flyer_t, flash4 ) );
------------------------------------------------------------------------------------------------
3. Press button sound while pressing select button
I have tested as below 4 codes. 1 & 3 can play sound and do fe.signal action. But 2 & 4 is not ok and will be hang. I don't why, may be it is a bugs for AM :(
1. case "select":
local previewClick = fe.add_sound("selectclick.mp3");
previewClick.playing=true;
fe.signal( "add_favourite" );
return true;
2. case "select":
local previewClick = fe.add_sound("selectclick.mp3");
previewClick.playing=true;
fe.signal( "select" );
return true;
3. case "add_favourite":
local previewClick = fe.add_sound("selectclick.mp3");
previewClick.playing=true;
fe.signal( "select" );
return true;
4. case "add_favourite":
local previewClick = fe.add_sound("selectclick.mp3");
previewClick.playing=true;
fe.signal( "add_favourite" );
return true;
-----------------------------------------------------------------
Any one can fix it?