DDNet documentation
Loading...
Searching...
No Matches
editor_ui.h
Go to the documentation of this file.
1#ifndef GAME_EDITOR_EDITOR_UI_H
2#define GAME_EDITOR_EDITOR_UI_H
3
5
7{
8 bool m_Visible = false;
9 int m_Selected = -1;
11 bool m_ShortcutUsed = false;
12 bool m_DidBecomeVisible = false;
14 bool m_ShouldHide = false;
15 int m_Width = 0;
16};
17
25
26// TODO: add and use constants for other special Checked-values in CEditor::GetButtonColor
28{
29 inline constexpr int DANGEROUS_ACTION = 9;
30 inline constexpr int POSITIVE_ACTION = 10;
31}
32
34{
35 [[maybe_unused]] static constexpr float MENU = 10.0f;
36}
37
38#endif
Definition editor_ui.h:19
CScrollRegion m_LayersScrollRegion
Definition editor_ui.h:21
CScrollRegion m_SoundsScrollRegion
Definition editor_ui.h:23
CScrollRegion m_ImagesScrollRegion
Definition editor_ui.h:22
Definition ui_listbox.h:17
Definition ui_scrollregion.h:101
Definition editor_ui.h:28
constexpr int DANGEROUS_ACTION
Definition editor_ui.h:29
constexpr int POSITIVE_ACTION
Definition editor_ui.h:30
Definition editor_ui.h:34
static constexpr float MENU
Definition editor_ui.h:35
Definition editor_ui.h:7
bool m_ShortcutUsed
Definition editor_ui.h:11
bool m_MousePressedInside
Definition editor_ui.h:13
CListBox m_ListBox
Definition editor_ui.h:10
bool m_ShouldHide
Definition editor_ui.h:14
bool m_DidBecomeVisible
Definition editor_ui.h:12
int m_Width
Definition editor_ui.h:15
int m_Selected
Definition editor_ui.h:9
bool m_Visible
Definition editor_ui.h:8