Skip to content

Commit

Permalink
Add optional timer prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
i2van committed Dec 13, 2024
1 parent b720927 commit caec9c5
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions Hourglass.linq
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ void Main()
// TODO: Specify your timers presets.
TimerPresets = new TimerPreset[]
{
new("Clue", "7h59"),
new("Recruit", "8h59"),
new("Clues", "23h59")
new("Clue", "7h59"),
new("Recruit", "8h59"),
new("Exchange", "23h59")
},

// TODO: Specify timer options: https://github.com/i2van/hourglass/blob/develop/Hourglass/Resources/Usage.txt
Expand All @@ -75,6 +75,12 @@ void Main()
-st on
""")),

// TODO: Use timer prefix.
UseTimerPrefix = false,

// TODO: Timer prefix.
TimerPrefix = "Arknights: ",

// TODO: Auto clear timers after successfully launching Hourglass.
AutoClear = true
}
Expand Down Expand Up @@ -244,7 +250,7 @@ void Main()

var hourglassCommandLine = args.StartsWith(TitleOption)
? $"{config.Options} {args}"
: $@"{config.Options} {TitleOption}""{((TabItem)tabControl.SelectedItem!).Header}"" {args}";
: $@"{config.Options} {TitleOption}""{(config.UseTimerPrefix ? config.TimerPrefix : string.Empty)}{((TabItem)tabControl.SelectedItem!).Header}"" {args}";

if(RunHourglass(hourglassCommandLine) && autoClearCheckBox.IsChecked == true)
{
Expand Down

0 comments on commit caec9c5

Please sign in to comment.