From 4bd4e7bf464d8debb2e843d6d0c2fb10e81b23fd Mon Sep 17 00:00:00 2001 From: Adrian L Lange Date: Thu, 28 Apr 2011 18:44:36 +0200 Subject: [PATCH] Update for 4.1's ugly change to the PaperDollFrame --- Broker_Equipment.lua | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/Broker_Equipment.lua b/Broker_Equipment.lua index b59b5f6..7ddf1f0 100644 --- a/Broker_Equipment.lua +++ b/Broker_Equipment.lua @@ -56,10 +56,8 @@ end local function ModifiedClick(button, name, icon) if(IsShiftKeyDown() and not pendingName) then - LDB.OnClick(nil, 'RightButton') - - GearManagerDialog.selectedSetName = name - GearManagerDialog_Update() + local dialog = StaticPopup_Show('CONFIRM_SAVE_EQUIPMENT_SET', name) + dialog.data = name elseif(IsControlKeyDown() and not pendingName) then local dialog = StaticPopup_Show('CONFIRM_DELETE_EQUIPMENT_SET', name) dialog.data = name @@ -94,8 +92,17 @@ local function OnClick(self, button) ToggleCharacter('PaperDollFrame') end - if(not GearManagerDialog:IsVisible()) then - GearManagerDialog:Show() + if(not CharacterFrame.Expanded) then + SetCVar('characterFrameCollapsed', '0') + CharacterFrame_Expand() + end + + -- '3' is the index of the GearManager tab + if(not _G[PAPERDOLL_SIDEBARS[3].frame]:IsShown()) then + PaperDollFrame_SetSidebar(nil, 3) + + -- List doesn't generate on a fresh reload or if the CharacterFrame hasn't been shown yet + -- I'll have to take a look at this later end end end -- 1.7.9.5