Editors::PlayModeUI class

Base classes

class UTFWin::IWinProc
This class is a window procedure, also known as an event/message listener.
class DefaultRefCounted
The default implementation of a reference counted class.

Public functions

auto HandleUIMessage(UTFWin::IWindow* pWindow, const UTFWin::Message& message) -> bool override
Method called every time a message is received on a window that has this IWinProc added.
auto FindWindowByID(uint32_t controlID) -> UTFWin::IWindow*
Finds a window with the given control ID in the main PlayMode layout.
auto SetWindowVisible(uint32_t controlID, bool visible) -> void
Changes the visibility of a window inside the main PlayMode layout.

Public variables

cEditor* mpEditor
EditorPlayMode* mpPlayMode
UTFWin::UILayout mMainLayout
PlayMode.spui
UTFWin::UILayout mCameraControlsLayout
bool field_44
bool field_45
Clock field_48
bool field_60
int field_64
int field_68

Function documentation

bool Editors::PlayModeUI::HandleUIMessage(UTFWin::IWindow* pWindow, const UTFWin::Message& message) override

Method called every time a message is received on a window that has this IWinProc added.

Parameters
pWindow The window that received this message.
message The message received.
Returns Whether the message was handled or not.

This method is responsible of handling (or not) the message. This method receives the IWindow that is currently receiving the message; this way, the same IWinProc can be listening for more than one window. This method returns whether the message was handled or not; if it was handled, no other IWinProcs will be called on that window.

UTFWin::IWindow* Editors::PlayModeUI::FindWindowByID(uint32_t controlID)

Finds a window with the given control ID in the main PlayMode layout.

Parameters
controlID

void Editors::PlayModeUI::SetWindowVisible(uint32_t controlID, bool visible)

Changes the visibility of a window inside the main PlayMode layout.

Parameters
controlID
visible