R.y.c.k Posted July 25, 2012 Share Posted July 25, 2012 Hey all I try create "black background" 3d efect Original "i add font , high etc.." local screenWidth, screenHeight = guiGetScreenSize() dxDrawColorText ('#1e90ffNext map: #ffffff' .. g_NextMap, 2, screenHeight - dxGetFontHeight(1.00, font1)/2, 100, 100, tocolor ( 255, 255, 255, 255 ), 0.48, font1, 0.48, 'left') if (g_MapInfo) then dxDrawColorText ('#1e90ffMap: #ffffFF' .. g_MapInfo.name, 2, screenHeight - dxGetFontHeight(2.00, font1)/2, 100, 100, tocolor ( 255, 255, 255, 255 ), 0.48, font1, 0.48, 'left') else dxDrawColorText ('#1e90ffMap: #ffffFFNo map is set yet', 2, screenHeight - dxGetFontHeight(2.00, font1)/2, 100, 100, tocolor ( 255, 255, 255, 255 ), 0.48, font1, 0.48, 'left') end dxDrawColorText ('#1e90ffSpectators: (#FFFFFF' .. #Spectators .. '#1e90ff)', 2, screenHeight - dxGetFontHeight(3.00, font1)/2, 100, 100, tocolor ( 255, 255, 255, 255 ), 0.48, font1, 0.48, 'left') end Black background local screenWidth, screenHeight = guiGetScreenSize() dxDrawColorText ('#000000Next map: #000000' .. g_NextMap, 2, screenHeight - dxGetFontHeight(1.20, font1)/2, 100, 100, tocolor ( 0, 255, 255, 255 ), 0.48, font1, 0.48, 'left') if (g_MapInfo) then dxDrawColorText ('#000000Map: #000000' .. g_MapInfo.name, 2, screenHeight - dxGetFontHeight(2.20, font1)/2, 100, 100, tocolor ( 0, 255, 255, 255 ), 0.48, font1, 0.48, 'left') else dxDrawColorText ('#000000Map: #000000No map is set yet', 2, screenHeight - dxGetFontHeight(2.20, font1)/2, 100, 100, tocolor ( 0, 0, 0, 255 ), 0.48, font1, 0.48, 'left') end NOW !!!!! I add spectators to black background and see code Black background + spectators local screenWidth, screenHeight = guiGetScreenSize() dxDrawColorText ('#000000Next map: #000000' .. g_NextMap, 2, screenHeight - dxGetFontHeight(1.20, font1)/2, 100, 100, tocolor ( 0, 255, 255, 255 ), 0.48, font1, 0.48, 'left') if (g_MapInfo) then dxDrawColorText ('#000000Map: #000000' .. g_MapInfo.name, 2, screenHeight - dxGetFontHeight(2.20, font1)/2, 100, 100, tocolor ( 0, 255, 255, 255 ), 0.48, font1, 0.48, 'left') else dxDrawColorText ('#000000Map: #000000No map is set yet', 2, screenHeight - dxGetFontHeight(2.20, font1)/2, 100, 100, tocolor ( 0, 0, 0, 255 ), 0.48, font1, 0.48, 'left') end dxDrawColorText ('#000000Spectators: (#000000' .. #Spectators .. '#000000)', 2, screenHeight - dxGetFontHeight(3.20, font1)/2, 100, 100, tocolor ( 0, 0, 0, 255 ), 0.48, font1, 0.48, 'left') end And ... 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