Class HudWidgetConfig
java.lang.Object
net.lynxclient.api.config.ModuleConfig
net.lynxclient.api.hud.HudWidgetConfig
- Direct Known Subclasses:
TextHudWidget.Config
Position and look shared by all HUD widgets. The position is a distance in GUI pixels from a screen anchor
(corner, edge centre or centre), so widgets keep their place relative to each other at every GUI scale.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumWhere a widget is attached to the screen -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal ConfigProperty<Integer> Anchor 0–8: column = anchor % 3 (left, centre, right), row = anchor / 3 (top, middle, bottom)final ConfigProperty<Boolean> final ConfigProperty<String> Widgets with the same group id move together in the HUD editor ("" = no group)final ConfigProperty<Float> Distance from the anchored edge (centre: offset from the centre line)final ConfigProperty<Float> final ConfigProperty<Float> Fields inherited from class ModuleConfig
enabled, toggleKeyModifier and TypeFieldDescriptionfinal ConfigProperty<Boolean> final ConfigProperty<Integer> Key that switches the module on and off in game (Keys.UNKNOWN= none) -
Constructor Summary
ConstructorsConstructorDescriptionHudWidgetConfig(boolean enabledByDefault, HudWidgetConfig.Anchor anchor, float offsetX, float offsetY) -
Method Summary
-
Field Details
-
anchor
Anchor 0–8: column = anchor % 3 (left, centre, right), row = anchor / 3 (top, middle, bottom) -
offsetX
Distance from the anchored edge (centre: offset from the centre line) -
offsetY
-
group
Widgets with the same group id move together in the HUD editor ("" = no group) -
scale
-
background
-
-
Constructor Details
-
HudWidgetConfig
public HudWidgetConfig(boolean enabledByDefault, HudWidgetConfig.Anchor anchor, float offsetX, float offsetY)
-