zarz02 Posted July 30, 2012 Author Share Posted July 30, 2012 I have been attempting to get the GUI less cluttery, but it seems I can't find a way to make it so that it doesn't zoom when the game window size is increased. Any GUI tips?Also how do I make the hp bar and stuff appear infront of the main screen?![](http://i47.tinypic.com/2lc2qo3.jpg) Link to comment Share on other sites More sharing options...
ghost1 Posted July 30, 2012 Share Posted July 30, 2012 That's because you haven't changed the maximum tiles per map, and since the screen size is calculated using those, it's rendering it to make it fit into the whole screen and therefore makes it look zoomed in.What you need to do is make sure your screen's dimensions are divisible by 32, and after that, divide your screen's dimensions by 32 and substract by one. So, MAX_MAPX = (ScreenWidth / 32) - 1 and MAX_MAPY = (ScreenHeight / 32) - 1\. You can find those in modConstants.Do this on both client and server and delete your maps. Link to comment Share on other sites More sharing options...
zarz02 Posted July 30, 2012 Author Share Posted July 30, 2012 @ghost1y:> That's because you haven't changed the maximum tiles per map, and since the screen size is calculated using those, it's rendering it to make it fit into the whole screen and therefore makes it look zoomed in.> > What you need to do is make sure your screen's dimensions are divisible by 32, and after that, divide your screen's dimensions by 32 and substract by one. So, MAX_MAPX = (ScreenWidth / 32) - 1 and MAX_MAPY = (ScreenHeight / 32) - 1\. You can find those in modConstants.> > Do this on both client and server and delete your maps.I kind of understand you but then not```Public Const MAX_MAPX As Byte = 14Public Const MAX_MAPY As Byte = 11```That's my current max. so then would it be safe to simply double that? I mean neither of those are divisible by 32, unless I'm understanding you wrong. Are you saying that their base must go into 32? so for example 2, and 11 because 11x3=33-1=32? Link to comment Share on other sites More sharing options...
ghost1 Posted July 30, 2012 Share Posted July 30, 2012 No. I mean your screen size. For example, if your screen width is 800 and its height is 600 (even though 600 isn't divisible by 32, you just round it), then:MAX_MAPX = (800 / 32) - 1 -> MAX_MAPX = 24MAX_MAPY = (600 / 32) - 1 -> MAX_MAPY = 18 Link to comment Share on other sites More sharing options...
DMF Posted February 5, 2013 Share Posted February 5, 2013 i need a better sizes but closer to this since mine are problems..current valuesWidth X: 644Hight Y: 460this set crash windows aero theme… not a joke :/. anyone know a better ones near this in size?? o-o Link to comment Share on other sites More sharing options...
chopsaw Posted February 5, 2013 Share Posted February 5, 2013 > No. I mean your screen size. For example, if your screen width is 800 and its height is 600 (even though 600 isn't divisible by 32, you just round it), then:> > MAX_MAPX = (800 / 32) - 1 -> MAX_MAPX = 24> > MAX_MAPY = (600 / 32) - 1 -> MAX_MAPY = 18how does that fit into this?' Map constantsPublic Const MAX_MAPS As Long = 100Public Const MAX_MAPX As Byte = (800 / 32 - 1)Public Const MAX_MAPY As Byte = (600 / 32 - 1)Public Const MAP_MORAL_NONE As Byte = 0Public Const MAP_MORAL_SAFE As Byte = 1i got my screen to go to 800 by 600 but its like i cant see the bottom or right edgeno inventory no nothingcan ya help a newb out ? Link to comment Share on other sites More sharing options...
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