mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 19:11:50 +00:00
wip
This commit is contained in:
parent
5bc79c8a77
commit
793fd82b90
3 changed files with 31 additions and 7 deletions
|
|
@ -362,9 +362,17 @@ void create_new_world_panel(Engine* engine) {
|
|||
auto seedstr = std::to_wstring(randU64());
|
||||
auto seedInput = std::make_shared<TextBox>(seedstr, glm::vec4(6.0f));
|
||||
panel->add(seedInput);
|
||||
|
||||
|
||||
panel->add(guiutil::gotoButton(langs::get(L"World generator", L"world"), "world_generators", engine->getGUI()->getMenu()));
|
||||
|
||||
panel->add(menus::create_button(L"Content", glm::vec4(10), glm::vec4(1), [=](GUI* gui) {
|
||||
engine->loadAllPacks();
|
||||
auto panel = menus::create_packs_panel(engine->getContentPacks(), engine, false, nullptr, nullptr);
|
||||
auto menu = gui->getMenu();
|
||||
menu->addPage("content-packs", panel);
|
||||
menu->setPage("content-packs");
|
||||
}));
|
||||
|
||||
panel->add(menus::create_button(L"Create World", glm::vec4(10), glm::vec4(1, 20, 1, 1),
|
||||
[=](GUI*) {
|
||||
if (!nameInput->validate())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue