Skip to content

Commit

Permalink
update:
Browse files Browse the repository at this point in the history
- integrate: low resolution detection popup
  • Loading branch information
sinaris committed Sep 14, 2012
1 parent 2cca1f8 commit 82261f9
Show file tree
Hide file tree
Showing 11 changed files with 38 additions and 1 deletion.
4 changes: 4 additions & 0 deletions AsphyxiaUI/Core/Install.lua
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ AsphyxiaUIOnLogon:SetScript( "OnEvent", function( self, event )
S.ShowPopup( "ASPHYXIAUI_SELECT_RAID_LAYOUT" )
end

if( S.lowversion == true ) then
S.ShowPopup( "ASPHYXIAUI_ENABLE_HIGHONLOWRESO" )
end

if( C["chat"]["background"] ~= true ) then
S.ShowPopup( "ASPHYXIAUI_ENABLE_CHAT_BACKGROUND" )
end
Expand Down
17 changes: 16 additions & 1 deletion AsphyxiaUI/Core/PopUps.lua
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ S.CreatePopup["ASPHYXIAUI_SELECT_RAID_LAYOUT"] = {
}

S.CreatePopup["ASPHYXIAUI_DIFFERENT_ADDONSKINS_DETECTED"] = {
question = "AsphyxiaUI has detected some other addon skins. AsphyxiaUI addon skins will be disabled!",
question = L.Popups_ADDONSKINS,
answer1 = ACCEPT,
answer2 = CANCEL,
function1 = function()
Expand All @@ -73,4 +73,19 @@ S.CreatePopup["ASPHYXIAUI_DIFFERENT_ADDONSKINS_DETECTED"] = {
end
ReloadUI()
end,
}

S.CreatePopup["ASPHYXIAUI_ENABLE_HIGHONLOWRESO"] = {
question = L.Popups_LOWRESOLUTION_OVERRIDE,
answer1 = ACCEPT,
answer2 = CANCEL,
function1 = function()
if( IsAddOnLoaded( "Tukui_ConfigUI" ) ) then
if( not ( TukuiConfigPublic["general"] ) ) then
TukuiConfigPublic["general"] = {}
end
TukuiConfigPublic["general"]["overridelowtohigh "] = true
end
ReloadUI()
end,
}
2 changes: 2 additions & 0 deletions AsphyxiaUI/Locales/Chinese.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ 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_LOWRESOLUTION_OVERRIDE = "AsphyxiaUI is running on low resolution. Press accept to enable override lowresolution settings."

------------------------------
-- Tooltip
Expand Down
2 changes: 2 additions & 0 deletions AsphyxiaUI/Locales/English.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ 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_LOWRESOLUTION_OVERRIDE = "AsphyxiaUI is running on low resolution. Press accept to enable override lowresolution settings."

------------------------------
-- Tooltip
Expand Down
2 changes: 2 additions & 0 deletions AsphyxiaUI/Locales/French.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ 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_LOWRESOLUTION_OVERRIDE = "AsphyxiaUI is running on low resolution. Press accept to enable override lowresolution settings."

------------------------------
-- Tooltip
Expand Down
2 changes: 2 additions & 0 deletions AsphyxiaUI/Locales/German.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ 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_LOWRESOLUTION_OVERRIDE = "AsphyxiaUI is running on low resolution. Press accept to enable override lowresolution settings."

------------------------------
-- Tooltip
Expand Down
2 changes: 2 additions & 0 deletions AsphyxiaUI/Locales/Korean.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ 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_LOWRESOLUTION_OVERRIDE = "AsphyxiaUI is running on low resolution. Press accept to enable override lowresolution settings."

------------------------------
-- Tooltip
Expand Down
2 changes: 2 additions & 0 deletions AsphyxiaUI/Locales/Portuguese.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ 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_LOWRESOLUTION_OVERRIDE = "AsphyxiaUI is running on low resolution. Press accept to enable override lowresolution settings."

------------------------------
-- Tooltip
Expand Down
2 changes: 2 additions & 0 deletions AsphyxiaUI/Locales/Russian.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ 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_LOWRESOLUTION_OVERRIDE = "AsphyxiaUI is running on low resolution. Press accept to enable override lowresolution settings."

------------------------------
-- Tooltip
Expand Down
2 changes: 2 additions & 0 deletions AsphyxiaUI/Locales/Spanish.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ 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_LOWRESOLUTION_OVERRIDE = "AsphyxiaUI is running on low resolution. Press accept to enable override lowresolution settings."

------------------------------
-- Tooltip
Expand Down
2 changes: 2 additions & 0 deletions AsphyxiaUI/Locales/Taiwan.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ 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_LOWRESOLUTION_OVERRIDE = "AsphyxiaUI is running on low resolution. Press accept to enable override lowresolution settings."

------------------------------
-- Tooltip
Expand Down

0 comments on commit 82261f9

Please sign in to comment.