Jump to content

dxDrawText


Tox

Recommended Posts

I used gui editor and the sample on wiki, didn't work. Code is below

  
 function IPind() 
    local screenW, screenH = guiGetScreenSize( ) 
        dxDrawText("tobeadded", (screenW * 0.0069) - 1, (screenH * 0.9356) - 1, (screenW * 0.2326) - 1, (screenH * 0.9789) - 1, tocolor(0, 0, 0, 255), 1.85, "pricedown", "left", "top", false, false, true, true, false) 
        dxDrawText("tobeadded", (screenW * 0.0069) + 1, (screenH * 0.9356) - 1, (screenW * 0.2326) + 1, (screenH * 0.9789) - 1, tocolor(0, 0, 0, 255), 1.85, "pricedown", "left", "top", false, false, true, true, false) 
        dxDrawText("tobeadded", (screenW * 0.0069) - 1, (screenH * 0.9356) + 1, (screenW * 0.2326) - 1, (screenH * 0.9789) + 1, tocolor(0, 0, 0, 255), 1.85, "pricedown", "left", "top", false, false, true, true, false) 
        dxDrawText("tobeadded", (screenW * 0.0069) + 1, (screenH * 0.9356) + 1, (screenW * 0.2326) + 1, (screenH * 0.9789) + 1, tocolor(0, 0, 0, 255), 1.85, "pricedown", "left", "top", false, false, true, true, false) 
        dxDrawText("tobeadded", screenW * 0.0069, screenH * 0.9356, screenW * 0.2326, screenH * 0.9789, tocolor(210, 210, 210, 255), 1.85, "pricedown", "left", "top", false, false, true, true, false) 
    end 
     
function HandleTheRendering ( ) 
    addEventHandler ( "onClientRender", getRootElement(), IPind ) -- keep the text visible with onClientRender. 
end 
  
addEventHandler ( "onClientResourceStart", resourceRoot, HandleTheRendering ) 
  
  

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...