From 7eaec047d708e84a7c29dd9d70e306d90fac412d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Sat, 28 May 2022 22:56:35 +0800 Subject: update meta files for `love2d` and `lovr` --- meta/3rd/love2d/library/love.graphics.lua | 2 +- meta/3rd/love2d/library/love.window.lua | 2 +- meta/3rd/lovr/library/lovr.audio.lua | 2 +- meta/3rd/lovr/library/lovr.graphics.lua | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'meta') diff --git a/meta/3rd/love2d/library/love.graphics.lua b/meta/3rd/love2d/library/love.graphics.lua index 056cfef1..1528a181 100644 --- a/meta/3rd/love2d/library/love.graphics.lua +++ b/meta/3rd/love2d/library/love.graphics.lua @@ -569,7 +569,7 @@ function love.graphics.newFont(filename) end ---@overload fun(imageData: love.ImageData, flags: table):love.Image ---@overload fun(compressedImageData: love.CompressedImageData, flags: table):love.Image ---@param filename string # The filepath to the image file. ----@param flags {dpiscale: number, linear: boolean, mipmaps: boolean} # A table containing the following fields: +---@param flags? {dpiscale: number, linear: boolean, mipmaps: boolean} # A table containing the following fields: ---@return love.Image image # A new Image object which can be drawn on screen. function love.graphics.newImage(filename, flags) end diff --git a/meta/3rd/love2d/library/love.window.lua b/meta/3rd/love2d/library/love.window.lua index 0fd99213..0e9004d4 100644 --- a/meta/3rd/love2d/library/love.window.lua +++ b/meta/3rd/love2d/library/love.window.lua @@ -229,7 +229,7 @@ function love.window.setIcon(imagedata) end --- ---@param width number # Display width. ---@param height number # Display height. ----@param flags {fullscreen: boolean, fullscreentype: love.FullscreenType, vsync: boolean, msaa: number, stencil: boolean, depth: number, resizable: boolean, borderless: boolean, centered: boolean, display: number, minwidth: number, minheight: number, highdpi: boolean, x: number, y: number, usedpiscale: boolean, srgb: boolean} # The flags table with the options: +---@param flags? {fullscreen: boolean, fullscreentype: love.FullscreenType, vsync: boolean, msaa: number, stencil: boolean, depth: number, resizable: boolean, borderless: boolean, centered: boolean, display: number, minwidth: number, minheight: number, highdpi: boolean, x: number, y: number, usedpiscale: boolean, srgb: boolean} # The flags table with the options: ---@return boolean success # True if successful, false otherwise. function love.window.setMode(width, height, flags) end diff --git a/meta/3rd/lovr/library/lovr.audio.lua b/meta/3rd/lovr/library/lovr.audio.lua index baac445b..e948e0d4 100644 --- a/meta/3rd/lovr/library/lovr.audio.lua +++ b/meta/3rd/lovr/library/lovr.audio.lua @@ -186,7 +186,7 @@ function lovr.audio.isStarted(type) end ---@overload fun(blob: lovr.Blob, options: table):lovr.Source ---@overload fun(sound: lovr.Sound, options: table):lovr.Source ---@param filename string # The filename of the sound to load. ----@param options {decode: boolean, effects: table} # Optional options. +---@param options? {decode: boolean, effects: table} # Optional options. ---@return lovr.Source source # The new Source. function lovr.audio.newSource(filename, options) end diff --git a/meta/3rd/lovr/library/lovr.graphics.lua b/meta/3rd/lovr/library/lovr.graphics.lua index 42a859a5..658bf2b3 100644 --- a/meta/3rd/lovr/library/lovr.graphics.lua +++ b/meta/3rd/lovr/library/lovr.graphics.lua @@ -129,7 +129,7 @@ function lovr.graphics.compute(shader, x, y, z) end --- ---The window must be created before any `lovr.graphics` functions can be used. --- ----@param flags {width: number, height: number, fullscreen: boolean, resizable: boolean, msaa: number, title: string, icon: string, vsync: number} # Flags to customize the window's appearance and behavior. +---@param flags? {width: number, height: number, fullscreen: boolean, resizable: boolean, msaa: number, title: string, icon: string, vsync: number} # Flags to customize the window's appearance and behavior. function lovr.graphics.createWindow(flags) end --- -- cgit v1.2.3