-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathult_structs.h
More file actions
70 lines (58 loc) · 1.17 KB
/
ult_structs.h
File metadata and controls
70 lines (58 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#ifndef NO_INCLUDES
#include "imgui/imgui.h"
#include "ult_memory.h"
#endif
enum ult_run_mode
{
ult_rm_Browse,
ult_rm_Script,
ult_rm_Application
};
struct ult_entry
{
string EntryTitle;
string Path;
ult_run_mode RunMode;
};
struct ult_group
{
string GroupTitle;
ult_entry* Entries;
uint32 EntriesCount;
};
struct ult_config
{
string ConfigTitle;
ult_group* Groups[MAX_ENTRIES];
};
struct ult_settings
{
bool Fullscreen = 0;
bool Compositor = 0;
bool ShowCompositorButton = 1;
bool Dockspace = 1;
int MonitorIndex = 0;
bool ShowWindow[MAX_ENTRIES] = {[0 ... MAX_ENTRIES-1] = 1};
bool ForceTitleUpperCase = 1;
bool RemoveFilesExt = 1;
bool UnderscoresToSpaces = 1;
ImVec4 BgColor = ImVec4(0.45f, 0.55f, 0.60f, 1.00f);
};
struct ult_state
{
arena Arena;
ult_settings Settings;
ult_config* ScriptsConfig;
ult_config* ApplicationsConfig;
ult_config* CustomConfigs;
uint32 CustomConfigsCount;
};
void state_ShowAllWindows(ult_state *State)
{
bool *Current = State->Settings.ShowWindow;
for (int i = 0; i < MAX_ENTRIES; ++i)
{
*Current = true;
++Current;
}
}