Added debug sound button

This commit is contained in:
Antoine Pilote
2023-09-21 16:38:30 -04:00
parent 2efb2febac
commit b1764c3fcc

View File

@@ -47,6 +47,7 @@
#include <dependencies/glfw/include/GLFW/glfw3.h>
#include <src/Rendering/Buffers/Framebuffer.h>
#include "UIDemoWindow.h"
#include <src/Audio/AudioManager.h>
namespace Nuake {
Ref<UI::UserInterface> userInterface;
@@ -114,6 +115,13 @@ namespace Nuake {
ImGui::SameLine();
if (ImGui::Button(ICON_FA_MUSIC, ImVec2(30, 30)))
{
Nuake::AudioManager::Get().QueueWavAudio("jump.wav");
}
ImGui::SameLine();
ImGui::Dummy(ImVec2(ImGui::GetContentRegionAvail().x - 120, 30));
ImGui::SameLine();