From 2dfa9cfaec5e6e96c8193af5504ffd0b6a8e9a69 Mon Sep 17 00:00:00 2001 From: quou Date: Fri, 7 Feb 2025 00:27:35 +1100 Subject: ui int input --- ui.hpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ui.hpp') diff --git a/ui.hpp b/ui.hpp index 0ee811e..056e69a 100644 --- a/ui.hpp +++ b/ui.hpp @@ -234,6 +234,13 @@ struct UI { void set_val(float v); }; + struct Int_Input : Input { + int val; + Int_Input(UI* ui, Element* parent); + void on_message(const Message& m) override; + void set_val(int v); + }; + struct Slider : Element { Float_Input* input; float minval, maxval; -- cgit v1.2.3-54-g00ecf