Show Posts

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.

Topics - millercentral

Pages: [1]
Scripting / How to set a list filter from a plug-in script
« on: September 03, 2020, 05:53:24 PM »
I'm a scripting novice, but I'm trying to programmatically set a filter on the current layout game list from a plug-in, and I'm hoping someone can offer a bit of advice.

If the filter is named "foo", it seems like I should do this (based on the find function described here:

Code: [Select]
filter_id = fe.filters.find("foo");
if ( filter_id != null ) fe.list.filter_index = filter_id;

However, this doesn't seem to work, reporting "AN ERROR HAS OCCURED [the index 'find' does not exist]" in the console when run.

What is the right way to do this? Thanks in advance for any help!

Scripting / override input_map from script?
« on: December 27, 2016, 04:15:02 PM »
Hello. Does anyone know of a way to change the input_map during runtime? For example, a hypothetical function:

fe.set_input(input_name, input_id, replace_existing)  // replace_existing true=replace current map with new id, false=add id as additional map

eg. fe.set_input("up", "Joy0 Up", true)

But it doesn't look like this is possible (so perhaps this is a feature request then.. ;). I'm sure there are other options that would be great to be able to reach during runtime, such as volume, but input_map adjustments is most important for my needs.


Scripting / Debugging themes/modules/plugins
« on: December 14, 2016, 07:08:27 PM »
What is everybody's approach to script debugging? Is printing to the console the only option?

Can anyone suggest a way to tell in a layout.nut or plug-in if the currently selected item in a romlist has been tagged (for example as a favorite, or with a custom tag)? I can't seem to figure out how to do this...

General / layout questions/requests
« on: March 14, 2015, 09:05:55 PM »
Hello, I'm just beginning my learning around Attract Mode, and I have a couple of questions about :

1. Is it possible to create a "n x n image list box" that scrolls, similar to how the iCade 60-in-1 game selection menu works:

2. Is it possible with scripting to bring up a popup-window (via keypress) that shows an image or other information (such as game info or a controller map)?

3. Is there a way to let a user cycle through a mix of custom authored romlists, "special" lists (like Favorites or Most Played) and preset filters against a master game list? (ie Top 100, Favorite, Most Played, Maze Games, Spinner Games, All Games).


Pages: [1]