mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
combine uinode actions callbacks sets & cleanup
This commit is contained in:
parent
f9bab5a5cf
commit
95721a6864
5 changed files with 53 additions and 31 deletions
|
|
@ -19,7 +19,7 @@ SelectBox::SelectBox(
|
|||
: Button(gui, selected.text, padding, nullptr, glm::vec2(contentWidth, -1)),
|
||||
options(std::move(options)) {
|
||||
|
||||
listenAction([this](GUI& gui) {
|
||||
listenClick([this](GUI& gui) {
|
||||
auto panel = std::make_shared<Panel>(gui, getSize());
|
||||
panel->setPos(calcPos() + glm::vec2(0, size.y));
|
||||
for (const auto& option : this->options) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue