summaryrefslogtreecommitdiff
path: root/src/koopatlas
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/koopatlas/hud.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/koopatlas/hud.cpp b/src/koopatlas/hud.cpp
index 592d3b2..ff9a0e2 100644
--- a/src/koopatlas/hud.cpp
+++ b/src/koopatlas/hud.cpp
@@ -183,10 +183,14 @@ int dWMHud_c::onDraw() {
void dWMHud_c::hideAll() {
- layout.enableNonLoopAnim(HIDE_ALL);
+ if (!layout.isAnimOn(HIDE_ALL))
+ layout.enableNonLoopAnim(HIDE_ALL);
+ layout.grpHandlers[HIDE_ALL].frameCtrl.flags = 1; // NO_LOOP
}
void dWMHud_c::unhideAll() {
- layout.enableNonLoopAnim(UNHIDE_ALL);
+ if (!layout.isAnimOn(HIDE_ALL))
+ layout.enableNonLoopAnim(HIDE_ALL, true);
+ layout.grpHandlers[HIDE_ALL].frameCtrl.flags = 3; // NO_LOOP | REVERSE
}