-
Notifications
You must be signed in to change notification settings - Fork 59
4.0 migration guide
Juuxel edited this page Jun 9, 2021
·
2 revisions
- Default background painters no longer have any padding applied.
- If you're using the default
WGridPanelinstance created in the base GUI description classes, you don't necessarily need to do anything. - If you're manually setting a root panel, you can achieve the same end result by doing
setInsets(Insets.ROOT_PANEL)on your root panel.
- If you're using the default
-
CottonHudmethods are now static, so replaceCottonHud.INSTANCEwithCottonHud. - The 9patch background painter API has been reworked to use LibNinePatch, which has more features and less bugs. The background painter class itself was renamed from
NinePatchtoNinePatchBackgroundPainter.
- Replace all
ScreenDrawingmethods that don't takeMatrixStacks with theirMatrixStackvariants. - Any mouse handling methods now return an
InputResultdescribing whether the input action was processed or ignored. As a rule of thumb: If your widget responds to doing things with the mouse, returnPROCESSED. - Replace
LibGuiClient.config.darkModewithLibGui.isDarkMode() - Replace
WWidget.createPeerswithWWidget.validate