-RoCk-Alex Posted March 12, 2012 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
TwiX! Posted March 12, 2012 Posted March 12, 2012 scoreboard_client.lua - Working on [php/HTML/Mysql/Lua/Java Scripts/Web Design/3D Modeling]
-RoCk-Alex Posted March 12, 2012 Author Posted March 12, 2012 scoreboard_client.lua can you please tell exactly where in scoreboard_client.lua
Moderators IIYAMA Posted March 12, 2012 Moderators Posted March 12, 2012 well go look for color codes... Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
-RoCk-Alex Posted March 12, 2012 Author 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
X-SHADOW Posted March 12, 2012 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 My ingame nickname : Ops! -DeathMatch GameMode By Ops! : 5%
-RoCk-Alex Posted March 12, 2012 Author 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?
X-SHADOW Posted March 12, 2012 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 My ingame nickname : Ops! -DeathMatch GameMode By Ops! : 5%
-RoCk-Alex Posted March 12, 2012 Author 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
X-SHADOW Posted March 12, 2012 Posted March 12, 2012 no this well make his name with out hex colors My ingame nickname : Ops! -DeathMatch GameMode By Ops! : 5%
-RoCk-Alex Posted March 12, 2012 Author Posted March 12, 2012 i just want to remove the hex code from the scoreboard this one not from whole server even from chat
X-SHADOW Posted March 12, 2012 Posted March 12, 2012 Code Updated ! My ingame nickname : Ops! -DeathMatch GameMode By Ops! : 5%
-RoCk-Alex Posted March 12, 2012 Author Posted March 12, 2012 Code Updated ! still not helping it not remove Hex code from scoreboard
drk Posted March 12, 2012 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. EPT Team Server Development: 0% Learning C++ | C++ is amazing
-RoCk-Alex Posted March 12, 2012 Author 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
drk Posted March 12, 2012 Posted March 12, 2012 You're welcome EPT Team Server Development: 0% Learning C++ | C++ is amazing
X-SHADOW Posted March 12, 2012 Posted March 12, 2012 oh sorry Man and You're Welcome My ingame nickname : Ops! -DeathMatch GameMode By Ops! : 5%
Moderators IIYAMA Posted March 12, 2012 Moderators 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 Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
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