1#ifndef GAME_EDITOR_EDITOR_UI_H
2#define GAME_EDITOR_EDITOR_UI_H
3
4#include <game/client/ui_listbox.h>
5
6struct 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
18class CEditorUiElements
19{
20public:
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
27namespace EditorButtonChecked
28{
29 inline constexpr int DANGEROUS_ACTION = 9;
30 inline constexpr int POSITIVE_ACTION = 10;
31}
32
33namespace EditorFontSizes
34{
35 [[maybe_unused]] static constexpr float MENU = 10.0f;
36}
37
38#endif
39