5 local UIHider = CreateFrame("Frame");
8 local barHolder = CreateFrame("Frame", "OmaStatusBarHolder", UIParent);
9 barHolder:SetPoint("BOTTOM", UIParent, "BOTTOM", 0, 17);
10 barHolder:SetWidth(800);
11 barHolder:SetHeight(20);
12 function barHolder:OnStatusBarsUpdated() end;
13 local xpbars = _G["StatusTrackingBarManager"];
14 xpbars:UnregisterAllEvents();
16 --xpbars:SetParent(barHolder);
18 UpdateMicroButtonsParent(barHolder);
19 MoveMicroButtons("TOP", UIParent, "TOP", -120, 0);
20 MainMenuBar:HookScript("OnShow", function()
21 UpdateMicroButtonsParent(barHolder);
22 MoveMicroButtons("TOP", UIParent, "TOP", -120, 0);
25 local bags = CreateFrame("Frame", "OmaBags", UIParent);
26 bags:SetPoint("RIGHT", UIParent, "RIGHT", 0, -100);
29 bags:Hide(); -- Unhide if bag bar needed
30 MainMenuBarBackpackButton:SetParent(bags);
31 MainMenuBarBackpackButton:ClearAllPoints();
32 MainMenuBarBackpackButton:SetPoint("RIGHT");
33 CharacterBag0Slot:SetParent(bags);
34 CharacterBag1Slot:SetParent(bags);
35 CharacterBag2Slot:SetParent(bags);
36 CharacterBag3Slot:SetParent(bags);
37 MicroButtonAndBagsBar:Hide();
39 MultiBarBottomLeft:SetParent(UIHider);
40 MultiBarBottomRight:SetParent(UIHider);
41 MultiBarLeft:SetParent(UIHider);
42 MultiBarRight:SetParent(UIHider);
43 -- Hide MultiBar Buttons, but keep the bars alive
45 _G["ActionButton" .. i]:Hide();
46 _G["ActionButton" .. i]:UnregisterAllEvents();
47 _G["ActionButton" .. i]:SetAttribute("statehidden", true);
49 _G["MultiBarBottomLeftButton" .. i]:Hide();
50 _G["MultiBarBottomLeftButton" .. i]:UnregisterAllEvents();
51 _G["MultiBarBottomLeftButton" .. i]:SetAttribute("statehidden", true);
53 _G["MultiBarBottomRightButton" .. i]:Hide();
54 _G["MultiBarBottomRightButton" .. i]:UnregisterAllEvents();
55 _G["MultiBarBottomRightButton" .. i]:SetAttribute("statehidden", true);
57 _G["MultiBarRightButton" .. i]:Hide();
58 _G["MultiBarRightButton" .. i]:UnregisterAllEvents();
59 _G["MultiBarRightButton" .. i]:SetAttribute("statehidden", true);
61 _G["MultiBarLeftButton" .. i]:Hide();
62 _G["MultiBarLeftButton" .. i]:UnregisterAllEvents();
63 _G["MultiBarLeftButton" .. i]:SetAttribute("statehidden", true);
65 UIPARENT_MANAGED_FRAME_POSITIONS["MainMenuBar"] = nil;
66 UIPARENT_MANAGED_FRAME_POSITIONS["StanceBarFrame"] = nil;
67 UIPARENT_MANAGED_FRAME_POSITIONS["PossessBarFrame"] = nil;
68 UIPARENT_MANAGED_FRAME_POSITIONS["PETACTIONBAR_YPOS"] = nil;
70 MainMenuBar:EnableMouse(false);
71 MainMenuBar:UnregisterEvent("DISPLAY_SIZE_CHANGED");
72 MainMenuBar:UnregisterEvent("UI_SCALE_CHANGED");
73 local animations = {MainMenuBar.slideOut:GetAnimations()};
74 animations[1]:SetOffset(0,0);
75 animations = {OverrideActionBar.slideOut:GetAnimations()};
76 animations[1]:SetOffset(0,0);
78 MainMenuBarArtFrame:Hide();
79 MainMenuBarArtFrame:SetParent(UIHider);
81 PossessBarFrame:Hide();
82 PossessBarFrame:SetParent(UIHider);
84 if PlayerTalentFrame then
85 PlayerTalentFrame:UnregisterEvent("ACTIVE_TALENT_GROUP_CHANGED");
87 hooksecurefunc("TalentFrame_LoadUI", function()
88 PlayerTalentFrame:UnregisterEvent("ACTIVE_TALENT_GROUP_CHANGED");
91 --[[StanceBarFrame:UnregisterAllEvents()
93 StanceBarFrame:SetParent(UIHider)
95 --BonusActionBarFrame:UnregisterAllEvents()
96 --BonusActionBarFrame:Hide()
97 --BonusActionBarFrame:SetParent(UIHider)
99 PetActionBarFrame:UnregisterAllEvents()
100 PetActionBarFrame:Hide()
101 PetActionBarFrame:SetParent(UIHider)