From de010916d6444b27274f658215450c92cd6ff8f5 Mon Sep 17 00:00:00 2001 From: Natias Rupp Date: Thu, 2 Aug 2012 21:48:48 +0200 Subject: [PATCH] update --- AsphyxiaUI/Modules/Actionbars/BarShift.lua | 47 +- AsphyxiaUI/Unitframes/Layouts/Asphyxia2.lua | 1397 +------------------ AsphyxiaUI/Unitframes/Layouts/Smelly.lua | 13 +- AsphyxiaUI_FAQ/Modules/Panels.lua | 53 +- ToDoList.md | 2 + 5 files changed, 107 insertions(+), 1405 deletions(-) create mode 100644 ToDoList.md diff --git a/AsphyxiaUI/Modules/Actionbars/BarShift.lua b/AsphyxiaUI/Modules/Actionbars/BarShift.lua index 9c2a5ad..7d0b99e 100644 --- a/AsphyxiaUI/Modules/Actionbars/BarShift.lua +++ b/AsphyxiaUI/Modules/Actionbars/BarShift.lua @@ -6,6 +6,11 @@ local S, C, L, G = unpack( Tukui ) if( C["actionbar"]["enable"] ~= true ) then return end +if( C["actionbar"]["hideshapeshift"] == true ) then + G.ActionBars.Stance:Hide() + return +end + G.ActionBars.Stance:ClearAllPoints() G.ActionBars.Stance:SetClampedToScreen(false) @@ -28,7 +33,26 @@ end local bar = G.ActionBars.Stance -bar:HookScript( "OnEvent", function( self, event, unit ) +local States = { + ["DRUID"] = "show", + ["WARRIOR"] = "show", + ["PALADIN"] = "show", + ["DEATHKNIGHT"] = "show", + ["ROGUE"] = "show,", + ["PRIEST"] = "show,", + ["HUNTER"] = "show,", + ["WARLOCK"] = "show,", + ["MONK"] = "show,", +} + +bar:RegisterEvent( "PLAYER_LOGIN" ) +bar:RegisterEvent( "PLAYER_ENTERING_WORLD" ) +bar:RegisterEvent( "UPDATE_SHAPESHIFT_FORMS" ) +bar:RegisterEvent( "UPDATE_SHAPESHIFT_USABLE" ) +bar:RegisterEvent( "UPDATE_SHAPESHIFT_COOLDOWN" ) +bar:RegisterEvent( "UPDATE_SHAPESHIFT_FORM" ) +bar:RegisterEvent( "ACTIONBAR_PAGE_CHANGED" ) +bar:SetScript("OnEvent", function(self, event, ...) if( event == "PLAYER_LOGIN" ) then StanceBarFrame.ignoreFramePositionManager = true StanceBarFrame:ClearAllPoints() @@ -55,13 +79,28 @@ bar:HookScript( "OnEvent", function( self, event, unit ) end end end + RegisterStateDriver( bar, "visibility", "[vehicleui][petbattle] hide; show" ) elseif( event == "UPDATE_SHAPESHIFT_FORMS" ) then + if InCombatLockdown() then return end + for i = 1, NUM_STANCE_SLOTS do + local button = _G["StanceButton" .. i] + local _, name = GetShapeshiftFormInfo( i ) + if( name ) then + button:Show() + else + button:Hide() + end + end + if( C["actionbar"]["vertical_shapeshift"] == true ) then AsphyxiaUIStanceBorder:Size( ( ( StanceButton1:GetWidth() + S.buttonspacing ) ) + S.buttonspacing, StanceButton1:GetHeight() * GetNumShapeshiftForms() + ( GetNumShapeshiftForms() + 1 ) * S.buttonspacing ) else AsphyxiaUIStanceBorder:Size( ( ( StanceButton1:GetWidth() + S.buttonspacing ) * GetNumShapeshiftForms() ) + S.buttonspacing, StanceButton1:GetHeight() + 2 * S.buttonspacing ) end elseif( event == "PLAYER_ENTERING_WORLD" ) then + S.ShiftBarUpdate( self ) + S.StyleShift( self ) + if( C["actionbar"]["vertical_shapeshift"] == true ) then AsphyxiaUIStanceBorder:Size( ( ( StanceButton1:GetWidth() + S.buttonspacing ) ) + S.buttonspacing, StanceButton1:GetHeight() * GetNumShapeshiftForms() + ( GetNumShapeshiftForms() + 1 ) * S.buttonspacing ) else @@ -87,5 +126,9 @@ bar:HookScript( "OnEvent", function( self, event, unit ) AsphyxiaUIStanceBorder:HookScript( "OnEnter", function( self ) mouseover( 1 ) end ) AsphyxiaUIStanceBorder:HookScript( "OnLeave", function( self ) mouseover( 0 ) end ) end + else + S.ShiftBarUpdate( self ) end -end ) \ No newline at end of file +end ) + +RegisterStateDriver( bar, "visibility", "[vehicleui][petbattle][overridebar] hide; show" ) \ No newline at end of file diff --git a/AsphyxiaUI/Unitframes/Layouts/Asphyxia2.lua b/AsphyxiaUI/Unitframes/Layouts/Asphyxia2.lua index 1a17319..e2fcebe 100644 --- a/AsphyxiaUI/Unitframes/Layouts/Asphyxia2.lua +++ b/AsphyxiaUI/Unitframes/Layouts/Asphyxia2.lua @@ -6,1399 +6,4 @@ local S, C, L, G = unpack( Tukui ) if( C["unitframes"]["enable"] ~= true ) then return end -if( C["global"]["unitframelayout"] ~= "asphyxia2" ) then return end - ------------------------------- --- Player ------------------------------- -do - ------------------------------ - -- not needed - ------------------------------ - do - G.UnitFrames.Player:SetBackdrop( nil ) - G.UnitFrames.Player:SetBackdropColor( 0, 0, 0 ) - G.UnitFrames.Player.shadow:Kill() - G.UnitFrames.Player.panel:Kill() - end - - ------------------------------ - -- health - ------------------------------ - do - G.UnitFrames.Player.Health:Size( 233, 26 ) - G.UnitFrames.Player.Health:SetFrameLevel( 5 ) - G.UnitFrames.Player.Health:CreateBorder( true ) - G.UnitFrames.Player.Health.bg:SetTexture( 0.6, 0.6, 0.6 ) - - if( C["unitframes"]["unicolor"] == true ) then - G.UnitFrames.Player.Health.colorTapping = false - G.UnitFrames.Player.Health.colorDisconnected = false - G.UnitFrames.Player.Health.colorClass = false - G.UnitFrames.Player.Health:SetStatusBarColor( 0.125, 0.125, 0.125, 1 ) - G.UnitFrames.Player.Health.bg:SetVertexColor( 0, 0, 0, 1 ) - else - G.UnitFrames.Player.Health.colorDisconnected = true - G.UnitFrames.Player.Health.colorTapping = true - G.UnitFrames.Player.Health.colorClass = true - G.UnitFrames.Player.Health.colorReaction = true - end - - G.UnitFrames.Player.Health.value = S.SetFontString( G.UnitFrames.Player.Health, S.CreateFontString() ) - G.UnitFrames.Player.Health.value:Point( "RIGHT", G.UnitFrames.Player.Health, "RIGHT", -4, 1 ) - - G.UnitFrames.Player.Health.PostUpdate = S.PostUpdateHealth - end - - ------------------------------ - -- power - ------------------------------ - do - G.UnitFrames.Player.Power:Size( 233, 2 ) - G.UnitFrames.Player.Power:ClearAllPoints() - G.UnitFrames.Player.Power:Point( "TOPRIGHT", G.UnitFrames.Player.Health, "BOTTOMRIGHT", 0, -7 ) - G.UnitFrames.Player.Power:SetFrameLevel( G.UnitFrames.Player.Health:GetFrameLevel() + 2 ) - G.UnitFrames.Player.Power:CreateBorder( true ) - - G.UnitFrames.Player.Power.value = S.SetFontString( G.UnitFrames.Player.Health, S.CreateFontString() ) - G.UnitFrames.Player.Power.value:Point( "LEFT", G.UnitFrames.Player.Health, "LEFT", 4, 1 ) - end - - ------------------------------ - -- portraits - ------------------------------ - do - if( C["unitframes"]["charportrait"] == true ) then - G.UnitFrames.Player.Portrait:ClearAllPoints() - G.UnitFrames.Player.Portrait:SetAllPoints( G.UnitFrames.Player.Health ) - G.UnitFrames.Player.Portrait:SetAlpha( 0.2 ) - G.UnitFrames.Player.Portrait.SetAlpha = S.dummy - G.UnitFrames.Player.Health:ClearAllPoints() - G.UnitFrames.Player.Health:SetPoint( "TOPLEFT", 0, 0 ) - G.UnitFrames.Player.Health:SetPoint( "TOPRIGHT" ) - G.UnitFrames.Player.Portrait:SetFrameLevel( G.UnitFrames.Player.Health:GetFrameLevel() ) - end - end - - ------------------------------ - -- classicons - ------------------------------ - do - if( C["unitframes"]["classicons"] == true ) then - local classicon = CreateFrame( "Frame", G.UnitFrames.Player:GetName() .. "_ClassIconBorder", G.UnitFrames.Player ) - classicon:Size( 30 ) - classicon:Point( "TOPRIGHT", G.UnitFrames.Player.Health, "TOPLEFT", -5, 2 ) - classicon:SetTemplate( "Default" ) - classicon:CreateShadow( "Default" ) - - local class = classicon:CreateTexture( G.UnitFrames.Player:GetName() .. "_ClassIcon", "ARTWORK" ) - class:Point( "TOPLEFT", 2, -2 ) - class:Point( "BOTTOMRIGHT", -2, 2 ) - G.UnitFrames.Player.ClassIcon = class - - G.UnitFrames.Player:EnableElement( "ClassIcon" ) - end - end - - ------------------------------ - -- combat icon - ------------------------------ - do - G.UnitFrames.Player.Combat:Size( 19 ) - G.UnitFrames.Player.Combat:ClearAllPoints() - G.UnitFrames.Player.Combat:SetPoint( "CENTER", 0, 0 ) - G.UnitFrames.Player.Combat:SetVertexColor( 0.69, 0.31, 0.31 ) - end - - ------------------------------ - -- mana flash - ------------------------------ - do - G.UnitFrames.Player.FlashInfo:ClearAllPoints() - G.UnitFrames.Player.FlashInfo:SetAllPoints( G.UnitFrames.Player.Health ) - G.UnitFrames.Player.FlashInfo:SetFrameLevel( G.UnitFrames.Player.Health:GetFrameLevel() + 2 ) - - G.UnitFrames.Player.FlashInfo.ManaLevel:ClearAllPoints() - G.UnitFrames.Player.FlashInfo.ManaLevel:SetPoint( "CENTER", 0, 1 ) - G.UnitFrames.Player.FlashInfo.ManaLevel:SetFont( S.CreateFontString() ) - - end - - ------------------------------ - -- experience - ------------------------------ - do - if( S.level ~= MAX_PLAYER_LEVEL ) then - G.UnitFrames.Player.Experience:ClearAllPoints() - G.UnitFrames.Player.Experience:SetStatusBarColor( 0, 0.4, 1, 0.8 ) - - G.UnitFrames.Player.Experience:Size( G.Panels.LeftChatBackground:GetWidth() - 4, 2 ) - G.UnitFrames.Player.Experience:Point( "BOTTOM", G.Panels.LeftChatBackground, "TOP", 0, 5 ) - G.UnitFrames.Player.Experience:SetFrameLevel( 12 ) - G.UnitFrames.Player.Experience:SetAlpha( 1 ) - G.UnitFrames.Player.Experience:CreateBorder( true ) - - G.UnitFrames.Player.Experience:HookScript( "OnLeave", function( self ) self:SetAlpha( 1 ) end ) - - G.UnitFrames.Player.Experience.Text = G.UnitFrames.Player.Experience:CreateFontString( nil, "OVERLAY" ) - G.UnitFrames.Player.Experience.Text:SetFont( S.CreateFontString() ) - G.UnitFrames.Player.Experience.Text:SetPoint( "CENTER", 0, 1 ) - G.UnitFrames.Player.Experience.Text:SetShadowOffset( S.mult, -S.mult ) - G.UnitFrames.Player.Experience.Text = G.UnitFrames.Player.Experience.Text - G.UnitFrames.Player.Experience.PostUpdate = S.ExperienceText - - G.UnitFrames.Player.Resting:ClearAllPoints() - G.UnitFrames.Player.Resting:SetPoint( "BOTTOMRIGHT", G.UnitFrames.Player, "TOPLEFT", 6, 7 ) - end - end - - ------------------------------ - -- reputation - ------------------------------ - do - if( S.level == MAX_PLAYER_LEVEL ) then - - end - end - - ------------------------------ - -- combat feedback - ------------------------------ - do - if( C["unitframes"]["combatfeedback"] == true ) then - G.UnitFrames.Player.CombatFeedbackText:SetFont( S.CreateFontString() ) - end - end - - ------------------------------ - -- druidmana - ------------------------------ - do - if( S.myclass == "DRUID" ) then - G.UnitFrames.Player.DruidManaText:SetFont( S.CreateFontString() ) - end - end - - ------------------------------ - -- classbar - ------------------------------ - do - ------------------------------ - -- druid - ------------------------------ - if( S.myclass == "DRUID" ) then - G.UnitFrames.Player.DruidManaBackground:ClearAllPoints() - G.UnitFrames.Player.DruidManaBackground:SetPoint( "BOTTOMLEFT", G.UnitFrames.Player, "TOPLEFT", 0, 7 ) - G.UnitFrames.Player.DruidManaBackground:Size( 233, 2 ) - G.UnitFrames.Player.DruidManaBackground:CreateBorder( true ) - - G.UnitFrames.Player.DruidMana:SetSize( G.UnitFrames.Player.DruidManaBackground:GetWidth(), G.UnitFrames.Player.DruidManaBackground:GetHeight() ) - - G.UnitFrames.Player.EclipseBar:ClearAllPoints() - G.UnitFrames.Player.EclipseBar:SetPoint( "BOTTOMLEFT", G.UnitFrames.Player, "TOPLEFT", 0, 7 ) - G.UnitFrames.Player.EclipseBar:Size( 233, 2 ) - G.UnitFrames.Player.EclipseBar:CreateBorder( true ) - - G.UnitFrames.Player.EclipseBar.LunarBar:SetSize( G.UnitFrames.Player.EclipseBar:GetWidth(), G.UnitFrames.Player.EclipseBar:GetHeight() ) - G.UnitFrames.Player.EclipseBar.SolarBar:SetSize( G.UnitFrames.Player.EclipseBar:GetWidth(), G.UnitFrames.Player.EclipseBar:GetHeight() ) - - G.UnitFrames.Player.EclipseBar.Text:ClearAllPoints() - G.UnitFrames.Player.EclipseBar.Text:SetPoint( "TOP", G.UnitFrames.Player.EclipseBar, 0, 25 ) - G.UnitFrames.Player.EclipseBar.Text:SetFont( S.CreateFontString() ) - G.UnitFrames.Player.EclipseBar.Text:SetShadowOffset( S.mult, -S.mult ) - end - - ------------------------------ - -- warlock - ------------------------------ - if( S.myclass == "WARLOCK" ) then - G.UnitFrames.Player.WarlockSpecBars:ClearAllPoints() - G.UnitFrames.Player.WarlockSpecBars:SetPoint( "BOTTOMLEFT", G.UnitFrames.Player, "TOPLEFT", 0, 7 ) - G.UnitFrames.Player.WarlockSpecBars:Size( 233, 2 ) - G.UnitFrames.Player.WarlockSpecBars:CreateBorder( true ) - - end - - ------------------------------ - -- paladin - ------------------------------ - if( S.myclass == "PALADIN" ) then - G.UnitFrames.Player.HolyPower:ClearAllPoints() - G.UnitFrames.Player.HolyPower:SetPoint( "BOTTOMLEFT", G.UnitFrames.Player, "TOPLEFT", 0, 7 ) - G.UnitFrames.Player.HolyPower:Size( 233, 2 ) - G.UnitFrames.Player.HolyPower:CreateBorder( true ) - - for i = 1, 5 do - G.UnitFrames.Player.HolyPower[i]:SetStatusBarColor( 228 / 255, 225 / 255, 16 / 255 ) - if( i == 5 ) then - G.UnitFrames.Player.HolyPower[i]:Size( S.Scale( 232 / 5 ) - 1, 2 ) - else - G.UnitFrames.Player.HolyPower[i]:Size( S.Scale( 232 / 5 ), 2 ) - end - - if( i == 1 ) then - G.UnitFrames.Player.HolyPower[i]:SetPoint( "LEFT", G.UnitFrames.Player.HolyPower ) - else - G.UnitFrames.Player.HolyPower[i]:Point( "LEFT", G.UnitFrames.Player.HolyPower[i - 1], "RIGHT", 1, 0 ) - end - end - end - - ------------------------------ - -- deathknight - ------------------------------ - if( S.myclass == "DEATHKNIGHT" ) then - G.UnitFrames.Player.Runes:ClearAllPoints() - G.UnitFrames.Player.Runes:SetPoint( "BOTTOMLEFT", G.UnitFrames.Player, "TOPLEFT", 0, 7 ) - G.UnitFrames.Player.Runes:Size( 233, 2 ) - G.UnitFrames.Player.Runes:CreateBorder( true ) - - for i = 1, 6 do - G.UnitFrames.Player.Runes[i]:Size( S.Scale( 233 / 6 ), 2 ) - if( i == 1 ) then - G.UnitFrames.Player.Runes[i]:SetPoint( "BOTTOMLEFT", G.UnitFrames.Player, "TOPLEFT", 0, 7 ) - else - G.UnitFrames.Player.Runes[i]:Point( "LEFT", G.UnitFrames.Player.Runes[i - 1], "RIGHT", 1, 0 ) - end - end - end - - ------------------------------ - -- monk - ------------------------------ - if( S.myclass == "MONK" ) then - G.UnitFrames.Player.HarmonyBar:ClearAllPoints() - G.UnitFrames.Player.HarmonyBar:SetPoint( "BOTTOMLEFT", G.UnitFrames.Player, "TOPLEFT", 0, 7 ) - G.UnitFrames.Player.HarmonyBar:Size( 233, 2 ) - G.UnitFrames.Player.HarmonyBar:CreateBorder( true ) - - for i = 1, 5 do - G.UnitFrames.Player.HarmonyBar[i]:Size( 233 / 5, 2 ) - if( i == 1 ) then - G.UnitFrames.Player.HarmonyBar[i]:SetPoint( "BOTTOMLEFT", G.UnitFrames.Player, "TOPLEFT", 0, 7 ) - else - G.UnitFrames.Player.HarmonyBar[i]:Point( "LEFT", G.UnitFrames.Player.HarmonyBar[i - 1], "RIGHT", 1, 0 ) - end - end - end - - ------------------------------ - -- shaman - ------------------------------ - if( S.myclass == "SHAMAN" ) then - - end - - end - - ------------------------------ - -- castbar - ------------------------------ - do - if( C["unitframes"]["unitcastbar"] == true ) then - G.UnitFrames.Player.Castbar:ClearAllPoints() - G.UnitFrames.Player.Castbar:SetHeight( S.Scale( 20 ) ) - G.UnitFrames.Player.Castbar:Point( "BOTTOMRIGHT", G.ActionBars.Bar1, "TOPRIGHT", -2, 5 ) - G.UnitFrames.Player.Castbar:CreateBorder( true ) - G.UnitFrames.Player.Castbar.bg:SetVertexColor( 0.05, 0.05, 0.05 ) - - if( C["unitframes"]["cbicons"] == true ) then - G.UnitFrames.Player.Castbar:Width( 347 ) - - G.UnitFrames.Player.Castbar.button:ClearAllPoints() - G.UnitFrames.Player.Castbar.button:SetPoint( "RIGHT", G.UnitFrames.Player.Castbar, "LEFT", -5, 0 ) - G.UnitFrames.Player.Castbar.button:Size( 24 ) - else - G.UnitFrames.Player.Castbar:Width( 374 ) - end - - G.UnitFrames.Player.Castbar.PostCastStart = S.PostCastStart - G.UnitFrames.Player.Castbar.PostChannelStart = S.PostCastStart - - G.UnitFrames.Player.Castbar.Time = S.SetFontString( G.UnitFrames.Player.Castbar, S.CreateFontString() ) - G.UnitFrames.Player.Castbar.Time:Point( "RIGHT", G.UnitFrames.Player.Castbar, "RIGHT", -4, 1 ) - G.UnitFrames.Player.Castbar.Time:SetTextColor( 0, 4, 0 ) - - G.UnitFrames.Player.Castbar.Text = S.SetFontString( G.UnitFrames.Player.Castbar, S.CreateFontString() ) - G.UnitFrames.Player.Castbar.Text:Point( "LEFT", G.UnitFrames.Player.Castbar, "LEFT", 4, 1 ) - G.UnitFrames.Player.Castbar.Text:SetTextColor( 0.3, 0.2, 1 ) - - if( C["unitframes"]["cblatency"] == true ) then - G.UnitFrames.Player.Castbar.SafeZone:SetVertexColor( 0.8, 0.2, 0.2, 0.75 ) - end - end - end - - ------------------------------ - -- fader - ------------------------------ - do - if( C["unitframes"]["fader"] == true ) then - G.UnitFrames.Player.FadeCasting = true - G.UnitFrames.Player.FadeCombat = true - G.UnitFrames.Player.FadeTarget = true - G.UnitFrames.Player.FadeHealth = true - G.UnitFrames.Player.FadePower = true - G.UnitFrames.Player.FadeHover = true - - G.UnitFrames.Player.FadeSmooth = 0.5 - G.UnitFrames.Player.FadeMinAlpha = 0.3 - G.UnitFrames.Player.FadeMaxAlpha = 1 - - G.UnitFrames.Player:EnableElement( "Fader" ) - end - end - - ------------------------------ - -- size - ------------------------------ - do - G.UnitFrames.Player:Size( 233, 26 ) - end - - -end - ------------------------------- --- Target ------------------------------- -do - ------------------------------ - -- not needed - ------------------------------ - do - G.UnitFrames.Target:SetBackdrop( nil ) - G.UnitFrames.Target:SetBackdropColor( 0, 0, 0 ) - G.UnitFrames.Target.shadow:Kill() - G.UnitFrames.Target.panel:Kill() - end - - ------------------------------ - -- health - ------------------------------ - do - G.UnitFrames.Target.Health:Size( 233, 26 ) - G.UnitFrames.Target.Health:SetFrameLevel( 5 ) - G.UnitFrames.Target.Health:CreateBorder( true ) - G.UnitFrames.Target.Health.bg:SetTexture( 0.6, 0.6, 0.6 ) - - if( C["unitframes"]["unicolor"] == true ) then - G.UnitFrames.Target.Health.colorTapping = false - G.UnitFrames.Target.Health.colorDisconnected = false - G.UnitFrames.Target.Health.colorClass = false - G.UnitFrames.Target.Health:SetStatusBarColor( 0.125, 0.125, 0.125, 1 ) - G.UnitFrames.Target.Health.bg:SetVertexColor( 0, 0, 0, 1 ) - else - G.UnitFrames.Target.Health.colorDisconnected = true - G.UnitFrames.Target.Health.colorTapping = true - G.UnitFrames.Target.Health.colorClass = true - G.UnitFrames.Target.Health.colorReaction = true - end - - G.UnitFrames.Target.Name:SetFont( S.CreateFontString() ) - G.UnitFrames.Target.Name:SetShadowOffset( 1.25, -1.25 ) - - G.UnitFrames.Target.Health.value = S.SetFontString( G.UnitFrames.Target.Health, S.CreateFontString() ) - G.UnitFrames.Target.Health.value:Point( "RIGHT", G.UnitFrames.Target.Health, "RIGHT", -4, 1 ) - - G.UnitFrames.Target.Health.PostUpdate = S.PostUpdateHealth - end - - ------------------------------ - -- power - ------------------------------ - do - G.UnitFrames.Target.Power:Size( 233, 2 ) - G.UnitFrames.Target.Power:ClearAllPoints() - G.UnitFrames.Target.Power:Point( "TOPRIGHT", G.UnitFrames.Target.Health, "BOTTOMRIGHT", 0, -7 ) - G.UnitFrames.Target.Power:SetFrameLevel( G.UnitFrames.Target.Health:GetFrameLevel() + 2 ) - G.UnitFrames.Target.Power:CreateBorder( true ) - - G.UnitFrames.Target.Power.value = S.SetFontString( G.UnitFrames.Target.Health, S.CreateFontString() ) - G.UnitFrames.Target.Power.value:Point( "LEFT", G.UnitFrames.Player.Health, "LEFT", 4, 1 ) - - if( C["unitframes"]["unicolor"] == true ) then - G.UnitFrames.Target.Power.colorTapping = true - G.UnitFrames.Target.Power.colorClass = true - G.UnitFrames.Target.Power.bg.multiplier = 0.1 - else - G.UnitFrames.Target.Power.colorPower = true - end - end - - ------------------------------ - -- portraits - ------------------------------ - do - if( C["unitframes"]["charportrait"] == true ) then - G.UnitFrames.Target.Portrait:ClearAllPoints() - G.UnitFrames.Target.Portrait:SetAllPoints( G.UnitFrames.Target.Health ) - G.UnitFrames.Target.Portrait:SetAlpha( 0.2 ) - G.UnitFrames.Target.Portrait.SetAlpha = S.dummy - G.UnitFrames.Target.Health:ClearAllPoints() - G.UnitFrames.Target.Health:SetPoint( "TOPLEFT", 0, 0 ) - G.UnitFrames.Target.Health:SetPoint( "TOPRIGHT" ) - G.UnitFrames.Target.Portrait:SetFrameLevel( G.UnitFrames.Target.Health:GetFrameLevel() ) - end - end - - ------------------------------ - -- classicons - ------------------------------ - do - if( C["unitframes"]["classicons"] == true ) then - local classicon = CreateFrame( "Frame", G.UnitFrames.Target:GetName() .. "_ClassIconBorder", G.UnitFrames.Target ) - classicon:Size( 30 ) - classicon:Point( "TOPLEFT", G.UnitFrames.Target.Health, "TOPRIGHT", 5, 2 ) - classicon:SetTemplate( "Default" ) - classicon:CreateShadow( "Default" ) - - local class = classicon:CreateTexture( G.UnitFrames.Target:GetName() .. "_ClassIcon", "ARTWORK" ) - class:Point( "TOPLEFT", 2, -2 ) - class:Point( "BOTTOMRIGHT", -2, 2 ) - G.UnitFrames.Target.ClassIcon = class - - G.UnitFrames.Target:EnableElement( "ClassIcon" ) - end - end - - ------------------------------ - -- combat feedback - ------------------------------ - do - if( C["unitframes"]["combatfeedback"] == true ) then - G.UnitFrames.Target.CombatFeedbackText:SetFont( S.CreateFontString() ) - end - end - - ------------------------------ - -- castbar - ------------------------------ - do - if( C["unitframes"]["unitcastbar"] == true ) then - G.UnitFrames.Target.Castbar:ClearAllPoints() - G.UnitFrames.Target.Castbar:SetHeight( 20 ) - G.UnitFrames.Target.Castbar:Point( "TOPRIGHT", G.UnitFrames.Target, "BOTTOMRIGHT", 0, -16 ) - G.UnitFrames.Target.Castbar:CreateBorder( true ) - G.UnitFrames.Target.Castbar.bg:SetVertexColor( 0.05, 0.05, 0.05 ) - - if( C["unitframes"]["cbicons"] == true ) then - G.UnitFrames.Target.Castbar:Width( 206 ) - - G.UnitFrames.Target.Castbar.button:ClearAllPoints() - G.UnitFrames.Target.Castbar.button:SetPoint( "RIGHT", G.UnitFrames.Target.Castbar, "LEFT", -5, 0 ) - G.UnitFrames.Target.Castbar.button:Size( 24 ) - else - G.UnitFrames.Target.Castbar:Width( 233 ) - end - - G.UnitFrames.Target.Castbar.PostCastStart = S.PostCastStart - G.UnitFrames.Target.Castbar.PostChannelStart = S.PostCastStart - - G.UnitFrames.Target.Castbar.Time = S.SetFontString( G.UnitFrames.Target.Castbar, S.CreateFontString() ) - G.UnitFrames.Target.Castbar.Time:Point( "RIGHT", G.UnitFrames.Target.Castbar, "RIGHT", -4, 1 ) - G.UnitFrames.Target.Castbar.Time:SetTextColor( 0, 4, 0 ) - - G.UnitFrames.Target.Castbar.Text = S.SetFontString( G.UnitFrames.Target.Castbar, S.CreateFontString() ) - G.UnitFrames.Target.Castbar.Text:Point( "LEFT", G.UnitFrames.Target.Castbar, "LEFT", 4, 1 ) - G.UnitFrames.Target.Castbar.Text:SetTextColor( 0.3, 0.2, 1 ) - end - end - - ------------------------------ - -- buffs, debuffs - ------------------------------ - do - if( C["unitframes"]["targetauras"] == true ) then - G.UnitFrames.Target.Debuffs:SetHeight( 27 ) - G.UnitFrames.Target.Debuffs:SetWidth( 230 ) - G.UnitFrames.Target.Debuffs.size = 27 - G.UnitFrames.Target.Debuffs.num = 8 - G.UnitFrames.Target.Debuffs.spacing = 3 - - G.UnitFrames.Target.Buffs:SetHeight( 27 ) - G.UnitFrames.Target.Buffs:SetWidth( 230 ) - G.UnitFrames.Target.Buffs.size = 27 - G.UnitFrames.Target.Buffs.num = 8 - G.UnitFrames.Target.Buffs.spacing = 3 - - G.UnitFrames.Target.Buffs:ClearAllPoints() - G.UnitFrames.Target.Buffs:Point( "BOTTOMLEFT", G.UnitFrames.Target, "TOPLEFT", -2, 5 ) - G.UnitFrames.Target.Buffs.ClearAllPoints = S.dummy - G.UnitFrames.Target.Buffs.SetPoint = S.dummy - - G.UnitFrames.Target.Debuffs:ClearAllPoints() - G.UnitFrames.Target.Debuffs:Point( "BOTTOMRIGHT", G.UnitFrames.Target.Buffs, "TOPRIGHT", 7, 3 ) - G.UnitFrames.Target.Debuffs.ClearAllPoints = S.dummy - G.UnitFrames.Target.Debuffs.SetPoint = S.dummy - - if( G.UnitFrames.Target.Buffs or G.UnitFrames.Target.Debuffs ) then - for _, frames in pairs( { G.UnitFrames.Target.Buffs, G.UnitFrames.Target.Debuffs } ) do - if( not frames ) then return end - - frames:Size( 230, 27 ) - frames.size = 27 - frames.num = 8 - - hooksecurefunc( frames, "PostCreateIcon", S.SkinAura ) - end - end - end - end - - ------------------------------ - -- fader - ------------------------------ - do - if( C["unitframes"]["fader"] == true ) then - G.UnitFrames.Target.FadeCasting = true - G.UnitFrames.Target.FadeCombat = true - G.UnitFrames.Target.FadeTarget = true - G.UnitFrames.Target.FadeHealth = true - G.UnitFrames.Target.FadePower = true - G.UnitFrames.Target.FadeHover = true - - G.UnitFrames.Target.FadeSmooth = 0.5 - G.UnitFrames.Target.FadeMinAlpha = 0.3 - G.UnitFrames.Target.FadeMaxAlpha = 1 - - G.UnitFrames.Target:EnableElement( "Fader" ) - end - end - - ------------------------------ - -- size - ------------------------------ - do - G.UnitFrames.Target:Size( 233, 26 ) - end -end - ------------------------------- --- Target of Target ------------------------------- -do - ------------------------------ - -- not needed - ------------------------------ - do - G.UnitFrames.TargetTarget:SetBackdrop( nil ) - G.UnitFrames.TargetTarget:SetBackdropColor( 0, 0, 0 ) - G.UnitFrames.TargetTarget.shadow:Kill() - G.UnitFrames.TargetTarget.panel:Kill() - end - - ------------------------------ - -- health - ------------------------------ - do - G.UnitFrames.TargetTarget.Health:Size( 130, 15 ) - G.UnitFrames.TargetTarget.Health:SetFrameLevel( 5 ) - G.UnitFrames.TargetTarget.Health:CreateBorder( true ) - G.UnitFrames.TargetTarget.Health.bg:SetTexture( 0.6, 0.6, 0.6 ) - - if( C["unitframes"]["unicolor"] == true ) then - G.UnitFrames.TargetTarget.Health.colorTapping = false - G.UnitFrames.TargetTarget.Health.colorDisconnected = false - G.UnitFrames.TargetTarget.Health.colorClass = false - G.UnitFrames.TargetTarget.Health:SetStatusBarColor( 0.125, 0.125, 0.125, 1 ) - G.UnitFrames.TargetTarget.Health.bg:SetVertexColor( 0, 0, 0, 1 ) - else - G.UnitFrames.TargetTarget.Health.colorDisconnected = true - G.UnitFrames.TargetTarget.Health.colorTapping = true - G.UnitFrames.TargetTarget.Health.colorClass = true - G.UnitFrames.TargetTarget.Health.colorReaction = true - end - - G.UnitFrames.TargetTarget.Name:SetFont( S.CreateFontString() ) - G.UnitFrames.TargetTarget.Name:SetShadowOffset( 1.25, -1.25 ) - end - - ------------------------------ - -- power - ------------------------------ - do - local TargetTargetPower = CreateFrame( "StatusBar", nil, G.UnitFrames.TargetTarget ) - TargetTargetPower:Size( 130, 2 ) - TargetTargetPower:Point( "TOP", G.UnitFrames.TargetTarget.Health, "BOTTOM", 0, -7 ) - TargetTargetPower:SetStatusBarTexture( C["media"]["normTex"] ) - TargetTargetPower:CreateBorder( true ) - - local TargetTargetPowerBackground = TargetTargetPower:CreateTexture( nil, "BORDER" ) - TargetTargetPowerBackground:SetAllPoints( TargetTargetPower ) - TargetTargetPowerBackground:SetTexture( C["media"]["normTex"] ) - TargetTargetPowerBackground.multiplier = 0.1 - - TargetTargetPower.frequentUpdates = true - TargetTargetPower.colorDisconnected = true - - if( C["unitframes"]["showsmooth"] == true ) then - TargetTargetPower.Smooth = true - end - - if( C["unitframes"]["unicolor"] == true ) then - TargetTargetPower.colorTapping = true - TargetTargetPower.colorClass = true - TargetTargetPower.colorReaction = true - TargetTargetPowerBackground.multiplier = 0.1 - else - TargetTargetPower.colorPower = true - end - - G.UnitFrames.TargetTarget.Power = TargetTargetPower - G.UnitFrames.TargetTarget.Power.bg = TargetTargetPowerBackground - - G.UnitFrames.TargetTarget:EnableElement( "Power" ) - end - - ------------------------------ - -- buffs, debuffs - ------------------------------ - do - if( C["unitframes"]["totdebuffs"] == true ) then - G.UnitFrames.TargetTarget.Debuffs:SetHeight( 25 ) - G.UnitFrames.TargetTarget.Debuffs:SetWidth( 130 ) - G.UnitFrames.TargetTarget.Debuffs.size = 25 - G.UnitFrames.TargetTarget.Debuffs.num = 3 - G.UnitFrames.TargetTarget.Debuffs.spacing = 3 - - G.UnitFrames.TargetTarget.Debuffs:ClearAllPoints() - G.UnitFrames.TargetTarget.Debuffs:Point( "RIGHT", G.UnitFrames.TargetTarget, "LEFT", -5, -3 ) - G.UnitFrames.TargetTarget.Debuffs.ClearAllPoints = S.dummy - G.UnitFrames.TargetTarget.Debuffs.SetPoint = S.dummy - - G.UnitFrames.TargetTarget.Debuffs.initialAnchor = "RIGHT" - G.UnitFrames.TargetTarget.Debuffs["growth-x"] = "LEFT" - - if( G.UnitFrames.TargetTarget.Debuffs ) then - for _, frames in pairs( { G.UnitFrames.TargetTarget.Debuffs } ) do - if( not frames ) then return end - - frames:Size( 130, 25 ) - frames.size = 25 - frames.num = 3 - - hooksecurefunc( frames, "PostCreateIcon", S.SkinAura ) - end - end - end - end - - ------------------------------ - -- size - ------------------------------ - do - G.UnitFrames.TargetTarget:Size( 130, 15 ) - end -end - ------------------------------- --- Pet ------------------------------- -do - ------------------------------ - -- not needed - ------------------------------ - do - G.UnitFrames.Pet:SetBackdrop( nil ) - G.UnitFrames.Pet:SetBackdropColor( 0, 0, 0 ) - G.UnitFrames.Pet.shadow:Kill() - G.UnitFrames.Pet.panel:Kill() - end - - ------------------------------ - -- health - ------------------------------ - do - G.UnitFrames.Pet.Health:Size( 130, 15 ) - G.UnitFrames.Pet.Health:SetFrameLevel( 5 ) - G.UnitFrames.Pet.Health:CreateBorder( true ) - G.UnitFrames.Pet.Health.bg:SetTexture( 0.6, 0.6, 0.6 ) - - if( C["unitframes"]["unicolor"] == true ) then - G.UnitFrames.Pet.Health.colorTapping = false - G.UnitFrames.Pet.Health.colorDisconnected = false - G.UnitFrames.Pet.Health.colorClass = false - G.UnitFrames.Pet.Health:SetStatusBarColor( 0.125, 0.125, 0.125, 1 ) - G.UnitFrames.Pet.Health.bg:SetVertexColor( 0, 0, 0, 1 ) - else - G.UnitFrames.Pet.Health.colorDisconnected = true - G.UnitFrames.Pet.Health.colorTapping = true - G.UnitFrames.Pet.Health.colorClass = true - G.UnitFrames.Pet.Health.colorReaction = true - end - - G.UnitFrames.Pet.Name:SetFont( S.CreateFontString() ) - G.UnitFrames.Pet.Name:SetShadowOffset( 1.25, -1.25 ) - end - - ------------------------------ - -- power - ------------------------------ - do - G.UnitFrames.Pet.Power:Size( 130, 2 ) - G.UnitFrames.Pet.Power:ClearAllPoints() - G.UnitFrames.Pet.Power:SetPoint( "TOP", G.UnitFrames.Pet.Health, "BOTTOM", 0, -7 ) - G.UnitFrames.Pet.Power:CreateBorder( true ) - - end - - ------------------------------ - -- size - ------------------------------ - do - G.UnitFrames.Pet:Size( 130, 15 ) - end -end - ------------------------------- --- Pet Target ------------------------------- -do - -end - ------------------------------- --- Focus ------------------------------- -do - ------------------------------ - -- not needed - ------------------------------ - do - G.UnitFrames.Focus:SetBackdrop( nil ) - G.UnitFrames.Focus:SetBackdropColor( 0, 0, 0 ) - G.UnitFrames.Focus.shadow:Kill() - end - - ------------------------------ - -- health - ------------------------------ - do - G.UnitFrames.Focus.Health:Size( 200, 26 ) - G.UnitFrames.Focus.Health:SetFrameLevel( 5 ) - G.UnitFrames.Focus.Health:CreateBorder( true ) - G.UnitFrames.Focus.Health.bg:SetTexture( 0.6, 0.6, 0.6 ) - - if( C["unitframes"]["unicolor"] == true ) then - G.UnitFrames.Focus.Health.colorTapping = false - G.UnitFrames.Focus.Health.colorDisconnected = false - G.UnitFrames.Focus.Health.colorClass = false - G.UnitFrames.Focus.Health:SetStatusBarColor( 0.125, 0.125, 0.125, 1 ) - G.UnitFrames.Focus.Health.bg:SetVertexColor( 0, 0, 0, 1 ) - else - G.UnitFrames.Focus.Health.colorDisconnected = true - G.UnitFrames.Focus.Health.colorTapping = true - G.UnitFrames.Focus.Health.colorClass = true - G.UnitFrames.Focus.Health.colorReaction = true - end - - G.UnitFrames.Focus.Name:SetFont( S.CreateFontString() ) - G.UnitFrames.Focus.Name:SetShadowOffset( 1.25, -1.25 ) - G.UnitFrames.Focus.Name:Point( "CENTER", G.UnitFrames.Focus.Health, "CENTER", 0, 1 ) - - G.UnitFrames.Focus.Health.value = S.SetFontString( G.UnitFrames.Focus.Health, S.CreateFontString() ) - G.UnitFrames.Focus.Health.value:Point( "RIGHT", G.UnitFrames.Focus.Health, "RIGHT", -4, 1 ) - end - - ------------------------------ - -- power - ------------------------------ - do - G.UnitFrames.Focus.Power:Size( 200, 2 ) - G.UnitFrames.Focus.Power:ClearAllPoints() - G.UnitFrames.Focus.Power:Point( "TOPRIGHT", G.UnitFrames.Focus.Health, "BOTTOMRIGHT", 0, -7 ) - G.UnitFrames.Focus.Power:SetFrameLevel( G.UnitFrames.Focus.Health:GetFrameLevel() + 2 ) - G.UnitFrames.Focus.Power:CreateBorder( true ) - - G.UnitFrames.Focus.Power.value = S.SetFontString( G.UnitFrames.Focus.Health, S.CreateFontString() ) - G.UnitFrames.Focus.Power.value:Point( "LEFT", G.UnitFrames.Focus.Health, "LEFT", 4, 1 ) - end - - ------------------------------ - -- castbar - ------------------------------ - do - if( C["unitframes"]["unitcastbar"] == true ) then - G.UnitFrames.Focus.Castbar:ClearAllPoints() - G.UnitFrames.Focus.Castbar:SetHeight( 20 ) - G.UnitFrames.Focus.Castbar:Point( "TOPLEFT", G.UnitFrames.Focus, "BOTTOMLEFT", 0, -16 ) - G.UnitFrames.Focus.Castbar:CreateBorder( true ) - - G.UnitFrames.Focus.Castbar.bg:Kill() - - G.UnitFrames.Focus.Castbar.bg = G.UnitFrames.Focus.Castbar:CreateTexture( nil, "BORDER" ) - G.UnitFrames.Focus.Castbar.bg:SetAllPoints( G.UnitFrames.Focus.Castbar ) - G.UnitFrames.Focus.Castbar.bg:SetVertexColor( 0.05, 0.05, 0.05 ) - - G.UnitFrames.Focus.Castbar.Time = S.SetFontString( G.UnitFrames.Focus.Castbar, S.CreateFontString() ) - G.UnitFrames.Focus.Castbar.Time:Point( "RIGHT", G.UnitFrames.Focus.Castbar, "RIGHT", -4, 1 ) - G.UnitFrames.Focus.Castbar.Time:SetTextColor( 0, 4, 0 ) - - G.UnitFrames.Focus.Castbar.Text = S.SetFontString( G.UnitFrames.Focus.Castbar, S.CreateFontString() ) - G.UnitFrames.Focus.Castbar.Text:Point( "LEFT", G.UnitFrames.Focus.Castbar, "LEFT", 4, 1 ) - G.UnitFrames.Focus.Castbar.Text:SetTextColor( 0.3, 0.2, 1 ) - - G.UnitFrames.Focus.Castbar.PostCastStart = S.PostCastStart - G.UnitFrames.Focus.Castbar.PostChannelStart = S.PostCastStart - - if( C["unitframes"]["cbicons"] == true ) then - G.UnitFrames.Focus.Castbar:Width( 173 ) - - G.UnitFrames.Focus.Castbar.button:ClearAllPoints() - G.UnitFrames.Focus.Castbar.button:SetPoint( "LEFT", G.UnitFrames.Focus.Castbar, "RIGHT", 5, 0 ) - G.UnitFrames.Focus.Castbar.button:Size( 24 ) - G.UnitFrames.Focus.Castbar.button:CreateShadow( "Default" ) - else - G.UnitFrames.Focus.Castbar:Width( 200 ) - - G.UnitFrames.Focus.Castbar.button:Kill() - end - end - end - - ------------------------------ - -- buffs, debuffs - ------------------------------ - do - G.UnitFrames.Focus.Debuffs:SetHeight( 30 ) - G.UnitFrames.Focus.Debuffs:SetWidth( 200 ) - G.UnitFrames.Focus.Debuffs.size = 30 - G.UnitFrames.Focus.Debuffs.num = 5 - G.UnitFrames.Focus.Debuffs.spacing = 3 - - G.UnitFrames.Focus.Debuffs:ClearAllPoints() - G.UnitFrames.Focus.Debuffs:Point( "LEFT", G.UnitFrames.Focus, "RIGHT", 5, 0 ) - G.UnitFrames.Focus.Debuffs.ClearAllPoints = S.dummy - G.UnitFrames.Focus.Debuffs.SetPoint = S.dummy - - G.UnitFrames.Focus.Debuffs.initialAnchor = "LEFT" - G.UnitFrames.Focus.Debuffs["growth-x"] = "RIGHT" - - if( G.UnitFrames.Focus.Debuffs ) then - for _, frames in pairs( { G.UnitFrames.Focus.Debuffs } ) do - if( not frames ) then return end - - frames:Size( 200, 30 ) - frames.size = 30 - frames.num = 5 - - hooksecurefunc( frames, "PostCreateIcon", S.SkinAura ) - end - end - end - - ------------------------------ - -- size - ------------------------------ - do - G.UnitFrames.Focus:Size( 200, 26 ) - end -end - ------------------------------- --- Focus Target ------------------------------- -do - ------------------------------ - -- not needed - ------------------------------ - do - G.UnitFrames.FocusTarget:SetBackdrop( nil ) - G.UnitFrames.FocusTarget:SetBackdropColor( 0, 0, 0 ) - G.UnitFrames.FocusTarget.shadow:Kill() - end - - ------------------------------ - -- health - ------------------------------ - do - G.UnitFrames.FocusTarget.Health:Size( 200, 26 ) - G.UnitFrames.FocusTarget.Health:SetFrameLevel( 5 ) - G.UnitFrames.FocusTarget.Health:CreateBorder( true ) - G.UnitFrames.FocusTarget.Health.bg:SetTexture( 0.6, 0.6, 0.6 ) - - if( C["unitframes"]["unicolor"] == true ) then - G.UnitFrames.FocusTarget.Health.colorTapping = false - G.UnitFrames.FocusTarget.Health.colorDisconnected = false - G.UnitFrames.FocusTarget.Health.colorClass = false - G.UnitFrames.FocusTarget.Health:SetStatusBarColor( 0.125, 0.125, 0.125, 1 ) - G.UnitFrames.FocusTarget.Health.bg:SetVertexColor( 0, 0, 0, 1 ) - else - G.UnitFrames.FocusTarget.Health.colorDisconnected = true - G.UnitFrames.FocusTarget.Health.colorTapping = true - G.UnitFrames.FocusTarget.Health.colorClass = true - G.UnitFrames.FocusTarget.Health.colorReaction = true - end - - G.UnitFrames.FocusTarget.Name:SetFont( S.CreateFontString() ) - G.UnitFrames.FocusTarget.Name:SetShadowOffset( 1.25, -1.25 ) - G.UnitFrames.FocusTarget.Name:Point( "CENTER", G.UnitFrames.FocusTarget.Health, "CENTER", 0, 1 ) - - G.UnitFrames.FocusTarget.Health.value = S.SetFontString( G.UnitFrames.FocusTarget.Health, S.CreateFontString() ) - G.UnitFrames.FocusTarget.Health.value:Point( "RIGHT", G.UnitFrames.FocusTarget.Health, "RIGHT", -4, 1 ) - end - - ------------------------------ - -- power - ------------------------------ - do - G.UnitFrames.FocusTarget.Power:Size( 200, 2 ) - G.UnitFrames.FocusTarget.Power:ClearAllPoints() - G.UnitFrames.FocusTarget.Power:Point( "TOPRIGHT", G.UnitFrames.FocusTarget.Health, "BOTTOMRIGHT", 0, -7 ) - G.UnitFrames.FocusTarget.Power:SetFrameLevel( G.UnitFrames.FocusTarget.Health:GetFrameLevel() + 2 ) - G.UnitFrames.FocusTarget.Power:CreateBorder( true ) - - G.UnitFrames.FocusTarget.Power.value = S.SetFontString( G.UnitFrames.FocusTarget.Health, S.CreateFontString() ) - G.UnitFrames.FocusTarget.Power.value:Point( "LEFT", G.UnitFrames.FocusTarget.Health, "LEFT", 4, 1 ) - end - - ------------------------------ - -- castbar - ------------------------------ - do - if( C["unitframes"]["unitcastbar"] == true ) then - G.UnitFrames.FocusTarget.Castbar:ClearAllPoints() - G.UnitFrames.FocusTarget.Castbar:SetHeight( 20 ) - G.UnitFrames.FocusTarget.Castbar:Point( "TOPLEFT", G.UnitFrames.FocusTarget, "BOTTOMLEFT", 0, -16 ) - G.UnitFrames.FocusTarget.Castbar:CreateBorder( true ) - - G.UnitFrames.FocusTarget.Castbar.bg:Kill() - - G.UnitFrames.FocusTarget.Castbar.bg = G.UnitFrames.FocusTarget.Castbar:CreateTexture( nil, "BORDER" ) - G.UnitFrames.FocusTarget.Castbar.bg:SetAllPoints( G.UnitFrames.FocusTarget.Castbar ) - G.UnitFrames.FocusTarget.Castbar.bg:SetTexture( C["media"]["normTex"] ) - G.UnitFrames.FocusTarget.Castbar.bg:SetVertexColor( 0.05, 0.05, 0.05 ) - - G.UnitFrames.FocusTarget.Castbar.Time = S.SetFontString( G.UnitFrames.FocusTarget.Castbar, S.CreateFontString() ) - G.UnitFrames.FocusTarget.Castbar.Time:Point( "RIGHT", G.UnitFrames.FocusTarget.Castbar, "RIGHT", -4, 1 ) - G.UnitFrames.FocusTarget.Castbar.Time:SetTextColor( 0, 4, 0 ) - - G.UnitFrames.FocusTarget.Castbar.Text = S.SetFontString( G.UnitFrames.FocusTarget.Castbar, S.CreateFontString() ) - G.UnitFrames.FocusTarget.Castbar.Text:Point( "LEFT", G.UnitFrames.FocusTarget.Castbar, "LEFT", 4, 1 ) - G.UnitFrames.FocusTarget.Castbar.Text:SetTextColor( 0.3, 0.2, 1 ) - - G.UnitFrames.FocusTarget.Castbar.PostCastStart = S.PostCastStart - G.UnitFrames.FocusTarget.Castbar.PostChannelStart = S.PostCastStart - - if( C["unitframes"]["cbicons"] == true ) then - G.UnitFrames.FocusTarget.Castbar:Width( 173 ) - - G.UnitFrames.FocusTarget.Castbar.button:ClearAllPoints() - G.UnitFrames.FocusTarget.Castbar.button:SetPoint( "LEFT", G.UnitFrames.FocusTarget.Castbar, "RIGHT", 5, 0 ) - G.UnitFrames.FocusTarget.Castbar.button:Size( 24 ) - G.UnitFrames.FocusTarget.Castbar.button:CreateShadow( "Default" ) - else - G.UnitFrames.FocusTarget.Castbar:Width( 200 ) - - G.UnitFrames.FocusTarget.Castbar.button:Kill() - end - end - end - - ------------------------------ - -- buffs, debuffs - ------------------------------ - do - G.UnitFrames.FocusTarget.Debuffs:SetHeight( 30 ) - G.UnitFrames.FocusTarget.Debuffs:SetWidth( 200 ) - G.UnitFrames.FocusTarget.Debuffs.size = 30 - G.UnitFrames.FocusTarget.Debuffs.num = 5 - G.UnitFrames.FocusTarget.Debuffs.spacing = 3 - - G.UnitFrames.FocusTarget.Debuffs:ClearAllPoints() - G.UnitFrames.FocusTarget.Debuffs:Point( "LEFT", G.UnitFrames.FocusTarget, "RIGHT", 5, 0 ) - G.UnitFrames.FocusTarget.Debuffs.ClearAllPoints = S.dummy - G.UnitFrames.FocusTarget.Debuffs.SetPoint = S.dummy - - G.UnitFrames.FocusTarget.Debuffs.initialAnchor = "LEFT" - G.UnitFrames.FocusTarget.Debuffs["growth-x"] = "RIGHT" - - if( G.UnitFrames.FocusTarget.Debuffs ) then - for _, frames in pairs( { G.UnitFrames.FocusTarget.Debuffs } ) do - if( not frames ) then return end - - frames:Size( 200, 30 ) - frames.size = 30 - frames.num = 5 - - hooksecurefunc( frames, "PostCreateIcon", S.SkinAura ) - end - end - end - - ------------------------------ - -- size - ------------------------------ - do - G.UnitFrames.FocusTarget:Size( 200, 26 ) - end -end - ------------------------------- --- Boss ------------------------------- -do - for i = 1, MAX_BOSS_FRAMES do - ------------------------------ - -- not needed - ------------------------------ - do - G.UnitFrames["Boss" .. i]:SetBackdrop( nil ) - G.UnitFrames["Boss" .. i]:SetBackdropColor( 0, 0, 0 ) - G.UnitFrames["Boss" .. i].shadow:Kill() - end - - ------------------------------ - -- health - ------------------------------ - do - G.UnitFrames["Boss" .. i].Health:Size( 200, 26 ) - G.UnitFrames["Boss" .. i].Health:SetFrameLevel( 5 ) - G.UnitFrames["Boss" .. i].Health:CreateBorder( true ) - G.UnitFrames["Boss" .. i].Health.bg:SetTexture( 0.6, 0.6, 0.6 ) - - if( C["unitframes"]["unicolor"] == true ) then - G.UnitFrames["Boss" .. i].Health.colorTapping = false - G.UnitFrames["Boss" .. i].Health.colorDisconnected = false - G.UnitFrames["Boss" .. i].Health.colorClass = false - G.UnitFrames["Boss" .. i].Health:SetStatusBarColor( 0.125, 0.125, 0.125, 1 ) - G.UnitFrames["Boss" .. i].Health.bg:SetVertexColor( 0, 0, 0, 1 ) - else - G.UnitFrames["Boss" .. i].Health.colorDisconnected = true - G.UnitFrames["Boss" .. i].Health.colorTapping = true - G.UnitFrames["Boss" .. i].Health.colorClass = true - G.UnitFrames["Boss" .. i].Health.colorReaction = true - end - - G.UnitFrames["Boss" .. i].Name:SetFont( S.CreateFontString() ) - G.UnitFrames["Boss" .. i].Name:SetShadowOffset( 1.25, -1.25 ) - G.UnitFrames["Boss" .. i].Name:Point( "CENTER", G.UnitFrames["Boss" .. i].Health, "CENTER", 0, 1 ) - - G.UnitFrames["Boss" .. i].Health.value = S.SetFontString( G.UnitFrames["Boss" .. i].Health, S.CreateFontString() ) - G.UnitFrames["Boss" .. i].Health.value:Point( "RIGHT", G.UnitFrames["Boss" .. i].Health, "RIGHT", -4, 1 ) - end - - ------------------------------ - -- power - ------------------------------ - do - G.UnitFrames["Boss" .. i].Power:Size( 200, 2 ) - G.UnitFrames["Boss" .. i].Power:ClearAllPoints() - G.UnitFrames["Boss" .. i].Power:Point( "TOPRIGHT", G.UnitFrames["Boss" .. i].Health, "BOTTOMRIGHT", 0, -7 ) - G.UnitFrames["Boss" .. i].Power:SetFrameLevel( G.UnitFrames["Boss" .. i].Health:GetFrameLevel() + 2 ) - G.UnitFrames["Boss" .. i].Power:CreateBorder( true ) - - G.UnitFrames["Boss" .. i].Power.value = S.SetFontString( G.UnitFrames["Boss" .. i].Health, S.CreateFontString() ) - G.UnitFrames["Boss" .. i].Power.value:Point( "LEFT", G.UnitFrames["Boss" .. i].Health, "LEFT", 4, 1 ) - end - - ------------------------------ - -- castbar - ------------------------------ - do - if( C["unitframes"]["unitcastbar"] == true ) then - G.UnitFrames["Boss" .. i].Castbar:ClearAllPoints() - G.UnitFrames["Boss" .. i].Castbar:SetHeight( 20 ) - G.UnitFrames["Boss" .. i].Castbar:Point( "TOPRIGHT", G.UnitFrames["Boss" .. i], "BOTTOMRIGHT", 0, -16 ) - G.UnitFrames["Boss" .. i].Castbar:CreateBorder( true ) - - G.UnitFrames["Boss" .. i].Castbar.bg:Kill() - - G.UnitFrames["Boss" .. i].Castbar.bg = G.UnitFrames["Boss" .. i].Castbar:CreateTexture( nil, "BORDER" ) - G.UnitFrames["Boss" .. i].Castbar.bg:SetAllPoints( G.UnitFrames["Boss" .. i].Castbar ) - G.UnitFrames["Boss" .. i].Castbar.bg:SetTexture( C["media"]["normTex"] ) - G.UnitFrames["Boss" .. i].Castbar.bg:SetVertexColor( 0.05, 0.05, 0.05 ) - - G.UnitFrames["Boss" .. i].Castbar.Time = S.SetFontString( G.UnitFrames["Boss" .. i].Castbar, S.CreateFontString() ) - G.UnitFrames["Boss" .. i].Castbar.Time:Point( "RIGHT", G.UnitFrames["Boss" .. i].Castbar, "RIGHT", -4, 1 ) - G.UnitFrames["Boss" .. i].Castbar.Time:SetTextColor( 0, 4, 0 ) - - G.UnitFrames["Boss" .. i].Castbar.Text = S.SetFontString( G.UnitFrames["Boss" .. i].Castbar, S.CreateFontString() ) - G.UnitFrames["Boss" .. i].Castbar.Text:Point( "LEFT", G.UnitFrames["Boss" .. i].Castbar, "LEFT", 4, 1 ) - G.UnitFrames["Boss" .. i].Castbar.Text:SetTextColor( 0.3, 0.2, 1 ) - - G.UnitFrames["Boss" .. i].Castbar.PostCastStart = S.PostCastStart - G.UnitFrames["Boss" .. i].Castbar.PostChannelStart = S.PostCastStart - - if( C["unitframes"]["cbicons"] == true ) then - G.UnitFrames["Boss" .. i].Castbar:Width( 173 ) - - G.UnitFrames["Boss" .. i].Castbar.button:ClearAllPoints() - G.UnitFrames["Boss" .. i].Castbar.button:SetPoint( "RIGHT", G.UnitFrames["Boss" .. i].Castbar, "LEFT", -5, 0 ) - G.UnitFrames["Boss" .. i].Castbar.button:Size( 24 ) - G.UnitFrames["Boss" .. i].Castbar.button:CreateShadow( "Default" ) - else - G.UnitFrames["Boss" .. i].Castbar:Width( 200 ) - - G.UnitFrames["Boss" .. i].Castbar.button:Kill() - end - end - end - - ------------------------------ - -- buffs, debuffs - ------------------------------ - do - G.UnitFrames["Boss" .. i].Debuffs:SetHeight( 30 ) - G.UnitFrames["Boss" .. i].Debuffs:SetWidth( 200 ) - G.UnitFrames["Boss" .. i].Debuffs.size = 30 - G.UnitFrames["Boss" .. i].Debuffs.num = 5 - G.UnitFrames["Boss" .. i].Debuffs.spacing = 3 - - G.UnitFrames["Boss" .. i].Debuffs:ClearAllPoints() - G.UnitFrames["Boss" .. i].Debuffs:Point( "LEFT", G.UnitFrames["Boss" .. i], "RIGHT", 5, 0 ) - G.UnitFrames["Boss" .. i].Debuffs.ClearAllPoints = S.dummy - G.UnitFrames["Boss" .. i].Debuffs.SetPoint = S.dummy - - G.UnitFrames["Boss" .. i].Buffs:SetHeight( 30 ) - G.UnitFrames["Boss" .. i].Buffs:SetWidth( 200 ) - G.UnitFrames["Boss" .. i].Buffs.size = 30 - G.UnitFrames["Boss" .. i].Buffs.num = 5 - G.UnitFrames["Boss" .. i].Buffs.spacing = 3 - - G.UnitFrames["Boss" .. i].Buffs:ClearAllPoints() - G.UnitFrames["Boss" .. i].Buffs:Point( "RIGHT", G.UnitFrames["Boss" .. i], "LEFT", -5, 0 ) - G.UnitFrames["Boss" .. i].Buffs.ClearAllPoints = S.dummy - G.UnitFrames["Boss" .. i].Buffs.SetPoint = S.dummy - - G.UnitFrames["Boss" .. i].Debuffs.initialAnchor = "LEFT" - G.UnitFrames["Boss" .. i].Debuffs["growth-x"] = "RIGHT" - - G.UnitFrames["Boss" .. i].Buffs.initialAnchor = "RIGHT" - G.UnitFrames["Boss" .. i].Buffs["growth-x"] = "LEFT" - - if( G.UnitFrames["Boss" .. i].Debuffs or G.UnitFrames["Boss" .. i].Buffs ) then - for _, frames in pairs( { G.UnitFrames["Boss" .. i].Debuffs, G.UnitFrames["Boss" .. i].Buffs } ) do - if( not frames ) then return end - - frames:Size( 200, 30 ) - frames.size = 30 - frames.num = 5 - - hooksecurefunc( frames, "PostCreateIcon", S.SkinAura ) - end - end - end - - ------------------------------ - -- altpowerbar - ------------------------------ - do - G.UnitFrames["Boss" .. i].AltPowerBar:SetStatusBarTexture( C["media"]["normal"] ) - end - - ------------------------------ - -- size - ------------------------------ - do - G.UnitFrames["Boss" .. i]:Size( 200, 26 ) - end - end -end - ------------------------------- --- Arena ------------------------------- -do - for i = 1, 5 do - ------------------------------ - -- not needed - ------------------------------ - do - G.UnitFrames["Arena" .. i]:SetBackdrop( nil ) - G.UnitFrames["Arena" .. i]:SetBackdropColor( 0, 0, 0 ) - G.UnitFrames["Arena" .. i].shadow:Kill() - end - - ------------------------------ - -- health - ------------------------------ - do - G.UnitFrames["Arena" .. i].Health:Size( 200, 26 ) - G.UnitFrames["Arena" .. i].Health:SetFrameLevel( 5 ) - G.UnitFrames["Arena" .. i].Health:CreateBorder( true ) - G.UnitFrames["Arena" .. i].Health.bg:SetTexture( 0.6, 0.6, 0.6 ) - - if( C["unitframes"]["unicolor"] == true ) then - G.UnitFrames["Arena" .. i].Health.colorTapping = false - G.UnitFrames["Arena" .. i].Health.colorDisconnected = false - G.UnitFrames["Arena" .. i].Health.colorClass = false - G.UnitFrames["Arena" .. i].Health:SetStatusBarColor( 0.125, 0.125, 0.125, 1 ) - G.UnitFrames["Arena" .. i].Health.bg:SetVertexColor( 0, 0, 0, 1 ) - else - G.UnitFrames["Arena" .. i].Health.colorDisconnected = true - G.UnitFrames["Arena" .. i].Health.colorTapping = true - G.UnitFrames["Arena" .. i].Health.colorClass = true - G.UnitFrames["Arena" .. i].Health.colorReaction = true - end - - G.UnitFrames["Arena" .. i].Name:SetFont( S.CreateFontString() ) - G.UnitFrames["Arena" .. i].Name:SetShadowOffset( 1.25, -1.25 ) - G.UnitFrames["Arena" .. i].Name:Point( "CENTER", G.UnitFrames["Arena" .. i].Health, "CENTER", 0, 1 ) - - G.UnitFrames["Arena" .. i].Health.value = S.SetFontString( G.UnitFrames["Arena" .. i].Health, S.CreateFontString() ) - G.UnitFrames["Arena" .. i].Health.value:Point( "RIGHT", G.UnitFrames["Arena" .. i].Health, "RIGHT", -4, 1 ) - end - - ------------------------------ - -- power - ------------------------------ - do - G.UnitFrames["Arena" .. i].Power:Size( 200, 2 ) - G.UnitFrames["Arena" .. i].Power:ClearAllPoints() - G.UnitFrames["Arena" .. i].Power:Point( "TOPRIGHT", G.UnitFrames["Arena" .. i].Health, "BOTTOMRIGHT", 0, -7 ) - G.UnitFrames["Arena" .. i].Power:SetFrameLevel( G.UnitFrames["Arena" .. i].Health:GetFrameLevel() + 2 ) - G.UnitFrames["Arena" .. i].Power:CreateBorder( true ) - - G.UnitFrames["Arena" .. i].Power.value = S.SetFontString( G.UnitFrames["Arena" .. i].Health, S.CreateFontString() ) - G.UnitFrames["Arena" .. i].Power.value:Point( "LEFT", G.UnitFrames["Arena" .. i].Health, "LEFT", 4, 1 ) - end - - ------------------------------ - -- castbar - ------------------------------ - do - if( C["unitframes"]["unitcastbar"] == true ) then - G.UnitFrames["Arena" .. i].Castbar:ClearAllPoints() - G.UnitFrames["Arena" .. i].Castbar:SetHeight( 20 ) - G.UnitFrames["Arena" .. i].Castbar:Point( "TOPRIGHT", G.UnitFrames["Arena" .. i], "BOTTOMRIGHT", 0, -16 ) - G.UnitFrames["Arena" .. i].Castbar:CreateBorder( true ) - - G.UnitFrames["Arena" .. i].Castbar.bg:Kill() - - G.UnitFrames["Arena" .. i].Castbar.bg = G.UnitFrames["Arena" .. i].Castbar:CreateTexture( nil, "BORDER" ) - G.UnitFrames["Arena" .. i].Castbar.bg:SetAllPoints( G.UnitFrames["Arena" .. i].Castbar ) - G.UnitFrames["Arena" .. i].Castbar.bg:SetTexture( C["media"]["normTex"] ) - G.UnitFrames["Arena" .. i].Castbar.bg:SetVertexColor( 0.05, 0.05, 0.05 ) - - G.UnitFrames["Arena" .. i].Castbar.Time = S.SetFontString( G.UnitFrames["Arena" .. i].Castbar, S.CreateFontString() ) - G.UnitFrames["Arena" .. i].Castbar.Time:Point( "RIGHT", G.UnitFrames["Arena" .. i].Castbar, "RIGHT", -4, 1 ) - G.UnitFrames["Arena" .. i].Castbar.Time:SetTextColor( 0, 4, 0 ) - - G.UnitFrames["Arena" .. i].Castbar.Text = S.SetFontString( G.UnitFrames["Arena" .. i].Castbar, S.CreateFontString() ) - G.UnitFrames["Arena" .. i].Castbar.Text:Point( "LEFT", G.UnitFrames["Arena" .. i].Castbar, "LEFT", 4, 1 ) - G.UnitFrames["Arena" .. i].Castbar.Text:SetTextColor( 0.3, 0.2, 1 ) - - G.UnitFrames["Arena" .. i].Castbar.PostCastStart = S.PostCastStart - G.UnitFrames["Arena" .. i].Castbar.PostChannelStart = S.PostCastStart - - if( C["unitframes"]["cbicons"] == true ) then - G.UnitFrames["Arena" .. i].Castbar:Width( 173 ) - - G.UnitFrames["Arena" .. i].Castbar.button:ClearAllPoints() - G.UnitFrames["Arena" .. i].Castbar.button:SetPoint( "RIGHT", G.UnitFrames["Arena" .. i].Castbar, "LEFT", -5, 0 ) - G.UnitFrames["Arena" .. i].Castbar.button:Size( 24 ) - G.UnitFrames["Arena" .. i].Castbar.button:CreateShadow( "Default" ) - else - G.UnitFrames["Arena" .. i].Castbar:Width( 200 ) - - G.UnitFrames["Arena" .. i].Castbar.button:Kill() - end - end - end - - ------------------------------ - -- buffs, debuffs - ------------------------------ - do - G.UnitFrames["Arena" .. i].Debuffs:SetHeight( 30 ) - G.UnitFrames["Arena" .. i].Debuffs:SetWidth( 200 ) - G.UnitFrames["Arena" .. i].Debuffs.size = 30 - G.UnitFrames["Arena" .. i].Debuffs.num = 5 - G.UnitFrames["Arena" .. i].Debuffs.spacing = 3 - - G.UnitFrames["Arena" .. i].Debuffs:ClearAllPoints() - G.UnitFrames["Arena" .. i].Debuffs:Point( "LEFT", G.UnitFrames["Arena" .. i], "RIGHT", 5, 0 ) - G.UnitFrames["Arena" .. i].Debuffs.ClearAllPoints = S.dummy - G.UnitFrames["Arena" .. i].Debuffs.SetPoint = S.dummy - - G.UnitFrames["Arena" .. i].Debuffs.initialAnchor = "LEFT" - G.UnitFrames["Arena" .. i].Debuffs["growth-x"] = "RIGHT" - - if( G.UnitFrames["Arena" .. i].Debuffs ) then - for _, frames in pairs( { G.UnitFrames["Arena" .. i].Debuffs } ) do - if( not frames ) then return end - - frames:Size( 200, 30 ) - frames.size = 30 - frames.num = 5 - - hooksecurefunc( frames, "PostCreateIcon", S.SkinAura ) - end - end - end - - ------------------------------ - -- trinket - ------------------------------ - do - G.UnitFrames["Arena" .. i].Trinketbg:ClearAllPoints() - G.UnitFrames["Arena" .. i].Trinketbg:Point( "RIGHT", G.UnitFrames["Arena" .. i], "LEFT", -5, 0 ) - G.UnitFrames["Arena" .. i].Trinketbg:Size( 30 ) - G.UnitFrames["Arena" .. i].Trinketbg:CreateShadow( "Default" ) - end - - ------------------------------ - -- size - ------------------------------ - do - G.UnitFrames["Arena" .. i]:Size( 200, 26 ) - end - end -end - ------------------------------- --- Main Tank, Main Assist ------------------------------- -do - -end - ------------------------------- --- Position ------------------------------- -local FramePositions = CreateFrame( "Frame" ) -FramePositions:RegisterEvent( "PLAYER_ENTERING_WORLD" ) -FramePositions:SetScript( "OnEvent", function( self, event, addon ) - G.UnitFrames.Player:ClearAllPoints() - G.UnitFrames.Target:ClearAllPoints() - G.UnitFrames.TargetTarget:ClearAllPoints() - G.UnitFrames.Pet:ClearAllPoints() - G.UnitFrames.Focus:ClearAllPoints() - G.UnitFrames.FocusTarget:ClearAllPoints() - - if( IsAddOnLoaded( "AsphyxiaUI_Raid" ) ) then - G.UnitFrames.Player:SetPoint( "TOP", UIParent, "BOTTOM", -170 , 260 ) - G.UnitFrames.Target:SetPoint( "TOP", UIParent, "BOTTOM", 170 , 260 ) - elseif( IsAddOnLoaded( "AsphyxiaUI_Raid_Healing" ) ) then - G.UnitFrames.Player:SetPoint( "TOP", UIParent, "BOTTOM", -309 , 350 ) - G.UnitFrames.Target:SetPoint( "TOP", UIParent, "BOTTOM", 309 , 350 ) - else - G.UnitFrames.Player:SetPoint( "TOP", UIParent, "BOTTOM", -309 , 350 ) - G.UnitFrames.Target:SetPoint( "TOP", UIParent, "BOTTOM", 309 , 350 ) - end - - G.UnitFrames.TargetTarget:SetPoint( "TOPRIGHT", G.UnitFrames.Target, "BOTTOMRIGHT", 0, -49 ) - G.UnitFrames.Pet:SetPoint( "TOPLEFT", G.UnitFrames.Player, "BOTTOMLEFT", 0, -49 ) - G.UnitFrames.Focus:SetPoint( "TOP", UIParent, "BOTTOM", -450, 600 ) - G.UnitFrames.FocusTarget:SetPoint( "TOP", G.UnitFrames.Focus, "BOTTOM", 0 , -43 ) - - for i = 1, MAX_BOSS_FRAMES do - G.UnitFrames["Boss" .. i]:ClearAllPoints() - if( i == 1 ) then - G.UnitFrames["Boss" .. i]:SetPoint( "TOP", UIParent, "BOTTOM", 450, 600 ) - else - G.UnitFrames["Boss" .. i]:SetPoint( "TOP", G.UnitFrames["Boss" .. i - 1], "BOTTOM", 0, -43 ) - end - end - - for i = 1, 5 do - G.UnitFrames["Arena" .. i]:ClearAllPoints() - if( i == 1 ) then - G.UnitFrames["Arena" .. i]:SetPoint( "TOP", UIParent, "BOTTOM", 450, 600 ) - else - G.UnitFrames["Arena" .. i]:SetPoint( "TOP", G.UnitFrames["Arena" .. i - 1], "BOTTOM", 0, -43 ) - end - end -end ) \ No newline at end of file +if( C["global"]["unitframelayout"] ~= "asphyxia2" ) then return end \ No newline at end of file diff --git a/AsphyxiaUI/Unitframes/Layouts/Smelly.lua b/AsphyxiaUI/Unitframes/Layouts/Smelly.lua index 6a86b8b..52ff498 100644 --- a/AsphyxiaUI/Unitframes/Layouts/Smelly.lua +++ b/AsphyxiaUI/Unitframes/Layouts/Smelly.lua @@ -26,7 +26,7 @@ do -- health ------------------------------ do - G.UnitFrames.Player.Health:Size( 233, 26 ) + G.UnitFrames.Player.Health:Size( 233, 30 ) G.UnitFrames.Player.Health:SetFrameLevel( 5 ) G.UnitFrames.Player.Health:CreateBorder( true ) G.UnitFrames.Player.Health.bg:SetTexture( 0.6, 0.6, 0.6 ) @@ -45,7 +45,7 @@ do end G.UnitFrames.Player.Health.value = S.SetFontString( G.UnitFrames.Player.Health, S.CreateFontString() ) - G.UnitFrames.Player.Health.value:Point( "RIGHT", G.UnitFrames.Player.Health, "RIGHT", -4, 1 ) + G.UnitFrames.Player.Health.value:Point( "RIGHT", G.UnitFrames.Player.Health, "RIGHT", -6, 3 ) G.UnitFrames.Player.Health.PostUpdate = S.PostUpdateHealth end @@ -54,14 +54,15 @@ do -- power ------------------------------ do - G.UnitFrames.Player.Power:Size( 233, 2 ) + G.UnitFrames.Player.Power:Size( 218, 2 ) G.UnitFrames.Player.Power:ClearAllPoints() - G.UnitFrames.Player.Power:Point( "TOPRIGHT", G.UnitFrames.Player.Health, "BOTTOMRIGHT", 0, -7 ) + G.UnitFrames.Player.Power:Point( "TOP", G.UnitFrames.Player.Health, "BOTTOM", 2, 6 ) + G.UnitFrames.Player.Power:Point( "TOPRIGHT", G.UnitFrames.Player.Health, "BOTTOMRIGHT", -8, -2 ) G.UnitFrames.Player.Power:SetFrameLevel( G.UnitFrames.Player.Health:GetFrameLevel() + 2 ) G.UnitFrames.Player.Power:CreateBorder( true ) G.UnitFrames.Player.Power.value = S.SetFontString( G.UnitFrames.Player.Health, S.CreateFontString() ) - G.UnitFrames.Player.Power.value:Point( "LEFT", G.UnitFrames.Player.Health, "LEFT", 4, 1 ) + G.UnitFrames.Player.Power.value:Point( "LEFT", G.UnitFrames.Player.Health, "LEFT", 6, 3 ) end ------------------------------ @@ -86,7 +87,7 @@ do do if( C["unitframes"]["classicons"] == true ) then local classicon = CreateFrame( "Frame", G.UnitFrames.Player:GetName() .. "_ClassIconBorder", G.UnitFrames.Player ) - classicon:Size( 30 ) + classicon:Size( 34 ) classicon:Point( "TOPRIGHT", G.UnitFrames.Player.Health, "TOPLEFT", -5, 2 ) classicon:SetTemplate( "Default" ) classicon:CreateShadow( "Default" ) diff --git a/AsphyxiaUI_FAQ/Modules/Panels.lua b/AsphyxiaUI_FAQ/Modules/Panels.lua index f614e10..fbdbcc8 100644 --- a/AsphyxiaUI_FAQ/Modules/Panels.lua +++ b/AsphyxiaUI_FAQ/Modules/Panels.lua @@ -4,7 +4,58 @@ local S, C, L, G = unpack( Tukui ) -local AsphyxiaUIFAQ = CreateFrame( "Frame" ) +------------------------------ +-- MainFrame +------------------------------ +local AsphyxiaUIFAQMainFrame = CreateFrame( "Frame", "AsphyxiaUIFAQMainFrame", UIParent ) +AsphyxiaUIFAQMainFrame:SetSize( 650, 350 ) +AsphyxiaUIFAQMainFrame:SetPoint( "CENTER" ) +AsphyxiaUIFAQMainFrame:SetTemplate( "Transparent" ) +AsphyxiaUIFAQMainFrame:CreateShadow( "Default" ) +AsphyxiaUIFAQMainFrame:Hide() +AsphyxiaUIFAQMainFrame:SetFrameLevel( 10 ) +AsphyxiaUIFAQMainFrame:SetFrameStrata( "BACKGROUND" ) + +local AsphyxiaUIFAQMainFrameIconTopLeft = CreateFrame( "Frame", "AsphyxiaUIFAQMainFrameIconTopLeft", AsphyxiaUIFAQMainFrame ) +AsphyxiaUIFAQMainFrameIconTopLeft:SetSize( 58 ) +AsphyxiaUIFAQMainFrameIconTopLeft:SetPoint( "BOTTOMLEFT", AsphyxiaUIFAQMainFrame, "TOPLEFT", 0, 3 ) +AsphyxiaUIFAQMainFrameIconTopLeft:SetTemplate( "Default" ) +AsphyxiaUIFAQMainFrameIconTopLeft:CreateShadow( "Default" ) + +local AsphyxiaUIFAQMainFrameIconTopRight = CreateFrame( "Frame", "AsphyxiaUIFAQMainFrameIconTopRight", AsphyxiaUIFAQMainFrame ) +AsphyxiaUIFAQMainFrameIconTopRight:SetSize( 58 ) +AsphyxiaUIFAQMainFrameIconTopRight:SetPoint( "BOTTOMRIGHT", AsphyxiaUIFAQMainFrame, "TOPRIGHT", 0, 3 ) +AsphyxiaUIFAQMainFrameIconTopRight:SetTemplate( "Default" ) +AsphyxiaUIFAQMainFrameIconTopRight:CreateShadow( "Default" ) + +local AsphyxiaUIFAQMainFrameTitle = CreateFrame( "Frame", "AsphyxiaUIFAQMainFrameTitle", AsphyxiaUIFAQMainFrame ) +AsphyxiaUIFAQMainFrameTitle:SetSize( AsphyxiaUIFAQMainFrame:GetWidth( ) - 122, 30 ) +AsphyxiaUIFAQMainFrameTitle:SetPoint( "BOTTOM", AsphyxiaUIFAQMainFrame, "TOP", 0, 3 ) +AsphyxiaUIFAQMainFrameTitle:SetTemplate( "Transparent" ) +AsphyxiaUIFAQMainFrameTitle:CreateShadow( "Default" ) + + +------------------------------ +-- MainFrame - Navigation +------------------------------ +local AsphyxiaUIFAQMainFrameNavigation = CreateFrame( "Frame", "AsphyxiaUIFAQMainFrameNavigation", AsphyxiaUIFAQMainFrame ) +AsphyxiaUIFAQMainFrameNavigation:SetSize( 180, 342 ) +AsphyxiaUIFAQMainFrameNavigation:SetPoint( "LEFT", 4, 0 ) +AsphyxiaUIFAQMainFrameNavigation:SetTemplate( "Transparent" ) + + + + + + + + + + + + + + local AsphyxiaUIFAQOnLogon = CreateFrame( "Frame" ) AsphyxiaUIFAQOnLogon:RegisterEvent( "PLAYER_ENTERING_WORLD" ) diff --git a/ToDoList.md b/ToDoList.md new file mode 100644 index 0000000..e3ceb8e --- /dev/null +++ b/ToDoList.md @@ -0,0 +1,2 @@ +AsphyxiaUI - v6: ToDo List +==========================