/
end |
self.stelap = e |
end |
local function updatepetbar() |
local function updatepetbar(fromconfig) |
if InCombatLockdown() or db.mainx == 0 then return end |
PetActionBar_UpdatePositionValues() |
if fromconfig == 3 then |
UIParent_ManageFramePositions() |
end |
if PETACTIONBAR_XPOS ~= 36 then |
PetActionButton1:SetPoint("BOTTOMLEFT", PetActionBarFrame, "BOTTOMLEFT", 36 + PETACTIONBAR_XPOS - PetActionBarFrame:GetLeft(), 2) |
else |
PetActionButton1:SetPoint("BOTTOMLEFT", PetActionBarFrame, "BOTTOMLEFT", 36, 2) |
end |
end |
local function UpdatePositions() |
local function UpdatePositions(fromconfig) |
if InCombatLockdown() then |
return self:RegisterEvent("PLAYER_REGEN_ENABLED") |
else |
local adj = ((mainexpshown and repshown) and 22) or (((mainexpshown or repshown) and 13)) or 8 |
MainMenuBarArtFrame:SetPoint("TOPLEFT", MainMenuBar, "TOPLEFT", 0, adj) |
MainMenuBarArtFrame:SetPoint("BOTTOMRIGHT", MainMenuBar, "BOTTOMRIGHT", 0, adj) |
updatepetbar() |
updatepetbar(fromconfig) |
end |
local function UpdateLook() |
if InCombatLockdown() then return end |
local nx, ny = this.p:GetCenter() |
db[this.which.."x"] = floor(0.5 + db[this.which.."x"] + (nx - this.px)*db.scale) |
db[this.which.."y"] = floor(0.5 + db[this.which.."y"] + (ny - this.py)*db.scale) |
UpdatePositions() |
UpdatePositions(3) |
end) |
return mm |
end |
sidemover[StellarBars.unlock and "Show" or "Hide"](sidemover) |
elseif a1 == "resetpos" then |
db.mainx, db.mainy, db.sidex, db.sidey = 0, 0, 0, 0 |
UpdatePositions() |
UpdatePositions(3) |
else |
db[a1] = not db[a1] |
print("|cff00ff00StellarBars|r: This setting may require a reload to take effect.") |
## Title: StellarBars |
## Notes: Adds a new look and some options to the default action bars. |
## Author: TotalPackage |
## Version: 3.2.002 |
## Version: 3.2.003 |
## SavedVariables: StellarBarsDB |