From 3b53d62ca18db3e52b9d4bda565f8ebda758840a Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Sun, 18 Jul 2021 19:17:56 +0200 Subject: [PATCH] feat: add direction button to qte --- .../fighters/systems/choregraphy/qte/prompts/button.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sonic-radiance.love/scenes/battlesystem/controllers/fighters/systems/choregraphy/qte/prompts/button.lua b/sonic-radiance.love/scenes/battlesystem/controllers/fighters/systems/choregraphy/qte/prompts/button.lua index b2477b9..a21d272 100644 --- a/sonic-radiance.love/scenes/battlesystem/controllers/fighters/systems/choregraphy/qte/prompts/button.lua +++ b/sonic-radiance.love/scenes/battlesystem/controllers/fighters/systems/choregraphy/qte/prompts/button.lua @@ -2,7 +2,7 @@ local Button = Object:extend() local ButtonCircle = Object:extend() local TweenManager = require "birb.classes.time" -local keys = {"A", "B", "C"} +local keys = {"A", "B", "C", "select", "up", "down", "left", "right"} local BTN_SIZE = 21 local CANVAS_SIZE = 21+2 local SHAKETIME = 0.02 @@ -40,7 +40,7 @@ function Button:getFrame() return i end end - error("Non existing key " .. self.keys) + error("Non existing key " .. self.key) end function Button:update(dt, isFirst)