Flipi Posted August 24, 2013 Share Posted August 24, 2013 Hi I have a question, how to do to enable the color codes in the name when talking by microphone. IMG: http://img585.imageshack.us/img585/4881/am5b.png Link to comment
XFawkes Posted August 25, 2013 Share Posted August 25, 2013 server\mods\deathmatch\resources\[gameplay]\voice\cDrawIcon.lua Lines 65+ add 'true' boolean to the dxDrawText to allow ColorCodes Link to comment
Flipi Posted August 25, 2013 Author Share Posted August 25, 2013 server\mods\deathmatch\resources\[gameplay]\voice\cDrawIcon.luaLines 65+ add 'true' boolean to the dxDrawText to allow ColorCodes as i do? (i am noob u.u) Link to comment
EstrategiaGTA Posted August 25, 2013 Share Posted August 25, 2013 server\mods\deathmatch\resources\[gameplay]\voice\cDrawIcon.luaLines 65+ add 'true' boolean to the dxDrawText to allow ColorCodes as i do? (i am noob u.u) As? Do you mean 'how'? (You are using a Translator for sure I guess) Link to comment
WASSIm. Posted August 25, 2013 Share Posted August 25, 2013 replace this function dxDrawVoiceLabel ( player, index, color ) local sx, sy = guiGetScreenSize () local scale = sy / 800 local spacing = ( ICON_LINE * scale ) local px, py = sx - 200, sy * 0.7 + spacing * index local icon = ICON_DIMENSIONS * scale dxDrawImage ( px, py, icon, icon, ICON_PATH, 0, 0, 0, color, false ) px = px + spacing -- shadows dxDrawText ( getPlayerName ( player ), px + 1, py + 1, px, py, ICON_TEXT_SHADOW, scale ) -- text dxDrawText ( getPlayerName ( player ), px, py, px, py, color, scale ) end to this function dxDrawVoiceLabel ( player, index, color ) local sx, sy = guiGetScreenSize () local scale = sy / 800 local spacing = ( ICON_LINE * scale ) local px, py = sx - 200, sy * 0.7 + spacing * index local icon = ICON_DIMENSIONS * scale local name = getPlayerName ( player ) dxDrawImage ( px, py, icon, icon, ICON_PATH, 0, 0, 0, color, false ) px = px + spacing -- shadows name_ = name:gsub ( "#%x%x%x%x%x%x", "" ) dxDrawText ( name_, px + 1, py + 1, px, py, ICON_TEXT_SHADOW, scale, "default", "left", "top", false, false, false, false) -- text dxDrawText ( name, px, py, px, py, color, scale, "default", "left", "top", false, false, false, true) end 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