more xml in menu.cpp

This commit is contained in:
MihailRis
2024-03-20 11:30:21 +03:00
parent 0c0d850d5d
commit 8b8447e6e0
2 changed files with 9 additions and 8 deletions
+3 -5
View File
@@ -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(