mirror of
https://github.com/xiaozhou233/OrangeX-Client.git
synced 2026-12-05 13:05:52 +08:00
[BugFix] The background of the value is not rendered
This commit is contained in:
1 parent
949109b8b4
commit
b9da2830fc
1 file changed
+11
-2
@@ -34,11 +34,17 @@ public class Panel extends Component {
|
||||
double ay = getAbsoluteY();
|
||||
|
||||
GuiRenderUtils.enableBlend();
|
||||
|
||||
// header
|
||||
GuiRenderUtils.drawRect(ax, ay, width, headerHeight, new Color(32, 32, 32, 255).getRGB());
|
||||
GuiRenderUtils.drawCenteredString(title, ax + width / 2, ay + 5, new Color(255, 255, 255, 255).getRGB());
|
||||
GuiRenderUtils.disableBlend();
|
||||
|
||||
if (!open) return;
|
||||
if (!open) {
|
||||
GuiRenderUtils.disableBlend();
|
||||
return;
|
||||
}
|
||||
|
||||
GuiRenderUtils.drawRect(ax, ay + headerHeight, width, height - headerHeight, new Color(22, 22, 22, 230).getRGB());
|
||||
|
||||
double offsetY = headerHeight;
|
||||
|
||||
@@ -51,8 +57,11 @@ public class Panel extends Component {
|
||||
}
|
||||
|
||||
this.height = offsetY;
|
||||
|
||||
GuiRenderUtils.disableBlend();
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void update(int mouseX, int mouseY) {
|
||||
if (dragging) {
|
||||
|
||||
Reference in new issue
Block a user