Skip to content

Commit bdc738f

Browse files
committed
why it hide again
1 parent fa88ead commit bdc738f

2 files changed

Lines changed: 12 additions & 5 deletions

File tree

src/hooks/PlayLayer/WhackAFace.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,16 @@ class $modify(WhackAFacePlayLayer, PlayLayer) {
5454
};
5555
};
5656

57+
void resetLevel() {
58+
PlayLayer::resetLevel();
59+
cursor::show();
60+
};
61+
62+
void resetLevelFromStart() {
63+
PlayLayer::resetLevelFromStart();
64+
cursor::show();
65+
};
66+
5767
void nextWhack() {
5868
log::trace("scheduling new whack btn");
5969
if (!m_hasCompletedLevel) scheduleOnce(schedule_selector(WhackAFacePlayLayer::doWhack), randng::get(15.f, 2.5f) * chanceToDelayPct(m_fields->chance));

src/util/Cursor.hpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,8 @@ namespace horrible {
44
namespace util {
55
// Cursor utils
66
namespace cursor {
7-
// Show the mouse cursor in-game
8-
void show();
9-
10-
// Optionally hide the mouse cursor in-game
11-
void hide(bool force = false);
7+
void show(); // Show the mouse cursor in-game
8+
void hide(bool force = false); // Optionally hide the mouse cursor in-game
129
};
1310
};
1411
};

0 commit comments

Comments
 (0)