Skip to content

Commit c2b9fe1

Browse files
github-actions[bot]ZereoXLocalIdentity
authored
[pob1-port] [Linux] - Fix broken header images. (#1603)
* Apply changes from PathOfBuildingCommunity/PathOfBuilding#9092 * Fix merge conflict Now uses lower where the asssets are used so we don't need to change the names and have a block for the spell checker to skip * Only lower case load calls --------- Co-authored-by: ZereoX <[email protected]> Co-authored-by: LocalIdentity <[email protected]>
1 parent 578b659 commit c2b9fe1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Classes/Tooltip.lua

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ function TooltipClass:AddSeparator(size)
110110

111111
if not self.separatorImage or self.separatorImagePath ~= separatorPath then
112112
self.separatorImage = NewImageHandle()
113-
self.separatorImage:Load(separatorPath)
113+
self.separatorImage:Load(separatorPath:lower())
114114
self.separatorImagePath = separatorPath
115115
end
116116

@@ -366,13 +366,13 @@ function TooltipClass:Draw(x, y, w, h, viewPort)
366366

367367
if not self.headerLeft or self.headerLeftPath ~= config.left then
368368
self.headerLeft = NewImageHandle()
369-
self.headerLeft:Load(config.left)
369+
self.headerLeft:Load(config.left:lower())
370370
self.headerLeftPath = config.left
371371
self.headerMiddle = NewImageHandle()
372-
self.headerMiddle:Load(config.middle)
372+
self.headerMiddle:Load(config.middle:lower())
373373
self.headerMiddlePath = config.middle
374374
self.headerRight = NewImageHandle()
375-
self.headerRight:Load(config.right)
375+
self.headerRight:Load(config.right:lower())
376376
self.headerRightPath = config.right
377377
end
378378

@@ -386,9 +386,9 @@ function TooltipClass:Draw(x, y, w, h, viewPort)
386386
local headerMiddleAreaWidth = m_max(0, headerTotalWidth - 2 * headerSideWidth)
387387
if self.influenceHeader1 then
388388
self.influenceIcon1 = NewImageHandle()
389-
self.influenceIcon1:Load(headerInfluence[self.influenceHeader1])
389+
self.influenceIcon1:Load(headerInfluence[self.influenceHeader1]:lower())
390390
self.influenceIcon2 = NewImageHandle()
391-
self.influenceIcon2:Load(headerInfluence[self.influenceHeader2])
391+
self.influenceIcon2:Load(headerInfluence[self.influenceHeader2]:lower())
392392
end
393393

394394
if main.showFlavourText then

0 commit comments

Comments
 (0)