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.


Messages - Zdouf

Pages: [1]
1
Scripting / Re: Displays menu // Filter displays or use several lists ?
« on: August 27, 2023, 06:42:12 AM »
Ok, just found a simple solution.
In this example, pressing left will reach the first Display of the previous category of the current display:

function on_signal( sig )
{      
    switch ( sig )
    {
        case "left":
           
         if (fe.list.index <10) fe.list.index = 20
         else if (fe.list.index >= 10 && fe.list.index < 20)fe.list.index = 0
         else if (fe.list.index >= 20) fe.list.index = 10;
         return false;

---

Sorry again for asking ;(
Johann

2
Scripting / Displays menu // Filter displays or use several lists ?
« on: August 27, 2023, 03:18:36 AM »
Hello,

From the DISPLAY MENU (not a "regular" display), I'd like to be able to choose between :
- systems (CPS1, CPS2, MVS...),
- manufacturers (ADK,Capcom, Cave...) or
- genre (Shmups, VS fighters...)
with a SpinWheel . There's no filter possible in "displays" menu. Even adding a display as a favorite cannot be usable (not saved anywhere I think).

"fe.list" is the list of displays. My displays are sorted in this order :
If "fe.list.index <= 10" , there are "systems",
if "fe.list.index > 10 && fe.list.index <= 20" , there are "manufacturers"...

So I'd like to reach my goal using this order. My questions :
- Is it a good idea to reach my goal this way ?
- Is it possible to code for a "jump_to" function to a specific name (ADK, my first manufacturers name for example)? I see I can jump to next letter from options but dunno if I can do it with code to a specific name.
- Is it possible to create 3 lists from fe.list and feed the SpinWheel with one of those lists (overpass fe.list.index) and switch between 3 lists with a signal ( function on_signal( sig ).... for example) ?
- Is it possible to feed a SpinWheel with a range of fe.list (for example indexes from 10 to 20) ?
- Is there a plugin, a module or a setting I haven't seen to easily reach my goal ?
- Create 3 "regular" filtered displays ("Systems", "manufacturers" & "genres") that launch one of the target displays instead of "displays menu" is possible with a script ?
- Any idea ?

Have a nice day.
Johann

3
Scripting / Re: Get the magic token [ListEntry] with a function
« on: August 22, 2023, 04:39:00 PM »
Sorry, just found the answer on the forum. Apologies...
-> fe.list.index

4
Scripting / Get the magic token [ListEntry] with a function
« on: August 22, 2023, 04:27:38 PM »
Hello,

I'm unable to get the field with a function using " fe.game_info( Info.ListEntry )"

How is it possible to get the index?
I haven't found any solution in an existing layout.
I don't know how to access the Squirrel Root table to find the equivalent function.

Best regards
Johann.

5
General / Re: New user to AM, leaving Hyperspin behind
« on: June 13, 2021, 02:21:56 PM »
Hello,
that's maybe late...
You can do a lot of thing by aiming a.bat file in the executable field, in the emulator settings section.
You must left the argument field blank too.
My batch file is in the root folder of AM.
I can post example here if you still need a solution for your issue.
Have a nice evening.

6
Themes / Re: AMGPS (Attract Mode Grid Pro System) v1.13
« on: July 26, 2020, 03:19:13 PM »
Good Work Dude!
My menu is now soooo nice, because of you!
Many thanks!

I changed few things but it wasn't so much (keep aspect ratio of wheels), almost perfect !!
Thanks again!!


Pages: [1]