/
function OneCompanion:OnEnable() |
self:RegisterEvent("COMPANION_LEARNED","OnCompanionLearned") |
self:RegisterEvent("SPELL_UPDATE_COOLDOWN","OnCompanionCooldown") |
OneCompanionFrames.build() |
end |
function OneCompanion:OnDisable() |
self:UnregisterEvent("COMPANION_LEARNED") |
self:UnregisterEvent("SPELL_UPDATE_COOLDOWN") |
end |
--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*-- |
function OneCompanion:OpenConfig() |
if not InterfaceOptionsFrame:IsShown() then |
if not ACD.OpenFrames["OneCompanion"] then |
InterfaceOptionsFrame:Hide() |
ACD:SetDefaultSize("OneCompanion", 600, 550) |
ACD:Open("OneCompanion") |
else |
InterfaceOptionsFrame:SetWidth(850) |
InterfaceOptionsFrame_OpenToFrame(self.optionsFrame) |
InterfaceOptionsFrame:Hide() |
ACD:Close("OneCompanion") |
end |
end |
function OneCompanion:OpenModel() |
local self = OneCompanionFrames |
if not self.model:IsShown() then |
self.model:Show() |
else |
self.model:Hide() |
end |
self.ShowSlider() |
end |
function OneCompanion:OnCompanionLearned() |
OneCompanionFrames.buildButtons() |
OneCompanionOptions.ToggleButtonScale(nil, nil, nil, nil) |
end |
function OneCompanion:OnCompanionCooldown() |
local fra = OneCompanionFrames |
if fra.base:IsVisible() then |
fra:UpdateCooldowns() |
end |
end |
function OneCompanion:ToggleShowHide() |
local fra = OneCompanionFrames |
if fra.base:IsShown() then PlaySound("igInventoryClose") fra.base:Hide() else PlaySound("igInventoryOepn") fra.base:Show() end |
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", |
local stratas = {["BACKGROUND"]="BACKGROUND", ["LOW"]="LOW", ["MEDIUM"]="MEDIUM", ["HIGH"]="HIGH", ["DIALOG"]="DIALOG", |
["FULLSCREEN"]="FULLSCREEN", ["FULLSCREEN_DIALOG"]="FULLSCREEN_DIALOG", ["TOOLTIP"]="TOOLTIP"} |
local defaults = { |
y = 0, |
w = 225, |
h = 200, |
mw = 225, |
mh = 200, |
sc = 1, |
bsc = 1, |
breannix = 0, |
footer = {0.1215686274509804, 0.1254901960784314, 0.1254901960784314, 1}, |
bindex = {0.7019607843137254, 0.3137254901960784, 0.5686274509803921, 1}, |
bfooter = {0.807843137254902, 0.1254901960784314, 0.1176470588235294, 1}, |
model = {0.203921568627451, 0.2117647058823529, 0.2078431372549019, 0.9299999997019768}, |
bmodel = {0.7019607843137254, 0.3137254901960784, 0.5686274509803921, 1}, |
}, |
misc = { |
clamp = true, |
mclamp = false, |
grip = false, |
mgrip = false, |
tip = false, |
lockbreanni = false, |
lockbag = false, |
args = { |
h = { |
order = 0, |
name = L["Height"], |
desc = L["Change mainframe height"], |
name = L["Index height"], |
desc = L["Change the index frame height"], |
type = "range", |
min = 68, max = 1000, step = 1, |
set = function(_, value) OneCompanion.db.profile.sizes.h = value OneCompanionFrames.base:SetHeight(OneCompanion.db.profile.sizes.h) OneCompanionFrames.ShowSlider() end, |
}, |
w = { |
order = 5, |
name = L["Width"], |
desc = L["Change mainframe width"], |
name = L["Index width"], |
desc = L["Change the index frame width"], |
type = "range", |
min = 50, max = 1000, step = 1, |
min = 59, max = 1000, step = 1, |
set = "ToggleMainFrameWidth", |
get = function() return OneCompanionFrames.base:GetWidth() end, |
}, |
mh = { |
order = 6, |
name = L["Model height"], |
desc = L["Change the model frame height"], |
type = "range", |
min = 40, max = 1000, step = 1, |
set = function(_, value) OneCompanion.db.profile.sizes.mh = value OneCompanionFrames.model:SetHeight(OneCompanion.db.profile.sizes.mh) end, |
get = function() return OneCompanionFrames.model:GetHeight() end, |
}, |
mw = { |
order = 7, |
name = L["Model width"], |
desc = L["Change the model frame width"], |
type = "range", |
min = 40, max = 1000, step = 1, |
set = "ToggleModelFrameWidth", |
get = function() return OneCompanionFrames.model:GetWidth() end, |
}, |
sc = { |
order = 10, |
name = L["Button scale"], |
get = function() return OneCompanion.db.profile.sizes.sc end, |
}, |
bsc = { |
order = 11, |
order = 15, |
name = L["Breanni scale"], |
desc = L["Change the Breanni's button scale"], |
type = "range", |
get = function() return OneCompanion.db.profile.sizes.bsc end, |
}, |
buttonpad = { |
order = 15, |
order = 11, |
name = L["Button padding"], |
desc = L["Change the size between each button"], |
type = "range", |
index = { |
order = 0, |
name = L["Index window"], |
desc = L["Change the background color for the index window"], |
desc = L["Change the index window background color"], |
type = "color", |
hasAlpha = true, |
get = function() return unpack(OneCompanion.db.profile.colors.index) end, |
set = "SetColor", |
}, |
footer = { |
order = 5, |
order = 10, |
name = L["Footer window"], |
desc = L["Change the background color for the footer window"], |
desc = L["Change the footer window background color"], |
type = "color", |
hasAlpha = true, |
get = function() return unpack(OneCompanion.db.profile.colors.footer) end, |
set = "SetColor", |
}, |
bindex = { |
order = 10, |
order = 5, |
name = L["Index border"], |
desc = L["Change the border color for the index window"], |
desc = L["Change the index window border color"], |
type = "color", |
hasAlpha = true, |
get = function() return unpack(OneCompanion.db.profile.colors.bindex) end, |
bfooter = { |
order = 15, |
name = L["Footer border"], |
desc = L["Change the border color for the footer window"], |
desc = L["Change the footer window border color"], |
type = "color", |
hasAlpha = true, |
get = function() return unpack(OneCompanion.db.profile.colors.bfooter) end, |
set = "SetColor", |
}, |
model = { |
order = 20, |
name = L["Model window"], |
desc = L["Change the model window background color"], |
type = "color", |
hasAlpha = true, |
get = function() return unpack(OneCompanion.db.profile.colors.model) end, |
set = "SetColor", |
}, |
bmodel = { |
order = 25, |
name = L["Model border"], |
desc = L["Change the model window border color"], |
type = "color", |
hasAlpha = true, |
get = function() return unpack(OneCompanion.db.profile.colors.bmodel) end, |
set = "SetColor", |
}, |
} |
}, |
misc = { |
clamp = { |
order = 0, |
type = "toggle", |
name = L["Clamped to screen"], |
desc = L["Clamp the mainframe to the screen"], |
name = L["Clamped index"], |
desc = L["Clamp the index frame to the screen"], |
set = "ToggleMainFrameClamp", |
get = function() return OneCompanion.db.profile.misc.clamp end, |
}, |
mclamp = { |
order = 1, |
type = "toggle", |
name = L["Clamped model"], |
desc = L["Clamp the model frame to the screen"], |
set = "ToggleModelFrameClamp", |
get = function() return OneCompanion.db.profile.misc.mclamp end, |
}, |
grip = { |
order = 5, |
type = "toggle", |
name = L["Hide grip"], |
name = L["Hide index grip"], |
desc = L["Hide or show the index frame grip"], |
set = "ToggleShowGrip", |
get = function() return OneCompanion.db.profile.misc.grip end, |
}, |
mgrip = { |
order = 6, |
type = "toggle", |
name = L["Hide model grip"], |
desc = L["Hide or show the model frame grip"], |
set = "ToggleShowModelGrip", |
get = function() return OneCompanion.db.profile.misc.mgrip end, |
}, |
tip = { |
order = 10, |
type = "toggle", |
OCstop = function() fra.base:StopMovingOrSizing() fra:SetAnchors(fra.base) end |
end |
for i, j in pairs(fra) do |
if type(fra[i]) ~= "function" and i ~= "breanni" and i ~= "grip" and i ~= "slider" and i ~= "footerText" and i ~= "footerRev" then |
if type(fra[i]) ~= "function" and i ~= "breanni" and i ~= "grip" and i ~= "mgrip" and i ~= "slider" and i ~= "footerText" and i ~= "footerRev" and i ~= "modelindex" then |
if i == "scrollindex" then fra[i]:SetFrameLevel(0) end |
fra[i]:SetScript("OnMouseDown", OCstart) |
fra[i]:SetScript("OnMouseUp", OCstop) |
end |
if i == "modelindex" then |
fra[i]:SetScript("OnMouseDown", function() fra[i].startx, fra[i].starty = GetCursorPosition() fra[i]:SetScript("OnUpdate", fra.OnRotateModel) end) |
fra[i]:SetScript("OnMouseUp", function() fra[i]:SetScript("OnUpdate", nil) end) |
end |
end |
for i, j in ipairs(btn) do |
j:SetScript("OnDragStart", OCstart) |
opt:ToggleButtonScale(nil, nil, nil, nil) |
end |
function OneCompanionOptions:ToggleModelFrameWidth(_, value) |
local self, fra = OneCompanion, OneCompanionFrames |
if value then self.db.profile.sizes.mw = value end |
fra.model:SetWidth(self.db.profile.sizes.mw) |
end |
function OneCompanionOptions:IsMainFrameHeight() |
local fra = OneCompanionFrames |
local value = fra.base:GetHeight() |
function OneCompanionOptions:ToggleBreanniScale(_, value) |
local self, fra = OneCompanion, OneCompanionFrames |
if value then self.db.profile.sizes.bsc = value end |
fra.breanni:SetScale(self.db.profile.sizes.bsc) |
fra.breanni:SetScale(self.db.profile.sizes.bsc) |
fra.breanni:SetPoint(self.db.profile.sizes.breannipt, UIParent, self.db.profile.sizes.breannirpt, self.db.profile.sizes.breannix / self.db.profile.sizes.bsc, self.db.profile.sizes.breanniy / self.db.profile.sizes.bsc) |
end |
end |
end |
end |
local f, s, p, e = fra.footerText:GetFont() |
local f, s, p = fra.footerText:GetFont() |
local e = fra.footer:GetWidth() |
if e < 94 then |
if e < 122 then |
fra.footerText:SetFont(f, 6, p) |
fra.footerRev:SetFont(f, 6, p) |
fra.footerText:SetPoint("BOTTOMRIGHT", fra.footerRev, "TOPRIGHT", 0, 0) |
fra.footerText:SetPoint("BOTTOMRIGHT", fra.footerRev, "TOPRIGHT", 0, 0) |
fra.footerText:SetText("One|cffffcc00C|r") |
elseif e < 140 then |
elseif e < 173 then |
fra.footerText:SetFont(f, 8, p) |
fra.footerRev:SetFont(f, 8, p) |
fra.footerText:SetPoint("BOTTOMRIGHT", fra.footerRev, "TOPRIGHT", 0, 0) |
fra.base:SetClampedToScreen(self.db.profile.misc.clamp) |
end |
function OneCompanionOptions:ToggleModelFrameClamp(value) |
local self, fra = OneCompanion, OneCompanionFrames |
if value then self.db.profile.misc.mclamp = not self.db.profile.misc.mclamp end |
fra.model:SetClampedToScreen(self.db.profile.misc.mclamp) |
end |
function OneCompanionOptions:SetColor(key, r, g, b, a) |
local self, fra = OneCompanion, OneCompanionFrames |
if key then |
r, g, b, a = unpack(self.db.profile.colors.footer) fra.footer:SetBackdropColor(r, g, b, a) |
r, g, b, a = unpack(self.db.profile.colors.bindex) fra.index:SetBackdropBorderColor(r, g, b, a) |
r, g, b, a = unpack(self.db.profile.colors.bfooter) fra.footer:SetBackdropBorderColor(r, g, b, a) |
r, g, b, a = unpack(self.db.profile.colors.model) fra.model:SetBackdropColor(r, g, b, a) |
r, g, b, a = unpack(self.db.profile.colors.bmodel) fra.model:SetBackdropBorderColor(r, g, b, a) |
end |
function OneCompanionOptions:ToggleShowGrip(value) |
if self.db.profile.misc.grip then fra.grip:Hide() else fra.grip:Show() end |
end |
function OneCompanionOptions:ToggleShowTooltips(value, spellID, b) |
function OneCompanionOptions:ToggleShowModelGrip(value) |
local self, fra = OneCompanion, OneCompanionFrames |
if value then self.db.profile.misc.mgrip = not self.db.profile.misc.mgrip end |
if self.db.profile.misc.mgrip then fra.mgrip:Hide() else fra.mgrip:Show() end |
end |
function OneCompanionOptions:ToggleShowTooltips(value) |
local self, fra, g, btn = OneCompanion, OneCompanionFrames, GameTooltip, OneCompanionButtons |
if value then self.db.profile.misc.tip = not self.db.profile.misc.tip end |
if self.db.profile.misc.tip then |
fra.cfgButton:SetScript("OnEnter", nil) |
if b then b:SetScript("OnEnter", nil) |
elseif value then |
for i, j in ipairs(btn) do j:SetScript("OnEnter", nil) end |
end |
for i, j in ipairs(btn) do j:SetScript("OnEnter", nil) end |
else |
fra.cfgButton:SetScript("OnEnter", function(self) |
if GetCVar("UberTooltips") == "1" then |
else |
g:SetOwner(self, "ANCHOR_RIGHT") |
end |
g:AddLine(L["Settings"]) |
g:AddLine(L["Settings"], 1, 1, 1) |
g:AddLine(L["Click to open/close the Ace3 configuration window"]) |
g:Show() |
end) |
fra.modButton:SetScript("OnEnter", function(self) |
if GetCVar("UberTooltips") == "1" then |
GameTooltip_SetDefaultAnchor(g, self) |
else |
g:SetOwner(self, "ANCHOR_RIGHT") |
end |
g:AddLine(L["Companion preview"], 1, 1, 1) |
g:AddLine(L["Click to open/close the 3D preview window"]) |
g:AddLine(L["Ctrl-click any companion icon to show its 3D preview"], 0.1843137254901961, 0.8235294117647058, 0) |
g:Show() |
end) |
fra.cfgButton:SetScript("OnLeave", function(self) g:Hide() end) |
if b then |
b:SetScript("OnEnter", function(self) |
fra.modButton:SetScript("OnLeave", function(self) g:Hide() end) |
for i, j in ipairs(btn) do |
j:SetScript("OnEnter", function(self) |
if GetCVar("UberTooltips") == "1" then |
GameTooltip_SetDefaultAnchor(g, self) |
else |
g:SetOwner(self, "ANCHOR_LEFT") |
g:SetOwner(self, "ANCHOR_RIGHT") |
end |
if g:SetHyperlink("spell:" .. spellID) then |
if g:SetHyperlink("spell:" .. j.spellID) then |
self.UpdateTooltip = self |
else |
self.UpdateTooltip = nil |
end |
g:AddLine(L["Ctrl-click to show the 3D preview"], 0.1843137254901961, 0.8235294117647058, 0) |
g:Show() |
end) |
elseif value then |
for i, j in ipairs(btn) do |
local d = GetNumCompanions("MOUNT") |
local creatureID, creatureName, spellID, icon, active |
if i <= d then |
creatureID, creatureName, spellID, icon, active = GetCompanionInfo("MOUNT", i) |
else |
creatureID, creatureName, spellID, icon, active = GetCompanionInfo("CRITTER", i-d) |
end |
j:SetScript("OnEnter", function(self) |
if GetCVar("UberTooltips") == "1" then |
GameTooltip_SetDefaultAnchor(g, self) |
else |
g:SetOwner(self, "ANCHOR_LEFT") |
end |
if g:SetHyperlink("spell:" .. spellID) then |
self.UpdateTooltip = self |
else |
self.UpdateTooltip = nil |
end |
end) |
end |
end |
end |
end |
end |
local grip = CreateFrame("Button", "OneCompanionGrip", index) |
local slider = CreateFrame("Slider", "OneCompanionIndexSlider", index) |
local child = CreateFrame("Frame", "OneCompanionIndexChild", scrollindex) |
local footer = CreateFrame("Frame", "OneCompanionFooterFrame", base) |
local footer = CreateFrame("Frame", nil, base) |
local footerText = footer:CreateFontString(nil, nil, "GameFontNormal") |
local footerRev = footer:CreateFontString(nil, nil, "GameFontNormal") |
local cfgButton = CreateFrame("Button", nil, footer) |
local modButton = CreateFrame("Button", nil, footer) |
local model = CreateFrame("Frame", "OneCompanionModelFrame", base) |
local modelindex = CreateFrame("PlayerModel", "OneCompanionModelIndexFrame", model) |
local mgrip = CreateFrame("Button", "OneCompanionModelGrip", model) |
local sliderBackdrop = { |
bgFile = [[Interface\Buttons\UI-SliderBar-Background]], |
edgeFile = [[Interface\Buttons\UI-SliderBar-Border]], |
tile = true, tileSize = 8, edgeSize = 8, |
insets = { left = 3, right = 3, top = 3, bottom = 3 } } |
local indexBackdrop = { |
local defaultBackdrop = { |
bgFile = [[Interface\ChatFrame\ChatFrameBackground]], |
edgeFile = [[Interface\Tooltips\UI-Tooltip-Border]], |
tile = true, tileSize = 16, edgeSize = 16, |
insets = { left = 5, right = 5, top = 5, bottom = 5 } } |
local footerBackdrop = { |
bgFile = [[Interface\ChatFrame\ChatFrameBackground]], |
edgeFile = [[Interface\Tooltips\UI-Tooltip-Border]], |
tile = true, tileSize = 16, edgeSize = 16, |
insets = { left = 5, right = 5, top = 5, bottom = 5 } } |
texture:SetAllPoints(breanni) |
texture:SetTexture([[Interface\AddOns\OneCompanion\textures\breanni]]) |
breanni:SetPoint(self.db.profile.sizes.breannipt, UIParent, self.db.profile.sizes.breannirpt, self.db.profile.sizes.breannix, self.db.profile.sizes.breanniy) |
base:SetHeight(self.db.profile.sizes.h) |
base:SetWidth(self.db.profile.sizes.w) |
base:SetPoint(self.db.profile.sizes.pt, UIParent, self.db.profile.sizes.rpt, self.db.profile.sizes.x, self.db.profile.sizes.y) |
model:SetHeight(self.db.profile.sizes.mh) |
model:SetWidth(self.db.profile.sizes.mw) |
model:SetPoint("TOPLEFT", base, "TOPRIGHT", 0, 0) |
model:SetBackdrop(defaultBackdrop) |
footer:SetHeight(30) |
footer:SetWidth(self.db.profile.sizes.w) |
footer:SetPoint("BOTTOMLEFT", base, "BOTTOMLEFT", 0, 0) |
footer:SetPoint("BOTTOMRIGHT", base, "BOTTOMRIGHT", 0, 0) |
footer:SetBackdrop(footerBackdrop) |
footer:SetBackdrop(defaultBackdrop) |
scrollindex:SetScrollChild(child) |
index:SetWidth(self.db.profile.sizes.w) |
index:SetPoint("BOTTOMLEFT", footer, "TOPLEFT", 0, 0) |
index:SetPoint("BOTTOMRIGHT", footer, "TOPRIGHT", 0, 0) |
index:SetPoint("TOPLEFT", base, "TOPLEFT", 0, 0) |
index:SetPoint("TOPRIGHT", base, "TOPRIGHT", 0, 0) |
index:SetBackdrop(indexBackdrop) |
index:SetBackdrop(defaultBackdrop) |
modelindex:SetPoint("BOTTOMLEFT", model, "BOTTOMLEFT", 5, 5) |
modelindex:SetPoint("BOTTOMRIGHT", model, "BOTTOMRIGHT", -5, 5) |
modelindex:SetPoint("TOPLEFT", model, "TOPLEFT", 5, -5) |
modelindex:SetPoint("TOPRIGHT", model, "TOPRIGHT", -5, -5) |
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) |
slider:SetWidth(8) |
slider:SetThumbTexture([[Interface\Buttons\UI-SliderBar-Button-Vertical]]) |
slider:SetFrameStrata("FULLSCREEN_DIALOG") |
slider:SetPoint("TOPLEFT", index, "TOPRIGHT", 5, 0) |
slider:SetPoint("BOTTOMLEFT", index, "BOTTOMRIGHT", 5, 0) |
-- slider:SetPoint("TOPLEFT", index, "TOPRIGHT", 5, 0) |
-- slider:SetPoint("BOTTOMLEFT", index, "BOTTOMRIGHT", 5, 0) |
slider:SetMinMaxValues(0, 1) |
slider:SetValueStep(0.001) |
slider:SetValue(0) |
grip:SetWidth(16) |
grip:SetHeight(16) |
grip:SetScript("OnMouseDown", function() base:StartSizing() grip:SetScript("OnUpdate", function() fra:SetAnchors(base) opt:ToggleButtonScale(nil, nil, nil, nil) end) end) |
grip:SetScript("OnMouseUp", function() base:SetScript("OnSizeChanged", nil) base:StopMovingOrSizing() grip:SetScript("OnUpdate", nil) end) |
grip:SetScript("OnMouseUp", function() base:SetScript("OnSizeChanged", nil) base:StopMovingOrSizing() grip:SetScript("OnUpdate", nil) fra:SetAnchors(base) end) |
grip:SetPoint("BOTTOMRIGHT", index, "BOTTOMRIGHT", -1, 1) |
grip:SetFrameLevel(30) |
mgrip:SetNormalTexture([[Interface\AddOns\OneCompanion\textures\grip]]) |
mgrip:SetHighlightTexture([[Interface\AddOns\OneCompanion\textures\grip]]) |
mgrip:SetWidth(16) |
mgrip:SetHeight(16) |
mgrip:SetScript("OnMouseDown", function() model:StartSizing() end) |
mgrip:SetScript("OnMouseUp", function() model:SetScript("OnSizeChanged", nil) model:StopMovingOrSizing() fra:SetModelAnchors(model) end) |
mgrip:SetPoint("BOTTOMRIGHT", model, "BOTTOMRIGHT", -1, 1) |
mgrip:SetFrameLevel(30) |
footerRev:SetPoint("BOTTOMRIGHT", footer, "BOTTOMRIGHT", -5, 5) |
footerRev:SetText("r|cff7a7a7a" .. _G.OneCompanion_MINOR_VERSION .. "|r") |
footerText:SetText("One|cffffcc00Companion|r") |
cfgButton:SetNormalTexture([[Interface\Icons\Ability_Repair]]) |
cfgButton:SetHighlightTexture([[Interface\Buttons\ButtonHilight-Square]]) |
cfgButton:SetPoint("LEFT", footer, "LEFT", 7, 0) |
cfgButton:SetWidth(16) |
cfgButton:SetHeight(16) |
cfgButton:SetWidth(20) |
cfgButton:SetHeight(20) |
modButton:SetNormalTexture([[Interface\Icons\INV_Misc_Spyglass_02]]) |
modButton:SetHighlightTexture([[Interface\Buttons\ButtonHilight-Square]]) |
modButton:SetPoint("LEFT", cfgButton, "RIGHT", 5, 0) |
modButton:SetWidth(20) |
modButton:SetHeight(20) |
base:EnableMouse(true) |
index:EnableMouse(true) |
scrollindex:EnableMouse(true) |
child:EnableMouse(true) |
footer:EnableMouse(true) |
model:EnableMouse(true) |
modelindex:EnableMouse(true) |
base:SetResizable(true) |
index:SetResizable(true) |
modelindex:SetResizable(true) |
footer:SetResizable(true) |
base:SetMinResize(50, 68) |
model:SetResizable(true) |
base:SetMinResize(59, 68) |
model:SetMinResize(40, 40) |
breanni:SetScript("OnClick", OneCompanion.ToggleShowHide) |
cfgButton:SetScript("OnClick", OneCompanion.OpenConfig) |
modButton:SetScript("OnClick", OneCompanion.OpenModel) |
fra.base = base |
fra.index = index |
fra.footer = footer |
fra.grip = grip |
fra.cfgButton = cfgButton |
fra.modButton = modButton |
fra.breanni = breanni |
fra.footerText = footerText |
fra.footerRev = footerRev |
fra.model = model |
fra.modelindex = modelindex |
fra.mgrip = mgrip |
base:Hide() |
model:Hide() |
opt:ToggleShowTooltips(nil, nil, nil) |
opt:SetColor(nil, nil, nil, nil, nil) |
opt:ToggleMainFrameClamp(nil) |
opt:ToggleModelFrameClamp(nil) |
opt:ToggleShowGrip(nil) |
opt:ToggleShowModelGrip(nil) |
opt:ToggleLockBreanni(nil) |
fra:buildButtons() |
opt:ToggleShowTooltips(nil) |
opt:ToggleLockBag(nil) |
opt:ToggleButtonScale(nil, nil, nil, nil) |
opt:ToggleBreanniScale(nil, nil) |
opt:ToggleStrata(nil, nil) |
base:Hide() |
end |
local self , fra = OneCompanion, OneCompanionFrames |
local h, m = fra.scrollindex:GetHeight(), OneCompanionMaxHeight |
if m > h then |
fra.slider:ClearAllPoints() |
if fra.model:IsVisible() then |
fra.slider:SetPoint("TOPRIGHT", fra.index, "TOPLEFT", -5, 0) |
fra.slider:SetPoint("BOTTOMRIGHT", fra.index, "BOTTOMLEFT", -5, 0) |
else |
fra.slider:SetPoint("TOPLEFT", fra.index, "TOPRIGHT", 5, 0) |
fra.slider:SetPoint("BOTTOMLEFT", fra.index, "BOTTOMRIGHT", 5, 0) |
end |
fra.slider:Show() |
else |
fra.slider:Hide() |
self.db.profile.sizes.pt, _, self.db.profile.sizes.rpt, self.db.profile.sizes.x, self.db.profile.sizes.y = f:GetPoint() |
self.db.profile.sizes.w = f:GetWidth() |
self.db.profile.sizes.h = f:GetHeight() |
fra.footer:SetWidth(self.db.profile.sizes.w) |
fra.index:SetWidth(self.db.profile.sizes.w) |
fra.child:SetWidth(self.db.profile.sizes.w) |
fra.footer:SetWidth(self.db.profile.sizes.w) |
fra.footer:SetPoint("BOTTOMLEFT", fra.base, "BOTTOMLEFT", 0, 0) |
fra.footer:SetPoint("BOTTOMRIGHT", fra.base, "BOTTOMRIGHT", 0, 0) |
fra.index:SetPoint("BOTTOMLEFT", fra.footer, "TOPLEFT", 0, 0) |
fra.index:SetPoint("BOTTOMRIGHT", fra.footer, "TOPRIGHT", 0, 0) |
fra.index:SetPoint("TOPLEFT", fra.base, "TOPLEFT", 0, 0) |
fra.index:SetPoint("TOPRIGHT", fra.base, "TOPRIGHT", 0, 0) |
fra.model:SetPoint("TOPLEFT", fra.base, "TOPRIGHT", 0, 0) |
end |
end |
function OneCompanionFrames:SetModelAnchors(f) |
local self , fra = OneCompanion, OneCompanionFrames |
if f then |
self.db.profile.sizes.mw = f:GetWidth() |
self.db.profile.sizes.mh = f:GetHeight() |
fra.model:ClearAllPoints() |
fra.model:SetPoint("TOPLEFT", fra.base, "TOPRIGHT", 0, 0) |
fra.modelindex:SetPoint("BOTTOMLEFT", fra.model, "BOTTOMLEFT", 5, 5) |
fra.modelindex:SetPoint("BOTTOMRIGHT", fra.model, "BOTTOMRIGHT", -5, 5) |
fra.modelindex:SetPoint("TOPLEFT", fra.model, "TOPLEFT", 5, -5) |
fra.modelindex:SetPoint("TOPRIGHT", fra.model, "TOPRIGHT", -5, -5) |
end |
end |
function OneCompanionFrames:SetBreanniAnchors(f) |
local self , fra = OneCompanion, OneCompanionFrames |
if f then |
if f then |
self.db.profile.sizes.breannipt, _, self.db.profile.sizes.breannirpt, self.db.profile.sizes.breannix, self.db.profile.sizes.breanniy = f:GetPoint() |
self.db.profile.sizes.breannix = self.db.profile.sizes.breannix * self.db.profile.sizes.bsc |
self.db.profile.sizes.breanniy = self.db.profile.sizes.breanniy * self.db.profile.sizes.bsc |
for i, j in ipairs(btn) do |
j:Hide() |
end |
for i = 1, mount do |
for i = 1, mount + critter do |
local slot = CreateFrame("Button", "OneCompanionSlot" .. i, fra.child, "BankItemButtonGenericTemplate") |
local creatureID, creatureName, spellID, icon, active = GetCompanionInfo("MOUNT", i) |
local texture = slot:CreateTexture("OneCompanionTexture" .. i) |
local cool = CreateFrame("Cooldown", "OneCompanionSlot" .. i .. "Cooldown", slot, "CooldownFrameTemplate") |
local texture, type, petID = slot:CreateTexture("OneCompanionTexture" .. i), nil, nil |
if i <= mount then type = "MOUNT" petID = i else type = "CRITTER" petID = i - mount end |
local creatureID, creatureName, spellID, icon, active = GetCompanionInfo(type, petID) |
slot.cool, slot.type, slot.petID, slot.creatureID, slot.creatureName, slot.spellID, slot.active = cool, type, petID, creatureID, creatureName, spellID, active |
cool:SetAllPoints(slot) |
cool:SetAlpha(0.8) |
texture:SetAllPoints(slot) |
texture:SetTexture(icon) |
slot:SetID(i) |
btn[i] = slot |
OneCompanionOptions:ToggleShowTooltips(nil, spellID, btn[i]) |
slot:SetScript("OnClick", function() |
if IsModifiedClick("CHATLINK") then |
if MacroFrame and MacroFrame:IsShown() then |
local spellName = GetSpellInfo(spellID); |
ChatEdit_InsertLink(spellName); |
local spellName = GetSpellInfo(spellID) |
ChatEdit_InsertLink(spellName) |
else |
local spellLink = GetSpellLink(spellID) |
ChatEdit_InsertLink(spellLink); |
ChatEdit_InsertLink(spellLink) |
end |
elseif IsControlKeyDown() then |
fra.model:Show() |
fra.ShowSlider() |
fra.modelindex:SetCreature(creatureID) |
else |
local creatureID, creatureName, spellID, icon, active = GetCompanionInfo("MOUNT", i); |
local creatureID, creatureName, spellID, icon, active = GetCompanionInfo(type, petID) |
if active then |
DismissCompanion("MOUNT", i) |
DismissCompanion(type, petID) |
PlaySound("igMainMenuOptionCheckBoxOn") |
else |
CallCompanion("MOUNT", i) |
PlaySound("igMainMenuOptionCheckBoxOff") |
CallCompanion(type, petID) |
PlaySound("igMainMenuOptionCheckBoxOff") |
end |
end |
end) |
end |
for i = 1, critter do |
local id = i + mount |
local slot = CreateFrame("Button", "OneCompanionSlot" .. id, fra.child, "BankItemButtonGenericTemplate") |
local creatureID, creatureName, spellID, icon, active = GetCompanionInfo("CRITTER", i) |
local texture = slot:CreateTexture("OneCompanionTexture" .. id) |
texture:SetAllPoints(slot) |
texture:SetTexture(icon) |
slot:SetID(id) |
btn[id] = slot |
OneCompanionOptions:ToggleShowTooltips(nil, spellID, btn[id]) |
slot:SetScript("OnClick", function() |
if IsModifiedClick("CHATLINK") then |
if MacroFrame and MacroFrame:IsShown() then |
local spellName = GetSpellInfo(spellID); |
ChatEdit_InsertLink(spellName); |
else |
local spellLink = GetSpellLink(spellID) |
ChatEdit_InsertLink(spellLink); |
end |
else |
local creatureID, creatureName, spellID, icon, active = GetCompanionInfo("CRITTER", i) |
if active then |
DismissCompanion("CRITTER", i) |
PlaySound("igMainMenuOptionCheckBoxOn") |
else |
CallCompanion("CRITTER", i) |
PlaySound("igMainMenuOptionCheckBoxOff") |
end |
end |
end) |
end |
function OneCompanionFrames:UpdateCooldowns() |
local btn = OneCompanionButtons |
for i, j in ipairs(btn) do |
local start, duration, enable = GetCompanionCooldown(btn[i].type, btn[i].petID) |
CooldownFrame_SetTimer(btn[i].cool, start, duration, enable) |
end |
end |
function OneCompanionFrames:ShowTip(spellID) |
end |
L["AddOn options"] = "AddOn options" |
L["Sizes"] = "Sizes" |
L["Sizes options"] = "Sizes options" |
L["Width"] = "Width" |
L["Change mainframe width"] = "Change mainframe width" |
L["Height"] = "Height" |
L["Change mainframe height"] = "Change mainframe height" |
L["Clamped to screen"] = "Clamped to screen" |
L["Clamp the mainframe to the screen"] = "Clamp the mainframe to the screen" |
L["Index width"] = "Index width" |
L["Change the index frame width"] = "Change the index frame width" |
L["Index height"] = "Index height" |
L["Change the index frame height"] = "Change the index frame height" |
L["Clamped index"] = "Clamped index" |
L["Clamp the index frame to the screen"] = "Clamp the index frame to the screen" |
L["Clamped model"] = "Clamped model" |
L["Clamp the model frame to the screen"] = "Clamp the model frame to the screen" |
L["Colors"] = "Colors" |
L["Colors options"] = "Colors options" |
L["Misc"] = "Misc" |
L["Miscellaneous options"] = "Miscellaneous options" |
L["Index window"] = "Index window" |
L["Change the background color for the index window"] = "Change the background color for the index window" |
L["Change the index window background color"] = "Change the index window background color" |
L["Footer window"] = "Footer window" |
L["Change the background color for the footer window"] = "Change the background color for the footer window" |
L["Hide grip"] = "Hide grip" |
L["Change the footer window background color"] = "Change the footer window background color" |
L["Hide index grip"] = "Hide index grip" |
L["Hide or show the index frame grip"] = "Hide or show the index frame grip" |
L["Hide model grip"] = "Hide model grip" |
L["Hide or show the model frame grip"] = "Hide or show the model frame grip" |
L["Hide tooltips"] = "Hide tooltips" |
L["Hide or show the tooltips shown on mouseovering AddOn icons"] = "Hide or show the tooltips shown on mouseovering AddOn icons" |
L["Settings"] = "Settings" |
L["Index border"] = "Index border" |
L["Change the border color for the index window"] = "Change the border color for the index window" |
L["Change the index window border color"] = "Change the index window border color" |
L["Footer border"] = "Footer border" |
L["Change the border color for the footer window"] = "Change the border color for the footer window" |
L["Change the footer window border color"] = "Change the footer window border color" |
L["Button scale"] = "Button scale" |
L["Change the companion buttons scale"] = "Change the companion buttons scale" |
L["Button padding"] = "Button padding" |
L["Change the button frames strata"] = "Change the button frames strata" |
L["Breanni scale"] = "Breanni scale" |
L["Change the Breanni's button scale"] = "Change the Breanni's button scale" |
L["Model height"] = "Model height" |
L["Change the model frame height"] = "Change the model frame height" |
L["Model width"] = "Model width" |
L["Change the model frame width"] = "Change the model frame width" |
L["Model window"] = "Model window" |
L["Change the model window background color"] = "Change the model window background color" |
L["Model border"] = "Model border" |
L["Change the model window border color"] = "Change the model window border color" |
L["Companion preview"] = "Companion preview" |
L["Click to open/close the 3D preview window"] = "Click to open/close the 3D preview window" |
L["Ctrl-click any companion icon to show its 3D preview"] = "Ctrl-click any companion icon to show its 3D preview" |
L["Click to open/close the Ace3 configuration window"] = "Click to open/close the Ace3 configuration window" |
L["Ctrl-click to show the 3D preview"] = "Ctrl-click to show the 3D preview" |
L["AddOn options"] = true |
L["Sizes"] = true |
L["Sizes options"] = true |
L["Width"] = true |
L["Change mainframe width"] = true |
L["Height"] = true |
L["Change mainframe height"] = true |
L["Clamped to screen"] = true |
L["Clamp the mainframe to the screen"] = true |
L["Index width"] = true |
L["Change the index frame width"] = true |
L["Index height"] = true |
L["Change the index frame height"] = true |
L["Clamped index"] = true |
L["Clamp the index frame to the screen"] = true |
L["Clamped model"] = true |
L["Clamp the model frame to the screen"] = true |
L["Colors"] = true |
L["Colors options"] = true |
L["Misc"] = true |
L["Miscellaneous options"] = true |
L["Index window"] = true |
L["Change the background color for the index window"] = true |
L["Change the index window background color"] = true |
L["Footer window"] = true |
L["Change the background color for the footer window"] = true |
L["Hide grip"] = true |
L["Change the footer window background color"] = true |
L["Hide index grip"] = true |
L["Hide or show the index frame grip"] = true |
L["Hide model grip"] = true |
L["Hide or show the model frame grip"] = true |
L["Hide tooltips"] = true |
L["Hide or show the tooltips shown on mouseovering AddOn icons"] = true |
L["Settings"] = true |
L["Index border"] = true |
L["Change the border color for the index window"] = true |
L["Change the index window border color"] = true |
L["Footer border"] = true |
L["Change the border color for the footer window"] = true |
L["Change the footer window border color"] = true |
L["Button scale"] = true |
L["Change the companion buttons scale"] = true |
L["Button padding"] = true |
L["Change the button frames strata"] = true |
L["Breanni scale"] = true |
L["Change the Breanni's button scale"] = true |
L["Model height"] = true |
L["Change the model frame height"] = true |
L["Model width"] = true |
L["Change the model frame width"] = true |
L["Model window"] = true |
L["Change the model window background color"] = true |
L["Model border"] = true |
L["Change the model window border color"] = true |
L["Companion preview"] = true |
L["Click to open/close the 3D preview window"] = true |
L["Ctrl-click any companion icon to show its 3D preview"] = true |
L["Click to open/close the Ace3 configuration window"] = true |
L["Ctrl-click to show the 3D preview"] = true |
L["AddOn options"] = "AddOn options" |
L["Sizes"] = "Sizes" |
L["Sizes options"] = "Sizes options" |
L["Width"] = "Width" |
L["Change mainframe width"] = "Change mainframe width" |
L["Height"] = "Height" |
L["Change mainframe height"] = "Change mainframe height" |
L["Clamped to screen"] = "Clamped to screen" |
L["Clamp the mainframe to the screen"] = "Clamp the mainframe to the screen" |
L["Index width"] = "Index width" |
L["Change the index frame width"] = "Change the index frame width" |
L["Index height"] = "Index height" |
L["Change the index frame height"] = "Change the index frame height" |
L["Clamped index"] = "Clamped index" |
L["Clamp the index frame to the screen"] = "Clamp the index frame to the screen" |
L["Clamped model"] = "Clamped model" |
L["Clamp the model frame to the screen"] = "Clamp the model frame to the screen" |
L["Colors"] = "Colors" |
L["Colors options"] = "Colors options" |
L["Misc"] = "Misc" |
L["Miscellaneous options"] = "Miscellaneous options" |
L["Index window"] = "Index window" |
L["Change the background color for the index window"] = "Change the background color for the index window" |
L["Change the index window background color"] = "Change the index window background color" |
L["Footer window"] = "Footer window" |
L["Change the background color for the footer window"] = "Change the background color for the footer window" |
L["Hide grip"] = "Hide grip" |
L["Change the footer window background color"] = "Change the footer window background color" |
L["Hide index grip"] = "Hide index grip" |
L["Hide or show the index frame grip"] = "Hide or show the index frame grip" |
L["Hide model grip"] = "Hide model grip" |
L["Hide or show the model frame grip"] = "Hide or show the model frame grip" |
L["Hide tooltips"] = "Hide tooltips" |
L["Hide or show the tooltips shown on mouseovering AddOn icons"] = "Hide or show the tooltips shown on mouseovering AddOn icons" |
L["Settings"] = "Settings" |
L["Index border"] = "Index border" |
L["Change the border color for the index window"] = "Change the border color for the index window" |
L["Change the index window border color"] = "Change the index window border color" |
L["Footer border"] = "Footer border" |
L["Change the border color for the footer window"] = "Change the border color for the footer window" |
L["Change the footer window border color"] = "Change the footer window border color" |
L["Button scale"] = "Button scale" |
L["Change the companion buttons scale"] = "Change the companion buttons scale" |
L["Button padding"] = "Button padding" |
L["Change the button frames strata"] = "Change the button frames strata" |
L["Breanni scale"] = "Breanni scale" |
L["Change the Breanni's button scale"] = "Change the Breanni's button scale" |
L["Model height"] = "Model height" |
L["Change the model frame height"] = "Change the model frame height" |
L["Model width"] = "Model width" |
L["Change the model frame width"] = "Change the model frame width" |
L["Model window"] = "Model window" |
L["Change the model window background color"] = "Change the model window background color" |
L["Model border"] = "Model border" |
L["Change the model window border color"] = "Change the model window border color" |
L["Companion preview"] = "Companion preview" |
L["Click to open/close the 3D preview window"] = "Click to open/close the 3D preview window" |
L["Ctrl-click any companion icon to show its 3D preview"] = "Ctrl-click any companion icon to show its 3D preview" |
L["Click to open/close the Ace3 configuration window"] = "Click to open/close the Ace3 configuration window" |
L["Ctrl-click to show the 3D preview"] = "Ctrl-click to show the 3D preview" |
L["AddOn options"] = "AddOn options" |
L["Sizes"] = "Sizes" |
L["Sizes options"] = "Sizes options" |
L["Width"] = "Width" |
L["Change mainframe width"] = "Change mainframe width" |
L["Height"] = "Height" |
L["Change mainframe height"] = "Change mainframe height" |
L["Clamped to screen"] = "Clamped to screen" |
L["Clamp the mainframe to the screen"] = "Clamp the mainframe to the screen" |
L["Index width"] = "Index width" |
L["Change the index frame width"] = "Change the index frame width" |
L["Index height"] = "Index height" |
L["Change the index frame height"] = "Change the index frame height" |
L["Clamped index"] = "Clamped index" |
L["Clamp the index frame to the screen"] = "Clamp the index frame to the screen" |
L["Clamped model"] = "Clamped model" |
L["Clamp the model frame to the screen"] = "Clamp the model frame to the screen" |
L["Colors"] = "Colors" |
L["Colors options"] = "Colors options" |
L["Misc"] = "Misc" |
L["Miscellaneous options"] = "Miscellaneous options" |
L["Index window"] = "Index window" |
L["Change the background color for the index window"] = "Change the background color for the index window" |
L["Change the index window background color"] = "Change the index window background color" |
L["Footer window"] = "Footer window" |
L["Change the background color for the footer window"] = "Change the background color for the footer window" |
L["Hide grip"] = "Hide grip" |
L["Change the footer window background color"] = "Change the footer window background color" |
L["Hide index grip"] = "Hide index grip" |
L["Hide or show the index frame grip"] = "Hide or show the index frame grip" |
L["Hide model grip"] = "Hide model grip" |
L["Hide or show the model frame grip"] = "Hide or show the model frame grip" |
L["Hide tooltips"] = "Hide tooltips" |
L["Hide or show the tooltips shown on mouseovering AddOn icons"] = "Hide or show the tooltips shown on mouseovering AddOn icons" |
L["Settings"] = "Settings" |
L["Index border"] = "Index border" |
L["Change the border color for the index window"] = "Change the border color for the index window" |
L["Change the index window border color"] = "Change the index window border color" |
L["Footer border"] = "Footer border" |
L["Change the border color for the footer window"] = "Change the border color for the footer window" |
L["Change the footer window border color"] = "Change the footer window border color" |
L["Button scale"] = "Button scale" |
L["Change the companion buttons scale"] = "Change the companion buttons scale" |
L["Button padding"] = "Button padding" |
L["Change the button frames strata"] = "Change the button frames strata" |
L["Breanni scale"] = "Breanni scale" |
L["Change the Breanni's button scale"] = "Change the Breanni's button scale" |
L["Model height"] = "Model height" |
L["Change the model frame height"] = "Change the model frame height" |
L["Model width"] = "Model width" |
L["Change the model frame width"] = "Change the model frame width" |
L["Model window"] = "Model window" |
L["Change the model window background color"] = "Change the model window background color" |
L["Model border"] = "Model border" |
L["Change the model window border color"] = "Change the model window border color" |
L["Companion preview"] = "Companion preview" |
L["Click to open/close the 3D preview window"] = "Click to open/close the 3D preview window" |
L["Ctrl-click any companion icon to show its 3D preview"] = "Ctrl-click any companion icon to show its 3D preview" |
L["Click to open/close the Ace3 configuration window"] = "Click to open/close the Ace3 configuration window" |
L["Ctrl-click to show the 3D preview"] = "Ctrl-click to show the 3D preview" |
L["AddOn options"] = "AddOn options" |
L["Sizes"] = "Sizes" |
L["Sizes options"] = "Sizes options" |
L["Width"] = "Width" |
L["Change mainframe width"] = "Change mainframe width" |
L["Height"] = "Height" |
L["Change mainframe height"] = "Change mainframe height" |
L["Clamped to screen"] = "Clamped to screen" |
L["Clamp the mainframe to the screen"] = "Clamp the mainframe to the screen" |
L["Index width"] = "Index width" |
L["Change the index frame width"] = "Change the index frame width" |
L["Index height"] = "Index height" |
L["Change the index frame height"] = "Change the index frame height" |
L["Clamped index"] = "Clamped index" |
L["Clamp the index frame to the screen"] = "Clamp the index frame to the screen" |
L["Clamped model"] = "Clamped model" |
L["Clamp the model frame to the screen"] = "Clamp the model frame to the screen" |
L["Colors"] = "Colors" |
L["Colors options"] = "Colors options" |
L["Misc"] = "Misc" |
L["Miscellaneous options"] = "Miscellaneous options" |
L["Index window"] = "Index window" |
L["Change the background color for the index window"] = "Change the background color for the index window" |
L["Change the index window background color"] = "Change the index window background color" |
L["Footer window"] = "Footer window" |
L["Change the background color for the footer window"] = "Change the background color for the footer window" |
L["Hide grip"] = "Hide grip" |
L["Change the footer window background color"] = "Change the footer window background color" |
L["Hide index grip"] = "Hide index grip" |
L["Hide or show the index frame grip"] = "Hide or show the index frame grip" |
L["Hide model grip"] = "Hide model grip" |
L["Hide or show the model frame grip"] = "Hide or show the model frame grip" |
L["Hide tooltips"] = "Hide tooltips" |
L["Hide or show the tooltips shown on mouseovering AddOn icons"] = "Hide or show the tooltips shown on mouseovering AddOn icons" |
L["Settings"] = "Settings" |
L["Index border"] = "Index border" |
L["Change the border color for the index window"] = "Change the border color for the index window" |
L["Change the index window border color"] = "Change the index window border color" |
L["Footer border"] = "Footer border" |
L["Change the border color for the footer window"] = "Change the border color for the footer window" |
L["Change the footer window border color"] = "Change the footer window border color" |
L["Button scale"] = "Button scale" |
L["Change the companion buttons scale"] = "Change the companion buttons scale" |
L["Button padding"] = "Button padding" |
L["Change the button frames strata"] = "Change the button frames strata" |
L["Breanni scale"] = "Breanni scale" |
L["Change the Breanni's button scale"] = "Change the Breanni's button scale" |
L["Model height"] = "Model height" |
L["Change the model frame height"] = "Change the model frame height" |
L["Model width"] = "Model width" |
L["Change the model frame width"] = "Change the model frame width" |
L["Model window"] = "Model window" |
L["Change the model window background color"] = "Change the model window background color" |
L["Model border"] = "Model border" |
L["Change the model window border color"] = "Change the model window border color" |
L["Companion preview"] = "Companion preview" |
L["Click to open/close the 3D preview window"] = "Click to open/close the 3D preview window" |
L["Ctrl-click any companion icon to show its 3D preview"] = "Ctrl-click any companion icon to show its 3D preview" |
L["Click to open/close the Ace3 configuration window"] = "Click to open/close the Ace3 configuration window" |
L["Ctrl-click to show the 3D preview"] = "Ctrl-click to show the 3D preview" |
L["AddOn options"] = "Options de l'AddOn" |
L["Sizes"] = "Tailles" |
L["Sizes options"] = "Options de tailles" |
L["Width"] = "Largeur" |
L["Change mainframe width"] = "Change la largeur de la frame globale" |
L["Height"] = "Hauteur" |
L["Change mainframe height"] = "Change la hauteur de la frame globale" |
L["Clamped to screen"] = "Maintenir dans l'\195\169cran" |
L["Clamp the mainframe to the screen"] = "Maintient la frame principale dans l'\195\169cran afin qu'elle n'en sorte pas" |
L["Index width"] = "Largeur index" |
L["Change the index frame width"] = "Change la largeur de la frame principale" |
L["Index height"] = "Hauteur index" |
L["Change the index frame height"] = "Change la hauteur de la frame principale" |
L["Clamped index"] = "Maintenir index" |
L["Clamp the index frame to the screen"] = "Maintient la fen\195\170tre principale dans l'\195\169cran afin qu'elle n'en sorte pas" |
L["Clamped model"] = "Maintenir aper\195\167u" |
L["Clamp the model frame to the screen"] = "Maintient la fen\195\170tre aper\195\167u dans l'\195\169cran afin qu'elle n'en sorte pas" |
L["Colors"] = "Couleurs" |
L["Colors options"] = "Options de couleur" |
L["Misc"] = "Divers" |
L["Miscellaneous options"] = "Options divers d'affichage" |
L["Index window"] = "Fen\195\170tre index" |
L["Change the background color for the index window"] = "Change la couleur de fond de la fen\195\170tre index" |
L["Change the index window background color"] = "Change la couleur de fond de la fen\195\170tre index" |
L["Footer window"] = "Fen\195\170tre footer" |
L["Change the background color for the footer window"] = "Change la couleur de fond de la fen\195\170tre de bas de page" |
L["Hide grip"] = "Masquer encrage" |
L["Change the footer window background color"] = "Change la couleur de fond de la fen\195\170tre de bas de page" |
L["Hide index grip"] = "Masquer encrage index" |
L["Hide or show the index frame grip"] = "Masque l'encrage de redimensionnement de la fen\195\170tre index" |
L["Hide model grip"] = "Masquer encrage aper\195\167u" |
L["Hide or show the model frame grip"] = "Masque l'encrage de redimensionnement de la fen\195\170tre aper\195\167u" |
L["Hide tooltips"] = "Masquer tooltips" |
L["Hide or show the tooltips shown on mouseovering AddOn icons"] = "Masque les toolips affichées lors du passage de la souris sur une ic\195\180ne de l'AddOn" |
L["Settings"] = "Configuration" |
L["Index border"] = "Bordure index" |
L["Change the border color for the index window"] = "Change la couleur de la bordure de la fen\195\170tre index" |
L["Change the index window border color"] = "Change la couleur de la bordure de la fen\195\170tre index" |
L["Footer border"] = "Bordure footer" |
L["Change the border color for the footer window"] = "Change la couleur de la bordure de la fen\195\170tre de bas de page" |
L["Button scale"] = "\195\137chelle des boutons" |
L["Change the footer window border color"] = "Change la couleur de la bordure de la fen\195\170tre de bas de page" |
L["Button scale"] = "\195\137chelle bouton" |
L["Change the companion buttons scale"] = "Change l'\195\169chelle des boutons de companion" |
L["Button padding"] = "Espacement boutton" |
L["Button padding"] = "Espacement bouton" |
L["Change the size between each button"] = "Change l'espacement entre chaque bouton" |
--L["Border padding"] = "Espacement bordure" |
--L["Change the size between each border's button and the border"] = "Change l'espacement entre chaque bouton en bordure et la bordure" |
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["Button strata"] = "Strata bouton" |
L["Change the button frames strata"] = "Change la strata de la frame de chaque bouton" |
L["Breanni scale"] = "\195\137chelle de Breanni" |
L["Change the Breanni's button scale"] = "Change l'\195\169chelle du bouton Breanni" |
L["Model height"] = "Hauteur aper\195\167u" |
L["Change the model frame height"] = "Change la hauteur de la frame aperçu 3D" |
L["Model width"] = "Largeur aper\195\167u" |
L["Change the model frame width"] = "Change la largeur de la frame aperçu 3D" |
L["Model window"] = "Fen\195\170tre aper\195\167u" |
L["Change the model window background color"] = "Change la couleur de fond de la fen\195\170tre aper\195\167u" |
L["Model border"] = "Bordure aper\195\167u" |
L["Change the model window border color"] = "Change la couleur de la bordure de la fen\195\170tre aper\195\167u" |
L["Companion preview"] = "Aper\195\167u des compagnons" |
L["Click to open/close the 3D preview window"] = "Clic pour ouvrir/fermer la fen\195\170tre d'aper\195\167u 3D des compagnons" |
L["Ctrl-click any companion icon to show its 3D preview"] = "Ctrl-clic sur un compagnon pour afficher son aper\195\167u 3D" |
L["Click to open/close the Ace3 configuration window"] = "Clic pour ouvrir/fermer la fen\195\170tre de configuration Ace3" |
L["Ctrl-click to show the 3D preview"] = "Ctrl-clic pour afficher l'aper\195\167u 3D" |
L["AddOn options"] = "AddOn options" |
L["Sizes"] = "Sizes" |
L["Sizes options"] = "Sizes options" |
L["Width"] = "Width" |
L["Change mainframe width"] = "Change mainframe width" |
L["Height"] = "Height" |
L["Change mainframe height"] = "Change mainframe height" |
L["Clamped to screen"] = "Clamped to screen" |
L["Clamp the mainframe to the screen"] = "Clamp the mainframe to the screen" |
L["Index width"] = "Index width" |
L["Change the index frame width"] = "Change the index frame width" |
L["Index height"] = "Index height" |
L["Change the index frame height"] = "Change the index frame height" |
L["Clamped index"] = "Clamped index" |
L["Clamp the index frame to the screen"] = "Clamp the index frame to the screen" |
L["Clamped model"] = "Clamped model" |
L["Clamp the model frame to the screen"] = "Clamp the model frame to the screen" |
L["Colors"] = "Colors" |
L["Colors options"] = "Colors options" |
L["Misc"] = "Misc" |
L["Miscellaneous options"] = "Miscellaneous options" |
L["Index window"] = "Index window" |
L["Change the background color for the index window"] = "Change the background color for the index window" |
L["Change the index window background color"] = "Change the index window background color" |
L["Footer window"] = "Footer window" |
L["Change the background color for the footer window"] = "Change the background color for the footer window" |
L["Hide grip"] = "Hide grip" |
L["Change the footer window background color"] = "Change the footer window background color" |
L["Hide index grip"] = "Hide index grip" |
L["Hide or show the index frame grip"] = "Hide or show the index frame grip" |
L["Hide model grip"] = "Hide model grip" |
L["Hide or show the model frame grip"] = "Hide or show the model frame grip" |
L["Hide tooltips"] = "Hide tooltips" |
L["Hide or show the tooltips shown on mouseovering AddOn icons"] = "Hide or show the tooltips shown on mouseovering AddOn icons" |
L["Settings"] = "Settings" |
L["Index border"] = "Index border" |
L["Change the border color for the index window"] = "Change the border color for the index window" |
L["Change the index window border color"] = "Change the index window border color" |
L["Footer border"] = "Footer border" |
L["Change the border color for the footer window"] = "Change the border color for the footer window" |
L["Change the footer window border color"] = "Change the footer window border color" |
L["Button scale"] = "Button scale" |
L["Change the companion buttons scale"] = "Change the companion buttons scale" |
L["Button padding"] = "Button padding" |
L["Change the button frames strata"] = "Change the button frames strata" |
L["Breanni scale"] = "Breanni scale" |
L["Change the Breanni's button scale"] = "Change the Breanni's button scale" |
L["Model height"] = "Model height" |
L["Change the model frame height"] = "Change the model frame height" |
L["Model width"] = "Model width" |
L["Change the model frame width"] = "Change the model frame width" |
L["Model window"] = "Model window" |
L["Change the model window background color"] = "Change the model window background color" |
L["Model border"] = "Model border" |
L["Change the model window border color"] = "Change the model window border color" |
L["Companion preview"] = "Companion preview" |
L["Click to open/close the 3D preview window"] = "Click to open/close the 3D preview window" |
L["Ctrl-click any companion icon to show its 3D preview"] = "Ctrl-click any companion icon to show its 3D preview" |
L["Click to open/close the Ace3 configuration window"] = "Click to open/close the Ace3 configuration window" |
L["Ctrl-click to show the 3D preview"] = "Ctrl-click to show the 3D preview" |
L["AddOn options"] = "AddOn options" |
L["Sizes"] = "Sizes" |
L["Sizes options"] = "Sizes options" |
L["Width"] = "Width" |
L["Change mainframe width"] = "Change mainframe width" |
L["Height"] = "Height" |
L["Change mainframe height"] = "Change mainframe height" |
L["Clamped to screen"] = "Clamped to screen" |
L["Clamp the mainframe to the screen"] = "Clamp the mainframe to the screen" |
L["Index width"] = "Index width" |
L["Change the index frame width"] = "Change the index frame width" |
L["Index height"] = "Index height" |
L["Change the index frame height"] = "Change the index frame height" |
L["Clamped index"] = "Clamped index" |
L["Clamp the index frame to the screen"] = "Clamp the index frame to the screen" |
L["Clamped model"] = "Clamped model" |
L["Clamp the model frame to the screen"] = "Clamp the model frame to the screen" |
L["Colors"] = "Colors" |
L["Colors options"] = "Colors options" |
L["Misc"] = "Misc" |
L["Miscellaneous options"] = "Miscellaneous options" |
L["Index window"] = "Index window" |
L["Change the background color for the index window"] = "Change the background color for the index window" |
L["Change the index window background color"] = "Change the index window background color" |
L["Footer window"] = "Footer window" |
L["Change the background color for the footer window"] = "Change the background color for the footer window" |
L["Hide grip"] = "Hide grip" |
L["Change the footer window background color"] = "Change the footer window background color" |
L["Hide index grip"] = "Hide index grip" |
L["Hide or show the index frame grip"] = "Hide or show the index frame grip" |
L["Hide model grip"] = "Hide model grip" |
L["Hide or show the model frame grip"] = "Hide or show the model frame grip" |
L["Hide tooltips"] = "Hide tooltips" |
L["Hide or show the tooltips shown on mouseovering AddOn icons"] = "Hide or show the tooltips shown on mouseovering AddOn icons" |
L["Settings"] = "Settings" |
L["Index border"] = "Index border" |
L["Change the border color for the index window"] = "Change the border color for the index window" |
L["Change the index window border color"] = "Change the index window border color" |
L["Footer border"] = "Footer border" |
L["Change the border color for the footer window"] = "Change the border color for the footer window" |
L["Change the footer window border color"] = "Change the footer window border color" |
L["Button scale"] = "Button scale" |
L["Change the companion buttons scale"] = "Change the companion buttons scale" |
L["Button padding"] = "Button padding" |
L["Change the button frames strata"] = "Change the button frames strata" |
L["Breanni scale"] = "Breanni scale" |
L["Change the Breanni's button scale"] = "Change the Breanni's button scale" |
L["Model height"] = "Model height" |
L["Change the model frame height"] = "Change the model frame height" |
L["Model width"] = "Model width" |
L["Change the model frame width"] = "Change the model frame width" |
L["Model window"] = "Model window" |
L["Change the model window background color"] = "Change the model window background color" |
L["Model border"] = "Model border" |
L["Change the model window border color"] = "Change the model window border color" |
L["Companion preview"] = "Companion preview" |
L["Click to open/close the 3D preview window"] = "Click to open/close the 3D preview window" |
L["Ctrl-click any companion icon to show its 3D preview"] = "Ctrl-click any companion icon to show its 3D preview" |
L["Click to open/close the Ace3 configuration window"] = "Click to open/close the Ace3 configuration window" |
L["Ctrl-click to show the 3D preview"] = "Ctrl-click to show the 3D preview" |