@@ -123,21 +123,19 @@ function TooltipClass:AddSeparator(size)
123123
124124 if self .tooltipHeader then
125125 local rarity = tostring (self .tooltipHeader ):upper ()
126- -- spell-checker: disable
127126 local separatorConfigs = {
128- RELIC = " Assets/itemsseparatorfoil .png" ,
129- UNIQUE = " Assets/itemsseparatorunique .png" ,
130- RARE = " Assets/itemsseparatorrare .png" ,
131- MAGIC = " Assets/itemsseparatormagic .png" ,
132- NORMAL = " Assets/itemsseparatorwhite .png" ,
133- GEM = " Assets/itemsseparatorgem .png" ,
127+ RELIC = " Assets/ItemsSeparatorFoil .png" ,
128+ UNIQUE = " Assets/ItemsSeparatorUnique .png" ,
129+ RARE = " Assets/ItemsSeparatorRare .png" ,
130+ MAGIC = " Assets/ItemsSeparatorMagic .png" ,
131+ NORMAL = " Assets/ItemsSeparatorWhite .png" ,
132+ GEM = " Assets/ItemsSeparatorGem .png" ,
134133 }
135- -- spell-checker: enable
136134 local separatorPath = separatorConfigs [rarity ] or separatorConfigs .NORMAL
137135
138136 if not self .separatorImage or self .separatorImagePath ~= separatorPath then
139137 self .separatorImage = NewImageHandle ()
140- self .separatorImage :Load (separatorPath )
138+ self .separatorImage :Load (separatorPath : lower () )
141139 self .separatorImagePath = separatorPath
142140 end
143141
@@ -386,13 +384,13 @@ function TooltipClass:Draw(x, y, w, h, viewPort)
386384
387385 if not self .headerLeft or self .headerLeftPath ~= config .left then
388386 self .headerLeft = NewImageHandle ()
389- self .headerLeft :Load (config .left )
387+ self .headerLeft :Load (config .left : lower () )
390388 self .headerLeftPath = config .left
391389 self .headerMiddle = NewImageHandle ()
392- self .headerMiddle :Load (config .middle )
390+ self .headerMiddle :Load (config .middle : lower () )
393391 self .headerMiddlePath = config .middle
394392 self .headerRight = NewImageHandle ()
395- self .headerRight :Load (config .right )
393+ self .headerRight :Load (config .right : lower () )
396394 self .headerRightPath = config .right
397395 end
398396
0 commit comments