[LuaDoc] Title is optional for alert/confirm

This commit is contained in:
Celtic Minstrel 2023-02-19 19:41:09 -05:00
parent dc75045eea
commit a38e67da45

View file

@ -3,7 +3,7 @@
print("Loading GUI module...")
---Show a basic alert dialog with a single button
---@param title string Dialog title string
---@param title? string Dialog title string
---@param msg string Detail message
function gui.alert(title, msg)
if not msg then
@ -14,7 +14,7 @@ function gui.alert(title, msg)
end
---Show a basic prompt dialog with two buttons
---@param title string Dialog title string
---@param title? string Dialog title string
---@param msg string Detail message
---@return boolean #True if OK or Yes was clicked
function gui.confirm(title, msg)