jakubkwa_ Posted September 18, 2009 Share Posted September 18, 2009 Hi! I've got a problem with setting button text colour independently. What I want to do is change the colour of the text displayed on the following button: It's the button located directly in graphics/button folder. Anyway - I can change the colour of the text by editing the "menu" record in colours.xml, but that automatically changes the colour of the text in the menu and also few other places (like other buttons - those which are created from graphics/button/blue directory): So my question is - is there a way to change ONLY the colour of the text in graphics/button, without changing any other buttons or menus text colour? Link to post Share on other sites More sharing options...
TomDixon77 Posted September 18, 2009 Share Posted September 18, 2009 I don't think there is, no. Link to post Share on other sites More sharing options...
michaeltmurrayuk Posted September 18, 2009 Share Posted September 18, 2009 You can try adding the following code to the button.xml and button_clicked.xml files in the graphics/button folder it may work or it may not: <flags id="colour" value="red" /> (just add it in before the </properties> code) and replacing red with the colour you want. Link to post Share on other sites More sharing options...
jakubkwa_ Posted September 18, 2009 Author Share Posted September 18, 2009 It doesn't work But thanks anyway Link to post Share on other sites More sharing options...
radestock Posted September 18, 2009 Share Posted September 18, 2009 You can change the colour of specific buttons by using colour="x" in the opening widget tag for that button. For this button in particular you'll need to look for the file 'preferences.xml' which is in the 'screens.fmf' archive. Scroll down until you find the following: <widget class="action_button" auto_size="all" text="Change...[COMMENT: preferences: change user data folder button text]" click_event="udfl" /> Just add colour="red" at the end of that tag so you get: <widget class="action_button" auto_size="all" text="Change...[COMMENT: preferences: change user data folder button text]" click_event="udfl" colour="red"/> the colour can be any of the colours defined in the 'fm colours.xml' file from the settings.fmf archive, you can add your own RGB colours to that file and reference them too. Just tested this btw and it works. Link to post Share on other sites More sharing options...
TomDixon77 Posted September 18, 2009 Share Posted September 18, 2009 I should have added, "that isn't a total faff", to my post. Link to post Share on other sites More sharing options...
jakubkwa_ Posted September 18, 2009 Author Share Posted September 18, 2009 You can change the colour of specific buttons by using colour="x" in the opening widget tag for that button.For this button in particular you'll need to look for the file 'preferences.xml' which is in the 'screens.fmf' archive. Scroll down until you find the following: <widget class="action_button" auto_size="all" text="Change...[COMMENT: preferences: change user data folder button text]" click_event="udfl" /> Just add colour="red" at the end of that tag so you get: <widget class="action_button" auto_size="all" text="Change...[COMMENT: preferences: change user data folder button text]" click_event="udfl" colour="red"/> the colour can be any of the colours defined in the 'fm colours.xml' file from the settings.fmf archive, you can add your own RGB colours to that file and reference them too. Just tested this btw and it works. Yeah, that surely does work and thanks for that response. But still AFAIK we're not able to get to every occurence of the graphics/button/button in the game through xml files. For example the ones for responses in the news items - they're loaded dynamically during the game, not statically from xml, so we're not able to change them with the method shown above. Or can we? Link to post Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.