-
-
Notifications
You must be signed in to change notification settings - Fork 380
Implement Gui Scaling #68
Comments
This comment has been minimized.
This comment has been minimized.
The entirety of the GUI is scaled by the factor given by |
Someone suggested a seperate scale for right click menu, I don't think it's possible but having a scale in settings is
|
I actually reverted that commit so uh oops |
You might be able to gl scale everything down to fit the scaled resolution before rendering |
no clue where it starts to render though |
I didn't get much further then above, because the inside of ui frames seems to scale the text and box seperately and it completely breaks, and I couldn't figure out where those are rendered |
In addition to that, AbstractContainer.java#L39 calls this method KamiFrameUI.java#L185 which is used to determine where to place them, so I can also fix that to not put them off screen by default. |
For now, Gui elements cannot go off screen no matter what. Hopefully I'll get around to making a GUI scale someday. |
As I've gotten better at GL since last commenting on this, you just push matrix, scale, and pop. The hard part is putting it into everything that renders. |
Oops didn't mean to close |
Moving this to later because after adding scaling (some stuff worked) as it turns out all the spacing and everything is hardcoded, oops |
See #790. |
Temp solution: make your Minecraft GUI smaller
The text was updated successfully, but these errors were encountered: