ImGUI component responsible for drawing the main editor menu bar and handling its actions. More...
#include <EditorMenuBar.hpp>
Public Member Functions | |
| EditorMenuBar (vex::ImGUIWrapper &imGUIWrapper, vex::Editor &editor) | |
| Constructs the EditorMenuBar. | |
| void | DrawBar () |
| Draws the main menu bar and processes user input. | |
| void | OpenScene () |
| Handles the logic for opening an existing scene file. | |
| void | OpenEditorSettings () |
| Opens the editor settings window/menu. | |
| void | OpenProjectSettings () |
| Opens the project settings window/menu. | |
| void | OpenProjectSelector () |
| Opens the project selector window. | |
| void | SaveSceneAs () |
| Saves the current scene to a new file path. | |
| void | RunBuild (bool isDebug, bool runAfter=false) |
| Executes the project build process. | |
| void | BuildDist () |
| Builds the project distribution package. | |
| void | NewScene () |
| Copies empty scene to assets folders and opens it. | |
Private Member Functions | |
| std::string | GetProjectName () |
| Retrieves the name of the current project. | |
Private Attributes | |
| vex::ImGUIWrapper & | m_ImGUIWrapper |
| vex::Editor & | m_editor |
| std::vector< std::shared_ptr< BasicEditorWindow > > | m_Windows |
ImGUI component responsible for drawing the main editor menu bar and handling its actions.
Definition at line 21 of file EditorMenuBar.hpp.
|
inline |
Constructs the EditorMenuBar.
| vex::ImGUIWrapper& | imGUIWrapper - Reference to the ImGUI wrapper for rendering context. |
| vex::Editor& | editor - Reference to the main Editor instance to execute commands. |
Definition at line 28 of file EditorMenuBar.hpp.
|
inline |
Definition at line 29 of file EditorMenuBar.hpp.
| void EditorMenuBar::BuildDist | ( | ) |
Builds the project distribution package.
Definition at line 515 of file EditorMenuBar.cpp.
| void EditorMenuBar::DrawBar | ( | ) |
Draws the main menu bar and processes user input.
Definition at line 30 of file EditorMenuBar.cpp.
|
private |
Retrieves the name of the current project.
Definition at line 382 of file EditorMenuBar.cpp.
| void EditorMenuBar::NewScene | ( | ) |
Copies empty scene to assets folders and opens it.
Definition at line 653 of file EditorMenuBar.cpp.
| void EditorMenuBar::OpenEditorSettings | ( | ) |
Opens the editor settings window/menu.
Definition at line 216 of file EditorMenuBar.cpp.
| void EditorMenuBar::OpenProjectSelector | ( | ) |
Opens the project selector window.
Definition at line 186 of file EditorMenuBar.cpp.
| void EditorMenuBar::OpenProjectSettings | ( | ) |
Opens the project settings window/menu.
Definition at line 238 of file EditorMenuBar.cpp.
| void EditorMenuBar::OpenScene | ( | ) |
Handles the logic for opening an existing scene file.
Definition at line 260 of file EditorMenuBar.cpp.
| void EditorMenuBar::RunBuild | ( | bool | isDebug, |
| bool | runAfter = false ) |
Executes the project build process.
| bool | isDebug - True for a debug build, false for a release build. |
| bool | runAfter - True to run the built executable immediately after a successful build. |
Definition at line 400 of file EditorMenuBar.cpp.
| void EditorMenuBar::SaveSceneAs | ( | ) |
Saves the current scene to a new file path.
Definition at line 316 of file EditorMenuBar.cpp.
|
private |
Definition at line 66 of file EditorMenuBar.hpp.
|
private |
Definition at line 65 of file EditorMenuBar.hpp.
|
private |
Definition at line 67 of file EditorMenuBar.hpp.