WoWInterface SVN StellarBars

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 25 to Rev 26
    Reverse comparison

Rev 25 → Rev 26

trunk/StellarBars/StellarBars.toc
1,8 → 1,8
## Interface: 30300
## Interface: 40000
## Title: StellarBars
## Notes: Adds a new look and some options to the default action bars.
## Author: TotalPackage
## Version: 3.3.002
## Version: 4.0.001
 
## SavedVariables: StellarBarsDB
## SavedVariablesPerCharacter: StellarBarsCharDB
trunk/StellarBars/StellarBars.lua
4,6 → 4,8
this[event](this, ...)
end)
 
local is4 = GetSpellBookItemName and true or false
 
-- LIBRARIES
local smed = LibStub("LibSharedMedia-3.0")
local lbf = LibStub("LibButtonFacade", true) -- optional
83,35 → 85,6
end
self.stelap = e
end
local PETACTIONBAR_XPOS = 36
local function updatepetbar()
if InCombatLockdown() then
return self:RegisterEvent("PLAYER_REGEN_ENABLED")
elseif db.mainx == 0 then
return
end
if PetActionBarFrame:IsShown() then
UIParent_ManageFramePositions()
PETACTIONBAR_XPOS = _G.PETACTIONBAR_XPOS
else
if PetActionBarFrame_IsAboveShapeshift(true) then
PETACTIONBAR_XPOS = 36
elseif MainMenuBarVehicleLeaveButton and MainMenuBarVehicleLeaveButton:IsShown() then
PETACTIONBAR_XPOS = MainMenuBarVehicleLeaveButton:GetRight() + 20
elseif ShapeshiftBarFrame and GetNumShapeshiftForms() > 0 then
PETACTIONBAR_XPOS = (_G["ShapeshiftButton"..GetNumShapeshiftForms()]:GetRight() or (MainMenuBar:GetLeft() + 256)) + 20
elseif MultiCastActionBarFrame and HasMultiCastActionBar() then
PETACTIONBAR_XPOS = MultiCastActionBarFrame:GetRight() + 20
else
PETACTIONBAR_XPOS = 36
end
end
if PETACTIONBAR_XPOS ~= 36 then
PetActionButton1:SetPoint("BOTTOMLEFT", PetActionBarFrame, "BOTTOMLEFT", 36 - MainMenuBar:GetLeft(), 2)
else
PetActionButton1:SetPoint("BOTTOMLEFT", PetActionBarFrame, "BOTTOMLEFT", 36, 2)
end
end
local function UpdatePositions()
if InCombatLockdown() then
return self:RegisterEvent("PLAYER_REGEN_ENABLED")
130,19 → 103,29
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()
 
BonusActionButton1:SetPoint("TOPLEFT", BonusActionBarFrame, "BOTTOMLEFT", 5, 3 + adj + 36)
BonusActionButton2:ClearAllPoints()
BonusActionButton2:SetPoint("TOPLEFT", BonusActionButton1, "TOPRIGHT", 6, 0)
end
local function UpdateLook()
if InCombatLockdown() then return end
local s = db.scale
local a = db.alpha or 1
MainMenuBar:SetScale(s) MultiBarBottomLeft:SetScale(s) MultiBarBottomRight:SetScale(s) MultiBarRight:SetScale(s) MultiBarLeft:SetScale(s) VehicleMenuBar:SetScale(s)
MainMenuBar:SetScale(s) MultiBarRight:SetScale(s) MultiBarLeft:SetScale(s) VehicleMenuBar:SetScale(s)
if not is4 then
MultiBarBottomLeft:SetScale(s) MultiBarBottomRight:SetScale(s)
end
MainMenuBar:SetAlpha(a) MultiBarBottomLeft:SetAlpha(a) MultiBarBottomRight:SetAlpha(a) MultiBarRight:SetAlpha(a) MultiBarLeft:SetAlpha(a) VehicleMenuBar:SetAlpha(a)
 
 
local t = smed:Fetch("statusbar", db.texture)
MainMenuExpBar:GetStatusBarTexture():SetHorizTile(false)
MainMenuExpBar:GetStatusBarTexture():SetVertTile(false)
MainMenuExpBar:SetStatusBarTexture(t)
ReputationWatchStatusBar:GetStatusBarTexture():SetHorizTile(false)
ReputationWatchStatusBar:GetStatusBarTexture():SetVertTile(false)
ReputationWatchStatusBar:SetStatusBarTexture(t)
 
 
local font = smed:Fetch("font", db.font)
for _,value in ipairs(buttons) do
for i = 0, 12, 1 do
234,20 → 217,30
 
-- hide/disable some stuff
local stuffToHide = {
"MainMenuXPBarTexture0", "MainMenuXPBarTexture1", "MainMenuXPBarTexture2", "MainMenuXPBarTexture3",
"MainMenuXPBarTextureLeftCap", "MainMenuXPBarTextureMid", "MainMenuXPBarTextureRightCap",
"ReputationWatchBarTexture0", "ReputationWatchBarTexture1", "ReputationWatchBarTexture2", "ReputationWatchBarTexture3",
"ReputationXPBarTexture0", "ReputationXPBarTexture1", "ReputationXPBarTexture2", "ReputationXPBarTexture3",
"MainMenuBarTexture0", "MainMenuBarTexture1", "MainMenuBarTexture2", "MainMenuBarTexture3",
"MainMenuBarLeftEndCap", "MainMenuBarRightEndCap",
"ShapeshiftBarLeft", "ShapeshiftBarRight", "ShapeshiftBarMiddle",
"MainMenuMaxLevelBar0", "MainMenuMaxLevelBar1", "MainMenuMaxLevelBar2", "MainMenuMaxLevelBar3",
"BonusActionBarTexture0", "BonusActionBarTexture1",
"BonusActionBarFrameTexture1", "BonusActionBarFrameTexture2",
"SlidingActionBarTexture0", "SlidingActionBarTexture1",
"PossessBackground1", "PossessBackground2",
}
for i = 1, 19, 1 do
local texture = _G["MainMenuXPBarDiv"..i]
if texture then
texture:Hide()
end
end
for _, value in pairs(stuffToHide) do
_G[value]:SetAlpha(0)
_G[value]:Hide()
if _G[value] then
_G[value]:SetAlpha(0)
_G[value]:Hide()
else
print(value, "does not exist")
end
end
stuffToHide = nil