diff --git a/game/assets/gui/gui_custom.png b/game/assets/gui/gui_custom.png index 1315f75..7167a6a 100644 Binary files a/game/assets/gui/gui_custom.png and b/game/assets/gui/gui_custom.png differ diff --git a/source/client/gui/components/OptionList.cpp b/source/client/gui/components/OptionList.cpp index 641d8d6..0714175 100644 --- a/source/client/gui/components/OptionList.cpp +++ b/source/client/gui/components/OptionList.cpp @@ -195,9 +195,11 @@ bool OptionList::isSelectedItem(int index) void OptionList::drawOnOffSwitch(int x, int y, bool state, bool disabled) { + // Obs: The color setting that affected disabled items' texts will also affect this. + m_pMinecraft->m_pTextures->loadAndBindTexture("gui/gui_custom.png"); - blit(x, y, 0, state ? 18 : 0, C_ON_OFF_SWITCH_WIDTH, C_ON_OFF_SWITCH_HEIGHT, C_ON_OFF_SWITCH_WIDTH, C_ON_OFF_SWITCH_HEIGHT); + blit(x, y, 0, state ? 0 : 18, C_ON_OFF_SWITCH_WIDTH, C_ON_OFF_SWITCH_HEIGHT, C_ON_OFF_SWITCH_WIDTH, C_ON_OFF_SWITCH_HEIGHT); m_pMinecraft->m_pTextures->loadAndBindTexture("gui/gui.png");// bind the old texture back }