section and within annotations for ldoc
This commit is contained in:
@@ -1,10 +1,14 @@
|
||||
--- @section MinigameButtonMashWindow
|
||||
|
||||
--- Initializes button mash minigame state.
|
||||
--- @within MinigameButtonMashWindow
|
||||
-- @param params table Optional parameters for configuration.
|
||||
function MinigameButtonMashWindow.init(params)
|
||||
Context.minigame_button_mash = Minigame.configure_button_mash(params)
|
||||
end
|
||||
|
||||
--- Starts the button mash minigame.
|
||||
--- @within MinigameButtonMashWindow
|
||||
-- @param return_window string The window ID to return to after the minigame.
|
||||
-- @param[opt] params table Optional parameters for minigame configuration.
|
||||
function MinigameButtonMashWindow.start(return_window, params)
|
||||
@@ -14,6 +18,7 @@ function MinigameButtonMashWindow.start(return_window, params)
|
||||
end
|
||||
|
||||
--- Updates button mash minigame logic.
|
||||
--- @within MinigameButtonMashWindow
|
||||
function MinigameButtonMashWindow.update()
|
||||
local mg = Context.minigame_button_mash
|
||||
if Input.select() then
|
||||
@@ -40,6 +45,7 @@ function MinigameButtonMashWindow.update()
|
||||
end
|
||||
|
||||
--- Draws button mash minigame.
|
||||
--- @within MinigameButtonMashWindow
|
||||
function MinigameButtonMashWindow.draw()
|
||||
local mg = Context.minigame_button_mash
|
||||
if mg.return_window == "game" then
|
||||
|
||||
Reference in New Issue
Block a user