Homepage Forums RetroPie Project Emulation Station Themes Removing all text apart from the game list. Can it be done? Reply To: Removing all text apart from the game list. Can it be done?

#95781
phrazelle
Participant

Just a note on cleaner code, you can group similar elements into the same style definitions.

I.e. instead of this:

<text name="md_lbl_genre">
    <pos>0.05 0.15</pos>
    <size>0.01 0.01</size>
</text>
		
<text name="md_lbl_players">
    <pos>0.05 0.15</pos>
    <size>0.01 0.01</size>
</text>

<text name="md_lbl_lastplayed">
    <pos>0.05 0.15</pos>
    <size>0.01 0.01</size>
</text>

<text name="md_lbl_playcount">
    <pos>0.05 0.15</pos>
    <size>0.01 0.01</size>
</text>

This instead:

<text name="md_lbl_genre, md_lbl_playcount, md_lbl_lastplayed, md_lbl_players">
    <pos>0.05 0.15</pos>
    <size>0.01 0.01</size>
</text>

That way you have similar modifications for multiple elements in one place.

A further note on this – you can make System, Detailed and Basic view global modifications in the main theme’s XML file. For the Simple theme, you would add your code into the simple.xml file and it would affect every sub-page that is related to the theme. Modifications to individual system’s xml files would override these global parameters. The thought here is that you did the same coding on all of your system’s xml files when you only needed to define the properties once in the global xml file.