mirror of
https://github.com/antopilo/Nuake.git
synced 2026-09-15 20:08:54 +03:00
20 lines
378 B
C++
20 lines
378 B
C++
#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();
|
|
} |