Skip to content

Commit

Permalink
1.0.31-Release
Browse files Browse the repository at this point in the history
  • Loading branch information
Goldpaw committed Jan 17, 2024
1 parent 6764075 commit 3d8099c
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 39 deletions.
2 changes: 1 addition & 1 deletion BlizzardBags_ItemLevel/BlizzardBags_ItemLevel.toc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Interface: 100200
## Interface: 100205
## IconTexture: Interface\ICONS\Pet_Type_Mechanical

## Title: Bags: |cffffffffItemLevel|r
Expand Down
62 changes: 24 additions & 38 deletions BlizzardBags_ItemLevel/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -97,26 +97,19 @@ local Update = function(self, bag, slot)
if (Private.IsRetail) then

local tooltipData = C_TooltipInfo.GetBagItem(bag, slot)

-- Assign data to 'type' and 'guid' fields.
TooltipUtil.SurfaceArgs(tooltipData)

-- Assign data to 'leftText' fields.
for _, line in ipairs(tooltipData.lines) do
TooltipUtil.SurfaceArgs(line)
end

for i = 3,4 do
local msg = tooltipData.lines[i] and tooltipData.lines[i].leftText
if (not msg) then break end

local numslots = string_match(msg, S_SLOTS)
if (numslots) then
numslots = tonumber(numslots)
if (numslots > 0) then
message = numslots
if (tooltipData) then
for i = 3,4 do
local msg = tooltipData.lines[i] and tooltipData.lines[i].leftText
if (not msg) then break end

local numslots = string_match(msg, S_SLOTS)
if (numslots) then
numslots = tonumber(numslots)
if (numslots > 0) then
message = numslots
end
break
end
break
end
end

Expand Down Expand Up @@ -150,26 +143,19 @@ local Update = function(self, bag, slot)
if (Private.IsRetail) then

local tooltipData = C_TooltipInfo.GetBagItem(bag, slot)

-- Assign data to 'type' and 'guid' fields.
TooltipUtil.SurfaceArgs(tooltipData)

-- Assign data to 'leftText' fields.
for _, line in ipairs(tooltipData.lines) do
TooltipUtil.SurfaceArgs(line)
end

for i = 2,3 do
local msg = tooltipData.lines[i] and tooltipData.lines[i].leftText
if (not msg) then break end

local itemlevel = string_match(msg, S_ILVL)
if (itemlevel) then
itemlevel = tonumber(itemlevel)
if (itemlevel > 0) then
tipLevel = itemlevel
if (tooltipData) then
for i = 2,3 do
local msg = tooltipData.lines[i] and tooltipData.lines[i].leftText
if (not msg) then break end

local itemlevel = string_match(msg, S_ILVL)
if (itemlevel) then
itemlevel = tonumber(itemlevel)
if (itemlevel > 0) then
tipLevel = itemlevel
end
break
end
break
end
end

Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [1.0.31-Release] 2024-01-17
- Updated for WoW Client Patch 10.2.5.

## [1.0.30-Release] 2023-11-17
- Updated for WoW Client Patch 1.15.0.

Expand Down

0 comments on commit 3d8099c

Please sign in to comment.