Skip to content

Commit

Permalink
update:
Browse files Browse the repository at this point in the history
- better way to enable/disable addon skins
  • Loading branch information
sinaris committed Sep 17, 2012
1 parent ca1a272 commit b9eb748
Show file tree
Hide file tree
Showing 20 changed files with 64 additions and 20 deletions.
2 changes: 1 addition & 1 deletion AsphyxiaUI/Core/Install.lua
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ AsphyxiaUIOnLogon:SetScript( "OnEvent", function( self, event )
}
end

if( IsAddOnLoaded( "Tukui_ElvUI_Skins" ) ) then
if( IsAddOnLoaded( "Tukui_ElvUI_Skins" ) and C["addonskins"]["enable"] == true ) then
S.ShowPopup( "ASPHYXIAUI_DIFFERENT_ADDONSKINS_DETECTED" )
end

Expand Down
14 changes: 7 additions & 7 deletions AsphyxiaUI/Core/PopUps.lua
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,13 @@ S.CreatePopup["ASPHYXIAUI_DIFFERENT_ADDONSKINS_DETECTED"] = {
if( not ( TukuiConfigPublic["addonskins"] ) ) then
TukuiConfigPublic["addonskins"] = {}
end
TukuiConfigPublic["addonskins"]["embedright"] = ""
TukuiConfigPublic["addonskins"]["background"] = false
TukuiConfigPublic["addonskins"]["combattoggle"] = false
TukuiConfigPublic["addonskins"]["bigwigs"] = false
TukuiConfigPublic["addonskins"]["dbm"] = false
TukuiConfigPublic["addonskins"]["omen"] = false
TukuiConfigPublic["addonskins"]["tinydps"] = false
TukuiConfigPublic["addonskins"]["enable"] = false
end
ReloadUI()
end,
function2 = function()
if( IsAddOnLoaded( "Tukui_ElvUI_Skins" ) ) then
DisableAddOn( "Tukui_ElvUI_Skins" )
end
ReloadUI()
end,
Expand Down
2 changes: 1 addition & 1 deletion AsphyxiaUI/Locales/Chinese.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ L.Popups_ENABLE_CHAT_BACKGROUNDS = "AsphyxiaUI needs to have the chatbackground
L.Popups_DISABLE_TUKUI_NAMEPLATES = "Tukui nameplates are active. They will be disabled and the AsphyxiaUI nameplates will be enabled."
L.Popups_ENABLE_BIGWIGS_SKIN = "We need to set some BigWigs options to apply Tukui BigWigs skin.\nMost of your settings will remain untouched."
L.Popups_ENABLE_DBM_SKIN = "We need to set some DBM options to apply Tukui DBM skin.\nMost of your settings will remain untouched."
L.Popups_ADDONSKINS = "AsphyxiaUI has detected some other addon skins. AsphyxiaUI addon skins will be disabled!"
L.Popups_ADDONSKINS = "AsphyxiaUI has detected some other addon skins. If you press 'accept' the AsphyxiaUI addons kins will be disabled. If you press 'cancel' Tukui_ElvUI_Skins will be disabled."
L.Popups_LOWRESOLUTION_OVERRIDE = "AsphyxiaUI is running on low resolution. Press accept to enable override lowresolution settings."

------------------------------
Expand Down
2 changes: 1 addition & 1 deletion AsphyxiaUI/Locales/English.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ L.Popups_ENABLE_CHAT_BACKGROUNDS = "AsphyxiaUI needs to have the chatbackground
L.Popups_DISABLE_TUKUI_NAMEPLATES = "Tukui nameplates are active. They will be disabled and the AsphyxiaUI nameplates will be enabled."
L.Popups_ENABLE_BIGWIGS_SKIN = "We need to set some BigWigs options to apply Tukui BigWigs skin.\nMost of your settings will remain untouched."
L.Popups_ENABLE_DBM_SKIN = "We need to set some DBM options to apply Tukui DBM skin.\nMost of your settings will remain untouched."
L.Popups_ADDONSKINS = "AsphyxiaUI has detected some other addon skins. AsphyxiaUI addon skins will be disabled!"
L.Popups_ADDONSKINS = "AsphyxiaUI has detected some other addon skins. If you press 'accept' the AsphyxiaUI addons kins will be disabled. If you press 'cancel' Tukui_ElvUI_Skins will be disabled."
L.Popups_LOWRESOLUTION_OVERRIDE = "AsphyxiaUI is running on low resolution. Press accept to enable override lowresolution settings."

------------------------------
Expand Down
2 changes: 1 addition & 1 deletion AsphyxiaUI/Locales/French.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ L.Popups_ENABLE_CHAT_BACKGROUNDS = "AsphyxiaUI needs to have the chatbackground
L.Popups_DISABLE_TUKUI_NAMEPLATES = "Tukui nameplates are active. They will be disabled and the AsphyxiaUI nameplates will be enabled."
L.Popups_ENABLE_BIGWIGS_SKIN = "We need to set some BigWigs options to apply Tukui BigWigs skin.\nMost of your settings will remain untouched."
L.Popups_ENABLE_DBM_SKIN = "We need to set some DBM options to apply Tukui DBM skin.\nMost of your settings will remain untouched."
L.Popups_ADDONSKINS = "AsphyxiaUI has detected some other addon skins. AsphyxiaUI addon skins will be disabled!"
L.Popups_ADDONSKINS = "AsphyxiaUI has detected some other addon skins. If you press 'accept' the AsphyxiaUI addons kins will be disabled. If you press 'cancel' Tukui_ElvUI_Skins will be disabled."
L.Popups_LOWRESOLUTION_OVERRIDE = "AsphyxiaUI is running on low resolution. Press accept to enable override lowresolution settings."

------------------------------
Expand Down
2 changes: 1 addition & 1 deletion AsphyxiaUI/Locales/German.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ L.Popups_ENABLE_CHAT_BACKGROUNDS = "AsphyxiaUI needs to have the chatbackground
L.Popups_DISABLE_TUKUI_NAMEPLATES = "Tukui nameplates are active. They will be disabled and the AsphyxiaUI nameplates will be enabled."
L.Popups_ENABLE_BIGWIGS_SKIN = "We need to set some BigWigs options to apply Tukui BigWigs skin.\nMost of your settings will remain untouched."
L.Popups_ENABLE_DBM_SKIN = "We need to set some DBM options to apply Tukui DBM skin.\nMost of your settings will remain untouched."
L.Popups_ADDONSKINS = "AsphyxiaUI has detected some other addon skins. AsphyxiaUI addon skins will be disabled!"
L.Popups_ADDONSKINS = "AsphyxiaUI has detected some other addon skins. If you press 'accept' the AsphyxiaUI addons kins will be disabled. If you press 'cancel' Tukui_ElvUI_Skins will be disabled."
L.Popups_LOWRESOLUTION_OVERRIDE = "AsphyxiaUI is running on low resolution. Press accept to enable override lowresolution settings."

------------------------------
Expand Down
2 changes: 1 addition & 1 deletion AsphyxiaUI/Locales/Korean.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ L.Popups_ENABLE_CHAT_BACKGROUNDS = "AsphyxiaUI needs to have the chatbackground
L.Popups_DISABLE_TUKUI_NAMEPLATES = "Tukui nameplates are active. They will be disabled and the AsphyxiaUI nameplates will be enabled."
L.Popups_ENABLE_BIGWIGS_SKIN = "We need to set some BigWigs options to apply Tukui BigWigs skin.\nMost of your settings will remain untouched."
L.Popups_ENABLE_DBM_SKIN = "We need to set some DBM options to apply Tukui DBM skin.\nMost of your settings will remain untouched."
L.Popups_ADDONSKINS = "AsphyxiaUI has detected some other addon skins. AsphyxiaUI addon skins will be disabled!"
L.Popups_ADDONSKINS = "AsphyxiaUI has detected some other addon skins. If you press 'accept' the AsphyxiaUI addons kins will be disabled. If you press 'cancel' Tukui_ElvUI_Skins will be disabled."
L.Popups_LOWRESOLUTION_OVERRIDE = "AsphyxiaUI is running on low resolution. Press accept to enable override lowresolution settings."

------------------------------
Expand Down
2 changes: 1 addition & 1 deletion AsphyxiaUI/Locales/Portuguese.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ L.Popups_ENABLE_CHAT_BACKGROUNDS = "AsphyxiaUI needs to have the chatbackground
L.Popups_DISABLE_TUKUI_NAMEPLATES = "Tukui nameplates are active. They will be disabled and the AsphyxiaUI nameplates will be enabled."
L.Popups_ENABLE_BIGWIGS_SKIN = "We need to set some BigWigs options to apply Tukui BigWigs skin.\nMost of your settings will remain untouched."
L.Popups_ENABLE_DBM_SKIN = "We need to set some DBM options to apply Tukui DBM skin.\nMost of your settings will remain untouched."
L.Popups_ADDONSKINS = "AsphyxiaUI has detected some other addon skins. AsphyxiaUI addon skins will be disabled!"
L.Popups_ADDONSKINS = "AsphyxiaUI has detected some other addon skins. If you press 'accept' the AsphyxiaUI addons kins will be disabled. If you press 'cancel' Tukui_ElvUI_Skins will be disabled."
L.Popups_LOWRESOLUTION_OVERRIDE = "AsphyxiaUI is running on low resolution. Press accept to enable override lowresolution settings."

------------------------------
Expand Down
2 changes: 1 addition & 1 deletion AsphyxiaUI/Locales/Russian.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ L.Popups_ENABLE_CHAT_BACKGROUNDS = "AsphyxiaUI needs to have the chatbackground
L.Popups_DISABLE_TUKUI_NAMEPLATES = "Tukui nameplates are active. They will be disabled and the AsphyxiaUI nameplates will be enabled."
L.Popups_ENABLE_BIGWIGS_SKIN = "We need to set some BigWigs options to apply Tukui BigWigs skin.\nMost of your settings will remain untouched."
L.Popups_ENABLE_DBM_SKIN = "We need to set some DBM options to apply Tukui DBM skin.\nMost of your settings will remain untouched."
L.Popups_ADDONSKINS = "AsphyxiaUI has detected some other addon skins. AsphyxiaUI addon skins will be disabled!"
L.Popups_ADDONSKINS = "AsphyxiaUI has detected some other addon skins. If you press 'accept' the AsphyxiaUI addons kins will be disabled. If you press 'cancel' Tukui_ElvUI_Skins will be disabled."
L.Popups_LOWRESOLUTION_OVERRIDE = "AsphyxiaUI is running on low resolution. Press accept to enable override lowresolution settings."

------------------------------
Expand Down
2 changes: 1 addition & 1 deletion AsphyxiaUI/Locales/Spanish.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ L.Popups_ENABLE_CHAT_BACKGROUNDS = "AsphyxiaUI needs to have the chatbackground
L.Popups_DISABLE_TUKUI_NAMEPLATES = "Tukui nameplates are active. They will be disabled and the AsphyxiaUI nameplates will be enabled."
L.Popups_ENABLE_BIGWIGS_SKIN = "We need to set some BigWigs options to apply Tukui BigWigs skin.\nMost of your settings will remain untouched."
L.Popups_ENABLE_DBM_SKIN = "We need to set some DBM options to apply Tukui DBM skin.\nMost of your settings will remain untouched."
L.Popups_ADDONSKINS = "AsphyxiaUI has detected some other addon skins. AsphyxiaUI addon skins will be disabled!"
L.Popups_ADDONSKINS = "AsphyxiaUI has detected some other addon skins. If you press 'accept' the AsphyxiaUI addons kins will be disabled. If you press 'cancel' Tukui_ElvUI_Skins will be disabled."
L.Popups_LOWRESOLUTION_OVERRIDE = "AsphyxiaUI is running on low resolution. Press accept to enable override lowresolution settings."

------------------------------
Expand Down
2 changes: 1 addition & 1 deletion AsphyxiaUI/Locales/Taiwan.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ L.Popups_ENABLE_CHAT_BACKGROUNDS = "AsphyxiaUI needs to have the chatbackground
L.Popups_DISABLE_TUKUI_NAMEPLATES = "Tukui nameplates are active. They will be disabled and the AsphyxiaUI nameplates will be enabled."
L.Popups_ENABLE_BIGWIGS_SKIN = "We need to set some BigWigs options to apply Tukui BigWigs skin.\nMost of your settings will remain untouched."
L.Popups_ENABLE_DBM_SKIN = "We need to set some DBM options to apply Tukui DBM skin.\nMost of your settings will remain untouched."
L.Popups_ADDONSKINS = "AsphyxiaUI has detected some other addon skins. AsphyxiaUI addon skins will be disabled!"
L.Popups_ADDONSKINS = "AsphyxiaUI has detected some other addon skins. If you press 'accept' the AsphyxiaUI addons kins will be disabled. If you press 'cancel' Tukui_ElvUI_Skins will be disabled."
L.Popups_LOWRESOLUTION_OVERRIDE = "AsphyxiaUI is running on low resolution. Press accept to enable override lowresolution settings."

------------------------------
Expand Down
2 changes: 2 additions & 0 deletions AsphyxiaUI/Modules/Skins/Addons/BigWigs.lua
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["addonskins"]["enable"] ~= true ) then return end

if( not IsAddOnLoaded( "BigWigs" ) or C["addonskins"]["bigwigs"] ~= true ) then return end

local classcolor = true
Expand Down
2 changes: 2 additions & 0 deletions AsphyxiaUI/Modules/Skins/Addons/Coolline.lua
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["addonskins"]["enable"] ~= true ) then return end

if( not IsAddOnLoaded( "CoolLine" ) ) then return end

local cl = CoolLine
Expand Down
2 changes: 2 additions & 0 deletions AsphyxiaUI/Modules/Skins/Addons/DBM.lua
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["addonskins"]["enable"] ~= true ) then return end

if( not IsAddOnLoaded( "DBM-Core" ) or C["addonskins"]["dbm"] ~= true ) then return end

local croprwicons = true
Expand Down
7 changes: 6 additions & 1 deletion AsphyxiaUI/Modules/Skins/Addons/EmbedRight.lua
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
---------------------------------------------------------------------------------------------
-- Project: AsphyxiaUI Version 6.0
-- 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["addonskins"]["enable"] ~= true ) then return end

if( C["addonskins"]["background"] ~= true ) then return end

local AsphyxiaUIEmbedRightBackground = CreateFrame( "Frame", "AsphyxiaUIEmbedRightBackground", UIParent )
Expand Down
2 changes: 2 additions & 0 deletions AsphyxiaUI/Modules/Skins/Addons/Omen.lua
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["addonskins"]["enable"] ~= true ) then return end

if( not IsAddOnLoaded( "Omen" ) or C["addonskins"]["omen"] ~= true ) then return end

if( TukuiThreatBar ) then TukuiThreatBar:Kill() end
Expand Down
12 changes: 12 additions & 0 deletions AsphyxiaUI/Modules/Skins/Addons/Recount.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---------------------------------------------------------------------------------------------
-- 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["addonskins"]["enable"] ~= true ) then return end

if( not IsAddOnLoaded( "Recount" ) or C["addonskins"]["recount"] ~= true ) then return end
11 changes: 10 additions & 1 deletion AsphyxiaUI/Modules/Skins/Addons/Skada.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
local S, C, L, G = unpack( Tukui )
---------------------------------------------------------------------------------------------
-- 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["addonskins"]["enable"] ~= true ) then return end

if not IsAddOnLoaded( "Skada" ) or C["addonskins"]["skada"] ~= true then return end

Expand Down
11 changes: 10 additions & 1 deletion AsphyxiaUI/Modules/Skins/Addons/TinyDPS.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
local S, C, L, G = unpack( Tukui )
---------------------------------------------------------------------------------------------
-- 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["addonskins"]["enable"] ~= true ) then return end

if( not IsAddOnLoaded( "TinyDPS" ) or C["addonskins"]["tinydps"] ~= true ) then return end

Expand Down
1 change: 1 addition & 0 deletions AsphyxiaUI_Config/Config/Config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
local C = {}

C["addonskins"] = {
["enable"] = true
["embedright"] = "omen",
["background"] = true,
["combattoggle"] = true,
Expand Down

0 comments on commit b9eb748

Please sign in to comment.