Skip to content

Commit

Permalink
Style: splash of color
Browse files Browse the repository at this point in the history
destroyed items now have a red trash can icon next to them
  • Loading branch information
grimmier378 committed May 19, 2024
1 parent a176048 commit b681005
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -504,17 +504,22 @@ local function lootedReport_GUI()
local itemName = item
local itemLink = data["Link"]
local itemCount = data["Count"]
if string.find(itemName, "*") then
itemName = string.gsub(itemName, "*", ' -- Destroyed')
end


ImGui.PushID(item) -- Push a unique ID for each item

ImGui.TableNextRow()
ImGui.TableSetColumnIndex(0)
ImGui.Text(looter)
ImGui.TableSetColumnIndex(1)
ImGui.Text(itemName)
if string.find(itemName, "*") then
itemName = string.gsub(itemName, "*", "")
ImGui.Text(itemName)
ImGui.SameLine()
ImGui.TextColored(0.9, 0.4, 0.4, 0.8, Icons.MD_DELETE)
else
ImGui.Text(itemName)
end
if ImGui.IsItemHovered() and ImGui.IsMouseReleased(0) then
mq.cmdf('/executelink %s', itemLink)
end
Expand Down

0 comments on commit b681005

Please sign in to comment.