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();
|
|
} |