Attract-Mode Support Forum

Attract-Mode Support => Themes => Topic started by: jedione on August 17, 2019, 07:10:08 AM

Title: Genesis Mini theme, preview
Post by: jedione on August 17, 2019, 07:10:08 AM
 Genesis Mini theme  preview

will update with video this weekend

short on time...if any one wants to help let me know..

showing were its at, ...

(http://i64.tinypic.com/az9vg7.jpg)
Title: Re: Genesis Mini theme, preview
Post by: jedione on August 19, 2019, 07:46:15 AM
here is some vid of were it is at ...

https://youtu.be/XpjOLzB3zqw
Title: Re: Genesis Mini theme, preview
Post by: zpaolo11x on August 19, 2019, 11:36:37 AM
Genesis Mini theme  preview


Looks nice! I noticed the "Sort: A-Z" in the top right corner. Is this just showing the order of the current romlist/filter, or did you find a way to change the sort criteria on the fly without creating a new filter?
Title: Re: Genesis Mini theme, preview
Post by: jedione on August 19, 2019, 11:54:22 AM
A-Z  just sitting their...  doing nothing as of right now.

but that is a good idea you have on the filter change...

if possible....    i dont know how.
Title: Re: Genesis Mini theme, preview
Post by: zpaolo11x on August 19, 2019, 01:31:46 PM
if possible....    i dont know how.

This is not possible AFAIK at the moment, layouts can only trigger filters, and fiters have a defined sorting order that the layout can not change :( Would be great to have the option to change it
Title: Re: Genesis Mini theme, preview
Post by: rand0m on August 20, 2019, 10:58:55 PM
if possible....    i dont know how.

This is not possible AFAIK at the moment, layouts can only trigger filters, and fiters have a defined sorting order that the layout can not change :( Would be great to have the option to change it

I think it might be possible, keyboard search module returns search results in a new list. The way it works, I think that list is temporary and created on spot, the "Sort" option also applies because results are in alphabetical order.  So if we could modify keyboard search to look for year or players and then apply the desired sort order we might get full lists temporarily created.

My personal aim is to create a right-click like menu with option to display list via all magic tokens (year, players, manufacturer, playtime etc) with further option of ascending/ descending.
Title: Re: Genesis Mini theme, preview
Post by: rand0m on August 20, 2019, 10:59:52 PM
here is some vid of were it is at ...

https://youtu.be/XpjOLzB3zqw

great theme jedione, good job :D
Title: Re: Genesis Mini theme, preview
Post by: zpaolo11x on August 21, 2019, 12:56:01 AM
I think it might be possible, keyboard search module returns search results in a new list. The way it works, I think that list is temporary and created on spot, the "Sort" option also applies because results are in alphabetical order.  So if we could modify keyboard search to look for year or players and then apply the desired sort order we might get full lists temporarily created.

I looked into the keyboard search plugin when integrating it in my layout, and yes the list is created on the fly each time a search string is applied. As far as I know though, you can't change the sort order of this list, actually it's more like the current list is filtered and re-displayed. If your current list is sorted "by year" the resulting filtered list will be sorted by year too even if you are searching the game title.

Quote
My personal aim is to create a right-click like menu with option to display list via all magic tokens (year, players, manufacturer, playtime etc) with further option of ascending/ descending.

That would be the holy grail of list sorting :D
Title: Re: Genesis Mini theme, preview
Post by: jedione on August 26, 2019, 03:45:53 PM
update video,  of  it getting moor polished...

https://youtu.be/4HlzoLKHvN0 (https://youtu.be/4HlzoLKHvN0)

Title: Re: Genesis Mini theme, preview
Post by: bundangdon on August 27, 2019, 02:13:59 AM
Very nice! It would be great if this could be used with other systems. For example, you could simply replace the Sega Genesis logo (on the top middle) with whichever platform/system is being used. Or, is that already possible with this theme? And instead of the game's info, it would be cool if you could have a screenshot or video preview of the selected game. Just hoping for this, because I rarely look at the game's info ;D
Title: Re: Genesis Mini theme, preview
Post by: rand0m on August 28, 2019, 02:28:56 AM

I looked into the keyboard search plugin when integrating it in my layout, and yes the list is created on the fly each time a search string is applied. As far as I know though, you can't change the sort order of this list, actually it's more like the current list is filtered and re-displayed. If your current list is sorted "by year" the resulting filtered list will be sorted by year too even if you are searching the game title.

That would be the holy grail of list sorting :D

One (unrefined) way of doing this If there are only have two or three "sort orders" might be to add multiple instances of every system in attract.cfg. e.g.

Code: [Select]
MAME "sort_by = Title"  "in_cycle = yes" and "in_menu = yes"
MAME (Year) "sort_by = Year"  "in_cycle = no" and "in_menu = no"
MAME (Players) "sort_by = Players"  "in_cycle = no" and "in_menu = no"
MAME (Category) "sort_by = Category"  "in_cycle = no" and "in_menu = no"

This setup will mean only MAME (the default system setting) will show rest will be hidden in Displays menu. We can then launch the required sort via code (harder) something like
[current_display](Year) via signal

or use the "SpecificDisplay" plugin (much easier) and setup different triggers for different sort orders.

Thats all theoretical atm, I have not personally used such a setup - just brainstorming :)
Title: Re: Genesis Mini theme, preview
Post by: jedione on August 28, 2019, 06:36:14 AM
if you would like a copy of theme, to try this... i can send u a copy..this would be a nice option
for the theme.   just let me know,


i dont know how to use this,   but would this not work ok
if used?

<a name="Filter" />
#### `fe.Filter` ####

This class is a container for information about the available filters.
Instances of this class are contained in the `fe.filters` array.  This class
cannot otherwise be instantiated in a script.

Properties:

   * `name` - Get the filter name.
   * `index` - Get the index of the currently selected game in this filter.
   * `size` - Get the size of the game list in this filter.
   * `sort_by` - Get the attribute that the game list has been sorted by.
     Will be equal to one of the following values:
      - `Info.NoSort`
      - `Info.Name`
      - `Info.Title`
      - `Info.Emulator`
      - `Info.CloneOf`
      - `Info.Year`
      - `Info.Manufacturer`
      - `Info.Category`
      - `Info.Players`
      - `Info.Rotation`
      - `Info.Control`
      - `Info.Status`
      - `Info.DisplayCount`
      - `Info.DisplayType`
      - `Info.AltRomname`
      - `Info.AltTitle`
      - `Info.Extra`
      - `Info.Favourite`
      - `Info.Tags`
      - `Info.PlayedCount`
      - `Info.PlayedTime`
      - `Info.FileIsAvailable`
   * `reverse_order` - [bool] Will be equal to true if the list order has been
     reversed.
   * `list_limit` - Get the value of the list limit applied to the filter game
     list.
Title: Re: Genesis Mini theme, preview
Post by: zpaolo11x on August 29, 2019, 08:05:37 AM
I see the method introduced by rand0m, it could work, but it require to sacrifice your other displays and needs the display setup to be correct. You can do basically the same thing defining a different filter with each sorting, and use some code to switch to them, but again, this depends on having full control on how filters are set and in which order they are.

jedione the properties of fe.filters are mostly read-only, would be great to be able to modify them on the fly, but again not all user would allow a layout to mess with their filters. Best way would be to have the possibility to alter sorting and sort order _without_ affecting the main filter or romlist, just on the fly, but at the current state it's not possible in AM
Title: Re: Genesis Mini theme, preview
Post by: zpaolo11x on September 01, 2019, 12:10:32 AM
Thinking about sort order, there is a way to do it, but it's a lot of work... basically when a romlist (or any list) is loaded, you create a new array populated with all the list data. Then your layout always refer to that array, which can be ordered at your will. Of course you'll need to rewrite most of the functions that deal with lists: next/prev games, you'll have to reconstruct the letter indexes for nexy/prev letter, find a way to use "var" and transitions callbacks probably will not work. You are basically ditching AM standard list management in favor of your own, which can be done, but it's a bit overkill just to add sorting options on the fly :D Of course you'll need to track a relation between the "original" fe.list.index and the new index, so when a game is launched you can change the original list index under the hood, without your UI changing.
Title: Re: Genesis Mini theme, preview
Post by: jedione on September 01, 2019, 06:55:04 AM
that is,  crazy...   

ill just wait for someone w/ the skills that can "sort" things out :P
Title: Re: Genesis Mini theme, preview
Post by: zpaolo11x on September 01, 2019, 11:29:41 AM
that is,  crazy...   

I agree... I'm already using a custom offset array and a custom way to update thumbnails instead of using index_offset and rawset_index_offset (they caused issues with search rules), but ditching the whole list management is definitely too much for me :D
Title: Re: Genesis Mini theme, preview
Post by: jedione on October 15, 2019, 07:43:46 AM
this wouldent be raygun sorting it out would it...

https://github.com/mickelson/attract/commit/14db0103fdbd719ff8350d3a24684ff6ab485606 (https://github.com/mickelson/attract/commit/14db0103fdbd719ff8350d3a24684ff6ab485606)
Title: Re: Genesis Mini theme, preview
Post by: zpaolo11x on October 15, 2019, 10:59:36 AM
this wouldent be raygun sorting it out would it...

https://github.com/mickelson/attract/commit/14db0103fdbd719ff8350d3a24684ff6ab485606 (https://github.com/mickelson/attract/commit/14db0103fdbd719ff8350d3a24684ff6ab485606)

This is an issue I raised myself, since the result of asking for game_info.SortValue wasn't always correct. Now it should be fixed, but this is not adding the "on the fly" sorting to the list. Sort order is still a read only parameter
Title: Re: Genesis Mini theme, preview
Post by: jedione on October 15, 2019, 07:03:45 PM
thanks for explaning that....any way  bigger Q:  are you going to joing up and help with a possible fork? 
Title: Re: Genesis Mini theme, preview
Post by: zpaolo11x on October 17, 2019, 11:28:38 PM
thanks for explaning that....any way  bigger Q:  are you going to joing up and help with a possible fork?

I was invited to join but right now I'm too busy with my daytime job to give any meaningful contribution, even Arcadeflow development has slowed down a lot right now. I hope I'll be able to help in the future though
Title: Re: Genesis Mini theme, preview
Post by: kh83 on April 16, 2020, 06:08:29 PM
Great work! Any progress made for a public release? I think this would be very popular with Sega fans
Title: Re: Genesis Mini theme, preview
Post by: taelonian on May 19, 2020, 02:07:39 PM
News on this