Minor - Improves scene editor and adds audio support - V13.1.0

Improves the scene editor by adding an inspector window to view and modify entity components.

Adds audio component support with basic playback controls integrated into the inspector.

Adds default audio files.
This commit is contained in:
2025-09-10 02:00:21 +02:00
parent 42c44b9ff1
commit 7d33e2da72
15 changed files with 504 additions and 337 deletions

View File

@@ -15,6 +15,7 @@
#include "render_texture_class.h"
#include "scene_manager.h"
#include "ecs/entity_manager.h"
class application_class;
class stats;
@@ -87,7 +88,7 @@ public:
void WidgetAddObject();
/**
* create a window to display the object list and their properties.
* create a window to display the object list and allow to add objects to the scene.
*/
void WidgetObjectWindow();
/**
@@ -124,6 +125,12 @@ public:
*/
bool ImGuiWidgetRenderer();
/**
* Create a window to display the inspector.
* This window shows the components of the selected entity and allows to edit them.
*/
void WidgetInspectorWindow();
/**
* set the Old scene window size.
* @param size
@@ -160,6 +167,7 @@ private:
std::shared_ptr<application_class> app_;
scene_manager* scene_manager_;
stats* stats_;
ecs::EntityManager* entity_manager_;
bool showObjectWindow;
bool showTerrainWindow;
@@ -168,6 +176,7 @@ private:
bool showEngineSettingsWindow;
bool showLogWindow;
bool showStatsWindow;
bool show_inspector_window_;
int m_SideCount = 0;
@@ -201,6 +210,8 @@ private:
// cpu information
std::string cpu_name_;
std::string version_driver_;
ecs::EntityID m_selected_entity_id = 0; // ID of the currently selected entity
};
#endif