class GUIDropDownBoxManager

Manages opening and closing of a drop down box.

Public

Methods

~GUIDropDownBoxManager

~GUIDropDownBoxManager() noexcept

OpenDropDownBox

TGameObjectHandle<GUIDropDownMenu> OpenDropDownBox(const DropDownBoxCreateInformation &createInformation, GUIDropDownType type, std::function<void ()> onClosedCallback)

Opens a new drop down box at the specified location, look and elements.

This will close any previously open drop down box.

createInformation
Various parameters for initializing the drop down box.
type
Specific type of drop down box to display.
onClosedCallback
Callback triggered when drop down box is closed.

CloseDropDownBox

void CloseDropDownBox()

Closes the currently active drop down box (if any).

staticInstance

static T &Instance()

Returns a reference to the module instance.

Module has to have been started up first otherwise an exception will be thrown.

staticInstancePtr

static T *InstancePtr()

Returns a pointer to the module instance.

Module has to have been started up first otherwise an exception will be thrown.

staticShutDown

static void ShutDown()

Shuts down this module and frees any resources it is using.

staticIsStarted

static bool IsStarted()

Query if the module has been started.

Protected

Methods

~Module<T>

virtual ~Module<T>() = default

OnStartUp

virtual void OnStartUp()

Override if you want your module to be notified once it has been constructed and started.

OnShutDown

virtual void OnShutDown()

Override if you want your module to be notified just before it is deleted.

staticInstanceInternal

static T *&InstanceInternal()

Returns a singleton instance of this module.

staticIsDestroyed

static bool &IsDestroyed()

Checks has the Module been shut down.

staticIsStartedUp

static bool &IsStartedUp()

Checks has the Module been started up.

Private

Fields

mDropDownSO

HSceneObject mDropDownSO

mDropDownBox

mOnClosedCallback

std::function<void ()> mOnClosedCallback