VEX Engine
Retro looking game engine made in vulkan mostly because i wanted to understand it better.
Loading...
Searching...
No Matches
EditorMenuBar Class Reference

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::ImGUIWrapperm_ImGUIWrapper
vex::Editorm_editor
std::vector< std::shared_ptr< BasicEditorWindow > > m_Windows

Detailed Description

ImGUI component responsible for drawing the main editor menu bar and handling its actions.

Definition at line 21 of file EditorMenuBar.hpp.

Constructor & Destructor Documentation

◆ EditorMenuBar()

EditorMenuBar::EditorMenuBar ( vex::ImGUIWrapper & imGUIWrapper,
vex::Editor & editor )
inline

Constructs the EditorMenuBar.

Parameters
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.

◆ ~EditorMenuBar()

EditorMenuBar::~EditorMenuBar ( )
inline

Definition at line 29 of file EditorMenuBar.hpp.

Member Function Documentation

◆ BuildDist()

void EditorMenuBar::BuildDist ( )

Builds the project distribution package.

Definition at line 515 of file EditorMenuBar.cpp.

◆ DrawBar()

void EditorMenuBar::DrawBar ( )

Draws the main menu bar and processes user input.

Definition at line 30 of file EditorMenuBar.cpp.

◆ GetProjectName()

std::string EditorMenuBar::GetProjectName ( )
private

Retrieves the name of the current project.

Returns
std::string - The project name.

Definition at line 382 of file EditorMenuBar.cpp.

◆ NewScene()

void EditorMenuBar::NewScene ( )

Copies empty scene to assets folders and opens it.

Definition at line 653 of file EditorMenuBar.cpp.

◆ OpenEditorSettings()

void EditorMenuBar::OpenEditorSettings ( )

Opens the editor settings window/menu.

Definition at line 216 of file EditorMenuBar.cpp.

◆ OpenProjectSelector()

void EditorMenuBar::OpenProjectSelector ( )

Opens the project selector window.

Definition at line 186 of file EditorMenuBar.cpp.

◆ OpenProjectSettings()

void EditorMenuBar::OpenProjectSettings ( )

Opens the project settings window/menu.

Definition at line 238 of file EditorMenuBar.cpp.

◆ OpenScene()

void EditorMenuBar::OpenScene ( )

Handles the logic for opening an existing scene file.

Definition at line 260 of file EditorMenuBar.cpp.

◆ RunBuild()

void EditorMenuBar::RunBuild ( bool isDebug,
bool runAfter = false )

Executes the project build process.

Parameters
boolisDebug - True for a debug build, false for a release build.
boolrunAfter - True to run the built executable immediately after a successful build.

Definition at line 400 of file EditorMenuBar.cpp.

◆ SaveSceneAs()

void EditorMenuBar::SaveSceneAs ( )

Saves the current scene to a new file path.

Definition at line 316 of file EditorMenuBar.cpp.

Member Data Documentation

◆ m_editor

vex::Editor& EditorMenuBar::m_editor
private

Definition at line 66 of file EditorMenuBar.hpp.

◆ m_ImGUIWrapper

vex::ImGUIWrapper& EditorMenuBar::m_ImGUIWrapper
private

Definition at line 65 of file EditorMenuBar.hpp.

◆ m_Windows

std::vector<std::shared_ptr<BasicEditorWindow> > EditorMenuBar::m_Windows
private

Definition at line 67 of file EditorMenuBar.hpp.


The documentation for this class was generated from the following files: