el-chambo Posted January 30, 2021 Share Posted January 30, 2021 Please could someone help by telling me which panel codes this page. I am look to change this bit of text to white. Thanks Link to post Share on other sites More sharing options...
michaeltmurrayuk Posted February 3, 2021 Share Posted February 3, 2021 Should be controlled by the player scouting centre actions xml file located in the panels\player folder. You'll most likely need to add a disabled_colour="X" bit to the widget in question as it looks like that is the disabled status. Link to post Share on other sites More sharing options...
el-chambo Posted February 3, 2021 Author Share Posted February 3, 2021 Thanks Michael. I will take a look Link to post Share on other sites More sharing options...
el-chambo Posted February 3, 2021 Author Share Posted February 3, 2021 Hi Michael I found the bit of code which is <widget class="check_box" id="topt" > <record id="primary_icon_properties" red_replacement="card fg" blue_replacement="black"/> <translation id="text" translation_id="447614" type="use" value="Declare as Top Target[COMMENT: Scouting centre action]" /> </widget> I have tried adding disabled_colour="X" to each line but no luck. Am i doing something wrong? Thanks Link to post Share on other sites More sharing options...
michaeltmurrayuk Posted February 3, 2021 Share Posted February 3, 2021 Hmm looks like it's hard-coded for some reason, so you'll need to change it via the gradient trick. Add a font="X" bit to the above widget line. Then in the fonts folder for your skin create a new fontxml file with the name you used above and in that file paste in the following lines: <record> <string id="file_name" value="text"/> <integer id="gradient_upper_margin" value="20"/> <integer id="gradient_lower_margin" value="0"/> <integer id="gradient_curve" value="0"/> <integer id="gradient_upper_colour_red" value="255"/> <integer id="gradient_upper_colour_green" value="255"/> <integer id="gradient_upper_colour_blue" value="255"/> <integer id="gradient_upper_colour_alpha" value="248"/> <integer id="gradient_lower_colour_red" value="255"/> <integer id="gradient_lower_colour_green" value="255"/> <integer id="gradient_lower_colour_blue" value="255"/> <integer id="gradient_lower_colour_alpha" value="248"/> </record> That will then override the colour, you can adjust the rgb values to suit Link to post Share on other sites More sharing options...
el-chambo Posted February 3, 2021 Author Share Posted February 3, 2021 Thanks again Michael. Will try that tomorrow. Cheers Link to post Share on other sites More sharing options...
el-chambo Posted February 4, 2021 Author Share Posted February 4, 2021 Just to confirm that after following the above info i now have a nice white Declare as top target. Thanks for you knowledge Michael Link to post Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now