Jump to content

dxDrawimage fits all resolution


Oussema

Recommended Posts

Posted

look at this with 1440,900 

and look at this with 1366,768

 

code:  

	for ii, v in pairs (ranksun[jobname]) do
	dxDrawImage(x*599, y*(473)+(29*ii), x*350, y*40, "jobranks/rank_data.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) 
	dxDrawText(v, x*599, y*(598)+(58*ii), x*949, y*385, tocolor(0, 204, 0, 255), 1.00, dxfont1_AGENCYR, "center", "center", false, false, false, false, false) 
	end

 

n-560x95_FFFFFF_FFFFFF_000000_000000.png

Posted

Try to replace line nr. 3 with:

dxDrawText(v, x*599, y*(473)+(29*ii), x*599+x*350, y*(473)+(29*ii)+y*40, y, tocolor(0, 204, 0, 255), 1.00, dxfont1_AGENCYR, "center", "center", false, false, false, false, false)

6C73yFv.png

Did I help you?

Mmpe7Jm.gif


NeXuS™#0001

Posted
1 hour ago, NeXuS™ said:

Try to replace line nr. 3 with:


dxDrawText(v, x*599, y*(473)+(29*ii), x*599+x*350, y*(473)+(29*ii)+y*40, y, tocolor(0, 204, 0, 255), 1.00, dxfont1_AGENCYR, "center", "center", false, false, false, false, false)

bro the texts are fine but i'm talking about the image look at the images xD 

n-560x95_FFFFFF_FFFFFF_000000_000000.png

Posted (edited)

It's because its not a set value. You are multipling your values with x and y.

Edited by NeXuS™

6C73yFv.png

Did I help you?

Mmpe7Jm.gif


NeXuS™#0001

Posted

'math.floor or math.ceil on the args.' hmm really i can't understand what you mean with that , i'm not pro scripter give me example pls

 

n-560x95_FFFFFF_FFFFFF_000000_000000.png

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