summaryrefslogtreecommitdiff
path: root/meta/3rd/love2d/library/love.window.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-05-31 01:03:33 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-05-31 01:03:33 +0800
commit805f972c424805c361a7cc12d1752c7a23d533f6 (patch)
tree6b2f078a3ebd05ed14066b65adf7772d1f3c5536 /meta/3rd/love2d/library/love.window.lua
parent7162bc37691916125ba5065c476c866693a39216 (diff)
downloadlua-language-server-805f972c424805c361a7cc12d1752c7a23d533f6.zip
update API for `love2d` and `lovr`
Diffstat (limited to 'meta/3rd/love2d/library/love.window.lua')
-rw-r--r--meta/3rd/love2d/library/love.window.lua24
1 files changed, 12 insertions, 12 deletions
diff --git a/meta/3rd/love2d/library/love.window.lua b/meta/3rd/love2d/library/love.window.lua
index 0e9004d4..9722af3b 100644
--- a/meta/3rd/love2d/library/love.window.lua
+++ b/meta/3rd/love2d/library/love.window.lua
@@ -258,7 +258,7 @@ function love.window.setVSync(vsync) end
---
---Displays a message box dialog above the love window. The message box contains a title, optional text, and buttons.
---
----@overload fun(title: string, message: string, buttonlist: table, type: love.MessageBoxType, attachtowindow: boolean):number
+---@overload fun(title: string, message: string, buttonlist: table, type?: love.MessageBoxType, attachtowindow?: boolean):number
---@param title string # The title of the message box.
---@param message string # The text inside the message box.
---@param type? love.MessageBoxType # The type of the message box.
@@ -300,23 +300,23 @@ function love.window.updateMode(width, height, settings) end
---
---Orientation cannot be determined.
---
----| '"unknown"'
+---| "unknown"
---
---Landscape orientation.
---
----| '"landscape"'
+---| "landscape"
---
---Landscape orientation (flipped).
---
----| '"landscapeflipped"'
+---| "landscapeflipped"
---
---Portrait orientation.
---
----| '"portrait"'
+---| "portrait"
---
---Portrait orientation (flipped).
---
----| '"portraitflipped"'
+---| "portraitflipped"
---
---Types of fullscreen modes.
@@ -325,15 +325,15 @@ function love.window.updateMode(width, height, settings) end
---
---Sometimes known as borderless fullscreen windowed mode. A borderless screen-sized window is created which sits on top of all desktop UI elements. The window is automatically resized to match the dimensions of the desktop, and its size cannot be changed.
---
----| '"desktop"'
+---| "desktop"
---
---Standard exclusive-fullscreen mode. Changes the display mode (actual resolution) of the monitor.
---
----| '"exclusive"'
+---| "exclusive"
---
---Standard exclusive-fullscreen mode. Changes the display mode (actual resolution) of the monitor.
---
----| '"normal"'
+---| "normal"
---
---Types of message box dialogs. Different types may have slightly different looks.
@@ -342,12 +342,12 @@ function love.window.updateMode(width, height, settings) end
---
---Informational dialog.
---
----| '"info"'
+---| "info"
---
---Warning dialog.
---
----| '"warning"'
+---| "warning"
---
---Error dialog.
---
----| '"error"'
+---| "error"