Hide the Enable Texture Animation checkbox in Video settings menu (quickfixes #1)

This commit is contained in:
Mikita Wiśniewski 2022-10-14 21:32:17 +07:00
parent db518187da
commit bb052b54fa
1 changed files with 4 additions and 0 deletions

View File

@ -530,11 +530,13 @@ void GUISettingsMenu::regenerateGui(v2u32 screensize)
rect += topleft_content + v2s32(80, 210);
Environment->addCheckBox(anisotropic, rect, this, GUI_ID_ANISOTROPIC_CB, narrow_to_wide(gettext("Anisotropic Filtering")).c_str());
}
/* TODO: make this not crash the game
{
core::rect<s32> rect(0, 0, 200, 30);
rect += topleft_content + v2s32(80, 240);
Environment->addCheckBox(texture_animation, rect, this, GUI_ID_TEXTUREANIM_CB, narrow_to_wide(gettext("Enable Texture Animation")).c_str());
}
*/
if (m_is_ingame) {
core::rect<s32> rect(0, 0, 550, 20);
rect += topleft_content + v2s32(0, 280);
@ -713,11 +715,13 @@ bool GUISettingsMenu::acceptInput()
if(e != NULL && e->getType() == gui::EGUIET_CHECK_BOX)
m_data.anisotropic_filter = ((gui::IGUICheckBox*)e)->isChecked();
}
/*
{
gui::IGUIElement *e = getElementFromId(GUI_ID_TEXTUREANIM_CB);
if (e != NULL && e->getType() == gui::EGUIET_CHECK_BOX)
m_data.texture_animation = ((gui::IGUICheckBox*)e)->isChecked();
}
*/
{
gui::IGUIElement *e = getElementFromId(GUI_ID_HOTBAR_CB);
if(e != NULL && e->getType() == gui::EGUIET_CHECK_BOX)