mirror of
https://github.com/xiaozhou233/OrangeX-Client.git
synced 2026-12-05 13:05:52 +08:00
Fix: ClickGUI option component offset not synced after layout update
This commit is contained in:
1 parent
7a648482ed
commit
7669f995c5
1 file changed
+6
+6
@@ -61,8 +61,11 @@ public class ModuleButton extends Component {
|
||||
);
|
||||
|
||||
if (expanded) {
|
||||
int optionY = 20;
|
||||
for (OptionComponent option : options) {
|
||||
option.setOffsetY(getOffsetY() + optionY);
|
||||
option.drawScreen(mouseX, mouseY, partialTicks);
|
||||
optionY += 18;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -80,8 +83,11 @@ public class ModuleButton extends Component {
|
||||
}
|
||||
|
||||
if (expanded) {
|
||||
int optionY = 20;
|
||||
for (OptionComponent option : options) {
|
||||
option.setOffsetY(getOffsetY() + optionY);
|
||||
option.mouseClicked(mouseX, mouseY, mouseButton);
|
||||
optionY += 18;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user