From d4db0b947f3ae710bd53ba7bd5f7716a6b0ae272 Mon Sep 17 00:00:00 2001 From: Vincent Zhang <73851560+bootsareme@users.noreply.github.com> Date: Fri, 6 Mar 2026 19:37:11 -0500 Subject: [PATCH] Add Adventure Mode as an option when creating world (#757) * per user config should be .gitignored * add comment surrounding gitignore update * make it wildcard * add fullscreen to launch option struct * remove redundant forward declaration and use fullscreen launch option in main * add adventure mode option as well as adjust cycling logic * Revert deleting *.user from end of .gitignore * rework comments --- .gitignore | 2 +- Minecraft.Client/Common/UI/UIScene_CreateWorldMenu.cpp | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index ef12716d..521f1d03 100644 --- a/.gitignore +++ b/.gitignore @@ -435,4 +435,4 @@ build/* Minecraft.Client/Saves/ # Visual Studio Per-User Config -*.user +*.user \ No newline at end of file diff --git a/Minecraft.Client/Common/UI/UIScene_CreateWorldMenu.cpp b/Minecraft.Client/Common/UI/UIScene_CreateWorldMenu.cpp index a77bbc39..67c0fd8c 100644 --- a/Minecraft.Client/Common/UI/UIScene_CreateWorldMenu.cpp +++ b/Minecraft.Client/Common/UI/UIScene_CreateWorldMenu.cpp @@ -461,16 +461,20 @@ void UIScene_CreateWorldMenu::handlePress(F64 controlId, F64 childId) case eControl_GameModeToggle: switch(m_iGameModeId) { - case 0: // Survival + case 0: // Creative m_buttonGamemode.setLabel(app.GetString(IDS_GAMEMODE_CREATIVE)); m_iGameModeId = GameType::CREATIVE->getId(); m_bGameModeCreative = true; break; - case 1: // Creative + case 1: // Adventure + m_buttonGamemode.setLabel(app.GetString(IDS_GAMEMODE_ADVENTURE)); + m_iGameModeId = GameType::ADVENTURE->getId(); + m_bGameModeCreative = false; + break; + case 2: // Survival m_buttonGamemode.setLabel(app.GetString(IDS_GAMEMODE_SURVIVAL)); m_iGameModeId = GameType::SURVIVAL->getId(); m_bGameModeCreative = false; - break; }; break; case eControl_MoreOptions: