From ba7b4ce9775a427670e987f91fc2fa209527f41f Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Sun, 25 Apr 2021 16:28:31 +0200 Subject: [PATCH] feat: add prompt system --- sonic-radiance.love/assets/gui/qtebtn.png | Bin 1778 -> 1778 bytes .../game/modules/tweenmanager/init.lua | 2 +- .../systems/choregraphy/qte/parent.lua | 33 ++++++- .../choregraphy/qte/prompts/button.lua | 91 ++++++++++++++++++ .../systems/choregraphy/qte/prompts/init.lua | 60 ++++++++++++ 5 files changed, 182 insertions(+), 4 deletions(-) create mode 100644 sonic-radiance.love/scenes/battlesystem/controllers/fighters/systems/choregraphy/qte/prompts/button.lua create mode 100644 sonic-radiance.love/scenes/battlesystem/controllers/fighters/systems/choregraphy/qte/prompts/init.lua diff --git a/sonic-radiance.love/assets/gui/qtebtn.png b/sonic-radiance.love/assets/gui/qtebtn.png index 002e048f92b84f2aef46f267f77e4c37bbb3a6f9..5336ab326fbf8fe4db6b52c0051749a07cdfc96d 100644 GIT binary patch delta 20 ccmeyw`-ykMdq#F{emP~n0M5 #self.list) +end + +function QtePrompts:draw(x, y) + local SIZE = 20 + for i, button in ipairs(self.list) do + button:draw(x + (SIZE*(i-1)) - ((SIZE/2)*(#self.list-1)), y, (i == self.current)) + end +end + +return QtePrompts \ No newline at end of file