@@ -233,7 +233,7 @@ function S:CharacterFrame()
233
233
' CharacterFrameInsetRight' ,
234
234
' PaperDollSidebarTabs' ,
235
235
' PetModelFrame' ,
236
- ' PetModelFrameShadowOverlay' ,
236
+ ' PetModelFrameShadowOverlay'
237
237
}
238
238
239
239
-- Icon in upper right corner of character frame
@@ -290,6 +290,12 @@ function S:CharacterFrame()
290
290
end
291
291
end )
292
292
293
+ -- Item Quality Borders and Armor Slots
294
+ local CharacterMainHandSlot = _G .CharacterMainHandSlot
295
+ CharacterMainHandSlot :ClearAllPoints ()
296
+ CharacterMainHandSlot :Point (' BOTTOMLEFT' , _G .PaperDollItemsFrame , ' BOTTOMLEFT' , 106 , 10 )
297
+ -- TODO add item quality borders for each slot
298
+
293
299
-- Icon selection frame
294
300
_G .GearManagerPopupFrame :HookScript (' OnShow' , function (frame )
295
301
if frame .isSkinned then return end -- set by HandleIconSelectionFrame
@@ -326,7 +332,33 @@ function S:CharacterFrame()
326
332
end )
327
333
328
334
-- Expand Button
329
- -- TODO
335
+ local CharacterFrameExpandButton = _G .CharacterFrameExpandButton
336
+ S :HandleNextPrevButton (CharacterFrameExpandButton , nil , nil , nil , nil , nil , 28 ) -- Default UI button size is 32
337
+
338
+ CharacterFrameExpandButton :SetNormalTexture (E .Media .Textures .ArrowUp )
339
+ CharacterFrameExpandButton .SetNormalTexture = E .noop
340
+ CharacterFrameExpandButton :SetPushedTexture (E .Media .Textures .ArrowUp )
341
+ CharacterFrameExpandButton .SetPushedTexture = E .noop
342
+ CharacterFrameExpandButton :SetDisabledTexture (E .Media .Textures .ArrowUp )
343
+ CharacterFrameExpandButton .SetDisabledTexture = E .noop
344
+
345
+ local expandButtonNormal , expandButtonPushed = CharacterFrameExpandButton :GetNormalTexture (), CharacterFrameExpandButton :GetPushedTexture ()
346
+ local expandButtonCvar = GetCVar (' characterFrameCollapsed' ) ~= ' 0'
347
+ expandButtonNormal :SetRotation (expandButtonCvar and - 1.57 or 1.57 )
348
+ expandButtonPushed :SetRotation (expandButtonCvar and - 1.57 or 1.57 )
349
+
350
+ -- Not sure if there is a better method to hook Mixin funcs
351
+ local function HookCollapseExpand (self )
352
+ hooksecurefunc (self , ' Collapse' , function ()
353
+ expandButtonNormal :SetRotation (- 1.57 )
354
+ expandButtonPushed :SetRotation (- 1.57 )
355
+ end )
356
+ hooksecurefunc (self , ' Expand' , function ()
357
+ expandButtonNormal :SetRotation (1.57 )
358
+ expandButtonPushed :SetRotation (1.57 )
359
+ end )
360
+ end
361
+ HookCollapseExpand (CharacterFrame )
330
362
331
363
-- Pet Frame
332
364
S :HandleStatusBar (_G .PetPaperDollFrameExpBar )
0 commit comments