RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    Adding custom text on main menu emulationstation theme

    Scheduled Pinned Locked Moved Help and Support
    system-viewthemesemu stationmain menu
    2 Posts 1 Posters 459 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      mmfsilva
      last edited by

      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, is pixel.xml) was edited adding a new tag inside the system 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.

      M 1 Reply Last reply Reply Quote 0
      • M
        mmfsilva @mmfsilva
        last edited by

        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>
        

        Text tag reference on ES md documentation

        1 Reply Last reply Reply Quote 0
        • First post
          Last post

        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.