Author Topic: Genesis Mini theme, preview  (Read 13783 times)

jedione

  • Hero Member
  • *****
  • Posts: 1135
  • punktoe
    • View Profile
Genesis Mini theme, preview
« 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, ...

help a friend....

jedione

  • Hero Member
  • *****
  • Posts: 1135
  • punktoe
    • View Profile
Re: Genesis Mini theme, preview
« Reply #1 on: August 19, 2019, 07:46:15 AM »
here is some vid of were it is at ...

https://youtu.be/XpjOLzB3zqw
help a friend....

zpaolo11x

  • Hero Member
  • *****
  • Posts: 1245
    • View Profile
    • My deviantart page
Re: Genesis Mini theme, preview
« Reply #2 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?

jedione

  • Hero Member
  • *****
  • Posts: 1135
  • punktoe
    • View Profile
Re: Genesis Mini theme, preview
« Reply #3 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.
help a friend....

zpaolo11x

  • Hero Member
  • *****
  • Posts: 1245
    • View Profile
    • My deviantart page
Re: Genesis Mini theme, preview
« Reply #4 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

rand0m

  • Sr. Member
  • ****
  • Posts: 343
    • View Profile
Re: Genesis Mini theme, preview
« Reply #5 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.
« Last Edit: August 20, 2019, 11:00:44 PM by rand0m »

rand0m

  • Sr. Member
  • ****
  • Posts: 343
    • View Profile
Re: Genesis Mini theme, preview
« Reply #6 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

zpaolo11x

  • Hero Member
  • *****
  • Posts: 1245
    • View Profile
    • My deviantart page
Re: Genesis Mini theme, preview
« Reply #7 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

jedione

  • Hero Member
  • *****
  • Posts: 1135
  • punktoe
    • View Profile
Re: Genesis Mini theme, preview
« Reply #8 on: August 26, 2019, 03:45:53 PM »
update video,  of  it getting moor polished...

https://youtu.be/4HlzoLKHvN0

help a friend....

bundangdon

  • Sr. Member
  • ****
  • Posts: 213
    • View Profile
Re: Genesis Mini theme, preview
« Reply #9 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
« Last Edit: August 27, 2019, 02:15:45 AM by bundangdon »

rand0m

  • Sr. Member
  • ****
  • Posts: 343
    • View Profile
Re: Genesis Mini theme, preview
« Reply #10 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 :)

jedione

  • Hero Member
  • *****
  • Posts: 1135
  • punktoe
    • View Profile
Re: Genesis Mini theme, preview
« Reply #11 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.
« Last Edit: August 28, 2019, 07:13:37 AM by jedione »
help a friend....

zpaolo11x

  • Hero Member
  • *****
  • Posts: 1245
    • View Profile
    • My deviantart page
Re: Genesis Mini theme, preview
« Reply #12 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

zpaolo11x

  • Hero Member
  • *****
  • Posts: 1245
    • View Profile
    • My deviantart page
Re: Genesis Mini theme, preview
« Reply #13 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.
« Last Edit: September 01, 2019, 12:34:38 AM by zpaolo11x »

jedione

  • Hero Member
  • *****
  • Posts: 1135
  • punktoe
    • View Profile
Re: Genesis Mini theme, preview
« Reply #14 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
help a friend....