From a7a002196c17b3d9bc6d0d2c226a9c26f7acd0c0 Mon Sep 17 00:00:00 2001 From: lisyarus Date: Mon, 19 Aug 2024 03:39:44 +0300 Subject: [PATCH] Wip --- source/application.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/source/application.cpp b/source/application.cpp index baea048..7450b3d 100644 --- a/source/application.cpp +++ b/source/application.cpp @@ -693,7 +693,7 @@ namespace gmtk { if (event.delta > 0) { - if (!selected_item_ && selected_ && !view_transition_) + if (selected_ && !view_transition_) { bool transitioned = false; @@ -788,6 +788,11 @@ namespace gmtk void on_event(app::key_event const & event) override { + if (event.down && event.key == app::keycode::F1) + { + for (auto type : card_type_values()) + map_.cards[type] += 10; + } if (event.down && event.key == app::keycode::F) {