Buttons now offset to the right when hovered.

This commit is contained in:
bconlon 2020-07-06 08:21:23 -07:00
parent 3f22424f77
commit 94a5d5b2bc

View file

@ -487,7 +487,25 @@ public class AetherMainMenu extends GuiMainMenu
for (int j = 0; j < this.buttonList.size(); ++j)
{
((GuiButton)this.buttonList.get(j)).drawButton(this.mc, p_73863_1_, p_73863_2_);
((GuiButton) this.buttonList.get(j)).drawButton(this.mc, p_73863_1_, p_73863_2_);
if ((this.buttonList.get(j)).getClass() == AetherMainMenuButton.class)
{
if (((GuiButton) this.buttonList.get(j)).func_146115_a())
{
if (((GuiButton) this.buttonList.get(j)).xPosition < 45)
{
((GuiButton) this.buttonList.get(j)).xPosition = ((GuiButton) this.buttonList.get(j)).xPosition + 4;
}
}
else
{
if (((GuiButton) this.buttonList.get(j)).xPosition > 30)
{
((GuiButton) this.buttonList.get(j)).xPosition = ((GuiButton) this.buttonList.get(j)).xPosition - 4;
}
}
}
}
for (int j = 0; j < this.labelList.size(); ++j)