mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-04-23 15:36:07 +00:00
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:
parent
48028145dc
commit
d4db0b947f
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -435,4 +435,4 @@ build/*
|
|||
Minecraft.Client/Saves/
|
||||
|
||||
# Visual Studio Per-User Config
|
||||
*.user
|
||||
*.user
|
||||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue