Skip to content

Commit

Permalink
Add various missing fields (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
aquietone authored Jan 27, 2024
1 parent 8c2b41f commit dac979a
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 2 deletions.
2 changes: 1 addition & 1 deletion imgui/imgui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2139,7 +2139,7 @@ function ImGui.EndDragDropSource() end
function ImGui.BeginDragDropTarget() end

-- accept contents of a given type. If ImGuiDragDropFlags_AcceptBeforeDelivery is set you can peek into the payload before the mouse button is released.
---@return userdata #LuaImGuiPayload
---@return ImGuiDragDropPayload #The content being dragged
function ImGui.AcceptDragDropPayload(label) end

-- only call EndDragDropTarget() if BeginDragDropTarget() returns true!
Expand Down
3 changes: 3 additions & 0 deletions imgui/imgui_userdata.lua
Original file line number Diff line number Diff line change
Expand Up @@ -582,3 +582,6 @@ function ImGuiViewport:GetCenter() end

---@return ImVec2
function ImGuiViewport:GetWorkCenter() end

---@class ImGuiDragDropPayload
---@field public Data any
9 changes: 8 additions & 1 deletion mq/datatype/_character.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
---@field public CareerFavor MQFloat #Career favor/tribute
---@field public Cash MQFloat #Total cash on your character, expressed in coppers (eg. if you are carrying 100pp, Cash will return 100000)
---@field public CashBank MQFloat #Total cash in your bank, expressed in coppers
---@field public CastTimeLeft timestamp #Returns the remaining cast time on the spell being cast
---@field public CHA MQFloat #Character Charisma
---@field public Charmed MQString #Returns the name of the first charm spell on the character
---@field public Chronobines MQFloat #Chronobines on your character
Expand All @@ -41,6 +42,7 @@
---@field public CopperBank MQFloat #Copper in bank
---@field public Corrupted MQSpell Returns the name of the Corrupted debuff if you have one
---@field public CountBuffs MQFloat #Number of buffs you have, not including short duration buffs
---@field public CountersCorruption MQFloat #Number of corruption counters you have
---@field public CountersCurse MQFloat #Number of curse counters you have
---@field public CountersDisease MQFloat #Number of disease counters you have
---@field public CountersPoison MQFloat #Number of poison counters you have
Expand Down Expand Up @@ -162,6 +164,7 @@
---@field public SilverBank MQFloat #Silver in bank
---@field public Sit fun() Causes toon to sit if not already
---@field public Snared MQBuff #Returns the name of any Snare spell
---@field public SPA fun(spaId: integer):integer #Returns the ID of the buff providing the given SPA
---@field public Spawn spawn The character's spawn
---@field public SpellInCooldown MQBoolean #returns TRUE if you have a spell in cooldown and FALSE when not.
---@field public SpellDamageBonus MQFloat #Spell Damage bonus
Expand Down Expand Up @@ -279,7 +282,11 @@ function character.Bandolier(bandolierName) end

---@param slot integer # Bankslot number
---@return MQItem
function character.Bank (slot) end
function character.Bank(slot) end

---@param slot integer # SharedBank slot number
---@return MQItem
function character.SharedBank(slot) end

---@diagnostic disable: duplicate-set-field
---@param name string
Expand Down
2 changes: 2 additions & 0 deletions mq/datatype/_spell.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
--- @field public IsSkill MQBoolean # Is this spell a skill?
--- @field public IsSwarmSpell MQBoolean # Is this spell a Swarm spell?
--- @field public Level MQInt # Level
--- @field public Link MQString # Prints the link to the spell
--- @field public Location MQFloat # Appears to be max distance
--- @field public Mana MQInt # Mana cost (unadjusted)
--- @field public EnduranceCost MQInt # Endurance cost (unadjusted)
Expand Down Expand Up @@ -51,6 +52,7 @@
--- @field public NewStacks MQBoolean # See entry for more details
--- @field public TargetType MQString # See below for Target Types
--- @field public WearOff MQString # The "wear off" message
--- @field public WillLand MQInt # Returns the buff slot the spell will land in on yourself if it will land, or 0
--- @field public ToString MQString # Same as Name
local spell = nil

Expand Down
1 change: 1 addition & 0 deletions mq/datatype/_target.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
--- @field public Hasted MQCachedBuff # Returns the name of the Haste spell if the Target has one
--- @field public HybridHP MQCachedBuff # Returns the name of the Hybrid HP spell if the Target has one
--- @field public Maloed MQCachedBuff # Returns the name of the Malo spell if the Target has one
--- @field public MaxMeleeTo MQFloat # The Max distance from the target for you to hit it
--- @field public Mezzed MQCachedBuff # Returns the name of the Mez spell if the Target has one
--- @field public PctAggro MQInt # Returns your % Aggro with this Target
--- @field public Poisoned MQCachedBuff # Returns the name of a Poison spell if the Target has one
Expand Down
1 change: 1 addition & 0 deletions mq/datatype/_type.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
--- @class mqtype
--- @field public Name MQString # Type name
--- @field public ToString MQString # Same as Name
--- @field public InheritedType mqtype # Returns the type which this type inherits from
local mqtype = nil

---@diagnostic disable: duplicate-set-field
Expand Down
4 changes: 4 additions & 0 deletions mq/mq.lua
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ function mq.gettype(type) end
---@return number FLT_MIN, number FLT_MAX
function mq.NumericLimits_Float() end

---Parses the provided macro script input
---@return string # The result of the parsed input
function mq.parse(macrostring) end

---Serializes a table to the given filepath
---@param filepath string
---@param table table
Expand Down

0 comments on commit dac979a

Please sign in to comment.