More GUI code moved to events, code now compiles but application doesn't run

This commit is contained in:
Yousef Khadadeh 2026-03-30 17:05:24 +03:00
parent 3566b7e563
commit b4c35124c3
37 changed files with 913 additions and 879 deletions

View file

@ -4,14 +4,14 @@
namespace GUIStuff {
struct ColorPickerButtonData {
bool hasAlpha = false;
bool hasAlpha = true;
std::function<void()> onEdit;
};
template <typename T> class ColorPickerButton : public Element {
public:
ColorPickerButton(GUIManager& gui);
void layout(T* val, ColorPickerButtonData& d);
void layout(T* val, const ColorPickerButtonData& d);
private:
ColorPickerButtonData data;
bool isOpen = false;