Lion.Kanzen Posted August 14, 2017 Share Posted August 14, 2017 (edited) You can red dark gray text , I can't and many other can easily. Edited August 26, 2017 by feneur selector mod --> mod selector Link to comment Share on other sites More sharing options...
Lion.Kanzen Posted August 14, 2017 Author Share Posted August 14, 2017 Where is located the style file for selector mod ? I can made a little patch. 2 Link to comment Share on other sites More sharing options...
fcxSanya Posted August 14, 2017 Share Posted August 14, 2017 6 hours ago, Lion.Kanzen said: Where is located the style file for selector mod ? I can made a little patch. The mod itself is in binaries/data/mods/mod , layout of the page: gui/modmod/modmod.xml , style definitions: gui/common/modern , textures: art/textures/ui/global/modern 1 Link to comment Share on other sites More sharing options...
Lion.Kanzen Posted August 14, 2017 Author Share Posted August 14, 2017 Which color mode is this? is very diferent from conventional RGB (,0,0,0) per example https://www.w3schools.com/colors/colors_picker.asp Link to comment Share on other sites More sharing options...
feneur Posted August 14, 2017 Share Posted August 14, 2017 I assume it's RGBA, and am pretty sure that 0 is 0% and 255 is 100% of a given color Link to comment Share on other sites More sharing options...
Lion.Kanzen Posted August 14, 2017 Author Share Posted August 14, 2017 the last is alpha channel? Link to comment Share on other sites More sharing options...
Lion.Kanzen Posted August 14, 2017 Author Share Posted August 14, 2017 have sense. Link to comment Share on other sites More sharing options...
Lion.Kanzen Posted August 14, 2017 Author Share Posted August 14, 2017 (edited) I can't find those colors. no one match, http://www.css3maker.com/css-3-rgba.html Edited August 14, 2017 by Lion.Kanzen Link to comment Share on other sites More sharing options...
vladislavbelov Posted August 15, 2017 Share Posted August 15, 2017 12 hours ago, Lion.Kanzen said: I can't find those colors. no one match, http://www.css3maker.com/css-3-rgba.html Because you need to enter "rgb(140, 140, 140)" and not "140 140 140". Link to comment Share on other sites More sharing options...
elexis Posted August 22, 2017 Share Posted August 22, 2017 @Lion.Kanzen you're probably looking for the line folders.push('[color="45 45 45"](' + foldername + ')[/color]'); in modmod.js, not the xml file 1 Link to comment Share on other sites More sharing options...
Lion.Kanzen Posted August 22, 2017 Author Share Posted August 22, 2017 (edited) Why the style is in a js and not a XML? Edited August 22, 2017 by Lion.Kanzen Link to comment Share on other sites More sharing options...
elexis Posted August 25, 2017 Share Posted August 25, 2017 Every cell of the table can have a different color. There could be support for a default color in every column, but if we want a separate color for rows (like in the lobby), then we still have to specify it in JS. Dropdowns also have different colors per item sometimes (maplist). You can move theat hardcoded color to a new global JS variable. We have it in the gamesetup.js for example: // At the top of the file var g_ColorRandom = "orange"; var g_SenderFont = "sans-bold-13"; // Somewhere in the code var text = '[color="'+ color +'"]' + text + '[/color]'; var text = '[font="'+ font +'"]' + text + '[/color]'; Link to comment 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