zMpyster Posted April 19, 2019 Share Posted April 19, 2019 local screenW, screenH = guiGetScreenSize() dxDrawRectangle(screenW * 0.4319, screenH * 0.0898, screenW * 0.1464, screenH * 0.0195, tocolor(0, 0, 0, 39), false) dxDrawRectangle(screenW * 0.4319, screenH * 0.0898, screenW*(conta1*2), screenH * 0.0195, tocolor(251, 165, 0, 254), false) -- quadrado que varia do valor de conta1 Bom, o conta1 ele varia de 0 até 100, eu queria saber como posso deixar o quadrado certo em todas as resoluções Link to comment
#DeltaSCR Posted April 19, 2019 Share Posted April 19, 2019 (edited) Olá @zMpyster, para resoluções relativas você está prosseguindo corretamente; Porém não entendi sua variável, o que seria conta1? Edited April 19, 2019 by #DeltaSCR Link to comment
zMpyster Posted April 20, 2019 Author Share Posted April 20, 2019 16 hours ago, #DeltaSCR said: Olá @zMpyster, para resoluções relativas você está prosseguindo corretamente; Porém não entendi sua variável, o que seria conta1? Conta seria um valor de xp do player que chega de 0 a 100 Link to comment
Other Languages Moderators Lord Henry Posted April 20, 2019 Other Languages Moderators Share Posted April 20, 2019 Ta ae: dxDrawRectangle (screenW * 0.4319, screenH * 0.0898, screenW * 0.1464, screenH * 0.0195, tocolor(0, 0, 0, 39), false) dxDrawRectangle (screenW * 0.4319, screenH * 0.0898, screenW * 0.1464 * (conta1/100), screenH * 0.0195, tocolor(251, 165, 0, 254), false) -- retângulo que varia de acordo com o valor de conta1 dxDrawText (conta1, screenW * 0.4319, screenH * 0.0898, screenW * 0.5783, screenH * 0.1093, tocolor(0, 255, 0, 255), 1, 1, "default", "center", "center") Botei esse drawText só pra testar o valor de conta1. 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