aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client
diff options
context:
space:
mode:
authorVincent Zhang <73851560+bootsareme@users.noreply.github.com>2026-03-06 19:37:11 -0500
committerGitHub <noreply@github.com>2026-03-06 18:37:11 -0600
commitd4db0b947f3ae710bd53ba7bd5f7716a6b0ae272 (patch)
tree3591218f8739554d979d626fbf3b93200201063c /Minecraft.Client
parent48028145dcedd9ff48e8f38c98b8dde112960160 (diff)
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
Diffstat (limited to 'Minecraft.Client')
-rw-r--r--Minecraft.Client/Common/UI/UIScene_CreateWorldMenu.cpp10
1 files changed, 7 insertions, 3 deletions
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: