Skip to content

Commit

Permalink
fix: dim connection lines for unavailable quests
Browse files Browse the repository at this point in the history
(used to work this way, but stopped recently due to themability commit)

FTBTeam/FTB-Mods-Issues#1183
  • Loading branch information
desht committed May 28, 2024
1 parent 38da3a9 commit 03ad4f5
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,10 @@ public void drawOffsetBackground(GuiGraphics graphics, Theme theme, int x, int y
Color4I c = complete ?
ThemeProperties.DEPENDENCY_LINE_COMPLETED_COLOR.get(questScreen.selectedChapter) :
ThemeProperties.DEPENDENCY_LINE_UNCOMPLETED_COLOR.get(questScreen.selectedChapter);
if (unavailable || qb.quest.getProgressionMode() == ProgressionMode.FLEXIBLE && !questScreen.file.selfTeamData.areDependenciesComplete(qb.quest)) {
// dim connection lines for unavailable quests
c = c.withAlpha(Math.max(30, c.alphai() / 2));
}

for (QuestButton button : qb.getDependencies()) {
if (button.shouldDraw() && button.quest != selectedQuest && qb.quest != selectedQuest && !button.quest.shouldHideDependentLines()) {
Expand Down

0 comments on commit 03ad4f5

Please sign in to comment.