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

Request: Carousel "systemInfo" Different Color Per System



  • I'm currently making a theme, and I've run into a minor snag. The theme uses a single color per system (ie; nes is red, snes is purple, playstation is blue, etc). So far everything looks great, except for the "systemInfo" text (## Games Available) on the Carousel mod.

    This element only takes its color from the first instance ES encounters. The individual system theme.xml's will not overwrite the common/main.xml color. And if you don't set the color at all in the common/main.xml, but you do in the individual system theme.xml's it'll take whichever is the first system loaded and use that for all of the systems.

    Is there any way that we can make that line of text take its color from each system theme.xml?


  • Banned

    @cafarellidigital If you want it to be different then you need to include it in each different systemtheme.xml file. Otherwise it will just default.

    It's known as systeminfo. I just keep it grey.

    			<text name="systemInfo">
    				<pos>0.010 0.637</pos>
    				<size>0.98 0.050</size>
    				<backgroundColor>ffffff00</backgroundColor>
    				<color>ffffffcc</color>
    				<fontPath>./_resources/Roboto-Regular.ttf</fontPath>
    				<fontSize>0.03</fontSize>
    			</text>
    

    0_1495844300992_newss.png



  • @AlexMurphy said in Request: Carousel "systemInfo" Different Color Per System:

    @cafarellidigital If you want it to be different then you need to include it in each different systemtheme.xml file. Otherwise it will just default.

    I tried that as well. First I tried this...

    common/main.xml (simplified to just the section this topic concerns)

    <feature supported="carousel">
    	<view name="system">
    		<text name="systemInfo">
    			<pos>0 0.7222222222222222</pos>
    			<backgroundColor>00000000</backgroundColor>
    			<fontPath>./_inc/fonts/DINCond-Regular.ttf</fontPath>
    			<fontSize>0.037037037037037</fontSize>
    		</text>
    	</view>
    </feature>
    

    nes theme.xml

    <feature supported="carousel">
    	<view name="system">
    		<text name="systemInfo">
    			<color>D20014</color>
    		</text>
    	</view>
    </feature>
    

    snes theme.xml

    <feature supported="carousel">
    	<view name="system">
    		<text name="systemInfo">
    			<color>4F43AE</color>
    		</text>
    	</view>
    </feature>
    

    etc, for all systems (that I'm supporting so far), and it only took the nes color (I have that set as the first system in the "es_systems.cfg" file) for all systems.

    I also tried putting the entire <feature> tag and all of its children in each system theme.xml (instead of having a basic one in the common/main.xml file) and that didn't work either.


  • Banned

    @cafarellidigital

    	<feature supported="carousel">
    		<view name="system">
    			<text name="systemInfo">
    				<pos>0.010 0.637</pos>
    				<size>0.98 0.050</size>
    				<backgroundColor>ffffff00</backgroundColor>
    				<color>ffffffcc</color>
    				<fontPath>./_resources/Roboto-Regular.ttf</fontPath>
    				<fontSize>0.03</fontSize>
    			</text>
    			<carousel name="systemcarousel">
    				<pos>0 0.428</pos>
    				<size>1.0 0.204</size>
    				<color>e6e6e600</color>
    				<logoScale>1.15</logoScale>
    				<logoSize>0.24 0.135</logoSize>
    				<maxLogoCount>3</maxLogoCount>
    			</carousel>
    		<image name="CenterFade" extra="true">
    			<tile>false</tile>
    			<size>1 0.26</size>
    			<pos>0.5 0.528</pos>
    			<origin>0.5 0.5</origin>
    			<path>./_resources/tr3.png</path>
    			<color>fafafab3</color>
    		</image>
    		</view>
    	</feature>
    

    That's all I used, perhaps have a look at others' code to see how they handled the different carousels.



  • @AlexMurphy Perhaps I should have been more clear: I can get the "systemInfo" to be any color I want, I have no problem with that. What I want is for it to be a different color per system. That's what it doesn't seem to be able to do.


  • Banned

    @cafarellidigital Then you need to add it as "extra" within each system. I think. Never tried it. To be honest I was just happy to get rid of that awful drop-down grey bar from ES and use my own font.



  • @AlexMurphy said in Request: Carousel "systemInfo" Different Color Per System:

    @cafarellidigital Then you need to add it as "extra" within each system. I think. Never tried it. To be honest I was just happy to get rid of that awful drop-down grey bar from ES and use my own font.

    Yea I was afraid of that. Do you mean an "extra" as the text, or as an image that I make with the number of games "hardcoded"? Becuase that would be a pain to update every time I add or remove a game.


  • Banned

    !@cafarellidigital Just the systeminfo text I would think. I can change the position and colour and font from the general XML. Try sticking it in each system...


  • Banned

    @cafarellidigital Have you tried the new Z- axis for images? I haven't but could you not put a coloured layer over the text behind stuff?



  • @cafarellidigital I can confirm that this is not currently possible.



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.