1LoL1 Posted September 11, 2015 Posted September 11, 2015 (edited) Hello, can anyone help me with this? i have this: dxDrawImage ( screenWidth*0.940 , screenHeight*0.610, screenHeight*0.1, screenHeight*0.1 but when i added guiGetScreenSize() not work dxDrawImage ( screenWidth - 47, screenHeight - 305, screenHeight*0.1, screenHeight*0.1 Edited September 11, 2015 by Guest
JR10 Posted September 11, 2015 Posted September 11, 2015 local screenWidth, screenHeight = guiGetScreenSize() dxDrawImage ( screenWidth - 47, screenHeight - 305, screenWidth*0.1, screenHeight*0.1)
1LoL1 Posted September 11, 2015 Author Posted September 11, 2015 local screenWidth, screenHeight = guiGetScreenSize() dxDrawImage ( screenWidth - 47, screenHeight - 305, screenWidth*0.1, screenHeight*0.1) its added and not work this work normally and when i have 800/600 and screenWidth - 47, screenHeight - 235: this not work when i have 800/600 and screenWidth - 47, screenHeight - 305: this not work when i have 1300+ and screenWidth - 47, screenHeight - 305:
JR10 Posted September 11, 2015 Posted September 11, 2015 That's obvious really, the calculation is just like that. Use something like this: dxDrawImage ( (screenWidth / 800) * 753, (screenHeight / 600) * 295, screenWidth*0.1, screenHeight*0.1)
1LoL1 Posted September 11, 2015 Author Posted September 11, 2015 That's obvious really, the calculation is just like that.Use something like this: dxDrawImage ( (screenWidth / 800) * 753, (screenHeight / 600) * 295, screenWidth*0.1, screenHeight*0.1) Can you wrote here how to calculation?
1LoL1 Posted September 11, 2015 Author Posted September 11, 2015 not work dxDrawImage ( (screenWidth / 800) * 753, (screenHeight / 600) * 295, screenWidth*0.1, screenHeight*0.1, "images/dayzicons/bandit.png",0,0,0,tocolor(r,g,b))
JR10 Posted September 11, 2015 Posted September 11, 2015 Adjust it to your liking? Edit the width and height, fix it on 800x600 and it should look fine for the rest.
1LoL1 Posted September 11, 2015 Author Posted September 11, 2015 Adjust it to your liking? Edit the width and height, fix it on 800x600 and it should look fine for the rest. but this not work.. screenWidth*0.1, screenHeight*0.1
1LoL1 Posted September 11, 2015 Author Posted September 11, 2015 The problem is in Head its small big.
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