mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 03:51:50 +00:00
add updatefunc to slot, which will be emited every interaction with it
This commit is contained in:
parent
212c30c866
commit
3ac32b6696
3 changed files with 24 additions and 5 deletions
|
|
@ -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);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue