Jump to content

[AJUDA] dxDrawText


Recommended Posts

Pessoal eu to fazendo um menu no canto direito da tela, com a dxDrawText, funcionou certinho ate olhei no forum para deixar o dxDrawText no canto direito da tela e do lado esquerdo so do lado esquerdo eu consegui fazer, mais o lado direito ele some , vou mostrar uma imagem. 
 

Print:

https://ibb.co/wsz6929

 

addEventHandler("onClientRender", getRootElement(), 
function()
local menuCX = screenWidth*0.545
local menuCY = screenHeight*0.135
dxDrawRectangle(menuCX-2, menuCY+110, screenHeight*0.25, screenHeight*0.12, tocolor(0, 0, 0, 170))
dxDrawText("Murders: ",menuCX+3,menuCY+131,0,0,tocolor(255,255,255,255),1, "default", "left", "top", false, false, false, true, false)
end)

Quando eu coloco o right não aparece mais na tela mais o left funcionou certinho. eu queria que ela fica-se encostado no lado direito da tela 

Link to comment
  • Moderators
dxDrawText("Murders: ",menuCX+3,menuCY+131,screenWidth,screenHeight,tocolor(255,255,255,255),1, "default", "left", "top", false, false, false, true, false)

Tenta isso. Se não funcionar pode ser os eixos X/Y com algum problema.

Obs: dxDrawRectangle tem screenHeight no 3º e 4º argumento.

  • Like 1
Link to comment
  • 2 years later...

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...