content menu moved to xml (no icons yet)

This commit is contained in:
MihailRis
2024-04-18 22:15:23 +03:00
parent 49d57b307b
commit 64820020f8
14 changed files with 91 additions and 172 deletions
+1 -5
View File
@@ -214,11 +214,7 @@ static bool setattr(lua_State* L, gui::Menu* menu, const std::string& attr) {
return false;
if (attr == "page") {
auto page = lua_tostring(L, 4);
if (menu->has(page)) {
menu->setPage(page);
} else {
menu->setPage("404");
}
menu->setPage(page);
return true;
}
return false;