1LoL1 Posted September 11, 2015 Share 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 Link to comment
JR10 Posted September 11, 2015 Share Posted September 11, 2015 local screenWidth, screenHeight = guiGetScreenSize() dxDrawImage ( screenWidth - 47, screenHeight - 305, screenWidth*0.1, screenHeight*0.1) Link to comment
1LoL1 Posted September 11, 2015 Author Share 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: Link to comment
JR10 Posted September 11, 2015 Share 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) Link to comment
1LoL1 Posted September 11, 2015 Author Share 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? Link to comment
1LoL1 Posted September 11, 2015 Author Share 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)) Link to comment
JR10 Posted September 11, 2015 Share 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. Link to comment
1LoL1 Posted September 11, 2015 Author Share 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 Link to comment
1LoL1 Posted September 11, 2015 Author Share Posted September 11, 2015 The problem is in Head its small big. 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