Posted July 10, 20169 yr I want to stop GUI Scale from affecting GUIs - BUT NOT SO FAST - only GuiScreen (or even better - my extensions of GuiScreen). So all that shit in background like hotbar or anything rendered with overlay events = affected by scaling. My GuiScreen extensions (or all) = NOT. I am recreating Java FX in MC and while above is a minor problem thanks to smart layouts, vertical and horizontal aligning, and min/pref/max width/height, it is kinda annoying when Node (Component) suddenly skips from larger to smaller shape or vice versa - this kind of behavior is totally not needed when everything is drawn straight by GL and respecting previously said properties. I don't want to use hacks like "always HUGE scale" or my "GUI values * scale of MC". Is there some place I could look and hack scaling of ONLY GuiScreen or like said - only my extension to it. EDIT I mean, when you look at it - this scaling is pretty nice for smaller screens actually (but that would be ridiculously small ones), but still kinda annoying and useless because I am already handling user-friendly display (if you know JFX you know what I mean). 1.7.10 is no longer supported by forge, you are on your own.
July 11, 20169 yr Perhaps in draw method of your base GuiScreen class, call pushMatrix, scale by 1 - MC scale factory, draw, and call popMatrix. Don't make mods if you don't know Java. Check out my website: http://shadowfacts.net Developer of many mods
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.