Adding custom text on main menu emulationstation theme
-
Hi all,
First off - unsure if it's this topic or the themes one, so apologies in advance.
I've been searching and experimenting with a way to add custom text to the main menu (
system
view), but so far no luck.I'm currently trying to simply add two/three words to somewhere, anywhere at all in the main menu to see if this is possible.
I followed this thread here which had a solution where the theme's xml (in this case since I'm using
pixel-metadata
theme, ispixel.xml
) was edited adding a new tag inside thesystem
view. Here's what I came up with, but is not working:(pixel.xml) <view name="system"> .... <text name="customText" extra="true"> <text>Hello World</text> <pos>0.05 0.55</pos> <size>0.9 0.16</size> <color>bbbbbb</color> <fontPath>./path/to/.ttf</fontPath> <fontSize>0.050</fontSize> </text> .... </view>
I inserted this change directly in the file on
/etc/emulationstation/.../themes/pixel-metadata/pixel.xml
and rebooted the system, but no luck. Depending on which xml tags I would add, it would either break the theme, or do nothing at all. I would expect to see a "Hello World" somewhere on the main menu screen, but so far nothing.P.S. - This is actually already a workaround for adding new text to the
helpsystem
tag, as that is actually what I initially attempted to do until I realized I couldn't override that.Reference: EmulationStation THEMES.md
Thank you.
-
I solved the issue. Apparently the order of the XML tags inside "system" is relevant. Looks like I was simply creating a new text behind the background... After moving it to below the background image tag, it finally showed up.
Here's the final code (after the background image tag)<text name="by" extra="true"> <pos>0.85 0.969</pos> <color>ffffff80</color> <fontPath>./art/font.ttf</fontPath> <fontSize>0.02</fontSize> <text>hello world</text> </text>
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.