-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMenuBar.hpp
More file actions
80 lines (65 loc) · 2.21 KB
/
MenuBar.hpp
File metadata and controls
80 lines (65 loc) · 2.21 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
71
72
73
74
75
76
77
78
79
80
#pragma once
#include <imgui.h>
namespace EditorUI {
inline void RenderMainMenuBar() {
if (ImGui::BeginMainMenuBar()) {
ImGui::TextColored(ImVec4(1, 0.5f, 0, 1), "\xef\x88\x9b"); // Optional FontAwesome/Emoji fallback
ImGui::SameLine();
if (ImGui::BeginMenu("File")) {
ImGui::MenuItem("New Scene");
ImGui::MenuItem("Open...");
ImGui::MenuItem("Save");
ImGui::MenuItem("Save As...");
ImGui::Separator();
ImGui::MenuItem("Exit");
ImGui::EndMenu();
}
if (ImGui::BeginMenu("Edit")) {
ImGui::MenuItem("Undo");
ImGui::MenuItem("Redo");
ImGui::Separator();
ImGui::MenuItem("Preferences");
ImGui::EndMenu();
}
if (ImGui::BeginMenu("Project")) {
ImGui::MenuItem("Project Settings");
ImGui::MenuItem("Build Project");
ImGui::EndMenu();
}
if (ImGui::BeginMenu("GameObject")) {
ImGui::MenuItem("Create Empty");
ImGui::MenuItem("3D Object");
ImGui::MenuItem("Light");
ImGui::MenuItem("Camera");
ImGui::EndMenu();
}
if (ImGui::BeginMenu("Scene")) {
ImGui::MenuItem("Scene Settings");
ImGui::MenuItem("Bake Lighting");
ImGui::EndMenu();
}
if (ImGui::BeginMenu("View")) {
ImGui::MenuItem("Player Mode");
ImGui::MenuItem("Gizmos");
ImGui::EndMenu();
}
if (ImGui::BeginMenu("Tools")) {
ImGui::MenuItem("Material Editor");
ImGui::MenuItem("Animation Debugger");
ImGui::EndMenu();
}
if (ImGui::BeginMenu("Window")) {
ImGui::MenuItem("Scene View");
ImGui::MenuItem("Inspector");
ImGui::MenuItem("Console");
ImGui::EndMenu();
}
if (ImGui::BeginMenu("Help")) {
ImGui::MenuItem("Documentation");
ImGui::MenuItem("About FelissEngine");
ImGui::EndMenu();
}
ImGui::EndMainMenuBar();
}
}
}