* Options: Allow old title logo to be shown.

This commit is contained in:
iProgramInCpp
2023-12-26 22:10:15 +02:00
parent aabfeeca71
commit 2c84d2730c
4 changed files with 10 additions and 2 deletions

View File

@@ -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");

View File

@@ -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);

View File

@@ -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
@@ -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);
}
@@ -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;

View File

@@ -130,6 +130,7 @@ public:
bool m_bBiomeColors;
bool m_bSplitControls;
bool m_bDynamicHand;
bool m_bOldTitleLogo;
public:
struct Option