mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 11:31:49 +00:00
more xml in menu.cpp
This commit is contained in:
parent
0c0d850d5d
commit
8b8447e6e0
2 changed files with 9 additions and 8 deletions
|
|
@ -13,11 +13,9 @@
|
|||
using namespace gui;
|
||||
|
||||
std::shared_ptr<Button> guiutil::backButton(std::shared_ptr<PagesControl> menu) {
|
||||
return std::make_shared<Button>(
|
||||
langs::get(L"Back"), glm::vec4(10.f), [=](GUI*) {
|
||||
menu->back();
|
||||
}
|
||||
);
|
||||
return std::dynamic_pointer_cast<Button>(create(
|
||||
"<button padding='10' onclick='menu:back()'>@Back</button>"
|
||||
));
|
||||
}
|
||||
|
||||
std::shared_ptr<Button> guiutil::gotoButton(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue