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 - Wenzon

Pages: 1 2 [3] 4
31
Scripting / Plugin Sequencer
« on: October 23, 2019, 06:35:43 AM »
Could anyone configure this plugin to work just like what jedione posted in this topic?

Link:
http://forum.attractmode.org/index.php?topic=2408.msg16634#msg16634

Video:
https://youtu.be/vGXdz2JjWfs

32
Scripting / Default filter on return of displays
« on: October 23, 2019, 03:47:26 AM »
I didn't find in the forum about filters by default between one display and another. And I don't know if my question is in this forum. So, I apologize in advance if this is not the place.

Let me explain further. By default AM sets the display with the filter "ALL". I am in the MAME display and use the "Fighters" filter, if I go to another display (NAOMI), the filter will be active for "ALL".
If I return to the MAME display, the filter I previously selected will be enabled.

I wish that when navigation between one display or another occurred, the filters would reset, in this case, back to the default filter "ALL". Every time I go back to the display where I applied a particular filter, I have to select the "ALL" filter to show all games again. This is very annoying.

Does AM have this option or do I need to add a script to my theme?
Thanks in advance for your help.

33
Themes / Re: New theme AMFlash, preview.
« on: October 19, 2019, 04:47:58 AM »
Update. Some screenshots.



The coin insertion program in AM did not work. And I didn't find anything about it either. I had to abandon this idea.  :(

34
Scripting / Re: KeyboardSearch module
« on: October 02, 2019, 10:39:11 AM »
Thank you iOtero;D

35
Scripting / Re: KeyboardSearch module
« on: September 28, 2019, 11:17:40 AM »
I want to remove as quotes when you start typing in search. And also add total items found on that same screen. It's possible?

36
Scripting / Re: [ListSize]
« on: September 25, 2019, 11:13:30 AM »
Just replace 'size' with 'index '
Something like this, cant test atm

Code: [Select]
//
//


 ::OBJECTS2 <- {

system2= fe.add_text("",0, 25, 640, 30)

}


function transition_system2(ttype, var, ttime)
{
    switch ( ttype )
    {
        case Transition.ToNewList:
case Transition.StartLayout:
case Transition.ToNewSelection:
case Transition.FromOldSelection:

local display2 = fe.list.index - 3
OBJECTS2.system2.msg = display2;
    break;
    }

}

fe.add_transition_callback("transition_system2" );

//
//


P.D. Should be better create a single working function but I think this its better for you to understand how it works  ;)

Code: [Select]
This class is a container for status information regarding the current display. The instance of this class is the fe.list object. This class cannot be otherwise instantiated in a script.

Properties:

    name - Get the name of the current display.
    display_index - Gett the index of the current display. Use the fe.set_display() function if you want to change the current display.
    filter_index - Get/set the index of the currently selected filter. (see fe.filters for the list of available filters).
    index - Get/set the index of the currently selected game.
    search_rule - Get/set the search rule applied to the current game list. If you set this and the resulting search finds no results, then the current game list remains displayed in its entirety. If there are results, then those results are shown instead, until search_rule is cleared or the user navigates away from the display/filter.
    size - Get the size of the current game list. If a search rule has been applied, this will be the number of matches found (if > 0)

So you can use all this properties depending on what you need, I mean fe.list.name, fe.list.size, fe.list.index...


Thank you so much!  ;D

37
Scripting / Re: [ListSize]
« on: September 23, 2019, 12:12:36 PM »
Quote from: qqplayer
This works, just need to set the right position and color.

That's easy.  :)

Quote from: qqplayer
I mean, you will need to show ListEntry and in this case system1 its like a fake ListSize with 3 less items.

But "ListEntry" keeps popping up at number 13. Not wanting to abuse, could you pass me another code or script using "ListEntry" as the last?  ::)
Besides English, I'm horrible in programming. Thank you very much for your goodwill qqplayer.



38
Scripting / Re: [ListSize]
« on: September 17, 2019, 10:21:53 AM »
I think my explanation is a little confusing. I want the 13 item to appear on the menu. What I don't want is for the number 13 to appear instead of 10 because atract mode lists those options as items. When I use [LastSize] list the number 13. I would like to present 10 items where I circled the image written SYSTEMS.

39
Scripting / Re: [ListSize]
« on: September 15, 2019, 09:55:44 AM »
I hope you can understand with my bad English. ;D
 Below is the code and the image.


Code: [Select]
//Display ListEntry and ListSize info
local lels = fe.add_text( "[ListEntry]/[ListSize]", flx*0.032, fly*0.683, flw*0.25, flh*0.04 );
lels.set_rgb( 255, 255, 255 );
lels.font="LEDSCORE";
lels.charsize = 12;
lels.align = Align.Right;

For example, the magic token [ListSize] the number of items in the game list.

In the "Display Menu" atract mode lists the systems I created. It has a total of 10 systems, but I added options as "shutdown", "favorites" and "all games", the listing goes to 13 items. I would like [ListeSize] to remove these 3 items. As if subtracting [ListSize] -3 to list the 10 items. I feel very difficult in this part of script and programming language. Thanks for the help.

40
Scripting / [ListSize] [Resolved]
« on: September 14, 2019, 08:39:19 PM »
Is it possible to run [ListSize] by decreasing the number of items? For example, my theme lists 13 systems, 3 of which are not systems but options. I would like to use [ListSize] by decreasing these 3 items.

41
Themes / New theme AMFlash, preview.
« on: September 13, 2019, 04:05:32 PM »
Copy of Hyperflash theme (HyperSpin) adapted to Attract Mode. It's not an exact copy because I didn't have the original file (PSD, Photohsop), so the image structure and all effects were recreated.
List of items that have been added and removed in the theme.


Removed:
- Display Favorites.
- Display All Games.
- Command Shell Rebuilder Favorites.

Added:
- Dark AMFLash theme (LAVA).
- Added wide format in snap (video) for some systems.
- Resolution set to 1920 x 1080


Considerations:
I should add some more features to finish the AMFlash theme. In my tests, it seems that everything is working perfectly. I would like to add a function that exists in hyperspin that random mode of selecting the game (cycling). Here's a link to better understand.
https://www.youtube.com/watch?v=vGXdz2JjWfs&feature=youtu.be

It has not yet been developed for AM, and I did not find anything here in the forum related to this. If anyone knows please let me know.
I should only return to this topic when the final version is ready.

Follow the link of the new video.
https://www.youtube.com/watch?v=WrvMADuS_3o&feature=youtu.be



Old video.
https://www.youtube.com/watch?v=PVUOOJtVNnY

NOTE: HyperFlash was developed by Semcranio.

42
Themes / Re: At-The-Arcade Theme v1.2 [Release]
« on: August 15, 2019, 07:21:26 AM »
The "Show weel pointer" option is not working. I am using the current version of AM. I did a fresh install of AM and the problem persists.

I am attaching a new version of the layout.nut file. I think I know what the problem is. Please replace the current layout.nut file within the 'At-The-Arcade' theme folder with this one. Then disable and renable the "Show wheel pointer" option and tell me if it works. Thanks!

Working!  ;D

43
Themes / Re: At-The-Arcade Theme v1.2 [Release]
« on: August 15, 2019, 03:30:40 AM »
The "Show weel pointer" option is not working. I am using the current version of AM. I did a fresh install of AM and the problem persists.

44
Scripting / Re: KeyboardSearch module
« on: June 25, 2019, 10:13:33 AM »
A doubt.
Can you decrease the font size when you are selecting a letter or number?

45
Scripting / Re: KeyboardSearch module
« on: June 23, 2019, 02:17:34 PM »
Run:
Code: [Select]
attract --loglevel debug

launch the keyboardsearch module and put here the last_run.log file.

I'm putting 2 files. One log and the other layout. I put the module script in the last line of the layout file.

The [ ] in the colors must be removed.
And I would leave the function like this:

Code: [Select]
fe.load_module("objects/keyboard-search");
local search_surface = fe.add_surface(fe.layout.width, fe.layout.height)
KeyboardSearch(search_surface)
    .search_key(my_config["user_search_key"])
    .mode(my_config["user_search_method"])
    .text_color(255,0,255,255)
    .keys_color(255,255,255,255)
    .keys_selected_color(255,50,255,255)
    .init()
search_surface.set_pos(0, 0, fe.layout.width, fe.layout.height);

Thaaaaaaaannnnnnnkkkkkkkkouuuuuuuuu!!!! Wonderful, spectacular, amazing !!! I have no words to thank. I would hardly solve this problem.
I do not think I'm going to stop thanking you. Thank you very much for your time and help.  :)

Pages: 1 2 [3] 4