Favorites for EmulationStation
-
The basic
<textlist name="gamelist">
looks like this:<textlist name="gamelist"> <selectorColor>FFFFFF40</selectorColor> <selectedColor>FFFFFF</selectedColor> <primaryColor>FFFFFF</primaryColor> <secondaryColor>DDDDDD</secondaryColor> <size>0.280 0.670</size> <pos>0.020 0.220</pos> <fontPath>./_inc/font/Roboto-Light.ttf</fontPath> <fontSize>0.035</fontSize> <lineSpacing>1.5</lineSpacing> <horizontalMargin>0.01</horizontalMargin> <alignment>left</alignment> </textlist>
How difficult would it be to add a couple of extra properties to it like this:
<textlist name="gamelist"> <folderIcon>./_inc/img/folder_icon.png</folderIcon> <folderPosition>top</folderPosition> or <folderPosition>inline</folderPosition> </textlist>
We could even wrap them in
<feature supported="awesomeFolders">
to preserve backwards compatibility. -
@mattrixk well, if we're naming the section awesomeFolders, there's no way I can decline that offer.
:)
I'm not a professional themer (yeah, that's now a thing), but I'd expect you'd want to have a bit more control over the position of the folder icon, relative to the particular line element? Unsure what that would effectively entail or how it'd work in reality, but just a thought.
That being said, it'd be easy then to extend it to adding a star for the favorites, and the teddy bear for the kid friendly games as well, should one want to add them to the theme.
-
@pjft are we making theme requests now! This post is on topic, but also strays just a bit, sorry, it all links back to the folder icon.
A few things about this, and maybe @Nismo @ruckage or others who are working on themes now can add to this, but I am not sure I would want an image file within the textlist, or if this is even possible. I personally want to keep my <textlist> exactly that, text.
Now to add to this a bit, one thing that I have wanted for awhile is to be able to add more meta data image fields. Now that we have video and marquees and the standard image, it would be great to add 1 or 2 more meta data image fields. That way we can have a screenshot and boxart both displayed. Could we possibly create a medadata image for the folder icon? "md_icon" This could then be added to the gamelist and or theme.xml. We could then add whatever icon you want to the gamelist and locate it as an image that would appear when you scroll to that game in the gamelist. Thus we keep the text field separate from the images.
Not sure any of this is feasible, but i propose seeing if we can add these meta data fields:
md_icon (this could be for favorites)
md_thumbnail (this would be a screenshot)
md_wheelart (so we can have marquee and wheelart as separate elements) -
@TMNTturtlguy Not necessarily here - I think here was more about how to best render the "star" icon for the favorites that @Zigurana was trying to implement in this "Favorites" change :)
Nonetheless, all your change requests sound reasonable. I believe there's a massive thread where like-minded theme creators are having those conversations. @Zigurana , @mattrixk - is this the latest thread where those requests and conversations are being added and discussed? Or is there a running Google doc?
Definitely echo these there, as I'm sure they'll benefit from the discussion and design conversations :)
Thanks!
-
Personally I'm not keen on requiring specific fonts for rendering folder icons, but them again I don't know if I have a better solution than what's been proposed either. Also I don't use folders so my opinion doesn't count much at that rate!
-
Some inspiration :
The guys over at the Recalbox branch of ES have just committed a change that hardcodes a specific glyph to be used as a fav icon for each system.
These glyphs are pulled from the large web awesome font collection, which can cater to a large number of icon related use-cases. -
I think I'am missing something here (I kinda feel stupid right now):
So I tryed to install your es build but it doesn't seam to change anything...
I followed the steps to make theemulationstation
file and installed it (over an existing emulationstation build). But I don't see a change at all...
The emulationstation version is nowV2.1.4 RP
which is correct I think.. Do I have to do something now? -
@Zigurana ...a favicon? Do you mean a favorites icon per system?
I imagine that's good overall, but without seeing it in action, I struggle to grasp the full extent of that change for the users and for the theme makers :/ Is there a video or set of images I could reference to better understand what we're considering?
Anyway, to avoid scope creep, maybe we could break down the "implementing favorites with the old metadata icon in the theme data", for feature parity with ES Kids, and then maybe "customizing games list and theme with further icons for folders and favorites"?
Just a thought, as I don't want you to lose momentum here :)
-
@DarkWolf you sure you got the favorites dev branch, and not the master branch?
The version# should be "2.1.8rp". -
@Zigurana Oh, well, that's embarassing...
Not using github that much, so I thoughthttps://github.com/zigurana/EmulationStation.git
would be the correct link to clone it... Isn't it? Ok, no it isn't... wow...
I got it now, I think, thanks for answering -
@pjft good point, scope creep is my arch-nemesis!
So, the current plan:- I'll revert the cosmetic changes i've made to the gamelist entries, and
- re-introduce the themable favorites Icon which is toggled when the selected item is a favorite or not.
Sounds ok?
-
@DarkWolf no worries, thank you for testing this!
-
@Zigurana
My personal opinion is that the favorites icon and folder icon should be handled like the help icons, there should be a default icon built in to EmulationStation for them, but you should be able to point to new images in the theme to replace them.I'm not sure how feasible that is, but this way it wouldn't break any themes and we would also keep easy themeablilty.
-
@Syhles That sounds like a good solution if you ask me
-
@Syhles agreed!
-
@Zigurana SO now I cloned it with
git clone -b Favorites https://github.com/zigurana/EmulationStation.git
The problem is that thecmake -DCMAKE_CXX_COMPILER=g++-4.7 .
fails with/home/pi/EmulationStation/external/pugixml
does not contain a CMakeLists.txt file.Any thoughts on that one?
-
@DarkWolf a recent change meant that we need to initialize the submodules the first time around. Run:
git submodule update --init
-
@pjft Wow, that was easy, thanks!
I have to learn more things about git obviously -
@Zigurana I think that's a wise way to break things up. Especially as, at least the way I see it, some themes may opt to keep the icons in the per game metadata section like in your branch, either exclusively (I.e. not having it in the games list) or in conjunction with this change.
But either way, it can be tackled later. :)
Do let me know if/how I can help!
-
@Zigurana Omg that is so awesome! I was waiting for something like this for quite some time now. It's way better than the kids mode!
Keep up that great work, works like a charm!OT: The emulationstation developers are a bit overdramatic
make
This will take a very, very long time (multiple hours).Literally took 15mins
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.