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:SetParent(barHolder);
16 UpdateMicroButtonsParent(barHolder);
17 MoveMicroButtons("TOP", UIParent, "TOP", -120, 0);
18 MainMenuBar:HookScript("OnShow", function()
19 UpdateMicroButtonsParent(barHolder);
20 MoveMicroButtons("TOP", UIParent, "TOP", -120, 0);
23 local bags = CreateFrame("Frame", "OmaBags", UIParent);
24 bags:SetPoint("RIGHT", UIParent, "RIGHT", 0, -100);
27 bags:Hide(); -- Unhide if bag bar needed
28 MainMenuBarBackpackButton:SetParent(bags);
29 MainMenuBarBackpackButton:ClearAllPoints();
30 MainMenuBarBackpackButton:SetPoint("RIGHT");
31 CharacterBag0Slot:SetParent(bags);
32 CharacterBag1Slot:SetParent(bags);
33 CharacterBag2Slot:SetParent(bags);
34 CharacterBag3Slot:SetParent(bags);
35 MicroButtonAndBagsBar:Hide();
37 MultiBarBottomLeft:SetParent(UIHider);
38 MultiBarBottomRight:SetParent(UIHider);
39 MultiBarLeft:SetParent(UIHider);
40 MultiBarRight:SetParent(UIHider);
41 -- Hide MultiBar Buttons, but keep the bars alive
43 _G["ActionButton" .. i]:Hide();
44 _G["ActionButton" .. i]:UnregisterAllEvents();
45 _G["ActionButton" .. i]:SetAttribute("statehidden", true);
47 _G["MultiBarBottomLeftButton" .. i]:Hide();
48 _G["MultiBarBottomLeftButton" .. i]:UnregisterAllEvents();
49 _G["MultiBarBottomLeftButton" .. i]:SetAttribute("statehidden", true);
51 _G["MultiBarBottomRightButton" .. i]:Hide();
52 _G["MultiBarBottomRightButton" .. i]:UnregisterAllEvents();
53 _G["MultiBarBottomRightButton" .. i]:SetAttribute("statehidden", true);
55 _G["MultiBarRightButton" .. i]:Hide();
56 _G["MultiBarRightButton" .. i]:UnregisterAllEvents();
57 _G["MultiBarRightButton" .. i]:SetAttribute("statehidden", true);
59 _G["MultiBarLeftButton" .. i]:Hide();
60 _G["MultiBarLeftButton" .. i]:UnregisterAllEvents();
61 _G["MultiBarLeftButton" .. i]:SetAttribute("statehidden", true);
63 UIPARENT_MANAGED_FRAME_POSITIONS["MainMenuBar"] = nil;
64 UIPARENT_MANAGED_FRAME_POSITIONS["StanceBarFrame"] = nil;
65 UIPARENT_MANAGED_FRAME_POSITIONS["PossessBarFrame"] = nil;
66 UIPARENT_MANAGED_FRAME_POSITIONS["PETACTIONBAR_YPOS"] = nil;
68 MainMenuBar:EnableMouse(false);
69 MainMenuBar:UnregisterEvent("DISPLAY_SIZE_CHANGED");
70 MainMenuBar:UnregisterEvent("UI_SCALE_CHANGED");
71 local animations = {MainMenuBar.slideOut:GetAnimations()};
72 animations[1]:SetOffset(0,0);
73 animations = {OverrideActionBar.slideOut:GetAnimations()};
74 animations[1]:SetOffset(0,0);
76 MainMenuBarArtFrame:Hide();
77 MainMenuBarArtFrame:SetParent(UIHider);
79 PossessBarFrame:Hide();
80 PossessBarFrame:SetParent(UIHider);
82 if PlayerTalentFrame then
83 PlayerTalentFrame:UnregisterEvent("ACTIVE_TALENT_GROUP_CHANGED");
85 hooksecurefunc("TalentFrame_LoadUI", function()
86 PlayerTalentFrame:UnregisterEvent("ACTIVE_TALENT_GROUP_CHANGED");
89 --[[StanceBarFrame:UnregisterAllEvents()
91 StanceBarFrame:SetParent(UIHider)
93 --BonusActionBarFrame:UnregisterAllEvents()
94 --BonusActionBarFrame:Hide()
95 --BonusActionBarFrame:SetParent(UIHider)
97 PetActionBarFrame:UnregisterAllEvents()
98 PetActionBarFrame:Hide()
99 PetActionBarFrame:SetParent(UIHider)