Skip to content

Commit

Permalink
Cleanup and some test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Shestak committed Mar 15, 2012
1 parent a43e93d commit 374331b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 17 deletions.
20 changes: 5 additions & 15 deletions ShestakUI/Modules/Blizzard/CombatText.lua
Expand Up @@ -349,19 +349,6 @@ local function SetScroll()
end
end

-- Msg flow direction
local function ScrollDirection()
if COMBAT_TEXT_FLOAT_MODE == "2" then
ct.mode = "TOP"
else
ct.mode = "BOTTOM"
end
for i = 1, #ct.frames do
ct.frames[i]:Clear()
ct.frames[i]:SetInsertMode(ct.mode)
end
end

-- Partial resists styler
local part = "-%s [%s %s]"
local r, g, b
Expand Down Expand Up @@ -615,9 +602,9 @@ for i = 1, numf do
f:SetShadowOffset(C.font.combat_text_font_shadow and 1 or 0, C.font.combat_text_font_shadow and -1 or 0)
f:SetTimeVisible(C.combattext.time_visible)
f:SetMaxLines(C.combattext.max_lines)
f:SetSpacing(2)
f:SetSpacing(1)
f:SetWidth(128)
f:SetHeight(128)
f:SetHeight(112)
f:SetPoint("CENTER", 0, 0)
f:SetMovable(true)
f:SetResizable(true)
Expand Down Expand Up @@ -646,6 +633,9 @@ for i = 1, numf do
else
f:SetJustifyH(ct.justify_4)
f:SetWidth(200)
if C.combattext.icons then
f:SetHeight(150)
end
if C.unitframe.enable == true and _G.oUF_Target then
f:SetPoint("BOTTOMRIGHT", "oUF_Target", "TOPRIGHT", 2, 278)
else
Expand Down
4 changes: 2 additions & 2 deletions ShestakUI/Modules/Skins/Blizzard/PetStable.lua
Expand Up @@ -25,7 +25,7 @@ local function LoadSkin()

T.SkinCloseButton(PetStableFrameCloseButton)

for i = 1, 5 do
for i = 1, NUM_PET_ACTIVE_SLOTS do
local button = _G["PetStableActivePet"..i]
local icon = _G["PetStableActivePet"..i.."IconTexture"]

Expand All @@ -39,7 +39,7 @@ local function LoadSkin()
icon:Point("BOTTOMRIGHT", -2, 2)
end

for i = 1, 10 do
for i = 1, NUM_PET_STABLE_SLOTS do
local button = _G["PetStableStabledPet"..i]
local icon = _G["PetStableStabledPet"..i.."IconTexture"]

Expand Down

0 comments on commit 374331b

Please sign in to comment.