2021-08-15 16:34:36 +02:00
|
|
|
local Parent = require "scenes.battlesystem.choregraphy.qte.parent"
|
2021-05-08 18:39:40 +02:00
|
|
|
local SimplePrompt = Parent:extend()
|
|
|
|
|
|
|
|
function SimplePrompt:start()
|
|
|
|
self:setTimer(self.arguments.duration)
|
|
|
|
for i, keyData in ipairs(self.arguments.key) do
|
|
|
|
self.prompts:add(keyData[1], keyData[2])
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
function SimplePrompt:promptSuccess()
|
|
|
|
if (self.prompts:isOver()) then
|
|
|
|
self:success()
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
return SimplePrompt
|