Can now skip the cutscene by clicking on it.

This commit is contained in:
Zed A. Shaw 2025-11-14 01:58:09 -05:00
parent 8fdaadaf12
commit d418f073f0
2 changed files with 9 additions and 15 deletions

View file

@ -85,20 +85,9 @@ namespace storyboard {
}
}
bool UI::mouse(float x, float y, guecs::Modifiers mods) {
auto& cell = $ui.cell_for($zoom_target);
$zoom_target = *$ui.$parser.hit(x, y);
if($zoom_target == "a") {
reset();
} else {
$camera.position(cell.mid_x, cell.mid_y);
zoom($zoom_target);
$camera.play();
}
return $ui.mouse(x, y, mods);
bool UI::mouse(float, float, guecs::Modifiers) {
$audio->stop();
return true;
}
void UI::zoom(const std::string &cell_name) {