Attract-Mode Support Forum
Attract-Mode Support => General => Topic started by: FrizzleFried on March 15, 2019, 08:04:54 AM
-
OK... I can make my layouts display PLAYER NUMBERS... as well as CATEGORIES... and now I want to display CONTROLLER TYPE...
JOYSTICK (2-WAY)
JOYSTICK (4-WAY)
JOYSTICK (8-WAY)
ROTARY
TRACKBALL
etc...
Any easy code to do so?
-
[Controls] column in romlist can be used for this purpose, rest will be same. Similar to how filters are made for [Category] you can use [Controls] as basis. You can use any other column like [Extra] or [Buttons] for that too. If all headers are populated you can use tags rest should be same, in filters a statement like [Tags] contain [control data] can be used.
-
Thanks... I actually managed to figure it out.
;)
-
How about number of BUTTONS? I see that my output from MAME includes this info between "EXTRA" and "FAVORITES" but there isn't a mention of it in the attract mode layout manual... is there a way to display button count? If so, what's the magic token name?
EDIT: Evidently Info.Buttons works... giving it a try now.
EDIT #2: Unfortunately, Info.Buttons is NOT working...where Info.Controls did (for joysticks). I wonder what I am doing wrong... the data IS in the romlist...
Hmmm....
EDIT #3: Nevermind... I found my error and have fixed it...
:)
-
as you already discovered Buttons is undocumented but works. In my theme I use both controls and buttons with a custom function that assigns an image to different controls based on this data
-
as you already discovered Buttons is undocumented but works. In my theme I use both controls and buttons with a custom function that assigns an image to different controls based on this data
This is exactly what I did...
:)
-
Oh, and unfortunately some are obviously wrong though. For example, Galaga 88 is listed as an 8-way game... it's not... 2-way.
There are a few more. I'll fix them in my romlists as I go through them though... not a huge deal.