Scaling
Dynamic HUD utilizes the YACL config library to implement global scaling for all widgets.
The scale can only be changed by the player and all widgets displayed with shouldScale
set as true are affected by it.
The scale can be changed from
0.1f - 2.5f
,The default being
1f
In order to disable scaling for a single widget, you can set shouldScale
flag to false.
MyWidget.setShouldScale(false);
The scaling is implemented by using the DrawHelper class
DrawHelper.scaleAndPosition(drawContext.getMatrices(), getX(), getY(), GlobalConfig.get().getScale());.
Currently, the scaling does not affect the position of the mouse. So, it may cause, ContextMenu's to stop functioning.
Last updated
Was this helpful?