Skip to content

Commit

Permalink
add CursorAttachment TLO (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
aquietone authored Jan 27, 2024
1 parent 2f30c83 commit 8c2b41f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
13 changes: 13 additions & 0 deletions mq/datatype/_cursorattachment.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---@meta

---@alias cursorattachmenttype "ITEM" | "MONEY" | "MEMORIZE_SPELL" | "SOCIAL" | "MENU_BUTTON" | "ABILITY" | "COMBAT" | "INVSLOT" | "SPELL_GEM" | "PET_COMMAND" | "SKILL" | "MELEE_ABILITY" | "LEADERSHIP_ABILITY" | "ITEM_LINK" | "KRONO_SLOT" | "COMMAND" | "COMBAT_ABILITY" | "MOUNT_KEYRING" | "ILLUSION_KEYRING" | "FAMILIAR_KEYRING" | "TELEPORT_KEYRING"

---@class cursorattachment # This datatype deals strictly with information items on a keyring
---@field Index MQInt The index of the cursor attachment
---@field Type cursorattachmenttype Where on this keyring list
---@field Item MQItem The item attached to the cursor
---@field Spell MQSpell The spell attached to the cursor
---@field ButtonText string The Text of the button attached to the cursor
---@field Quanity MQInt The quantity of the item attached to the cursor
---@field ItemID MQInt The ID of the item attached to the cursor
---@field IconID MQInt The Icon ID of the item attached to the cursor
1 change: 1 addition & 0 deletions mq/mq.lua
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ function mq.imgui.destroy(name) end
---@field Bandoliler fun(name:string) bandolier
---@field Corpse corpse|fun():corpse|nil # Corpse you are looting
---@field Cursor MQItem
---@field CursorAttachment cursorattachment
---@field DisplayItem fun(): MQItem # Access to all the information in the Item Display window
---@field DoorTarget MQSwitch # Information on your doortarget
---@field DynamicZone dynamiczone
Expand Down

0 comments on commit 8c2b41f

Please sign in to comment.