Lion.Kanzen Posted August 14, 2017 Report 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 Quote Link to comment Share on other sites More sharing options...
Lion.Kanzen Posted August 14, 2017 Author Report Share Posted August 14, 2017 Where is located the style file for selector mod ? I can made a little patch. 2 Quote Link to comment Share on other sites More sharing options...
fcxSanya Posted August 14, 2017 Report 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 Quote Link to comment Share on other sites More sharing options...
Lion.Kanzen Posted August 14, 2017 Author Report 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 Quote Link to comment Share on other sites More sharing options...
feneur Posted August 14, 2017 Report 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 Quote Link to comment Share on other sites More sharing options...
Lion.Kanzen Posted August 14, 2017 Author Report Share Posted August 14, 2017 the last is alpha channel? Quote Link to comment Share on other sites More sharing options...
Lion.Kanzen Posted August 14, 2017 Author Report Share Posted August 14, 2017 have sense. Quote Link to comment Share on other sites More sharing options...
Lion.Kanzen Posted August 14, 2017 Author Report 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 Quote Link to comment Share on other sites More sharing options...
vladislavbelov Posted August 15, 2017 Report 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". Quote Link to comment Share on other sites More sharing options...
elexis Posted August 22, 2017 Report 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 Quote Link to comment Share on other sites More sharing options...
Lion.Kanzen Posted August 22, 2017 Author Report Share Posted August 22, 2017 (edited) Why the style is in a js and not a XML? Edited August 22, 2017 by Lion.Kanzen Quote Link to comment Share on other sites More sharing options...
elexis Posted August 25, 2017 Report 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]'; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.