Reworked ENTIRE UI (God help me) and cleaned up MyScreen.java (from 700 lines to 400)
This commit is contained in:
@@ -81,7 +81,7 @@ public class QuestsPanel {
|
||||
statusBar.padding(Insets.of(4));
|
||||
statusBar.verticalAlignment(VerticalAlignment.CENTER);
|
||||
statusBar.horizontalAlignment(HorizontalAlignment.LEFT);
|
||||
statusBar.surface(MyScreen.GLASS_PANEL);
|
||||
statusBar.surface(MainUI.GLASS_PANEL);
|
||||
|
||||
LabelComponent playtimeLabel = UIComponents.label(Component.literal(formatPlaytime(playtime)));
|
||||
playtimeLabel.color(Color.ofRgb(0xFFFFFF));
|
||||
@@ -112,7 +112,7 @@ public class QuestsPanel {
|
||||
|
||||
summaryRow.child(UIComponents.label(
|
||||
Component.literal("quests " + unlockedCount + "/" + quests.size())
|
||||
.withStyle(style -> style.withFont(new FontDescription.Resource(MyScreen.MC_FIVE))))
|
||||
.withStyle(style -> style.withFont(new FontDescription.Resource(MainUI.MC_FIVE))))
|
||||
.color(Color.ofRgb(0xFF5c5c66)));
|
||||
|
||||
content.child(summaryRow);
|
||||
@@ -201,7 +201,7 @@ public class QuestsPanel {
|
||||
textStack.verticalAlignment(VerticalAlignment.TOP);
|
||||
|
||||
var titleLabel = UIComponents.label(Component.literal(quest.title())
|
||||
.withStyle(style -> style.withFont(new FontDescription.Resource(MyScreen.MC_FIVE))))
|
||||
.withStyle(style -> style.withFont(new FontDescription.Resource(MainUI.MC_FIVE))))
|
||||
.color(Color.ofRgb(unlocked ? 0xFFFFFF : 0x797b86));
|
||||
textStack.child(titleLabel);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user