NANCY: Implement custom cursors

Added support for the two (four) custom cursor types.
It's unclear where exactly these get used, but it's most likely
in some puzzles.
This commit is contained in:
Kaloyan Chehlarski 2024-02-04 00:32:40 +01:00
parent 1357331fb0
commit fde77e4312
2 changed files with 12 additions and 4 deletions

View File

@ -316,10 +316,14 @@ void EventFlagsMultiHS::execute() {
break;
case kActionTrigger:
_hasHotspot = false;
EventFlags::execute();
finishExecution();
break;
if (_hoverCursor != CursorManager::kCustom1 && _hoverCursor != CursorManager::kCustom2) {
_hasHotspot = false;
EventFlags::execute();
finishExecution();
break;
} else {
_state = kRun;
}
}
}

View File

@ -51,6 +51,10 @@ public:
kRotateRight = 13, // Used in 360 scenes in nancy6 and up
kInvertedRotateRight = 14, // Used in 360 scenes with inverted rotation; nancy6 and up
kInvertedRotateLeft = 15, // Used in 360 scenes with inverted rotation; nancy6 and up
kCustom1 = 16, // Custom cursors change between games; Likely used in puzzles
kCustom1Hotspot = 17,
kCustom2 = 18,
kCustom2Hotspot = 19,
kNormalArrow,
kHotspotArrow
};