class GUIStatusBar

Editor window status bar that displays log messages and various other information.

Public

Methods

staticGetGuiTypeName

static const String &GetGuiTypeName()

Returns type name of the GUI element used for finding GUI element styles.

SetProject

void SetProject(const String &name, bool modified)

Updates the active project displayed on the status bar.

name
Name of the project.
modified
Should the project be displayed as modified (and needs saving).

SetScene

void SetScene(const String &name, bool modified)

Updates the active scene displayed on the status bar.

name
Name of the scene.
modified
Should the scene be displayed as modified (and needs saving).

SetIsCompiling

void SetIsCompiling(bool compiling)

Activates or deactivates the "compilation in progress" visuals on the status bar.

SetIsImporting

void SetIsImporting(bool importing, float percentage)

Activates or deactives the "import in progress" visuals on the status bar, as well as updates the related progress bar to the specified percentage (if active).

SetTint

void SetTint(const Color &color) override

Sets the tint of the GUI element.

UpdateLayoutForChildren

void UpdateLayoutForChildren() override

Calculates sizes and relative positions for all child elements.

Should be preceded with a call to UpdateOptimalLayoutSizes().

CalculateUnconstrainedOptimalSize

GUILogicalSize CalculateUnconstrainedOptimalSize() const override

Calculates the optimal size for the GUI element, ignoring size constraints.

staticCreate

static GUIElementType *Create(const String &styleClass, const TInlineArray<GUIOption, 4> &options)

Creates a new GUI element.

styleClass
Style class that will be used for determining GUI element visuals from the current style sheet. If no class is provided, default style is determined based on GUI element type.
options
Additional options that control GUI element size and position. This will override options set in the style sheet.

Fields

OnMessageClicked

Event<void ()> OnMessageClicked

Triggered when the user clicks on the console message.

Internal

Constructors

GUIStatusBar

GUIStatusBar(PrivatelyConstruct, const String &style, const GUISizeConstraints &sizeConstraints)

Private

Methods

~GUIStatusBar

virtual ~GUIStatusBar() noexcept

LogModified

void LogModified()

Triggered when the debug Log was modified.

MessageBtnClicked

void MessageBtnClicked()

Triggered when the user clicks on the message display.

Fields

mPanel

GUIPanel * mPanel

mBgPanel

GUIPanel * mBgPanel

mMessage

GUIButton * mMessage

mScene

GUILabel * mScene

mProject

GUILabel * mProject

mCompilingSpace

GUIFixedSpace * mCompilingSpace

mCompiling

GUILabel * mCompiling

mImportLayout

GUILayout * mImportLayout

mImportSpace

GUIFixedSpace * mImportSpace

mImporting

GUILabel * mImporting

mImportProgressBar

GUIProgressBar * mImportProgressBar

mBackground

GUITexture * mBackground

mLogEntryAddedConn

HEvent mLogEntryAddedConn

mMessageBtnPressedConn

HEvent mMessageBtnPressedConn