mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 08:24:44 +00:00
test
This commit is contained in:
@@ -692,7 +692,7 @@ end
|
|||||||
E.Options.args.actionbar = {
|
E.Options.args.actionbar = {
|
||||||
type = "group",
|
type = "group",
|
||||||
name = L["ActionBars"],
|
name = L["ActionBars"],
|
||||||
childGroups = "tab",
|
childGroups = "tree",
|
||||||
get = function(info) return E.db.actionbar[ info[getn(info)] ] end,
|
get = function(info) return E.db.actionbar[ info[getn(info)] ] end,
|
||||||
set = function(info, value) E.db.actionbar[ info[getn(info)] ] = value AB:UpdateButtonSettings() end,
|
set = function(info, value) E.db.actionbar[ info[getn(info)] ] = value AB:UpdateButtonSettings() end,
|
||||||
args = {
|
args = {
|
||||||
|
|||||||
@@ -325,7 +325,7 @@ local methods = {
|
|||||||
|
|
||||||
local button = CreateFrame("Button", strfmt("AceGUI30TreeButton%d", num), self.treeframe)
|
local button = CreateFrame("Button", strfmt("AceGUI30TreeButton%d", num), self.treeframe)
|
||||||
button.obj = self
|
button.obj = self
|
||||||
button:SetWidth(175)
|
button:SetWidth(DEFAULT_TREE_WIDTH)
|
||||||
button:SetHeight(18)
|
button:SetHeight(18)
|
||||||
|
|
||||||
local toggle = CreateFrame("Button", "$parentToggle", button)
|
local toggle = CreateFrame("Button", "$parentToggle", button)
|
||||||
@@ -499,6 +499,7 @@ local methods = {
|
|||||||
end
|
end
|
||||||
|
|
||||||
local buttonnum = 1
|
local buttonnum = 1
|
||||||
|
local treewidth = treeframe:GetWidth()
|
||||||
for i = first, last do
|
for i = first, last do
|
||||||
local line = lines[i]
|
local line = lines[i]
|
||||||
local button = buttons[buttonnum]
|
local button = buttons[buttonnum]
|
||||||
@@ -508,19 +509,20 @@ local methods = {
|
|||||||
buttons[buttonnum] = button
|
buttons[buttonnum] = button
|
||||||
button:SetParent(treeframe)
|
button:SetParent(treeframe)
|
||||||
button:SetFrameLevel(treeframe:GetFrameLevel()+1)
|
button:SetFrameLevel(treeframe:GetFrameLevel()+1)
|
||||||
|
end
|
||||||
|
|
||||||
button:ClearAllPoints()
|
button:ClearAllPoints()
|
||||||
if buttonnum == 1 then
|
if buttonnum == 1 then
|
||||||
if self.showscroll then
|
if self.showscroll then
|
||||||
|
button:SetWidth(treewidth - 22)
|
||||||
button:SetPoint("TOPRIGHT", -22, -10)
|
button:SetPoint("TOPRIGHT", -22, -10)
|
||||||
button:SetPoint("TOPLEFT", 0, -10)
|
|
||||||
else
|
else
|
||||||
|
button:SetWidth(treewidth)
|
||||||
button:SetPoint("TOPRIGHT", 0, -10)
|
button:SetPoint("TOPRIGHT", 0, -10)
|
||||||
button:SetPoint("TOPLEFT", 0, -10)
|
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
button:SetWidth(self.showscroll and (treewidth - 22) or treewidth)
|
||||||
button:SetPoint("TOPRIGHT", buttons[buttonnum-1], "BOTTOMRIGHT",0,0)
|
button:SetPoint("TOPRIGHT", buttons[buttonnum-1], "BOTTOMRIGHT",0,0)
|
||||||
button:SetPoint("TOPLEFT", buttons[buttonnum-1], "BOTTOMLEFT",0,0)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
UpdateButton(button, line, status.selected == line.uniquevalue, line.hasChildren, groupstatus[line.uniquevalue] )
|
UpdateButton(button, line, status.selected == line.uniquevalue, line.hasChildren, groupstatus[line.uniquevalue] )
|
||||||
@@ -562,11 +564,13 @@ local methods = {
|
|||||||
if show then
|
if show then
|
||||||
self.scrollbar:Show()
|
self.scrollbar:Show()
|
||||||
if self.buttons[1] then
|
if self.buttons[1] then
|
||||||
|
self.buttons[1]:SetWidth(self.treeframe:GetWidth() - 22)
|
||||||
self.buttons[1]:SetPoint("TOPRIGHT", self.treeframe,"TOPRIGHT",-22,-10)
|
self.buttons[1]:SetPoint("TOPRIGHT", self.treeframe,"TOPRIGHT",-22,-10)
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
self.scrollbar:Hide()
|
self.scrollbar:Hide()
|
||||||
if self.buttons[1] then
|
if self.buttons[1] then
|
||||||
|
self.buttons[1]:SetWidth(self.treeframe:GetWidth())
|
||||||
self.buttons[1]:SetPoint("TOPRIGHT", self.treeframe,"TOPRIGHT",0,-10)
|
self.buttons[1]:SetPoint("TOPRIGHT", self.treeframe,"TOPRIGHT",0,-10)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -507,7 +507,7 @@ end
|
|||||||
E.Options.args.nameplate = {
|
E.Options.args.nameplate = {
|
||||||
type = "group",
|
type = "group",
|
||||||
name = L["NamePlates"],
|
name = L["NamePlates"],
|
||||||
childGroups = "tab",
|
childGroups = "tree",
|
||||||
get = function(info) return E.db.nameplates[ info[getn(info)] ] end,
|
get = function(info) return E.db.nameplates[ info[getn(info)] ] end,
|
||||||
set = function(info, value) E.db.nameplates[ info[getn(info)] ] = value; NP:ConfigureAll(); end,
|
set = function(info, value) E.db.nameplates[ info[getn(info)] ] = value; NP:ConfigureAll(); end,
|
||||||
args = {
|
args = {
|
||||||
|
|||||||
@@ -1851,7 +1851,7 @@ end
|
|||||||
E.Options.args.unitframe = {
|
E.Options.args.unitframe = {
|
||||||
type = "group",
|
type = "group",
|
||||||
name = L["UnitFrames"],
|
name = L["UnitFrames"],
|
||||||
childGroups = "tab",
|
childGroups = "tree",
|
||||||
get = function(info) return E.db.unitframe[ info[getn(info)] ] end,
|
get = function(info) return E.db.unitframe[ info[getn(info)] ] end,
|
||||||
set = function(info, value) E.db.unitframe[ info[getn(info)] ] = value end,
|
set = function(info, value) E.db.unitframe[ info[getn(info)] ] = value end,
|
||||||
args = {
|
args = {
|
||||||
|
|||||||
Reference in New Issue
Block a user