ConfigGroup

constructor(groupName: String = "", decoration: Decorated? = null, offsetX: Int? = null, offsetY: Int? = null)

Defines the start of a config group

Groups organize a grouping of settings into one unit that can be collapsed and expanded in the GUI

Laying Out Configs has more information about how groups can be best utilized.

Author

fzzyhmstrs

Since

0.6.8

Parameters

groupName

Optional, default "". The identifier key for the group. Other groups in the config should not use the same key.

decoration

Decorated, default null. The icon shown in the go-to menu

offsetX

Optional, default null. Horizontal offset in pixels for the goto icon

offsetY

Optional, default null. Vertical offset in pixels for the goto icon


constructor(groupName: String, collapsedByDefault: Boolean = false)

Defines the start of a config group

Groups organize a grouping of settings into one unit that can be collapsed and expanded in the GUI

Laying Out Configs has more information about how groups can be best utilized.

Author

fzzyhmstrs

Since

0.6.6

Parameters

groupName

The identifier key for the group. Other groups in the config should not use the same key.

collapsedByDefault

Optional, default false. If true, the group will start collapsed when viewing the config GUI


constructor(groupName: String, decoration: Decorated?, offsetX: Int?, offsetY: Int?, collapsedByDefault: Boolean = false)

Parameters

groupName

Optional, default "". The identifier key for the group. Other groups in the config should not use the same key.

decoration

Decorated, default null. The icon shown in the go-to menu

offsetX

Optional, default null. Horizontal offset in pixels for the goto icon

offsetY

Optional, default null. Vertical offset in pixels for the goto icon

collapsedByDefault

Optional, default false. If true, the group will start collapsed when viewing the config GUI