Skip to content

Commit 0504165

Browse files
committed
1 parent a3d1562 commit 0504165

2 files changed

Lines changed: 25 additions & 6 deletions

File tree

src/Classes/Tooltip.lua

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,14 +95,16 @@ function TooltipClass:AddSeparator(size)
9595

9696
if self.tooltipHeader then
9797
local rarity = tostring(self.tooltipHeader):upper()
98+
-- spell-checker: disable
9899
local separatorConfigs = {
99-
RELIC = "Assets/ItemsSeparatorFoil.png",
100-
UNIQUE = "Assets/ItemsSeparatorUnique.png",
101-
RARE = "Assets/ItemsSeparatorRare.png",
102-
MAGIC = "Assets/ItemsSeparatorMagic.png",
103-
NORMAL = "Assets/ItemsSeparatorWhite.png",
104-
GEM = "Assets/ItemsSeparatorGem.png",
100+
RELIC = "Assets/itemsseparatorfoil.png",
101+
UNIQUE = "Assets/itemsseparatorunique.png",
102+
RARE = "Assets/itemsseparatorrare.png",
103+
MAGIC = "Assets/itemsseparatormagic.png",
104+
NORMAL = "Assets/itemsseparatorwhite.png",
105+
GEM = "Assets/itemsseparatorgem.png",
105106
}
107+
-- spell-checker: enable
106108
local separatorPath = separatorConfigs[rarity] or separatorConfigs.NORMAL
107109

108110
if not self.separatorImage or self.separatorImagePath ~= separatorPath then

src/Classes/Tooltip.lua.rej

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
diff a/src/Classes/Tooltip.lua b/src/Classes/Tooltip.lua (rejected hunks)
2+
@@ -310,6 +312,7 @@ function TooltipClass:Draw(x, y, w, h, viewPort)
3+
ttW = titleW + 50
4+
end
5+
end
6+
+ -- spell-checker: disable
7+
local headerInfluence = {
8+
Fractured = "Assets/fracturedicon.png",
9+
Veiled = "Assets/veiledicon.png",
10+
@@ -339,6 +342,7 @@ function TooltipClass:Draw(x, y, w, h, viewPort)
11+
MASTERY = {left="Assets/masteryheaderunallocatedleft.png",middle="Assets/masteryheaderunallocatedmiddle.png",right="Assets/masteryheaderunallocatedright.png",height=38,sideWidth=33,middleWidth=38,textYOffset=3},
12+
MASTERYALLOC = {left="Assets/masteryheaderallocatedleft.png",middle="Assets/masteryheaderallocatedmiddle.png",right="Assets/masteryheaderallocatedright.png",height=38,sideWidth=33,middleWidth=38,textYOffset=3},
13+
}
14+
+ -- spell-checker: enable
15+
local config
16+
if self.tooltipHeader and main.showFlavourText and self.lines[1] and self.lines[1].text then
17+
local rarity = tostring(self.tooltipHeader):upper()

0 commit comments

Comments
 (0)