Started work on ImGui abstraction for consistent theming across the editor

This commit is contained in:
Antoine Pilote
2023-09-17 23:51:12 -04:00
parent 4138e51c94
commit 7b78845082
4 changed files with 191 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
#include "UIDemoWindow.h"
#include "src/UI/ImUI.h"
float floatSlider = 0.6f;
bool checkbox = false;
void UIDemoWindow::Draw()
{
using namespace Nuake;
UI::BeginWindow("UI Demo");
{
UI::PrimaryButton("Primary Button");
UI::SecondaryButton("Secondary Button");
UI::FloatSlider("Float slider", floatSlider);
UI::CheckBox("Checkbox", checkbox);
}
UI::EndWindow();
}