DDNet documentation
Toggle main menu visibility
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
4
#include <
game/client/ui_listbox.h
>
5
6
struct
SEditBoxDropdownContext
7
{
8
bool
m_Visible
=
false
;
9
int
m_Selected
= -1;
10
CListBox
m_ListBox
;
11
bool
m_ShortcutUsed
=
false
;
12
bool
m_DidBecomeVisible
=
false
;
13
bool
m_MousePressedInside
=
false
;
14
bool
m_ShouldHide
=
false
;
15
int
m_Width
= 0;
16
};
17
18
class
CEditorUiElements
19
{
20
public
:
21
CScrollRegion
m_LayersScrollRegion
;
22
CScrollRegion
m_ImagesScrollRegion
;
23
CScrollRegion
m_SoundsScrollRegion
;
24
};
25
26
// TODO: add and use constants for other special Checked-values in CEditor::GetButtonColor
27
namespace
EditorButtonChecked
28
{
29
inline
constexpr
int
DANGEROUS_ACTION
= 9;
30
inline
constexpr
int
POSITIVE_ACTION
= 10;
31
}
32
33
namespace
EditorFontSizes
34
{
35
[[maybe_unused]]
static
constexpr
float
MENU
= 10.0f;
36
}
37
38
#endif
CEditorUiElements
Definition
editor_ui.h:19
CEditorUiElements::m_LayersScrollRegion
CScrollRegion m_LayersScrollRegion
Definition
editor_ui.h:21
CEditorUiElements::m_SoundsScrollRegion
CScrollRegion m_SoundsScrollRegion
Definition
editor_ui.h:23
CEditorUiElements::m_ImagesScrollRegion
CScrollRegion m_ImagesScrollRegion
Definition
editor_ui.h:22
CListBox
Definition
ui_listbox.h:17
CScrollRegion
Definition
ui_scrollregion.h:101
EditorButtonChecked
Definition
editor_ui.h:28
EditorButtonChecked::DANGEROUS_ACTION
constexpr int DANGEROUS_ACTION
Definition
editor_ui.h:29
EditorButtonChecked::POSITIVE_ACTION
constexpr int POSITIVE_ACTION
Definition
editor_ui.h:30
EditorFontSizes
Definition
editor_ui.h:34
EditorFontSizes::MENU
static constexpr float MENU
Definition
editor_ui.h:35
SEditBoxDropdownContext
Definition
editor_ui.h:7
SEditBoxDropdownContext::m_ShortcutUsed
bool m_ShortcutUsed
Definition
editor_ui.h:11
SEditBoxDropdownContext::m_MousePressedInside
bool m_MousePressedInside
Definition
editor_ui.h:13
SEditBoxDropdownContext::m_ListBox
CListBox m_ListBox
Definition
editor_ui.h:10
SEditBoxDropdownContext::m_ShouldHide
bool m_ShouldHide
Definition
editor_ui.h:14
SEditBoxDropdownContext::m_DidBecomeVisible
bool m_DidBecomeVisible
Definition
editor_ui.h:12
SEditBoxDropdownContext::m_Width
int m_Width
Definition
editor_ui.h:15
SEditBoxDropdownContext::m_Selected
int m_Selected
Definition
editor_ui.h:9
SEditBoxDropdownContext::m_Visible
bool m_Visible
Definition
editor_ui.h:8
ui_listbox.h
src
game
editor
editor_ui.h
Generated by
1.18.0