More GUI code moved to events, code now compiles but application doesn't run
This commit is contained in:
parent
3566b7e563
commit
b4c35124c3
37 changed files with 913 additions and 879 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue