-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMenu.hpp
More file actions
28 lines (25 loc) · 784 Bytes
/
Menu.hpp
File metadata and controls
28 lines (25 loc) · 784 Bytes
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
#pragma once
#include <string>
#include <vector>
#include "imgui.h"
#include "ObfuscationOptions.hpp"
struct MenuState {
bool show_menu = true;
bool auto_scroll = true;
char inputBuf[1024] = {0};
char outputBuf[1024] = {0};
int active_nav = 0;
struct SidebarItem { bool expanded = false; float underline = 0.0f; float expand = 0.0f; float icon = 0.0f; } sidebar[5];
bool has_unsaved_changes = false;
};
struct MenuOutput {
bool request_browse = false;
bool request_obfuscate = false;
};
void ApplyStyle();
void SetupFonts();
MenuOutput RenderMenu(MenuState& ui,
ObfuscationOptions& opts,
std::vector<std::string>& logLines,
std::string& status,
void* hwnd);