Skip to content

Commit

Permalink
question box should be on top (#316)
Browse files Browse the repository at this point in the history
* Prompts are always on top

* Battle pets now correctly render the pet icon
  • Loading branch information
zeptognome authored Mar 31, 2024
1 parent 5d84d3a commit e24788d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
10 changes: 5 additions & 5 deletions data/items.lua
Original file line number Diff line number Diff line change
Expand Up @@ -952,19 +952,19 @@ function items:AttachItemInfo(data, kind)
return
end
data.isItemEmpty = false
local itemName, _, itemQuality,
local _, _, _,
itemLevel, itemMinLevel, itemType, itemSubType,
itemStackCount, itemEquipLoc, itemTexture,
sellPrice, classID, subclassID, bindType, expacID,
setID, isCraftingReagent = GetItemInfo(itemLink)
itemQuality = C_Item.GetItemQuality(itemLocation) --[[@as Enum.ItemQuality]]
setID, isCraftingReagent = GetItemInfo(itemID)
local itemQuality = C_Item.GetItemQuality(itemLocation) --[[@as Enum.ItemQuality]]
local effectiveIlvl, isPreview, baseIlvl = GetDetailedItemLevelInfo(itemID)
data.containerInfo = C_Container.GetContainerItemInfo(bagid, slotid)
data.questInfo = C_Container.GetContainerItemQuestInfo(bagid, slotid)
data.itemInfo = {
itemID = itemID,
itemGUID = C_Item.GetItemGUID(itemLocation),
itemName = itemName,
itemName = data.containerInfo.itemName,
itemLink = itemLink,
itemQuality = itemQuality,
itemLevel = itemLevel,
Expand All @@ -984,7 +984,7 @@ function items:AttachItemInfo(data, kind)
effectiveIlvl = effectiveIlvl --[[@as number]],
isPreview = isPreview --[[@as boolean]],
baseIlvl = baseIlvl --[[@as number]],
itemIcon = C_Item.GetItemIconByID(itemID),
itemIcon = data.containerInfo.iconFileID,
isBound = C_Item.IsBound(itemLocation),
isLocked = false,
isNewItem = C_NewItems.IsNewItem(bagid, slotid),
Expand Down
1 change: 1 addition & 0 deletions frames/question.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ end
function question:_OnCreate()
local q = setmetatable({}, {__index = questionProto})
q.frame = CreateFrame('Frame', nil, UIParent, "DefaultPanelFlatTemplate")
q.frame:SetFrameStrata("DIALOG")

q.input = CreateFrame('EditBox', nil, q.frame, "InputBoxTemplate")
q.input:SetWidth(200)
Expand Down

0 comments on commit e24788d

Please sign in to comment.