From 81872b22f6014ad2e4b7f0f695f5449f75c53774 Mon Sep 17 00:00:00 2001 From: Mar Alegre Date: Sun, 15 Nov 2020 22:22:57 -0500 Subject: [PATCH] bugfixes to outer wilds stopwatch --- lib/Stopwatch.ahk | 6 +++--- src/Outer_Wilds.ahk | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/Stopwatch.ahk b/lib/Stopwatch.ahk index e2d426d..882be62 100644 --- a/lib/Stopwatch.ahk +++ b/lib/Stopwatch.ahk @@ -43,9 +43,9 @@ StopwatchReset() { StopwatchShow() { Global StopwatchTime, StopwatchHidden - Minutes := Format("{:02}", StopwatchTime // 2) + Minutes := Format("{:02}", StopwatchTime // 60) Seconds := Format("{:02}", Mod(StopwatchTime, 60)) - GuiControl, Text, MyGuiText, %Minutes%:%Seconds% + GuiControl, Text, StopwatchText, %Minutes%:%Seconds% Gui, Show, NoActivate, StopwatchGui StopwatchHidden = 0 } @@ -53,7 +53,7 @@ StopwatchShow() { StopwatchHide() { Global StopwatchHidden StopwatchStop() - Gui, Hide, , StopwatchGui + Gui, Hide StopwatchHidden = 1 } diff --git a/src/Outer_Wilds.ahk b/src/Outer_Wilds.ahk index 3fb5e57..ca9a617 100644 --- a/src/Outer_Wilds.ahk +++ b/src/Outer_Wilds.ahk @@ -27,7 +27,7 @@ Gui, Font, s20 CWhite Gui, Color, Black Gui, Add, Text, vStopwatchText +Center, 00:00 Gui, Show, NoActivate x0 y0, StopwatchGui -WinSet, TransColor, Black 150, StopwatchGui +WinSet, TransColor, Black 100, StopwatchGui StopwatchHide() ; Only do hotkeys if relevant window is active