Bartman 11 Posted February 9, 2020 I'm using a custom colour scheme for WN8, and the standard grey for players without stats does not stand out much right now. Which colour value do I need to adjust to change this? Quote Share this post Link to post Short link Share on other sites
konrad509 445 #477114 Posted February 9, 2020 Config and where you want to change that. Quote Share this post Link to post Short link Share on other sites
Bartman 11 #477117 Posted February 9, 2020 1 hour ago, konrad509 said: Config and where you want to change that. What? I'll spell it out... I assume there's a value in colors.xc that defines the colour for players in battleLoading, battleLabels etc that currently makes them look grey, I'd like to change that. Quote Share this post Link to post Short link Share on other sites
konrad509 445 #477136 Posted February 10, 2020 12 hours ago, Bartman said: I assume there's a value in colors.xc... That's the point - there isn't. 1 Quote Share this post Link to post Short link Share on other sites
night_dragon_on 5,600 #477144 Posted February 10, 2020 @Bartman https://kr.cm/f/t/53356/c/472011/ https://kr.cm/f/t/53356/c/472043/ 2 Quote Share this post Link to post Short link Share on other sites
Bartman 11 #477162 Posted February 10, 2020 On 12/10/2019 at 7:25 PM, night_dragon_on said: @Slavarus , in the archive only modified files. configs.zip Added a new parameter to the "colors.xc" file: Then change to the desired color. That looks pretty useful... however adding "colors": { "anonymousColor": "0x1240AB", to colors.xc does not appear to do anything (regardless of using # or 0x in front of the colour code)... I'm guessing I'm missing something in playersPanel.xc and battleLoading.xc, but google translate seems to break their sentences a bit so I'm not quite sure. My playersPanel for example contains this line: "nickFormatLeft": "<font alpha='{{alive?#FF|#80}}'><font color='{{c:wn8}}'>{{name}}</font><font alpha='#A0'>{{clan}}</font></font>", I've defined a separate wn8 color scale in colors.xc, but I assume anonymousColor is a global colour variable and therefore the custom scale is not relevant, is this correct? Quote Share this post Link to post Short link Share on other sites
night_dragon_on 5,600 #477166 Posted February 11, 2020 @Bartman <font color='{{wn8?{{c:wn8}}|{{.colors.anonymousColor}}}}'>{{name}}</font> 1 Quote Share this post Link to post Short link Share on other sites
konrad509 445 #477179 Posted February 11, 2020 15 hours ago, Bartman said: I've defined a separate wn8 color scale in colors.xc, but I assume anonymousColor is a global colour variable and therefore the custom scale is not relevant, is this correct? It's not really a variable, but yeah, the color scale is irrelevant here. The idea here is using a special macro {{.}} that lets you use a value defined somewhere else in the config. You can pretty much call it however you want and place it wherever you want. Then if you want to use that value, you just need to give a path to it, as in the above night_dragon_on's example. Quote Share this post Link to post Short link Share on other sites
Bartman 11 #477283 Posted February 12, 2020 Thanks, finally got it to work! For some reason the colour specified has to be starting with # rather than the 0x used everywhere else in colors.xc. Is this a bug perhaps? Quote Share this post Link to post Short link Share on other sites
konrad509 445 #477302 Posted February 13, 2020 Not a bug. You want to use that color in a place that uses #RRGGBB format, so it needs to be defined in that format. It's completely unrelated to the fact that all colors defined in colors.xc are in 0xRRGGBB format. 1 Quote Share this post Link to post Short link Share on other sites
Bartman 11 #477409 Posted February 14, 2020 I assume you're not part of the dev team, you're just rearranging the elements of my question there... The anonymousColor value discussed is in colors.xc. Why would two different formats be used throughout XVM the first place? 1 Quote Share this post Link to post Short link Share on other sites
konrad509 445 #477481 Posted February 14, 2020 (edited) I'm not a part of the dev team and I'm not "rearranging elements" of your question. I explained to you (more or less) why a different format is used and that it's not related to how colors are defined in colors.xc in general, because as I also explained to you earlier, you can define that value pretty much anywhere in the config. Why are there different formats used throughout the XVM config is a different question and that I can't answer, because I'm not sure myself. Generally, wherever HTML code appears, the #RRGGBB format is used. Elsewhere the other one is used. I believe it was discussed somewhere on the forum before. Edited February 14, 2020 by konrad509 1 1 Quote Share this post Link to post Short link Share on other sites