WoWInterface SVN OneCompanion

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 27 to Rev 26
    Reverse comparison

Rev 27 → Rev 26

trunk/OneCompanion/OneCompanion.lua
1,7 → 1,6
--[[
Name: OneCompanion
Version: 3.0.2.$Revision$
$Date$
Version: 3.0.2.wowi:revision
Author(s): Mera_LaCroisadeEcarlate (ad@heapoverflow.com)
Playing: Mera,Merae,Merah & FathisUles on EU FR-La Croisade Ecarlate ;)
Website: http://-
trunk/OneCompanion/opts/options.lua
1,7 → 1,6
--[[
Name: OneCompanion
Version: 3.0.2.$Revision$
$Date$
Version: 3.0.2.wowi:revision
Author(s): Mera_LaCroisadeEcarlate (ad@heapoverflow.com)
Playing: Mera,Merae,Merah & FathisUles on EU FR-La Croisade Ecarlate ;)
Website: http://-
17,8 → 16,6
local L = LibStub("AceLocale-3.0"):GetLocale("OneCompanion")
local AC = LibStub("AceConfig-3.0")
local ACD = LibStub("AceConfigDialog-3.0")
local stratas = {["BACKGROUND"]="BACKGROUND", ["LOW"]="LOW", ["MEDIUM"]="MEDIUM", ["HIGH"]="HIGH", ["DIALOG"]="DIALOG",
["FULLSCREEN"]="FULLSCREEN", ["FULLSCREEN_DIALOG"]="FULLSCREEN_DIALOG", ["TOOLTIP"]="TOOLTIP"}
 
local defaults = {
profile = {
49,8 → 46,6
tip = false,
lockbreanni = false,
lockbag = false,
stratabase = "BACKGROUND",
stratabtn = "BACKGROUND",
}
}
}
253,24 → 248,6
set = "ToggleLockBag",
get = "IsLockBag",
},
stratabase = {
order = 50,
type = "select",
name = L["Base strata"],
desc = L["Change the base frame strata"],
values = stratas,
set = "ToggleStrata",
get = "IsBaseStrata",
},
stratabtn = {
order = 55,
type = "select",
name = L["Button strata"],
desc = L["Change the button frames strata"],
values = stratas,
set = "ToggleStrata",
get = "IsButtonStrata",
},
},
},
}
287,28 → 264,8
OneCompanionOptions.options = options
OneCompanionOptions.defaults = defaults
 
function OneCompanionOptions:IsBaseStrata()
local self = OneCompanion
return self.db.profile.misc.stratabase
end
 
function OneCompanionOptions:IsButtonStrata()
local self = OneCompanion
return self.db.profile.misc.stratabtn
end
 
function OneCompanionOptions:ToggleStrata(key, value)
local self, fra, btn = OneCompanion, OneCompanionFrames, OneCompanionButtons
if key then self.db.profile.misc[key[3]] = value end
fra.base:SetFrameStrata(self.db.profile.misc.stratabase)
for i, j in ipairs(btn) do
j:SetToplevel(true)
j:SetFrameStrata(self.db.profile.misc.stratabtn)
end
end
 
function OneCompanionOptions:ToggleLockBag(value)
local self, fra, btn = OneCompanion, OneCompanionFrames, OneCompanionButtons
local self, fra = OneCompanion, OneCompanionFrames
if value then self.db.profile.misc.lockbag = not self.db.profile.misc.lockbag end
if self.db.profile.misc.lockbag then
fra.base:SetMovable(false)
325,10 → 282,6
fra[i]:SetScript("OnMouseUp", OCstop)
end
end
for i, j in ipairs(btn) do
j:SetScript("OnDragStart", OCstart)
j:SetScript("OnDragStop", OCstop)
end
end
 
function OneCompanionOptions:IsLockBag()
trunk/OneCompanion/OneCompanion.toc
1,7 → 1,6
## Interface: 30000
## Title: OneCompanion |cff7fff7f -Ace3-|r
## Version: 3.0.2.$Revision$
## X-Date: $Date$
## Version: 3.0.2.wowi:revision
## Author: Mera_LaCroisadeEcarlate
## Notes: OneCompanion is an alternative to the default companion frame introduced in WotLK that combines all your companions and mounts into one fully customizable frame
## X-eMail: ad@heapoverflow.com
trunk/OneCompanion/frames/templates.lua
1,7 → 1,6
--[[
Name: OneCompanion
Version: 3.0.2.$Revision$
$Date$
Version: 3.0.2.wowi:revision
Author(s): Mera_LaCroisadeEcarlate (ad@heapoverflow.com)
Playing: Mera,Merae,Merah & FathisUles on EU FR-La Croisade Ecarlate ;)
Website: http://-
15,7 → 14,6
 
OneCompanionFrames, OneCompanionButtons, OneCompanionMaxHeight = {}, {}, 0
local L = LibStub("AceLocale-3.0"):GetLocale("OneCompanion")
local version = GetAddOnMetadata("OneCompanion", "Version")
 
function OneCompanionFrames:build()
local self, fra, opt = OneCompanion, OneCompanionFrames, OneCompanionOptions
64,7 → 62,8
index:SetPoint("TOPLEFT", base, "TOPLEFT", 0, 0)
index:SetPoint("TOPRIGHT", base, "TOPRIGHT", 0, 0)
index:SetBackdrop(indexBackdrop)
-- base:SetFrameStrata("BACKGROUND")
-- index:SetToplevel(true)
-- index:SetFrameStrata("FULLSCREEN_DIALOG")
scrollindex:SetPoint("TOPLEFT", self.db.profile.sizes.borderpad, - self.db.profile.sizes.borderpad)
scrollindex:SetPoint("TOPRIGHT", - self.db.profile.sizes.borderpad, - self.db.profile.sizes.borderpad)
scrollindex:SetPoint("BOTTOMLEFT", self.db.profile.sizes.borderpad, self.db.profile.sizes.borderpad)
130,18 → 129,17
fra.grip = grip
fra.cfgButton = cfgButton
fra.breanni = breanni
-- fra:SetAnchors(nil)
fra:SetAnchors(nil)
 
opt:ToggleShowTooltips(nil)
opt:SetColor(nil, nil, nil, nil, nil)
opt:ToggleMainFrameClamp(nil)
opt:ToggleShowGrip(nil)
opt:ToggleLockBreanni(nil)
fra:buildButtons()
opt:ToggleLockBag(nil)
fra:buildButtons()
 
opt:ToggleButtonScale(nil, nil, nil, nil)
opt:ToggleStrata(nil, nil)
base:Hide()
end
 
trunk/OneCompanion/locals/koKR.lua
1,7 → 1,6
--[[
Name: OneCompanion
Version: 3.0.2.$Revision$
$Date$
Version: 3.0.2.wowi:revision
Author(s): Mera_LaCroisadeEcarlate (ad@heapoverflow.com)
Playing: Mera,Merae,Merah & FathisUles on EU FR-La Croisade Ecarlate ;)
Website: http://-
57,7 → 56,3
L["Lock the position of Breanni's icon"] = "Lock the position of Breanni's icon"
L["Lock inventory"] = "Lock companion's bag"
L["Lock the position of the companion's inventory bag"] = "Lock the position of the companion's inventory bag"
L["Base strata"] = "Base strata"
L["Change the base frame strata"] = "Change the base frame strata"
L["Button strata"] = "Button strata"
L["Change the button frames strata"] = "Change the button frames strata"
trunk/OneCompanion/locals/enUS.lua
1,7 → 1,6
--[[
Name: OneCompanion
Version: 3.0.2.$Revision$
$Date$
Version: 3.0.2.wowi:revision
Author(s): Mera_LaCroisadeEcarlate (ad@heapoverflow.com)
Playing: Mera,Merae,Merah & FathisUles on EU FR-La Croisade Ecarlate ;)
Website: http://-
57,7 → 56,3
L["Lock the position of Breanni's icon"] = true
L["Lock inventory"] = true
L["Lock the position of the companion's inventory bag"] = true
L["Base strata"] = true
L["Change the base frame strata"] = true
L["Button strata"] = true
L["Change the button frames strata"] = true
trunk/OneCompanion/locals/zhTW.lua
1,7 → 1,6
--[[
Name: OneCompanion
Version: 3.0.2.$Revision$
$Date$
Version: 3.0.2.wowi:revision
Author(s): Mera_LaCroisadeEcarlate (ad@heapoverflow.com)
Playing: Mera,Merae,Merah & FathisUles on EU FR-La Croisade Ecarlate ;)
Website: http://-
57,7 → 56,3
L["Lock the position of Breanni's icon"] = "Lock the position of Breanni's icon"
L["Lock inventory"] = "Lock companion's bag"
L["Lock the position of the companion's inventory bag"] = "Lock the position of the companion's inventory bag"
L["Base strata"] = "Base strata"
L["Change the base frame strata"] = "Change the base frame strata"
L["Button strata"] = "Button strata"
L["Change the button frames strata"] = "Change the button frames strata"
trunk/OneCompanion/locals/ruRU.lua
1,7 → 1,6
--[[
Name: OneCompanion
Version: 3.0.2.$Revision$
$Date$
Version: 3.0.2.wowi:revision
Author(s): Mera_LaCroisadeEcarlate (ad@heapoverflow.com)
Playing: Mera,Merae,Merah & FathisUles on EU FR-La Croisade Ecarlate ;)
Website: http://-
57,7 → 56,3
L["Lock the position of Breanni's icon"] = "Lock the position of Breanni's icon"
L["Lock inventory"] = "Lock companion's bag"
L["Lock the position of the companion's inventory bag"] = "Lock the position of the companion's inventory bag"
L["Base strata"] = "Base strata"
L["Change the base frame strata"] = "Change the base frame strata"
L["Button strata"] = "Button strata"
L["Change the button frames strata"] = "Change the button frames strata"
trunk/OneCompanion/locals/esES.lua
1,7 → 1,6
--[[
Name: OneCompanion
Version: 3.0.2.$Revision$
$Date$
Version: 3.0.2.wowi:revision
Author(s): Mera_LaCroisadeEcarlate (ad@heapoverflow.com)
Playing: Mera,Merae,Merah & FathisUles on EU FR-La Croisade Ecarlate ;)
Website: http://-
68,7 → 67,3
L["Lock the position of Breanni's icon"] = "Lock the position of Breanni's icon"
L["Lock inventory"] = "Lock companion's bag"
L["Lock the position of the companion's inventory bag"] = "Lock the position of the companion's inventory bag"
L["Base strata"] = "Base strata"
L["Change the base frame strata"] = "Change the base frame strata"
L["Button strata"] = "Button strata"
L["Change the button frames strata"] = "Change the button frames strata"
trunk/OneCompanion/locals/frFR.lua
1,7 → 1,6
--[[
Name: OneCompanion
Version: 3.0.2.$Revision$
$Date$
Version: 3.0.2.wowi:revision
Author(s): Mera_LaCroisadeEcarlate (ad@heapoverflow.com)
Playing: Mera,Merae,Merah & FathisUles on EU FR-La Croisade Ecarlate ;)
Website: http://-
68,7 → 67,3
L["Lock the position of Breanni's icon"] = "Bloque la position de l'ic\195\180ne de Breanni"
L["Lock inventory"] = "Bloquer inventaire"
L["Lock the position of the companion's inventory bag"] = "Bloque la position de la fen\195\170tre inventaire des compagnons"
L["Base strata"] = "Strata base"
L["Change the base frame strata"] = "Change la strata de la frame de base"
L["Button strata"] = "Strata boutton"
L["Change the button frames strata"] = "Change la strata de la frame de chaque boutton"
trunk/OneCompanion/locals/deDE.lua
1,7 → 1,6
--[[
Name: OneCompanion
Version: 3.0.2.$Revision$
$Date$
Version: 3.0.2.wowi:revision
Author(s): Mera_LaCroisadeEcarlate (ad@heapoverflow.com)
Playing: Mera,Merae,Merah & FathisUles on EU FR-La Croisade Ecarlate ;)
Website: http://-
68,7 → 67,3
L["Lock the position of Breanni's icon"] = "Lock the position of Breanni's icon"
L["Lock inventory"] = "Lock companion's bag"
L["Lock the position of the companion's inventory bag"] = "Lock the position of the companion's inventory bag"
L["Base strata"] = "Base strata"
L["Change the base frame strata"] = "Change the base frame strata"
L["Button strata"] = "Button strata"
L["Change the button frames strata"] = "Change the button frames strata"
trunk/OneCompanion/locals/zhCN.lua
1,7 → 1,6
--[[
Name: OneCompanion
Version: 3.0.2.$Revision$
$Date$
Version: 3.0.2.wowi:revision
Author(s): Mera_LaCroisadeEcarlate (ad@heapoverflow.com)
Playing: Mera,Merae,Merah & FathisUles on EU FR-La Croisade Ecarlate ;)
Website: http://-
57,7 → 56,3
L["Lock the position of Breanni's icon"] = "Lock the position of Breanni's icon"
L["Lock inventory"] = "Lock companion's bag"
L["Lock the position of the companion's inventory bag"] = "Lock the position of the companion's inventory bag"
L["Base strata"] = "Base strata"
L["Change the base frame strata"] = "Change the base frame strata"
L["Button strata"] = "Button strata"
L["Change the button frames strata"] = "Change the button frames strata"