mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-11 20:11:18 +03:00
* OptionList: Fix embarrassing flipped switch bug.
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user