Skip to content

Commit

Permalink
update:
Browse files Browse the repository at this point in the history
- added missing updates
  • Loading branch information
sinaris committed Sep 27, 2012
1 parent 8d25809 commit a8af828
Show file tree
Hide file tree
Showing 11 changed files with 305 additions and 36 deletions.
29 changes: 29 additions & 0 deletions AsphyxiaUI/Modules/Bags/Bags.lua
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,35 @@ local function BagsUpdateBankPosition( self, value )
bag:SetPoint( "BOTTOMLEFT", G.Panels.LeftChatBackground, "TOPLEFT", 0, 3 )
end
end

local cnt, full = GetNumBankSlots()

purchaseBagButton = CreateFrame( "Button", nil, bag )
purchaseBagButton:Size( 150, 15 )
purchaseBagButton:Point( "TOP", bag, "TOP", 0, -4 )
purchaseBagButton:SetTemplate( "Default" )
purchaseBagButton.Text = S.SetFontString( purchaseBagButton, unpack( S.FontTemplate.BagsDetail.BuildFont ) )
purchaseBagButton.Text:Point( "CENTER", purchaseBagButton, "CENTER", 0, 0 )

if( full ) then
purchaseBagButton.Text:SetText( "No Slots available" )
else
purchaseBagButton.Text:SetText( "Buy Bankslot (" .. GetBankSlotCost() / 10000 .. " Gold)" )
end

purchaseBagButton:SetScript( "OnEnter", S.SetModifiedBackdrop )
purchaseBagButton:SetScript( "OnLeave", S.SetOriginalBackdrop )
purchaseBagButton:SetScript( "OnClick", function()
local cnt, full = GetNumBankSlots()

if( full ) then
print( "No Slots" )
return
end

PurchaseSlot()
print( string.format( L.bags_costs, GetBankSlotCost() / 10000 ) )
end )
end
hooksecurefunc( Stuffing, "CreateBagFrame", BagsUpdateBankPosition )

Expand Down
10 changes: 10 additions & 0 deletions AsphyxiaUI/Modules/Datatext/Vethek/Datatext.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---------------------------------------------------------------------------------------------
-- AddOn Name: AsphyxiaUI 6.0.0
-- License: MIT
-- Author: Sinaris @ Das Syndikat, Vaecia @ Blackmoore
-- Description: AsphyxiaUI, Editied Tukui Layout
---------------------------------------------------------------------------------------------

local S, C, L, G = unpack( Tukui )

if( C["global"]["globalstyle"] ~= "vethek" ) then return end
2 changes: 2 additions & 0 deletions AsphyxiaUI/Modules/Datatext/load_datatext.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@
<Script file="Asphyxia\Datatext.lua" />
<Script file="Asphyxia\Layoutswitch.lua" />
<Script file="Asphyxia\Professions.lua" />

<Script file="Vethek\Datatext.lua" />
</Ui>
2 changes: 1 addition & 1 deletion AsphyxiaUI/Modules/Extras/AFKCamera.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ local PLevel = S.level
local PClass = UnitClass( "player" )
local PRace = S.myrace
local PFaction = S.myfaction
local Puild
local PGuild
if( IsInGuild() ) then
PGuild = select( 1, GetGuildInfo( "player" ) )
else
Expand Down
14 changes: 13 additions & 1 deletion AsphyxiaUI/Modules/Extras/CombatText.lua
Original file line number Diff line number Diff line change
Expand Up @@ -188,12 +188,24 @@ local function OnEvent( self, event, subevent, ... )
if( tonumber( arg2 ) > 0 ) then
if( arg3 and arg3 == "MANA" or arg3 == "RAGE" or arg3 == "FOCUS" or arg3 == "ENERGY" or arg3 == "RUNIC_POWER" or arg3 == "SOUL_SHARDS" or arg3 == "HOLY_POWER" or arg3 == "LIGHT_FORCE" ) then
xCT3:AddMessage( "+" .. arg2 .. " " .. _G[arg3], PowerBarColor[arg3].r, PowerBarColor[arg3].g, PowerBarColor[arg3].b )
elseif( arg3 and arg3 == "ECLIPSE" ) then
xCT3:AddMessage( "+" .. arg2 .. " " .. BALANCE_POSITIVE_ENERGY, PowerBarColor[arg3].positive.r, PowerBarColor[arg3].positive.g, PowerBarColor[arg3].positive.b )
end
else
if( arg3 and arg3 == "ECLIPSE" ) then
xCT3:AddMessage( "+" .. abs( arg2 ) .. " " .. BALANCE_NEGATIVE_ENERGY, PowerBarColor[arg3].negative.r, PowerBarColor[arg3].negative.g, PowerBarColor[arg3].negative.b )
end
end
elseif( subevent == "PERIODIC_ENERGIZE" and COMBAT_TEXT_SHOW_PERIODIC_ENERGIZE == "1" ) then
if( tonumber( arg2 ) > 0 ) then
if( arg3 and arg3 == "MANA" or arg3 == "RAGE" or arg3 == "FOCUS" or arg3 == "ENERGY" or arg3 == "RUNIC_POWER" or arg3 == "SOUL_SHARDS" or arg3 == "HOLY_POWER" or arg3 == "LIGHT_FORCE" ) then
xCT3:AddMessage( "+" .. arg2 .. " " .. _G[arg3], PowerBarColor[arg3].r, PowerBarColor[arg3].g, PowerBarColor[arg3].b )
elseif( arg3 and arg3 == "ECLIPSE" ) then
xCT3:AddMessage( "+" .. arg2 .. " " .. BALANCE_POSITIVE_ENERGY, PowerBarColor[arg3].positive.r, PowerBarColor[arg3].positive.g, PowerBarColor[arg3].positive.b )
end
else
if( arg3 and arg3 == "ECLIPSE" ) then
xCT3:AddMessage( "+" .. abs( arg2 ) .. " " .. BALANCE_NEGATIVE_ENERGY, PowerBarColor[arg3].negative.r, PowerBarColor[arg3].negative.g, PowerBarColor[arg3].negative.b )
end
end
elseif( subevent == "SPELL_AURA_START" and COMBAT_TEXT_SHOW_AURAS == "1" ) then
Expand Down Expand Up @@ -833,7 +845,7 @@ if( C["combattext"]["damage"] ) then
else
msg = ""
end
xCT3:AddMessage( ACTION_SPELL_INTERRUPTS .. ": " .. effect .. msg, unpack( color ) )
xCT3:AddMessage( ACTION_SPELL_INTERRUPT .. ": " .. effect .. msg, unpack( color ) )
elseif( eventType == "PARTY_KILL" and C["combattext"]["killingblow"] ) then
local tname = select( 9, ... )
xCT3:AddMessage( ACTION_PARTY_KILL .. ": " .. tname, 0.2, 1, 0.2 )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

local S, C, L, G = unpack( Tukui )

if( C["global"]["globalstyle"] ~= "asphyxia" ) then return end

G.Maps.Minimap:ClearAllPoints()

G.Maps.Minimap.Zone.Text:SetFont( unpack( S.FontTemplate.MinimapCords.BuildFont ) )
Expand Down
19 changes: 19 additions & 0 deletions AsphyxiaUI/Modules/Maps/Vethek/Minimap.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---------------------------------------------------------------------------------------------
-- AddOn Name: AsphyxiaUI 6.0.0
-- License: MIT
-- Author: Sinaris @ Das Syndikat, Vaecia @ Blackmoore
-- Description: AsphyxiaUI, Editied Tukui Layout
---------------------------------------------------------------------------------------------

local S, C, L, G = unpack( Tukui )

if( C["global"]["globalstyle"] ~= "vethek" ) then return end

G.Maps.Minimap:ClearAllPoints()

G.Maps.Minimap:ClearAllPoints()
G.Maps.Minimap:Point( "BOTTOMRIGHT", UIParent, "BOTTOMRIGHT", -5, 26 )

G.Maps.Minimap:Size( 154 )

Minimap:Size( 150 )
3 changes: 2 additions & 1 deletion AsphyxiaUI/Modules/Maps/load_maps.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<Ui xmlns="http://www.blizzard.com/wow/ui/">
<Script file="Minimap.lua" />
<Script file="Asphyxia\Minimap.lua" />
<Script file="Vethek\Minimap.lua" />
</Ui>
13 changes: 12 additions & 1 deletion AsphyxiaUI/Modules/Panels/Vethek/Vethek.lua
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,15 @@ G.Panels.DataTextLeft:ClearAllPoints()
G.Panels.DataTextLeft:Size( G.Panels.LeftChatBackground:GetWidth() - 10, 23 )
G.Panels.DataTextLeft:Point( "BOTTOM", G.Panels.LeftChatBackground, "BOTTOM", 0, 5 )
G.Panels.DataTextLeft:SetTemplate( "Transparent" )
G.Panels.DataTextLeft:CreateOverlay( G.Panels.DataTextLeft )
G.Panels.DataTextLeft:CreateOverlay( G.Panels.DataTextLeft )

------------------------------
-- Minimap
------------------------------
if( TukuiMinimap ) then
G.Panels.DataTextMinimapLeft:Size( ( ( TukuiMinimap:GetWidth() + 8 ) / 2 ), 19 )
G.Panels.DataTextMinimapLeft:CreateOverlay( G.Panels.DataTextMinimapLeft )

G.Panels.DataTextMinimapRight:Size( ( ( TukuiMinimap:GetWidth() + 8 ) / 2 ), 19 )
G.Panels.DataTextMinimapRight:CreateOverlay( G.Panels.DataTextMinimapRight )
end
6 changes: 6 additions & 0 deletions AsphyxiaUI/Unitframes/Functions/Functions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -417,4 +417,10 @@ hooksecurefunc( S, "CheckChannel", function( self, unit, name, rank )
if( C["global"]["globalstyle"] == "vethek" ) then
CheckInterrupt( self, unit )
end
end )

hooksecurefunc( S, "PostCreateAura", function( element, button )
if( C["global"]["globalstyle"] == "vethek" ) then
button.Glow:Kill()
end
end )
Loading

0 comments on commit a8af828

Please sign in to comment.