mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
page 404
This commit is contained in:
parent
ed6cb6a620
commit
4b6c61ad89
6 changed files with 20 additions and 4 deletions
|
|
@ -24,7 +24,11 @@ std::shared_ptr<Button> guiutil::gotoButton(
|
|||
) {
|
||||
text = langs::get(text, L"menu");
|
||||
return std::make_shared<Button>(text, glm::vec4(10.f), [=](GUI* gui) {
|
||||
menu->setPage(page);
|
||||
if (menu->has(page)) {
|
||||
menu->setPage(page);
|
||||
} else {
|
||||
menu->setPage("404");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue