Skip to main content

SuiBaseClass

A template that can be used to build custom UI elements.

Variables

Core core

Reference to the CORE Object. Set by _ready().

CoreLoggerInstance logger = null

Reference to a CoreLoggerInstance. Must be set manually.

Configuration

note

These are variables, we just labeled them differently.

bool editor_process = true

Determines if the element should be updated automatically while running in the editor.

bool runtime_process = true

Determines if the element should be updated automatically, during your game/application's runtime.

Functions

void _ready()

Initializes the base class.
To run additional code in _ready(), use this example:

func _ready() -> void:
super()
# Your code here

void _process(float _delta)

Calls update_element() if allowed to execute.

void update_element()

This method is intended to be extended by a child script.
Use this to implement your own element update logic.

bool execute_process()

Determines if _process() is allowed to execute.

bool in_editor()

Determines if running inside or outside the editor.