@@ -50,9 +50,10 @@ local loadoutList = { { text = L["Loadouts"], isTitle = true, notCheckable = tru
50
50
local DEFAULT_TEXT = E :RGBToHex (0.9 , 0.9 , 0.9 , nil , _G .TALENT_FRAME_DROP_DOWN_DEFAULT )
51
51
local STARTER_TEXT = E :RGBToHex (BLUE_FONT_COLOR .r , BLUE_FONT_COLOR .g , BLUE_FONT_COLOR .b , nil , _G .TALENT_FRAME_DROP_DOWN_STARTER_BUILD )
52
52
53
- local mainIcon = ' |T%s:16:16:0:0:64:64:4:60:4:60|t'
53
+ local mainSize = 16
54
+ local mainIcon = ' |T%s:%d:%d:0:0:64:64:4:60:4:60|t'
54
55
local listIcon = ' |T%s:16:16:0:0:50:50:4:46:4:46|t'
55
- local specText = ' |T%s:14:14:0:0:64:64:4:60:4:60|t %s'
56
+ local listText = ' |T%s:14:14:0:0:64:64:4:60:4:60|t %s'
56
57
57
58
local function starter_checked ()
58
59
return GetStarterBuildActive ()
@@ -92,7 +93,7 @@ local function OnEvent(self, event, loadoutID)
92
93
local id , name , _ , icon = GetSpecializationInfo (index )
93
94
if id then
94
95
menuList [index + 2 ] = { arg1 = id , text = name , checked = menu_checked , func = menu_func }
95
- specList [index + 1 ] = { arg1 = index , text = format (specText , icon , name ), checked = spec_checked , func = spec_func }
96
+ specList [index + 1 ] = { arg1 = index , text = format (listText , icon , name ), checked = spec_checked , func = spec_func }
96
97
end
97
98
end
98
99
end
@@ -147,7 +148,8 @@ local function OnEvent(self, event, loadoutID)
147
148
active = specIndex
148
149
149
150
local db = E .global .datatexts .settings [" Talent/Loot Specialization" ]
150
- local spec , text = format (mainIcon , info .icon )
151
+ local size = db .iconSize or mainSize
152
+ local spec , text = format (mainIcon , info .icon , size , size )
151
153
if db .displayStyle == ' BOTH' or db .displayStyle == ' SPEC' then
152
154
if specialization == 0 or ID == specialization then
153
155
if db .iconOnly then
@@ -156,11 +158,11 @@ local function OnEvent(self, event, loadoutID)
156
158
text = format (' %s %s' , spec , info .name )
157
159
end
158
160
else
159
- info = DT .SPECIALIZATION_CACHE [specialization ]
161
+ local cache = DT .SPECIALIZATION_CACHE [specialization ]
160
162
if db .iconOnly then
161
- text = format (' %s %s' , spec , format (mainIcon , info .icon ))
163
+ text = format (' %s %s' , spec , format (mainIcon , cache .icon , size , size ))
162
164
else
163
- text = format (' %s: %s %s: %s' , L [" Spec" ], spec , LOOT , format (mainIcon , info .icon ))
165
+ text = format (' %s: %s %s: %s' , L [" Spec" ], spec , LOOT , format (mainIcon , cache .icon , size , size ))
164
166
end
165
167
end
166
168
end
0 commit comments