Skip to content

Commit efd42ed

Browse files
committed
fix: don't draw border for left-hand region if chapter panel expanded
Better with translucent chapter panels
1 parent d2d2925 commit efd42ed

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

common/src/main/java/dev/ftb/mods/ftbquests/client/gui/quests/QuestScreen.java

+4-2
Original file line numberDiff line numberDiff line change
@@ -649,8 +649,10 @@ public void drawBackground(GuiGraphics graphics, Theme theme, int x, int y, int
649649
Color4I borderColor = ThemeProperties.WIDGET_BORDER.get(selectedChapter);
650650
Color4I backgroundColor = ThemeProperties.WIDGET_BACKGROUND.get(selectedChapter);
651651

652-
borderColor.draw(graphics, x + pw - 1, y + 1, 1, h - 2);
653-
backgroundColor.draw(graphics, x + 1, y + 1, pw - 2, h - 2);
652+
if (!chapterPanel.expanded) {
653+
borderColor.draw(graphics, x + pw - 1, y + 1, 1, h - 2);
654+
backgroundColor.draw(graphics, x + 1, y + 1, pw - 2, h - 2);
655+
}
654656

655657
borderColor.draw(graphics, x + w - pw, y + 1, 1, h - 2);
656658
backgroundColor.draw(graphics, x + w - pw + 1, y + 1, pw - 2, h - 2);

0 commit comments

Comments
 (0)