Refactor, GUI::storage (map for direct access to panels)

This commit is contained in:
MihailRis
2023-11-17 14:26:54 +03:00
parent 4e1f19c911
commit 6392f63604
10 changed files with 75 additions and 54 deletions
+2 -1
View File
@@ -80,8 +80,9 @@ void Button::mouseRelease(GUI* gui, int x, int y) {
}
}
void Button::listenAction(onaction action) {
Button* Button::listenAction(onaction action) {
actions.push_back(action);
return this;
}
TextBox::TextBox(wstring placeholder, vec4 padding)