WASSIm. Posted April 14, 2013 Share Posted April 14, 2013 hi guys i have problem i add code color #646464 but show me to screen and dont change color how fiX ? dxDrawBorderedText(""..tostring(showammo1).." #646464"..tostring(showammo3).."",amx1, amy1, amx2, amy2,tocolor(220,220,220,255),1,"pricedown","right","top",false,false,false) sry for bad english Link to comment
Castillo Posted April 14, 2013 Share Posted April 14, 2013 Inside: "dxDrawBorderedText" function do you have colorCoded argument enabled? Link to comment
WASSIm. Posted April 14, 2013 Author Share Posted April 14, 2013 Inside: "dxDrawBorderedText" function do you have colorCoded argument enabled? idk function dxDrawBorderedText( text, x, y, w, h, color, scale, font, alignX, alignY, clip, wordBreak, postGUI ) dxDrawText ( text, x - 2, y - 2, w - 2, h - 2, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false ) -- black dxDrawText ( text, x + 2, y - 2, w + 2, h - 2, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false ) dxDrawText ( text, x - 2, y + 2, w - 2, h + 2, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false ) dxDrawText ( text, x + 2, y + 2, w + 2, h + 2, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false ) dxDrawText ( text, x - 2, y, w - 2, h, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false ) dxDrawText ( text, x + 2, y, w + 2, h, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false ) dxDrawText ( text, x, y - 2, w, h - 2, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false ) dxDrawText ( text, x, y + 2, w, h + 2, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false ) Link to comment
Castillo Posted April 14, 2013 Share Posted April 14, 2013 It's disabled, you must enable that argument. Link to comment
WASSIm. Posted April 14, 2013 Author Share Posted April 14, 2013 The text looks like that? yes Link to comment
Castillo Posted April 14, 2013 Share Posted April 14, 2013 Post the edited: "dxDrawBorderedText" function. Link to comment
WASSIm. Posted April 14, 2013 Author Share Posted April 14, 2013 Post the edited: "dxDrawBorderedText" function. function dxDrawBorderedText( text, x, y, w, h, color, scale, font, alignX, alignY, clip, wordBreak, postGUI, colorCoded ) dxDrawText ( text, x - 2, y - 2, w - 2, h - 2, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false, true ) -- black dxDrawText ( text, x + 2, y - 2, w + 2, h - 2, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false, true ) dxDrawText ( text, x - 2, y + 2, w - 2, h + 2, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false, true ) dxDrawText ( text, x + 2, y + 2, w + 2, h + 2, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false, true ) dxDrawText ( text, x - 2, y, w - 2, h, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false, true ) dxDrawText ( text, x + 2, y, w + 2, h, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false, true ) dxDrawText ( text, x, y - 2, w, h - 2, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false, true ) dxDrawText ( text, x, y + 2, w, h + 2, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false, true ) dxDrawText ( text, x, y, w, h, color, scale, font, alignX, alignY, clip, wordBreak, postGUI, colorCoded ) end and this dxDrawBorderedText(""..tostring(showammo1).." #646464"..tostring(showammo3).."",amx1, amy1, amx2, amy2,tocolor(220,220,220,255),1,"pricedown","right","top",false,false,false,true) Link to comment
Castillo Posted April 14, 2013 Share Posted April 14, 2013 function dxDrawBorderedText( text, x, y, w, h, color, scale, font, alignX, alignY, clip, wordBreak, postGUI, colorCoded ) local text_ = text:gsub ( "#%x%x%x%x%x%x", "" ) dxDrawText ( text_, x - 2, y - 2, w - 2, h - 2, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false, true ) -- black dxDrawText ( text_, x + 2, y - 2, w + 2, h - 2, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false, true ) dxDrawText ( text_, x - 2, y + 2, w - 2, h + 2, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false, true ) dxDrawText ( text_, x + 2, y + 2, w + 2, h + 2, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false, true ) dxDrawText ( text_, x - 2, y, w - 2, h, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false, true ) dxDrawText ( text_, x + 2, y, w + 2, h, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false, true ) dxDrawText ( text_, x, y - 2, w, h - 2, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false, true ) dxDrawText ( text_, x, y + 2, w, h + 2, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false, true ) dxDrawText ( text, x, y, w, h, color, scale, font, alignX, alignY, clip, wordBreak, postGUI, colorCoded ) end Try it. 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