Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

238 move ers gui widget to window directory #239

Merged
merged 158 commits into from
Jun 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
158 commits
Select commit Hold shift + click to select a range
e1110bd
Convert Widgets To Window Classes (#238)
datacrystals Jun 27, 2022
ea80fef
Convert Widgets To Window Classes (#238)
datacrystals Jun 27, 2022
4a34b5d
Convert Widgets To Window Classes (#238)
datacrystals Jun 27, 2022
0e3e2b0
Convert Widgets To Window Classes (#238)
datacrystals Jun 27, 2022
7914f44
Convert Widgets To Window Classes (#238)
datacrystals Jun 27, 2022
27ee285
Convert Widgets To Window Classes (#238)
datacrystals Jun 27, 2022
14f0dd0
Convert Widgets To Window Classes (#238)
datacrystals Jun 27, 2022
4fb894a
Convert Widgets To Window Classes (#238)
datacrystals Jun 27, 2022
aa3e906
Convert Widgets To Window Classes (#238)
datacrystals Jun 27, 2022
a2861b4
Convert Widgets To Window Classes (#238)
datacrystals Jun 27, 2022
7a566f4
Convert Widgets To Window Classes (#238)
datacrystals Jun 27, 2022
0f49345
Convert Widgets To Window Classes (#238)
datacrystals Jun 27, 2022
85270ec
Convert Widgets To Window Classes (#238)
datacrystals Jun 27, 2022
60d22a2
Convert Widgets To Window Classes (#238)
datacrystals Jun 27, 2022
2cab70f
Convert Widgets To Window Classes (#238)
datacrystals Jun 27, 2022
99f3b41
Convert Widgets To Window Classes (#238)
datacrystals Jun 27, 2022
f81d8b5
Convert Widgets To Window Classes (#238)
datacrystals Jun 27, 2022
0260c8f
Convert Widgets To Window Classes (#238)
datacrystals Jun 27, 2022
e4bfd55
Convert Widgets To Window Classes (#238)
datacrystals Jun 27, 2022
8f65066
Convert Widgets To Window Classes (#238)
datacrystals Jun 27, 2022
649b965
Convert Widgets To Window Classes (#238)
datacrystals Jun 27, 2022
7f89fcf
Convert Widgets To Window Classes (#238)
datacrystals Jun 27, 2022
85bda52
Convert Widgets To Window Classes (#238)
datacrystals Jun 27, 2022
1e92e3b
Convert Widgets To Window Classes (#238)
datacrystals Jun 27, 2022
9d59d0e
Convert Widgets To Window Classes (#238)
datacrystals Jun 27, 2022
2de98af
Convert Widgets To Window Classes (#238)
datacrystals Jun 27, 2022
b6c0a30
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
463cef1
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
16a271d
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
30a9f80
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
bae8dfe
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
abdbe3c
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
8e48343
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
ec7d24f
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
83d15e0
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
30e267b
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
71ce49c
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
7812a3b
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
9b069f7
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
b5f0aa6
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
c954714
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
ea6ea3b
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
25143ab
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
805a3de
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
c0afce6
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
884ec03
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
a01dea8
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
d8fd447
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
d793eea
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
a9f8f59
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
636a842
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
d972af9
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
f52a7f5
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
9eb97ee
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
0aa06c9
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
082ff5a
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
58bee28
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
71ae21a
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
15340ac
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
ae97902
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
60251d4
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
e197c1f
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
b14b6ac
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
c886c36
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
292266c
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
fef3594
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
461d934
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
bb4a6f4
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
4f64eb3
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
786569d
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
1860976
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
fe952bf
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
a259758
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
3caee54
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
6b8c92e
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
83e9b33
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
971d3ee
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
e6028f9
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
1935588
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
2238b47
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
6a09a74
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
c14a147
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
5a45030
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
709c178
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
c6698d5
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
e3e443e
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
cec70e3
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
72d261a
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
46c6918
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
15f5aae
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
f225903
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
934cc61
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
3c1c46c
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
d63adff
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
367e3ba
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
6edd98c
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
26b2f0d
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
45ad60c
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
a3f61ff
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
7c9644f
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
96f66de
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
c8ab8c0
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
2943075
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
026af80
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
af1335b
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
14d51fa
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
d3b5a33
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
2dce7b6
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
513c861
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
c7f4883
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
aa20c18
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
2769607
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
1a6ba8e
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
df7085a
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
96d3525
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
1346358
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
d37c838
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
e2d8bfd
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
174aace
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
c5f0cc3
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
3df3677
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
a49a99f
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
5065f97
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
2671540
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
9254de6
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
4c9156f
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
503882e
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
f303d69
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
21b2009
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
7241e26
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
9c83eb7
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
21f72a2
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
743385d
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
0a438d6
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
be2f8fb
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
c2f31de
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
5856013
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
655eae6
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
aecf611
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
45c4001
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
4ec8584
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
e81a8a4
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
9222942
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
3000d9b
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
9754017
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
a1c7962
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
3266c43
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
3cd59ad
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
9205f08
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
37ed2d2
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
4b30351
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
57ab305
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
58f74f5
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
1102810
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
af72aca
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
43fe47c
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
04f9d17
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
8a25cb3
Convert Widgets To Window Classes (#238)
datacrystals Jun 28, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,8 @@ add_subdirectory(${SRC_DIR}/Core/Editor/Utils/ERS_Editor_ThemeManager)
add_subdirectory(${SRC_DIR}/Core/Editor/Utils/ERS_Editor_FontManager)
add_subdirectory(${SRC_DIR}/Core/Editor/Utils/ERS_Editor_UserProfileManager)
add_subdirectory(${SRC_DIR}/Core/Editor/Utils/ERS_Editor_3DCursor)
add_subdirectory(${SRC_DIR}/Core/Editor/Widgets)
add_subdirectory(${SRC_DIR}/Core/Editor/Windows)
add_subdirectory(${SRC_DIR}/Core/Editor/MenuEntries)
add_subdirectory(${SRC_DIR}/Core/Editor/Menus)

add_subdirectory(${SRC_DIR}/Core/Renderer/ERS_CLASS_RendererManager)
add_subdirectory(${SRC_DIR}/Core/Renderer/ERS_CLASS_VisualRenderer)
Expand Down
142 changes: 0 additions & 142 deletions Source/Core/Editor/MenuEntries/GUI_Menu_Window/GUI_Menu_Window.cpp

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ target_link_libraries(Menu_Debug
# Link Internal Libs
target_link_libraries(Menu_Debug

Window_TestEditor
GUI_Window_TestEditor

ERS_STRUCT_SystemUtils
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ GUI_Menu_Debug::GUI_Menu_Debug(ERS_STRUCT_SystemUtils* SystemUtils) {

// Setup Window Instances
SystemUtils_->Logger_->Log("Initialiizng Debug Menu Window Instances", 5);
TestEditor_ = std::make_unique<Window_TestEditor>(SystemUtils_);
TestEditor_ = std::make_unique<GUI_Window_TestEditor>(SystemUtils_);

// Setup OpenGL Debug Submenu
ERS_CLASS_OpenGLDebug_ = std::make_unique<ERS_CLASS_OpenGLDebug>(SystemUtils_);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class GUI_Menu_Debug {

ERS_STRUCT_SystemUtils* SystemUtils_; /**<SystemUtils Instance, Used To Get Systems From Other Classes*/
std::unique_ptr<ERS_CLASS_OpenGLDebug> ERS_CLASS_OpenGLDebug_; /**<Class used to draw the opengl debug menu into the main debug menu*/
std::unique_ptr<Window_TestEditor> TestEditor_; /**<GUI Window Test Editor Instance*/
std::unique_ptr<GUI_Window_TestEditor> TestEditor_; /**<GUI Window Test Editor Instance*/

bool ShowImGuiDemoWindow_ = false; /**<Show/hide ImGui DemoWindow*/
bool DebugMenuEnabled_ = false; /**Enable/Disable Debug Menu*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ target_link_libraries(Menu_File
ERS_SceneManager
ERS_STRUCT_Scene

Window_ProjectSettings
Window_ShaderEditor
GUI_Window_ProjectSettings
GUI_Window_ShaderEditor
ERS_CLASS_VisualRenderer
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ GUI_Menu_File::GUI_Menu_File(ERS_STRUCT_SystemUtils* SystemUtils, ERS_CLASS_Scen

SceneWriter_ = std::make_unique<SceneWriter>(SystemUtils_);
ImportAsset_ = std::make_unique<GUI_ImportAsset>(SystemUtils_);
ShaderEditor_ = std::make_unique<Window_ShaderEditor>(SystemUtils_, ProjectUtils_, VisualRenderer_);
Window_ProjectSettings_ = std::make_unique<Window_ProjectSettings>(ProjectUtils, SystemUtils);
ShaderEditor_ = std::make_unique<GUI_Window_ShaderEditor>(SystemUtils_, ProjectUtils_, VisualRenderer_);
GUI_Window_ProjectSettings_ = std::make_unique<GUI_Window_ProjectSettings>(ProjectUtils, SystemUtils);

}

Expand All @@ -36,7 +36,7 @@ void GUI_Menu_File::Draw() {
ProjectUtils_->ProjectManager_->WriteProject(1);
}
if (ImGui::MenuItem("Project Settings")) {
Window_ProjectSettings_->Enabled_ = !Window_ProjectSettings_->Enabled_;
GUI_Window_ProjectSettings_->Enabled_ = !GUI_Window_ProjectSettings_->Enabled_;
}
ImGui::Separator();

Expand Down Expand Up @@ -82,7 +82,7 @@ void GUI_Menu_File::Draw() {

// Draw Subwindows
ImportAsset_->Draw();
Window_ProjectSettings_->Draw();
GUI_Window_ProjectSettings_->Draw();
ShaderEditor_->Draw();


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ class GUI_Menu_File {
std::unique_ptr<SceneWriter> SceneWriter_; /**<Scene Writer Instance Pointer*/
ERS_CLASS_SceneManager* SceneManager_; /**<Scene Manager Instance Pointer*/
std::unique_ptr<GUI_ImportAsset> ImportAsset_; /**<Pointer To Asset Importer System*/
std::unique_ptr<Window_ProjectSettings> Window_ProjectSettings_; /**<Project Settings Window*/
std::unique_ptr<GUI_Window_ProjectSettings> GUI_Window_ProjectSettings_; /**<Project Settings Window*/
ERS_STRUCT_ProjectUtils* ProjectUtils_; /**<Pointer To Project Utils Instance*/
std::unique_ptr<Window_ShaderEditor> ShaderEditor_; /**<Pointer To Shader Editor Window Instance*/
std::unique_ptr<GUI_Window_ShaderEditor> ShaderEditor_; /**<Pointer To Shader Editor Window Instance*/


public:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ target_link_libraries(ERS_Editor_ImportAsset
ERS_CLASS_LoggingSystem

ERS_STRUCT_SystemUtils
Window_ImportProgressBar
GUI_Window_ImportProgressBar
)

target_include_directories(ERS_Editor_ImportAsset PUBLIC ./)
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ GUI_ImportAsset::GUI_ImportAsset(ERS_STRUCT_SystemUtils* SystemUtils) {
SystemUtils_ = SystemUtils;
SystemUtils_->Logger_->Log("Initializing Asset Importer GUI", 5);

Window_ImportProgressBar_ = std::make_unique<Window_ImportProgressBar>(SystemUtils_);
GUI_Window_ImportProgressBar_ = std::make_unique<GUI_Window_ImportProgressBar>(SystemUtils_);
AssetImportBackend_ = std::make_unique<ERS_CLASS_ImportAsset>(SystemUtils_);

}
Expand Down Expand Up @@ -40,7 +40,7 @@ void GUI_ImportAsset::Draw() {

// Add To Queue, Launch Import
AssetImportBackend_->AddToImportQueue(FilePaths);
Window_ImportProgressBar_->Enabled_ = true;
GUI_Window_ImportProgressBar_->Enabled_ = true;

}

Expand All @@ -49,12 +49,12 @@ void GUI_ImportAsset::Draw() {


// Update Window Stats
if (Window_ImportProgressBar_->Enabled_) {
Window_ImportProgressBar_->UpdateTotalItems(AssetImportBackend_->GetTotalItemsImported(), AssetImportBackend_->GetTotalItemsToImport());
Window_ImportProgressBar_->UpdateJobState(AssetImportBackend_->HasJobFinished());
if (GUI_Window_ImportProgressBar_->Enabled_) {
GUI_Window_ImportProgressBar_->UpdateTotalItems(AssetImportBackend_->GetTotalItemsImported(), AssetImportBackend_->GetTotalItemsToImport());
GUI_Window_ImportProgressBar_->UpdateJobState(AssetImportBackend_->HasJobFinished());
}

Window_ImportProgressBar_->Draw();
GUI_Window_ImportProgressBar_->Draw();


}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class GUI_ImportAsset {
private:

ERS_STRUCT_SystemUtils* SystemUtils_; /**<used to get access to system utilites like IOmanager, logger, etc.*/
std::unique_ptr<Window_ImportProgressBar> Window_ImportProgressBar_; /**<Pointer To Window Import Progres Bar*/
std::unique_ptr<GUI_Window_ImportProgressBar> GUI_Window_ImportProgressBar_; /**<Pointer To Window Import Progres Bar*/
std::unique_ptr<ERS_CLASS_ImportAsset> AssetImportBackend_; /**<Backend used to handle actual importing, threads, etc.*/

public:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ target_link_libraries(Menu_Settings
ERS_STRUCT_HumanInputDeviceUtils
ERS_STRUCT_ProjectUtils

Window_ControllerSettings
GUI_Window_ControllerSettings

)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ GUI_Menu_Settings::GUI_Menu_Settings(ERS_STRUCT_SystemUtils* SystemUtils, ERS_ST
ProjectUtils_ = ProjectUtils;
SystemUtils_->Logger_->Log("Editor Setting Up Settings Menu", 4);

Window_ControllerSettings_ = std::make_unique<Window_ControllerSettings>(SystemUtils_, HIDUtils_, ProjectUtils_);
GUI_Window_ControllerSettings_ = std::make_unique<GUI_Window_ControllerSettings>(SystemUtils_, HIDUtils_, ProjectUtils_);

}

Expand All @@ -37,7 +37,7 @@ void GUI_Menu_Settings::Draw() {

// Open Settings MEnu
if (ImGui::MenuItem("Game Controller Settings")) {
Window_ControllerSettings_->Enabled_ = !Window_ControllerSettings_->Enabled_;
GUI_Window_ControllerSettings_->Enabled_ = !GUI_Window_ControllerSettings_->Enabled_;
}

ImGui::EndMenu();
Expand All @@ -49,6 +49,6 @@ void GUI_Menu_Settings::Draw() {


// Draw Subwindows
Window_ControllerSettings_->Draw();
GUI_Window_ControllerSettings_->Draw();

}
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class GUI_Menu_Settings {
ERS_STRUCT_ProjectUtils* ProjectUtils_; /**<Project Utils Structure*/


std::unique_ptr<Window_ControllerSettings> Window_ControllerSettings_; /**<ERS GUI Window*/
std::unique_ptr<GUI_Window_ControllerSettings> GUI_Window_ControllerSettings_; /**<ERS GUI Window*/


public:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ target_link_libraries(Menu_View
ERS_Editor_ThemeManager
ERS_Editor_FontManager

Window_About
GUI_Window_About

Window_ThemeSelector
GUI_Window_ThemeSelector
)

target_include_directories(Menu_View PUBLIC ./)
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ GUI_Menu_View::GUI_Menu_View(ERS_STRUCT_SystemUtils* SystemUtils, ERS_CLASS_Them
FontManager_ = FontManager;
SystemUtils_->Logger_->Log("Editor Setting Up View Menu", 4);

Window_ThemeSelector_ = std::make_unique<Window_ThemeSelector>(ThemeManager_);
Window_About_ = std::make_unique<Window_About>(SystemUtils_);
GUI_Window_ThemeSelector_ = std::make_unique<GUI_Window_ThemeSelector>(ThemeManager_);
GUI_GUI_Window_About_ = std::make_unique<GUI_Window_About>(SystemUtils_);


}
Expand All @@ -31,7 +31,7 @@ void GUI_Menu_View::Draw() {


if (ImGui::MenuItem("Color Theme")) {
Window_ThemeSelector_->Enabled_ = true;
GUI_Window_ThemeSelector_->Enabled_ = true;
}

if (ImGui::MenuItem("System Font")) {
Expand All @@ -41,7 +41,7 @@ void GUI_Menu_View::Draw() {
ImGui::Separator();

if (ImGui::MenuItem("About")) {
Window_About_->Enabled_ = true;
GUI_GUI_Window_About_->Enabled_ = true;
}


Expand All @@ -50,8 +50,8 @@ void GUI_Menu_View::Draw() {


// Draw Windows
Window_ThemeSelector_->Draw();
Window_About_->Draw();
GUI_Window_ThemeSelector_->Draw();
GUI_GUI_Window_About_->Draw();
FontManager_->FontSelectorWindow(&ShowFontPicker_);

}
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ class GUI_Menu_View {

ERS_STRUCT_SystemUtils* SystemUtils_; /**<SystemUtils Instance, Used To Get Systems From Other Classes*/
ERS_CLASS_ThemeManager* ThemeManager_; /**<Theme Manager Instance Ptr*/
std::unique_ptr<Window_ThemeSelector> Window_ThemeSelector_; /**<Theme Selector Window*/
std::unique_ptr<GUI_Window_ThemeSelector> GUI_Window_ThemeSelector_; /**<Theme Selector Window*/
ERS_CLASS_FontManager* FontManager_; /**<Pointer To FontManager Instance*/
std::unique_ptr<Window_About> Window_About_; /**<Pointer to about window*/
std::unique_ptr<GUI_Window_About> GUI_GUI_Window_About_; /**<Pointer to about window*/

// Window Show/Hide Vars
bool ShowFontPicker_ = false; /**<Control Varaible to show/hide font picker window*/
Expand Down
Loading