Skip to content

Commit 091f860

Browse files
committedAug 27, 2019
Change DebugUIVC initial values
These are starmunk's real values which are ideal for screenshots.
1 parent 961da00 commit 091f860

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed
 

‎Fabled/Sources/DebugUIViewController.swift

+11-11
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,25 @@ import Model
55
/// Class for quickly testing and iterating on UI. Only compiled and presented when the active compiler
66
/// flags `DEBUG` and `UIPREVIEW` are both set in Build Settings.
77
final class DebugUIViewController: DeclarativeViewController {
8-
private let currentGlory = State(initialValue: "123")
9-
private let playerRank = State(initialValue: GloryRank.heroic(.III))
8+
private let currentGlory = State(initialValue: "1045")
9+
private let playerRank = State(initialValue: GloryRank.brave(.III))
1010
private lazy var playerRankText = playerRank.binding.map { String(describing: $0) }
1111

12-
private let gloryToNextRank = State(initialValue: 33)
12+
private let gloryToNextRank = State(initialValue: 5)
1313
private let winsToNextRank = State<UInt>(initialValue: 1)
1414

15-
private let currentWinStreak = State<UInt>(initialValue: 5)
16-
private let matchesPlayedThisWeek = State(initialValue: 13)
17-
private let matchesWonThisWeek = State(initialValue: 8)
15+
private let currentWinStreak = State<UInt>(initialValue: 1)
16+
private let matchesPlayedThisWeek = State(initialValue: 2)
17+
private let matchesWonThisWeek = State(initialValue: 1)
1818

19-
private let matchesRemainingForWeeklyBonus = State(initialValue: 0)
19+
private let matchesRemainingForWeeklyBonus = State(initialValue: 1)
2020
private lazy var metWeeklyBonus = matchesRemainingForWeeklyBonus.binding.map { $0 == 0 }
2121
private let willRankUp = State(initialValue: true)
22-
private let gloryAtNextWeeklyReset = State(initialValue: 2187)
23-
private let optimisticGloryAtNextWeeklyReset = State(initialValue: 2135)
22+
private let gloryAtNextWeeklyReset = State(initialValue: 1253)
23+
private let optimisticGloryAtNextWeeklyReset = State(initialValue: 1253)
2424
private lazy var currentRankDecays = playerRank.binding.map { $0 >= .mythic(.I) }
2525

26-
private let winsToFabled = State(initialValue: "10")
26+
private let winsToFabled = State(initialValue: "9")
2727
private lazy var winsToFabledIsZero = winsToFabled.binding.map { Int($0) == 0 }
2828
private lazy var moreWinsText = winsToFabled.binding.map { " more win" + (Int($0) != 1 ? "s" : "") }
2929

@@ -36,7 +36,7 @@ final class DebugUIViewController: DeclarativeViewController {
3636

3737
//MARK: Player Name, Glory & Rank
3838

39-
Text("WeirdRituals")
39+
Text("starmunk")
4040
.font(Style.Font.NeueHaasGrotesk65Medium)
4141
.fontSize(36)
4242
.adjustsFontSizeRelativeToDisplay(.x375)

0 commit comments

Comments
 (0)
Please sign in to comment.