-RoCk-Alex Posted March 12, 2012 Share Posted March 12, 2012 (edited) How can i change scoreboard contents fonts and colour (like the Bg color Local player color) please help . give me the lines where i can change them please Edited March 12, 2012 by Guest Link to comment
-RoCk-Alex Posted March 12, 2012 Author Share Posted March 12, 2012 scoreboard_client.lua can you please tell exactly where in scoreboard_client.lua Link to comment
Moderators IIYAMA Posted March 12, 2012 Moderators Share Posted March 12, 2012 well go look for color codes... Link to comment
-RoCk-Alex Posted March 12, 2012 Author Share Posted March 12, 2012 well go look for color codes... man i tried replacing these in dxscoreboard_clientsettings.lua but no effect ["selection_color"] = { ["r"] = 82, ["g"] = 103, ["b"] = 188, ["a"] = 170 }, ["highlight_color"] = { ["r"] = 255, ["g"] = 255, ["b"] = 255, ["a"] = 50 }, ["header_color"] = { ["r"] = 100, ["g"] = 100, ["b"] = 100, ["a"] = 255 }, ["team_color"] = { ["r"] = 100, ["g"] = 100, ["b"] = 100, ["a"] = 100 }, ["border_color"] = { ["r"] = 100, ["g"] = 100, ["b"] = 100, ["a"] = 50 }, ["serverinfo_color"] = { ["r"] = 150, ["g"] = 150, ["b"] = 150, ["a"] = 255 }, ["content_color"] = { ["r"] = 255, ["g"] = 255, ["b"] = 255, ["a"] = 255 } } please Link to comment
X-SHADOW Posted March 12, 2012 Share Posted March 12, 2012 not like that in your gamemode open scoreboard with tab and dont remove you hand form tab and pess right mouse the mouse will show to you click on something like near restor defults i forget the name and select what cloro you want and press save and Vola ! you change it Link to comment
-RoCk-Alex Posted March 12, 2012 Author Share Posted March 12, 2012 Figured out the color problem myself now just one problem how to remove color code of name (#FFFFFF of name ) from scoreboard? Link to comment
X-SHADOW Posted March 12, 2012 Share Posted March 12, 2012 (edited) -- remove color coding from string function removeColorCoding (name) return type(name)=="string" and string.gsub(name, "#%x%x%x%x%x%x", "") or name end -- getPlayerName with color coding removed local _getPlayerName = getPlayerName function getPlayerName(player) if type(player) == "string" then return removeColorCoding(player) end return removeColorCoding (_getPlayerName(player)) end Lua Tags Bug ! Edited March 12, 2012 by Guest Link to comment
-RoCk-Alex Posted March 12, 2012 Author Share Posted March 12, 2012 simple example rootElement = getRootElement() function removeHEXColor(oldNick,newNick) local name = getPlayerName(source) if newNick then name = newNick end if (string.find(name,"#%x%x%x%x%x%x")) then local name = string.gsub(name,"#%x%x%x%x%x%x","") setPlayerName(source,name) if (newNick) then cancelEvent() end end end addEventHandler("onPlayerJoin",rootElement,removeHEXColor) addEventHandler("onPlayerChangeNick",rootElement,removeHEXColor) i think this will replace the whole name what i just want is to hide the hex codes from scoreboard Link to comment
X-SHADOW Posted March 12, 2012 Share Posted March 12, 2012 no this well make his name with out hex colors Link to comment
-RoCk-Alex Posted March 12, 2012 Author Share Posted March 12, 2012 i just want to remove the hex code from the scoreboard this one not from whole server even from chat Link to comment
-RoCk-Alex Posted March 12, 2012 Author Share Posted March 12, 2012 Code Updated ! still not helping it not remove Hex code from scoreboard Link to comment
drk Posted March 12, 2012 Share Posted March 12, 2012 X-SHADOW you don't need a function. Alex, go to your Admin Panel, click on Resources Tab, select your scoreboard and click "Configs", double click in "Allow color code in names" or something like this and set to true then press Ok and restart scoreboard. Link to comment
-RoCk-Alex Posted March 12, 2012 Author Share Posted March 12, 2012 just figured it out came on topic to post it and saw your Post thanks man for your concern to the topic Link to comment
X-SHADOW Posted March 12, 2012 Share Posted March 12, 2012 oh sorry Man and You're Welcome Link to comment
Moderators IIYAMA Posted March 12, 2012 Moderators Share Posted March 12, 2012 Alex, go to your Admin Panel, click on Resources Tab, select your scoreboard and click "Configs", double click in "Allow color code in names" or something like this and set to true then press Ok and restart scoreboard. lol did not know Link to comment
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