361
Scripting / Re: Listbox Question about sel background
« on: August 29, 2014, 07:06:10 AM »
hmm ok I'll check that the docs cover this!
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Trying to build a simple list routine so I can alter the selected game height.
Only lists the first 9 games. Using up/down changes the preview image appropriately but the list doesn't change.Code: [Select]// Layout by cools / Arcade Otaku
// Layout User Options
class UserConfig {
</ label="Preview Image", help="Choose snap/video snap, title, flyer or none.", options="snap,video,title,flyer,none" /> preview_image = "snap";
}
local my_config = fe.get_config();
// Layout Constants
// Font found on 9031.com
fe.layout.font="Arcade-Regular"
local rot=(fe.layout.base_rotation+fe.layout.toggle_rotation)%4;
local flw=fe.layout.width;
local flh=fe.layout.height;
switch (rot) {
case RotateScreen.Right:
case RotateScreen.Left:
fe.layout.width=flh;
fe.layout.height=flw;
flw=fe.layout.width;
flh=fe.layout.height;
break;
}
// Preview image
local preview=fe.add_artwork (my_config["preview_image"],0,0,flw,flh/3);
// List
local lbx=0;
local lby=flh/3;
local lbw=flw;
local lbh=flh-lby;
local itn=9;
local ith=lbh/itn;
lby+=(ith*(itn/2));
for (local i=(itn/2)*-1;i<(itn/2);i+=1){
if (i==0) {
fe.add_text(fe.game_info (Info.Title),lbx,lby+(ith*i)-5,lbw,ith+10);
}
else {
fe.add_text(fe.game_info (Info.Title,i),lbx,lby+(ith*i),lbw,ith);
}
}
Actually, just doing this doesn't work as I'd expect:Code: [Select]fe.add_text(fe.game_info (Info.Title),0,0,fe.layout.width,fe.layout.height/25);
Even throwing the latter part alone into a "local game=" statement fails for it to update.
fe.add_text(fe.game_info (Info.Title),0,0,fe.layout.width,fe.layout.height/25);
local temp = fe.add_text("[Title]",0,0,fe.layout.width,fe.layout.height/25);
temp.index_offset = i;
Hello, I've been playing around with Attract Mode setting up my first arcade, and I really love the ease of use. However, there are 2 things I can't figure out:
1) Is there a way to have Attract play random songs in the background instead of one song over and over? Like every time it boots up, it picks a song at random from the audio folder?
2) I have .mp4 video clips of games, but I can't figure out how to get them to run in the screensaver mode. What folder do they need to be in? What settings do I need applied?
Thanks in advance!
Id like to think that I pick things up quick computerwise, but for the life of me I can't get a grasp on lists and favorites. Could someone post a couple of their examples? For example in mame, i like only 1981 games. How would I go about that? Thanks for your time!
list Arcade
layout orbit
romlist mame
filter All
filter Favourites
rule Favourite equals 1
filter 1981
rule Year equals 1981