Handles debug menu (F10)
More...
#include <src/ui/debug_menu.h>
Handles debug menu (F10)
There should always be only one instance of this class for each associated CRobotMain class.
◆ CDebugMenu()
◆ ~CDebugMenu()
Ui::CDebugMenu::~CDebugMenu |
( |
| ) |
|
|
virtual |
Destroys the CDebugMenu instance
- Note
- Does not clean up the interface, should be called only when CRobotMain is destroyed
◆ ToggleInterface()
void Ui::CDebugMenu::ToggleInterface |
( |
| ) |
|
Toggle the debug interface.
◆ IsActive()
bool Ui::CDebugMenu::IsActive |
( |
| ) |
|
Check if the debug interface is open.
◆ EventProcess()
bool Ui::CDebugMenu::EventProcess |
( |
const Event & |
event | ) |
|
◆ CreateInterface()
void Ui::CDebugMenu::CreateInterface |
( |
| ) |
|
|
protected |
Create the main page of debug interface.
◆ CreateSpawnInterface()
void Ui::CDebugMenu::CreateSpawnInterface |
( |
| ) |
|
|
protected |
Create the spawn object interface.
◆ UpdateInterface()
void Ui::CDebugMenu::UpdateInterface |
( |
| ) |
|
|
protected |
Update controls in the debug interface.
◆ DestroyInterface()
void Ui::CDebugMenu::DestroyInterface |
( |
| ) |
|
|
protected |
Destroy the debug interface window.
◆ HandleFrameUpdate()
void Ui::CDebugMenu::HandleFrameUpdate |
( |
const Event & |
event | ) |
|
|
protected |
Handle frame update This is used to update the cursor coordinates overlay
◆ HandleSpawnObject()
Handle spawning a new object at mouse position
- Returns
- true on success, false on error
◆ HandleLightning()
bool Ui::CDebugMenu::HandleLightning |
( |
Math::Point |
mousePos | ) |
|
|
protected |
Handle lightning at position
- Returns
- true on success, false on error
◆ HandleTeleport()
bool Ui::CDebugMenu::HandleTeleport |
( |
Math::Point |
mousePos | ) |
|
|
protected |
Handle teleport to position
- Returns
- true on success, false on error
◆ HandleCopy()
bool Ui::CDebugMenu::HandleCopy |
( |
Math::Point |
mousePos | ) |
|
|
protected |
Handle ctrl+c (copy coordinates under cursor to clipboard)
- Returns
- true on success, false on error
The documentation for this class was generated from the following files:
- src/ui/debug_menu.h
- src/ui/debug_menu.cpp