Skip to content

Commit

Permalink
* Options: Allow old title logo to be shown.
Browse files Browse the repository at this point in the history
  • Loading branch information
iProgramMC committed Dec 26, 2023
1 parent aabfeec commit 2c84d27
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions source/client/gui/components/OptionList.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ void OptionList::initDefaultMenu()
OPTION(Boolean, m_bDontRenderGui, "Hide GUI");
OPTION(Boolean, m_bDynamicHand, "Dynamic hand movement");
OPTION(Boolean, m_bDebugText, "Debug text");
OPTION(Boolean, m_bOldTitleLogo, "Old title logo");
}

HEADER("Controls");
Expand Down
6 changes: 4 additions & 2 deletions source/client/gui/screens/StartMenuScreen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -537,8 +537,10 @@ void StartMenuScreen::render(int a, int b, float c)
titleYPos = 4;
}

//drawLegacyTitle()
draw3dTitle(c);
if (m_pMinecraft->getOptions()->m_bOldTitleLogo)
drawLegacyTitle();
else
draw3dTitle(c);

drawString(m_pFont, field_170, field_188, 58 + titleYPos, 0xFFCCCCCC);
drawString(m_pFont, field_154, field_16C, m_height - 10, 0x00FFFFFF);
Expand Down
4 changes: 4 additions & 0 deletions source/client/options/Options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ void Options::_initDefaultValues()
m_bBiomeColors = false;
m_bSplitControls = false;
m_bDynamicHand = false;
m_bOldTitleLogo = false;
field_19 = 1;

// Win32 key codes are being used by default
Expand Down Expand Up @@ -276,6 +277,8 @@ void Options::_load()
m_bAnaglyphs = readBool(value);
else if (key == "gfx_dynamichand")
m_bDynamicHand = readBool(value);
else if (key == "misc_oldtitle")
m_bOldTitleLogo = readBool(value);
else if (key == "info_debugtext")
m_bDebugText = readBool(value);
}
Expand Down Expand Up @@ -400,6 +403,7 @@ std::vector<std::string> Options::getOptionStrings()
SO("gfx_fancygrass", saveBool(m_bFancyGrass));
SO("gfx_biomecolors", saveBool(m_bBiomeColors));
SO("gfx_dynamichand", saveBool(m_bDynamicHand));
SO("misc_oldtitle", saveBool(m_bOldTitleLogo));
SO("info_debugtext", saveBool(m_bAutoJump));

return vec;
Expand Down
1 change: 1 addition & 0 deletions source/client/options/Options.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ class Options
bool m_bBiomeColors;
bool m_bSplitControls;
bool m_bDynamicHand;
bool m_bOldTitleLogo;

public:
struct Option
Expand Down

0 comments on commit 2c84d27

Please sign in to comment.