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
This commit is contained in:
Vincent Zhang
2026-03-06 19:37:11 -05:00
committed by GitHub
parent 48028145dc
commit d4db0b947f
2 changed files with 8 additions and 4 deletions

2
.gitignore vendored
View File

@@ -435,4 +435,4 @@ build/*
Minecraft.Client/Saves/ Minecraft.Client/Saves/
# Visual Studio Per-User Config # Visual Studio Per-User Config
*.user *.user

View File

@@ -461,16 +461,20 @@ void UIScene_CreateWorldMenu::handlePress(F64 controlId, F64 childId)
case eControl_GameModeToggle: case eControl_GameModeToggle:
switch(m_iGameModeId) switch(m_iGameModeId)
{ {
case 0: // Survival case 0: // Creative
m_buttonGamemode.setLabel(app.GetString(IDS_GAMEMODE_CREATIVE)); m_buttonGamemode.setLabel(app.GetString(IDS_GAMEMODE_CREATIVE));
m_iGameModeId = GameType::CREATIVE->getId(); m_iGameModeId = GameType::CREATIVE->getId();
m_bGameModeCreative = true; m_bGameModeCreative = true;
break; 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_buttonGamemode.setLabel(app.GetString(IDS_GAMEMODE_SURVIVAL));
m_iGameModeId = GameType::SURVIVAL->getId(); m_iGameModeId = GameType::SURVIVAL->getId();
m_bGameModeCreative = false; m_bGameModeCreative = false;
break;
}; };
break; break;
case eControl_MoreOptions: case eControl_MoreOptions: