Mefisto_PL Posted December 31, 2011 Share Posted December 31, 2011 (edited) Okey... I have script to show news it's working on every resolution.. But on 1366 x 768 it looks like: Click Can somebody make it working on every resolution? I was struggling with this for a long time.. And I don't know how can I do that.. Edited January 1, 2012 by Guest Link to comment
arezu Posted December 31, 2011 Share Posted December 31, 2011 can you show how it looks like on other resolutions? Link to comment
Mefisto_PL Posted December 31, 2011 Author Share Posted December 31, 2011 http://img515.imageshack.us/img515/8360 ... 002212.png - 800 x 600 it's good.. 1280 x 1024 is good too.. AND OTHER IS GOOD TOO... but on this resolution is not good ;x Link to comment
karlis Posted December 31, 2011 Share Posted December 31, 2011 you don't use the screen width and height values you had, so it doesn't work well. if you want picture to be y pixels from bottom use posY=sHeight-y Link to comment
Mefisto_PL Posted December 31, 2011 Author Share Posted December 31, 2011 I don't get what do you mean.. sorry Link to comment
karlis Posted January 1, 2012 Share Posted January 1, 2012 how the heck am i supposed to help you if you just removed the code you have? Link to comment
Mefisto_PL Posted January 1, 2012 Author Share Posted January 1, 2012 Sorry.. My fail Link to comment
arezu Posted January 1, 2012 Share Posted January 1, 2012 y position would be screenHeight - rectangleHeight. (you dont have rectangleHeight variable, so just make one) Link to comment
Mefisto_PL Posted January 1, 2012 Author Share Posted January 1, 2012 I must use local rectangleHeight = y-position ? Link to comment
12p Posted January 1, 2012 Share Posted January 1, 2012 Yep, if position means the rectangle height. Height is /\ | | | THIS | IN PIXELS | | V Link to comment
Mefisto_PL Posted January 1, 2012 Author Share Posted January 1, 2012 Oh sorry I can don't understand because I'm from Poland But thanks. Link to comment
arezu Posted January 1, 2012 Share Posted January 1, 2012 example: local screenWidth, screenHeight = guiGetScreenSize() local recWidth = screenWidth local recHeight = 75 dxDrawRectangle(0, screenHeight - recHeight, recWidth, recHeight, tocolor(0, 0, 0, 192), false) Link to comment
Mefisto_PL Posted January 1, 2012 Author Share Posted January 1, 2012 Hmm... I try this on my laptop, but now it's working 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