This commit is contained in:
2025-05-06 22:43:25 +02:00
parent 90f71c5c56
commit 51a48175fa
8 changed files with 153 additions and 37 deletions

View File

@@ -3,7 +3,7 @@
---@param index number
---@param name string
---@param iconTexture string
---@param iconTexture string?
---@param body string
---@return number newIndex
---Changes the name, icon, and/or body of a macro. After patch 4.3 then the numeric 'icon' argument has been replaced by 'iconTexture'. Furthermore, the function always prepend 'Interface\Icons' to the 'iconTexture' string.

View File

@@ -1,24 +1,22 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
---@alias actionType
---| "companion"
---| "equipmentset"
---| "flyout"
---| "item"
---| "macro"
---| "spell"
---@alias actionSubType
---| "CRITTER"
---| "MOUNT"
---| "spell"
---@param slot number
---@return spell type
---@return companion
---@return equipmentset
---@return flyout
---@return item
---@return macro
---@return spell
---@return spell id
---@return companion
---@return equipmentset
---@return item
---@return macro
---@return spell
---@return id subType
---@return id CRITTER
---@return id MOUNT
---@return id spell
---@return string spellID
---@return actionType #type
---@return string|number #id
---@return actionSubType #subType
---@return string #spellID
---Returns information about an action slot
function GetActionInfo(slot) end

View File

@@ -4,5 +4,5 @@
---@param character string
---@param index number
---@return number enabled
---Queries whether an addon is currently enabled. This may differ from what addons are currently loaded, especially if changes have been made and the UI has not yet been reloaded.
---Queries whether an addon is currently enabled. This may differ from what addons are currently loaded, especially if changes have been made and the UI has not yet been Daved.
function GetAddOnEnableState(character, index) end

View File

@@ -1,10 +1,10 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
---@param index number
---@param name string
---@return string name
---@return string texture
---@return string body
---Returns information about a macro
function GetMacroInfo(index, name) end
---@overload fun(index: number): string
function GetMacroInfo(name) end

View File

@@ -1,18 +1,16 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
---@param index number
---@param bookType spell
---@param pet
---@param spell
---@param name string
---@param id number
---@return string name
---@return string rank
---@return string icon
---@return number castingTime
---@return number minRange
---@return number maxRange
---@return number spellID
---@return string #name
---@return string #rank
---@return string #icon
---@return number #castingTime
---@return number #minRange
---@return number #maxRange
---@return number #spellID
---Returns information about a spell. As of 4.1, this function should always return valid data for a spell if the spell is in the player's spellbook (by name or index) or if requested by spell id. When in doubt, if the player does not have the spell in their spellbook, use the numeric id to access its information.
function GetSpellInfo(index, bookType, pet, spell, name, id) end
---@overload fun(index: number, bookType: string): string, string, string, number, number, number, number
---@overload fun(name: string): string, string, string, number, number, number, number
---@overload fun(spellID: number): string, string, string, number, number, number, number
function GetSpellInfo(id) end

View File

@@ -1,5 +1,5 @@
---@diagnostic disable: missing-return, lowercase-global
---@meta
---Reloads the user interface. Saved variables are written to disk, the default UI is reloaded, and all enabled non-LoadOnDemand addons are loaded, including any addons previously disabled which were enabled during the session (see EnableAddOn() et al).
---Reloads the user interface. Saved variables are written to disk, the default UI is Daved, and all enabled non-LoadOnDemand addons are loaded, including any addons previously disabled which were enabled during the session (see EnableAddOn() et al).
function ReloadUI() end

View File

@@ -3,6 +3,6 @@
---@param func string
---@param hookfunc function
---Add a function to be called after execution of a secure function. Allows one to "post-hook" a secure function without tainting the original. The original function will still be called, but the function supplied will be called after the original, with the same arguments. Return values from the supplied function are discarded. Note that there is no API to remove a hook from a function: any hooks applied will remain in place until the UI is reloaded. Only allows hooking of functions named by a global variable; to hook a script handler on a Frame object, see Frame:HookScript().
---Add a function to be called after execution of a secure function. Allows one to "post-hook" a secure function without tainting the original. The original function will still be called, but the function supplied will be called after the original, with the same arguments. Return values from the supplied function are discarded. Note that there is no API to remove a hook from a function: any hooks applied will remain in place until the UI is Daved. Only allows hooking of functions named by a global variable; to hook a script handler on a Frame object, see Frame:HookScript().
---@overload fun(table: table, function: string, hookfunc: function): void
function hooksecurefunc(func, hookfunc) end