add updatefunc to slot, which will be emited every interaction with it
This commit is contained in:
@@ -43,6 +43,7 @@ struct SlotLayout {
|
||||
glm::vec2 position;
|
||||
bool background;
|
||||
bool itemSource;
|
||||
slotcallback updateFunc;
|
||||
slotcallback shareFunc;
|
||||
slotcallback rightClick;
|
||||
int padding = 0;
|
||||
@@ -51,6 +52,7 @@ struct SlotLayout {
|
||||
glm::vec2 position,
|
||||
bool background,
|
||||
bool itemSource,
|
||||
slotcallback updateFunc,
|
||||
slotcallback shareFunc,
|
||||
slotcallback rightClick);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user