mirror of
https://github.com/xiaozhou233/OrangeX-Client.git
synced 2026-12-05 21:15:53 +08:00
Fix: Add green background for enabled modules in ClickGUI
This commit is contained in:
1 parent
bd998b2a92
commit
c8be55024c
1 file changed
+5
+5
@@ -9,6 +9,7 @@ import cn.xiaozhou233.orangex.ui.clickgui.component.option.KeybindComponent;
|
||||
import cn.xiaozhou233.orangex.ui.clickgui.component.option.OptionComponent;
|
||||
import cn.xiaozhou233.orangex.ui.clickgui.component.option.OptionComponentFactory;
|
||||
import lombok.Getter;
|
||||
import net.minecraft.client.gui.Gui;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
@@ -49,6 +50,10 @@ public class ModuleButton extends Component {
|
||||
|
||||
@Override
|
||||
public void drawScreen(int mouseX, int mouseY, float partialTicks) {
|
||||
if (module.isEnabled()) {
|
||||
Gui.drawRect(getX(), getY(), getX() + width, getY() + height, 0xff1a4a2a);
|
||||
}
|
||||
|
||||
int color = module.isEnabled()
|
||||
? 0xff55ffff
|
||||
: 0xffffffff;
|
||||
|
||||
Reference in new issue
Block a user