diff options
| author | Vincent Zhang <73851560+bootsareme@users.noreply.github.com> | 2026-03-06 19:37:11 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-06 18:37:11 -0600 |
| commit | d4db0b947f3ae710bd53ba7bd5f7716a6b0ae272 (patch) | |
| tree | 3591218f8739554d979d626fbf3b93200201063c | |
| parent | 48028145dcedd9ff48e8f38c98b8dde112960160 (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
| -rw-r--r-- | .gitignore | 2 | ||||
| -rw-r--r-- | Minecraft.Client/Common/UI/UIScene_CreateWorldMenu.cpp | 10 |
2 files changed, 8 insertions, 4 deletions
@@ -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: |
