PositionSetting
A setting used to easily change the position of a Hud Element
new PositionSetting(String name, String description, int width, int height)
new PositionSetting(String name, String description, int width, int height)creates a new PositionSetting, width and height should be the size of the element.
please check Registering a new setting for how to correctly register the setting.
getX(): int
getX(): intReturns the x position that should be used for rendering the HUD element.
getY(): int
getY(): intReturns the y position that should be used for rendering the HUD element.
setWidth(int width): void
setWidth(int width): voidUpdate the width of the HUD Element, if your element dynamically changes size you should call this every frame.
setHeight(int height): void
setHeight(int height): voidUpdate the height of the HUD Element, if your element dynamically changes size you should call this every frame.
getName(): String
getName(): StringGives the name of the setting.
getDescription(): String
getDescription(): StringReturns the description of the setting.
setHidden(boolean hidden): void
setHidden(boolean hidden): voidAllows you to hide a setting from the menu.
setHidden() only works on settings that have been initiated by scripts in the first place!
isHidden(boolean hidden): void
isHidden(boolean hidden): voidAllows you to hide a setting from the menu.
CPS CounterLast updated