----------------------------------------------------------------------------------
-------------- Templates for the config Menu --------------
----------------------------------------------------------------------------------
GameTooltip:SetOwner(this, "ANCHOR_RIGHT")
GameTooltip:SetText(this.aide, nil, nil, nil, nil, 1)
GameTooltip:Hide()
this:SetMaxLetters(200)
this:ClearFocus()
GameTooltip:SetOwner(this, "ANCHOR_RIGHT")
GameTooltip:SetText(this.aide, nil, nil, nil, nil, 1)
GameTooltip:Hide()
if this.aide then
GameTooltip:SetOwner(this, "ANCHOR_RIGHT")
GameTooltip:SetText(this.aide, nil, nil, nil, nil, 1)
GameTooltip:Show()
end
GameTooltip:Hide()
GameTooltip:SetOwner(this, "ANCHOR_RIGHT")
GameTooltip:SetText(this.aide, nil, nil, nil, nil, 1)
GameTooltip:Hide()
if DPSMate.DB.loaded then
UIDropDownMenu_Initialize(this, this.func)
end
if (this.aide) then
GameTooltip:SetOwner(this, "ANCHOR_RIGHT")
GameTooltip:SetText(this.aide, nil, nil, nil, nil, 1)
end
GameTooltip:Hide()
getglobal(this:GetName().."_Editbox"):SetText(string.format("%.1f", this:GetValue()))
if this.func and DPSMate.DB.loaded then this.func() end
this:SetMaxLetters(200)
this:SetScale(0.6)
this:ClearFocus()
local num = tonumber(this:GetText())
if num then this:GetParent():SetValue(num) end
this:ClearFocus()
local num = tonumber(this:GetText())
if num then this:GetParent():SetValue(num) end
DPSMate.Options:OpenColorPicker(this, this.var, this.func)
getglobal(this:GetName().."_SwatchBg"):SetVertexColor(NORMAL_FONT_COLOR.r, NORMAL_FONT_COLOR.g, NORMAL_FONT_COLOR.b)
if this.aide then
GameTooltip:SetOwner(this, "ANCHOR_RIGHT")
GameTooltip:SetText(this.aide, nil, nil, nil, nil, 1)
end
getglobal(this:GetName().."_SwatchBg"):SetVertexColor(HIGHLIGHT_FONT_COLOR.r, HIGHLIGHT_FONT_COLOR.g, HIGHLIGHT_FONT_COLOR.b)
GameTooltip:Hide()
getglobal(this:GetName().."Text"):SetTextColor(1,0.82,0,1)
if (not this.selected) then
getglobal(this:GetName().."Text"):SetTextColor(1,1,1,1)
end
local pa = strsub(this:GetName(), 1, strfind(this:GetName(), "%d+")-1)
for i=1, 15 do
getglobal(pa..i).selected=false
getglobal(pa..i.."Texture"):Hide()
getglobal(pa..i.."Text"):SetTextColor(1,1,1,1)
end
this.selected=true
getglobal(this:GetName().."Texture"):Show()
getglobal(this:GetName().."Text"):SetTextColor(1,0.82,0,1)
----------------------------------------------------------------------------------
-------------- DPSMate MiniMap Icon --------------
----------------------------------------------------------------------------------
this:RegisterForClicks("RightButtonUp")
this:RegisterForDrag("LeftButton")
this:SetClampedToScreen(true)
this:LockHighlight()
this:StartMoving()
this:UnlockHighlight()
this:StopMovingOrSizing()
GameTooltip:SetOwner(this, "ANCHOR_LEFT")
GameTooltip:AddLine(DPSMate.L["name"])
GameTooltip:AddLine(DPSMate.L["minimapleft"], 0.5, 0.5, 0.5)
GameTooltip:AddLine(DPSMate.L["minimapright"], 0.5, 0.5, 0.5)
GameTooltip:Show()
GameTooltip:Hide()
if arg1 == "LeftButton" then
DPSMate.Options:ToggleVisibility()
else
DPSMate.Options:OpenMenu(3, this)
end
----------------------------------------------------------------------------------
-------------- DPSMate PopUP --------------
----------------------------------------------------------------------------------
this:StartMoving()
this:StopMovingOrSizing()
DPSMate_PopUp_Text:SetText(DPSMate.L["popup"])
DPSMate_PopUp_TotalText:SetText(DPSMate.L["total"])
DPSMate_PopUp_CurrentText:SetText(DPSMate.L["current"])
DPSMate_PopUp_CancelText:SetText(DPSMate.L["cancel"])
this:SetClampedToScreen()
DPSMate.Options:PopUpAccept(true, false)
DPSMate.Options:PopUpAccept(false, false)
DPSMate_PopUp:Hide()
this:StartMoving()
this:StopMovingOrSizing()
if IsPartyLeader() or IsRaidOfficer() or IsRaidLeader() then
DPSMate_Vote_Abort:Show()
else
DPSMate_Vote_Abort:Hide()
end
DPSMate_Vote_Text:SetText(DPSMate.L["popup"])
DPSMate_Vote_AcceptText:SetText(DPSMate.L["vreset"])
DPSMate_Vote_CancelText:SetText(DPSMate.L["vdreset"])
this:SetClampedToScreen()
DPSMate.Sync:Vote()
DPSMate_Vote:Hide()
GameTooltip:SetOwner(this, "ANCHOR_RIGHT")
GameTooltip:SetText(DPSMate.L["abortvote"], nil, nil, nil, nil, 1)
GameTooltip:Hide()
DPSMate.Sync:AbortVote()
DPSMate_Vote:Hide()
this:StartMoving()
this:StopMovingOrSizing()
DPSMate_Logout_Text:SetText(DPSMate.L["memory"])
DPSMate_Logout_AcceptText:SetText(DPSMate.L["accept"])
DPSMate_Logout_CancelText:SetText(DPSMate.L["decline"])
this:SetClampedToScreen()
DPSMate_Logout:Hide()
DPSMate.Options.Logout()
DPSMate_Logout:Hide()
DPSMate.Options.OldLogout()
----------------------------------------------------------------------------------
-------------- DPSMate Report --------------
----------------------------------------------------------------------------------
this:StartMoving()
this:StopMovingOrSizing()
DPSMate_Report_Text:SetText(DPSMate.L["report"].." - "..DPSMate.L["name"])
GameTooltip:SetOwner(this, "ANCHOR_RIGHT")
GameTooltip:SetText(DPSMate.L["close"], nil, nil, nil, nil, 1)
GameTooltip:Hide()
DPSMate_Report:Hide()
GameTooltip:SetOwner(this, "ANCHOR_RIGHT")
GameTooltip:SetText(DPSMate.L["channeltooltip"], nil, nil, nil, nil, 1)
GameTooltip:Hide()
UIDropDownMenu_SetWidth(100)
UIDropDownMenu_Initialize(this, DPSMate.Options.ChannelDropDown)
getglobal(this:GetName().."_Text"):SetText(DPSMate.L["channel"])
UIDropDownMenu_Initialize(this, DPSMate.Options.ChannelDropDown)
this.aide = DPSMate.L["reportdelaytooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["delay"])
DPSMateSettings["reportdelay"] = not DPSMateSettings["reportdelay"]
GameTooltip:SetOwner(this, "ANCHOR_RIGHT")
GameTooltip:SetText(DPSMate.L["slidertooltip"], nil, nil, nil, nil, 1)
GameTooltip:Hide()
getglobal(this:GetName().."Text"):SetText(DPSMate.L["slider"]..": "..this:GetValue())
this:SetMinMaxValues(1,25)
this:SetValue(6)
this:SetValueStep(1)
getglobal(this:GetName().."Text"):SetText(DPSMate.L["slider"]..": 6")
getglobal(this:GetName().."Low"):SetText("1")
getglobal(this:GetName().."High"):SetText("25")
this:SetMaxLetters(32)
getglobal(this:GetName().."_Text"):SetText(DPSMate.L["editboxtitle"])
this:ClearFocus()
GameTooltip:SetOwner(this, "ANCHOR_RIGHT")
GameTooltip:SetText(DPSMate.L["editboxtooltip"], nil, nil, nil, nil, 1)
GameTooltip:Hide()
DPSMate.Options:Report()
getglobal(this:GetName().."Text"):SetText(DPSMate.L["report"])
this:StartMoving()
this:StopMovingOrSizing()
GameTooltip:SetOwner(this, "ANCHOR_RIGHT")
GameTooltip:SetText(DPSMate.L["close"], nil, nil, nil, nil, 1)
GameTooltip:Hide()
this:GetParent():Hide()
DPSMateSettings["windows"][this:GetParent():GetParent().Key or 1]["realtime"] = false
----------------------------------------------------------------------------------
-------------- DPSMate Config Menu --------------
----------------------------------------------------------------------------------
this:StartMoving()
this:StopMovingOrSizing()
this.num = 6
GameTooltip:SetOwner(this, "ANCHOR_RIGHT")
GameTooltip:SetText(DPSMate.L["close"], nil, nil, nil, nil, 1)
GameTooltip:Hide()
DPSMate_ConfigMenu.vis = false
DPSMate_ConfigMenu:Hide()
this.selected=true
this:GetParent().selected = "_Tab_Window"
getglobal(this:GetName().."Texture"):Show()
getglobal(this:GetName().."Text"):SetText(DPSMate.L["window"])
getglobal(this:GetName().."Text"):SetTextColor(1,1,1,1)
this.func = function()
getglobal(this:GetParent():GetParent():GetName()..this:GetParent().selected):Hide()
getglobal(this:GetParent():GetParent():GetName().."_Tab_Window"):Show()
this:GetParent().selected = "_Tab_Window"
end
getglobal(this:GetName().."Text"):SetText(DPSMate.L["dataresets"])
this.func = function()
getglobal(this:GetParent():GetParent():GetName()..this:GetParent().selected):Hide()
getglobal(this:GetParent():GetParent():GetName().."_Tab_DataResets"):Show()
this:GetParent().selected = "_Tab_DataResets"
end
getglobal(this:GetName().."Text"):SetText(DPSMate.L["generaloptions"])
this.func = function()
getglobal(this:GetParent():GetParent():GetName()..this:GetParent().selected):Hide()
getglobal(this:GetParent():GetParent():GetName().."_Tab_GeneralOptions"):Show()
this:GetParent().selected = "_Tab_GeneralOptions"
end
getglobal(this:GetName().."Text"):SetText(DPSMate.L["columns"])
this.func = function()
getglobal(this:GetParent():GetParent():GetName()..this:GetParent().selected):Hide()
getglobal(this:GetParent():GetParent():GetName().."_Tab_Columns"):Show()
this:GetParent().selected = "_Tab_Columns"
end
getglobal(this:GetName().."Text"):SetText(DPSMate.L["tooltips"])
this.func = function()
getglobal(this:GetParent():GetParent():GetName()..this:GetParent().selected):Hide()
getglobal(this:GetParent():GetParent():GetName().."_Tab_Tooltips"):Show()
this:GetParent().selected = "_Tab_Tooltips"
end
getglobal(this:GetName().."Text"):SetText(DPSMate.L["modes"])
this.func = function()
getglobal(this:GetParent():GetParent():GetName()..this:GetParent().selected):Hide()
getglobal(this:GetParent():GetParent():GetName().."_Tab_Modes"):Show()
this:GetParent().selected = "_Tab_Modes"
end
getglobal(this:GetName().."Text"):SetText(DPSMate.L["raidleader"])
this.func = function()
getglobal(this:GetParent():GetParent():GetName()..this:GetParent().selected):Hide()
getglobal(this:GetParent():GetParent():GetName().."_Tab_RaidLeader"):Show()
this:GetParent().selected = "_Tab_RaidLeader"
end
getglobal(this:GetName().."Text"):SetText(DPSMate.L["broadcasting"])
this.func = function()
getglobal(this:GetParent():GetParent():GetName()..this:GetParent().selected):Hide()
getglobal(this:GetParent():GetParent():GetName().."_Tab_Broadcasting"):Show()
this:GetParent().selected = "_Tab_Broadcasting"
end
getglobal(this:GetName().."Text"):SetText(DPSMate.L["about"])
this.func = function()
getglobal(this:GetParent():GetParent():GetName()..this:GetParent().selected):Hide()
getglobal(this:GetParent():GetParent():GetName().."_Tab_About"):Show()
this:GetParent().selected = "_Tab_About"
end
this.aide = DPSMate.L["createwindowtooltip"]
getglobal(this:GetName().."Text"):SetText(DPSMate.L["createwindow"])
this.aide = DPSMate.L["submitTooltip"]
getglobal(this:GetName().."Text"):SetText(DPSMate.L["submit"])
DPSMate.Options:CreateWindow()
DPSMate.Options:InitializeHideShowWindow()
this.aide = DPSMate.L["availwindowsTooltip"]
this.func = DPSMate.Options.WindowDropDown
this.title = DPSMate.L["availwindows"]
UIDropDownMenu_SetWidth(148)
getglobal(this:GetName().."_Text"):SetText(this.title)
this.aide = DPSMate.L["removeTooltip"]
getglobal(this:GetName().."Text"):SetText(DPSMate.L["remove"])
DPSMate.Options:RemoveWindow()
DPSMate.Options:InitializeHideShowWindow()
this.aide = DPSMate.L["configfromTooltip"]
this.func = DPSMate.Options.WindowDropDown
this.title = DPSMate.L["configfrom"]
UIDropDownMenu_SetWidth(148)
getglobal(this:GetName().."_Text"):SetText(this.title)
this.aide = DPSMate.L["configtoTooltip"]
this.func = DPSMate.Options.WindowDropDown
this.title = DPSMate.L["configto"]
UIDropDownMenu_SetWidth(148)
getglobal(this:GetName().."_Text"):SetText(this.title)
this.aide = DPSMate.L["copyTooltip"]
getglobal(this:GetName().."Text"):SetText(DPSMate.L["copy"])
DPSMate.Options:CopyConfiguration()
this.aide = DPSMate.L["locktooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["lock"])
if DPSMateSettings["lock"] then
DPSMateSettings["lock"] = false
DPSMate.Options:Unlock()
else
DPSMateSettings["lock"] = true
DPSMate.Options:Lock()
end
this.aide = DPSMate.L["testmodetooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["testmode"])
DPSMate.Options:ActivateTestMode()
this.aide = DPSMate.L["barfontTooltip"]
this.func = DPSMate.Options.BarFontDropDown
this.title = DPSMate.L["barfont"]
UIDropDownMenu_SetWidth(120)
getglobal(this:GetName().."_Text"):SetText(this.title)
this.aide = DPSMate.L["barfontsizeTooltip"]
this.func = function()
DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["barfontsize"] = this:GetValue()
getglobal("DPSMate_"..DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["name"].."_ScrollFrame_Child_Total_Name"):SetFont(DPSMate.Options.fonts[DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["barfont"]], DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["barfontsize"], DPSMate.Options.fontflags[DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["barfontflag"]])
getglobal("DPSMate_"..DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["name"].."_ScrollFrame_Child_Total_Value"):SetFont(DPSMate.Options.fonts[DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["barfont"]], DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["barfontsize"], DPSMate.Options.fontflags[DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["barfontflag"]])
for i=1, 40 do
getglobal("DPSMate_"..DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["name"].."_ScrollFrame_Child_StatusBar"..i.."_Name"):SetFont(DPSMate.Options.fonts[DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["barfont"]], DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["barfontsize"], DPSMate.Options.fontflags[DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["barfontflag"]])
getglobal("DPSMate_"..DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["name"].."_ScrollFrame_Child_StatusBar"..i.."_Value"):SetFont(DPSMate.Options.fonts[DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["barfont"]], DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["barfontsize"], DPSMate.Options.fontflags[DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["barfontflag"]])
end
end
this:SetMinMaxValues(1,32)
this:SetValueStep(1)
getglobal(this:GetName().."Text"):SetText(DPSMate.L["barfontsize"])
getglobal(this:GetName().."Low"):SetText("1")
getglobal(this:GetName().."High"):SetText("32")
this.aide = DPSMate.L["barfontflagsTooltip"]
this.func = DPSMate.Options.BarFontFlagsDropDown
this.title = DPSMate.L["barfontflags"]
UIDropDownMenu_SetWidth(120)
getglobal(this:GetName().."_Text"):SetText(this.title)
this.aide = DPSMate.L["bartextureTooltip"]
this.func = DPSMate.Options.BarTextureDropDown
this.title = DPSMate.L["bartexture"]
UIDropDownMenu_SetWidth(120)
getglobal(this:GetName().."_Text"):SetText(this.title)
this.aide = DPSMate.L["barspacingTooltip"]
this.func = function()
DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["barspacing"] = this:GetValue()
for i=1, 40 do
local bar = getglobal("DPSMate_"..DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["name"].."_ScrollFrame_Child_StatusBar"..i)
bar:ClearAllPoints()
bar:SetPoint("TOPLEFT", getglobal("DPSMate_"..DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["name"].."_ScrollFrame_Child"), "TOPLEFT")
bar:SetPoint("TOPRIGHT", getglobal("DPSMate_"..DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["name"].."_ScrollFrame_Child"), "TOPRIGHT")
if i>1 then
bar:SetPoint("TOPLEFT", getglobal("DPSMate_"..DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["name"].."_ScrollFrame_Child_StatusBar"..(i-1)), "BOTTOMLEFT", 0, -1*DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["barspacing"])
else
if DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["showtotals"] then
bar:SetPoint("TOPLEFT", getglobal("DPSMate_"..DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["name"].."_ScrollFrame_Child_Total"), "BOTTOMLEFT", 0, -1*DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["barspacing"])
else
bar:SetPoint("TOPLEFT", getglobal("DPSMate_"..DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["name"].."_ScrollFrame_Child_Total"), "BOTTOMLEFT", 0, -1)
end
end
end
end
this:SetMinMaxValues(1,10)
this:SetValueStep(1)
getglobal(this:GetName().."Text"):SetText(DPSMate.L["barspacing"])
getglobal(this:GetName().."Low"):SetText("1")
getglobal(this:GetName().."High"):SetText("10")
this.aide = DPSMate.L["barheightTooltip"]
this.func = function()
DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["barheight"] = this:GetValue()
if DPSMateSettings["showtotals"] then getglobal("DPSMate_"..DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["name"].."_ScrollFrame_Child_Total"):SetHeight(DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["barheight"]) end
for i=1, 40 do
local bar = getglobal("DPSMate_"..DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["name"].."_ScrollFrame_Child_StatusBar"..i)
bar:SetHeight(DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["barheight"])
local icon = getglobal("DPSMate_"..DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["name"].."_ScrollFrame_Child_StatusBar"..i.."_Icon")
icon:SetWidth(DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["barheight"])
icon:SetHeight(DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["barheight"])
if DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["classicons"] then
local name = getglobal("DPSMate_"..DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["name"].."_ScrollFrame_Child_StatusBar"..i.."_Name")
name:ClearAllPoints()
name:SetPoint("LEFT", bar, "LEFT", DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["barheight"], 0)
end
end
DPSMate:SetStatusBarValue()
end
this:SetMinMaxValues(10,25)
this:SetValueStep(1)
getglobal(this:GetName().."Text"):SetText(DPSMate.L["barheight"])
getglobal(this:GetName().."Low"):SetText("10")
getglobal(this:GetName().."High"):SetText("25")
getglobal(this:GetName().."_Font"):SetText(DPSMate.L["fontcolor"])
getglobal(this:GetName().."_SwatchBg").r = 1
getglobal(this:GetName().."_SwatchBg").g = 1
getglobal(this:GetName().."_SwatchBg").b = 1
this.aide = DPSMate.L["fontcolorTooltip"]
this.var = "barfontcolor"
this.func = function()
for i=1, 40 do
getglobal("DPSMate_"..DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["name"].."_ScrollFrame_Child_StatusBar"..i.."_Name"):SetTextColor(DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["barfontcolor"][1], DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["barfontcolor"][2], DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["barfontcolor"][3])
getglobal("DPSMate_"..DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["name"].."_ScrollFrame_Child_StatusBar"..i.."_Value"):SetTextColor(DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["barfontcolor"][1], DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["barfontcolor"][2], DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["barfontcolor"][3])
end
end
getglobal(this:GetName().."_Font"):SetText(DPSMate.L["bgbarcolor"])
getglobal(this:GetName().."_SwatchBg").r = 1
getglobal(this:GetName().."_SwatchBg").g = 1
getglobal(this:GetName().."_SwatchBg").b = 1
this.aide = DPSMate.L["bgbarcolorTooltip"]
this.var = "bgbarcolor"
this.func = function()
for i=1, 40 do
getglobal("DPSMate_"..DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["name"].."_ScrollFrame_Child_StatusBar"..i.."_BG"):SetVertexColor(DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["bgbarcolor"][1], DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["bgbarcolor"][2], DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["bgbarcolor"][3], 0.5)
end
end
this.aide = DPSMate.L["classiconstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["classicons"])
if DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["classicons"] then
DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["classicons"] = false
for i=1, 40 do
local bar = getglobal("DPSMate_"..DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["name"].."_ScrollFrame_Child_StatusBar"..i)
bar.name = getglobal("DPSMate_"..DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["name"].."_ScrollFrame_Child_StatusBar"..i.."_Name")
bar.icon = getglobal("DPSMate_"..DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["name"].."_ScrollFrame_Child_StatusBar"..i.."_Icon")
bar.name:ClearAllPoints()
bar.name:SetPoint("TOPLEFT", bar, "TOPLEFT")
bar.name:SetPoint("BOTTOMRIGHT", bar, "BOTTOMRIGHT")
bar.icon:Hide()
end
else
DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["classicons"] = true
for i=1, 40 do
local bar = getglobal("DPSMate_"..DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["name"].."_ScrollFrame_Child_StatusBar"..i)
bar.name = getglobal("DPSMate_"..DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["name"].."_ScrollFrame_Child_StatusBar"..i.."_Name")
bar.icon = getglobal("DPSMate_"..DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["name"].."_ScrollFrame_Child_StatusBar"..i.."_Icon")
bar.name:ClearAllPoints()
bar.name:SetPoint("TOPLEFT", bar, "TOPLEFT", DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["barheight"], 0)
bar.name:SetPoint("BOTTOMRIGHT", bar, "BOTTOMRIGHT")
bar.icon:Show()
end
end
this.aide = DPSMate.L["rankstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["ranks"])
DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["ranks"] = not DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["ranks"]
DPSMate:SetStatusBarValue()
this.aide = DPSMate.L["disablebarbgtooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["disablebarbg"])
if DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["barbg"] then
DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["barbg"] = false
for i=1, 40 do
getglobal("DPSMate_"..DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["name"].."_ScrollFrame_Child_StatusBar"..i.."_BG"):SetAlpha(0.5)
end
else
DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["barbg"] = true
for i=1, 40 do
getglobal("DPSMate_"..DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["name"].."_ScrollFrame_Child_StatusBar"..i.."_BG"):SetAlpha(0)
end
end
this.aide = DPSMate.L["totalbaropacitytooltip"]
this.func = function()
DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["totopacity"] = this:GetValue()
getglobal("DPSMate_"..DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["name"].."_ScrollFrame_Child_Total_BG"):SetAlpha(this:GetValue())
getglobal("DPSMate_"..DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["name"].."_ScrollFrame_Child_Total"):SetStatusBarColor(1,1,1,this:GetValue())
end
this:SetMinMaxValues(0,1)
this:SetValueStep(0.1)
getglobal(this:GetName().."Text"):SetText(DPSMate.L["totalbaropacity"])
getglobal(this:GetName().."Low"):SetText("0")
getglobal(this:GetName().."High"):SetText("1")
getglobal(this:GetName().."_BGColor_SwatchBg").r = DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["titlebarbgcolor"][1]
getglobal(this:GetName().."_BGColor_SwatchBg").g = DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["titlebarbgcolor"][2]
getglobal(this:GetName().."_BGColor_SwatchBg").b = DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["titlebarbgcolor"][3]
this.aide = DPSMate.L["enabletitlebartooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["enable"])
if DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["titlebar"] then
DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["titlebar"] = false
getglobal("DPSMate_"..DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["name"].."_Head"):Hide()
else
DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["titlebar"] = true
getglobal("DPSMate_"..DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["name"].."_Head"):Show()
end
this.aide = DPSMate.L["barfontTooltip"]
this.func = DPSMate.Options.TitleBarFontDropDown
this.title = DPSMate.L["barfont"]
UIDropDownMenu_SetWidth(120)
getglobal(this:GetName().."_Text"):SetText(this.title)
this.aide = DPSMate.L["barfontsizeTooltip"]
this.func = function()
DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["titlebarfontsize"] = this:GetValue()
getglobal("DPSMate_"..DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["name"].."_Head_Font"):SetFont(DPSMate.Options.fonts[DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["titlebarfont"]], DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["titlebarfontsize"], DPSMate.Options.fontflags[DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["titlebarfontflag"]])
end
this:SetMinMaxValues(1,32)
this:SetValueStep(1)
getglobal(this:GetName().."Text"):SetText(DPSMate.L["barfontsize"])
getglobal(this:GetName().."Low"):SetText("1")
getglobal(this:GetName().."High"):SetText("32")
this.aide = DPSMate.L["barfontflagsTooltip"]
this.func = DPSMate.Options.TitleBarFontFlagsDropDown
this.title = DPSMate.L["barfontflags"]
UIDropDownMenu_SetWidth(120)
getglobal(this:GetName().."_Text"):SetText(this.title)
this.aide = DPSMate.L["bartextureTooltip"]
this.func = DPSMate.Options.TitleBarTextureDropDown
this.title = DPSMate.L["bartexture"]
UIDropDownMenu_SetWidth(120)
getglobal(this:GetName().."_Text"):SetText(this.title)
this.aide = DPSMate.L["barheightTooltip"]
this.func = function()
DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["titlebarheight"] = this:GetValue()
getglobal("DPSMate_"..DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["name"].."_Head"):SetHeight(DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["titlebarheight"])
end
this:SetMinMaxValues(10,32)
this:SetValueStep(1)
getglobal(this:GetName().."Text"):SetText(DPSMate.L["barheight"])
getglobal(this:GetName().."Low"):SetText("10")
getglobal(this:GetName().."High"):SetText("32")
this.aide = DPSMate.L["bgOpacityTooltip"]
this.func = function()
DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["titlebaropacity"] = this:GetValue()
getglobal("DPSMate_"..DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["name"].."_Head_Background"):SetAlpha(DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["titlebaropacity"])
end
this:SetMinMaxValues(0,1)
this:SetValueStep(0.1)
getglobal(this:GetName().."Text"):SetText(DPSMate.L["bgOpacity"])
getglobal(this:GetName().."Low"):SetText("0")
getglobal(this:GetName().."High"):SetText("1")
getglobal(this:GetName().."_Font"):SetText(DPSMate.L["bgcolor"])
getglobal(this:GetName().."_SwatchBg").r = 1
getglobal(this:GetName().."_SwatchBg").g = 1
getglobal(this:GetName().."_SwatchBg").b = 1
this.aide = DPSMate.L["bgcolorTooltip"]
this.var = "titlebarbgcolor"
this.func = function()
getglobal("DPSMate_"..DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["name"].."_Head_Background"):SetVertexColor(DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["titlebarbgcolor"][1], DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["titlebarbgcolor"][2], DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["titlebarbgcolor"][3])
end
getglobal(this:GetName().."_Font"):SetText(DPSMate.L["fontcolor"])
getglobal(this:GetName().."_SwatchBg").r = 1
getglobal(this:GetName().."_SwatchBg").g = 1
getglobal(this:GetName().."_SwatchBg").b = 1
this.aide = DPSMate.L["fontcolorTooltip"]
this.var = "titlebarfontcolor"
this.func = function()
getglobal("DPSMate_"..DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["name"].."_Head_Font"):SetTextColor(DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["titlebarfontcolor"][1], DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["titlebarfontcolor"][2], DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["titlebarfontcolor"][3])
end
this.aide = DPSMate.L["buttonshowtooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["report"])
DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["titlebarreport"] = not DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["titlebarreport"]
DPSMate.Options:ToggleTitleBarButtonState()
this.aide = DPSMate.L["buttonshowtooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["mode"])
DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["titlebarsegments"] = not DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["titlebarsegments"]
DPSMate.Options:ToggleTitleBarButtonState()
this.aide = DPSMate.L["buttonshowtooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["reset"])
DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["titlebarreset"] = not DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["titlebarreset"]
DPSMate.Options:ToggleTitleBarButtonState()
this.aide = DPSMate.L["buttonshowtooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["config"])
DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["titlebarconfig"] = not DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["titlebarconfig"]
DPSMate.Options:ToggleTitleBarButtonState()
this.aide = DPSMate.L["buttonshowtooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["sync"])
DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["titlebarsync"] = not DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["titlebarsync"]
DPSMate.Options:ToggleTitleBarButtonState()
this.aide = DPSMate.L["buttonshowtooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["enabledisable"])
DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["titlebarenable"] = not DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["titlebarenable"]
DPSMate.Options:ToggleTitleBarButtonState()
this.aide = DPSMate.L["buttonshowtooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["filter"])
DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["titlebarfilter"] = not DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["titlebarfilter"]
DPSMate.Options:ToggleTitleBarButtonState()
this.aide = DPSMate.L["buttonshowtooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["cbtdisplay"])
if DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["cbtdisplay"] then
DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["cbtdisplay"] = false
DPSMate:SetStatusBarValue()
else
DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["cbtdisplay"] = true
getglobal("DPSMate_"..DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["name"].."_Head_Font"):SetText(DPSMate.Options.Options[1]["args"][DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["CurMode"]].name)
end
getglobal(this:GetName().."_BGColor_SwatchBg").r = DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["contentbgcolor"][1]
getglobal(this:GetName().."_BGColor_SwatchBg").g = DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["contentbgcolor"][2]
getglobal(this:GetName().."_BGColor_SwatchBg").b = DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["contentbgcolor"][3]
this.aide = DPSMate.L["bgtexTooltip"]
this.func = DPSMate.Options.ContentBGTextureDropDown
this.title = DPSMate.L["bgtex"]
UIDropDownMenu_SetWidth(120)
getglobal(this:GetName().."_Text"):SetText(this.title)
this.aide = DPSMate.L["scaleTooltip"]
this.func = function()
DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["scale"] = this:GetValue()
getglobal("DPSMate_"..DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["name"]):SetScale(DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["scale"])
end
this:SetMinMaxValues(0.5,3)
this:SetValueStep(0.1)
getglobal(this:GetName().."Text"):SetText(DPSMate.L["scale"])
getglobal(this:GetName().."Low"):SetText("0.5")
getglobal(this:GetName().."High"):SetText("3")
this.aide = DPSMate.L["opacityTooltip"]
this.func = function()
DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["opacity"] = this:GetValue()
getglobal("DPSMate_"..DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["name"]):SetAlpha(DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["opacity"])
end
this:SetMinMaxValues(0.0,1.0)
this:SetValueStep(0.1)
getglobal(this:GetName().."Text"):SetText(DPSMate.L["opacity"])
getglobal(this:GetName().."Low"):SetText("0.0")
getglobal(this:GetName().."High"):SetText("1.0")
this.aide = DPSMate.L["bgOpacityTooltip"]
this.func = function()
DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["bgopacity"] = this:GetValue()
getglobal("DPSMate_"..DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["name"].."_ScrollFrame_Background"):SetAlpha(DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["bgopacity"])
end
this:SetMinMaxValues(0.0,1.0)
this:SetValueStep(0.1)
getglobal(this:GetName().."Text"):SetText(DPSMate.L["bgOpacity"])
getglobal(this:GetName().."Low"):SetText("0.0")
getglobal(this:GetName().."High"):SetText("1.0")
this.aide = DPSMate.L["borderOpacityTooltip"]
this.func = function()
DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["borderopacity"] = this:GetValue()
getglobal("DPSMate_"..DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["name"].."_Border"):SetAlpha(DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["borderopacity"])
end
this:SetMinMaxValues(0.0,1.0)
this:SetValueStep(0.1)
getglobal(this:GetName().."Text"):SetText(DPSMate.L["borderOpacity"])
getglobal(this:GetName().."Low"):SetText("0.0")
getglobal(this:GetName().."High"):SetText("1.0")
getglobal(this:GetName().."_Font"):SetText(DPSMate.L["bgcolor"])
getglobal(this:GetName().."_SwatchBg").r = 1
getglobal(this:GetName().."_SwatchBg").g = 1
getglobal(this:GetName().."_SwatchBg").b = 1
this.aide=DPSMate.L["bgcolorTooltip"]
this.var = "contentbgcolor"
this.func = function()
getglobal("DPSMate_"..DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["name"].."_ScrollFrame_Background"):SetVertexColor(DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["contentbgcolor"][1], DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["contentbgcolor"][2], DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["contentbgcolor"][3])
DPSMate_ConfigMenu_Tab_Content_BGDropDown_Texture:SetBackdropColor(DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["contentbgcolor"][1], DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["contentbgcolor"][2], DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["contentbgcolor"][3])
end
this.aide = DPSMate.L["numberformatTooltip"]
this.func = DPSMate.Options.NumberFormatDropDown
this.title = DPSMate.L["numberformat"]
UIDropDownMenu_SetWidth(120)
getglobal(this:GetName().."_Text"):SetText(this.title)
this.aide = DPSMate.L["bordertextureTooltip"]
this.func = DPSMate.Options.BorderTextureDropDown
this.title = DPSMate.L["bordertexture"]
UIDropDownMenu_SetWidth(120)
getglobal(this:GetName().."_Text"):SetText(this.title)
this.aide = DPSMate.L["borderstrataTooltip"]
this.func = DPSMate.Options.BorderStrataDropDown
this.title = DPSMate.L["borderstrata"]
UIDropDownMenu_SetWidth(120)
getglobal(this:GetName().."_Text"):SetText(this.title)
getglobal(this:GetName().."_Font"):SetText(DPSMate.L["bordercolor"])
getglobal(this:GetName().."_SwatchBg").r = 1
getglobal(this:GetName().."_SwatchBg").g = 1
getglobal(this:GetName().."_SwatchBg").b = 1
this.aide=DPSMate.L["bordercolorTooltip"]
this.var = "contentbordercolor"
this.func = function()
getglobal("DPSMate_"..DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["name"].."_Border"):SetBackdropBorderColor(DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["contentbordercolor"][1], DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["contentbordercolor"][2], DPSMateSettings["windows"][DPSMate_ConfigMenu_Menu.Key]["contentbordercolor"][3])
end
this.aide = DPSMate.L["enterworldinstanceTooltip"]
this.func = DPSMate.Options.DataResetsDropDown
this.title = DPSMate.L["enterworldinstance"]
UIDropDownMenu_SetWidth(120)
getglobal(this:GetName().."_Text"):SetText(this.title)
this.aide = DPSMate.L["joinpartyTooltip"]
this.func = DPSMate.Options.DataResetsDropDown
this.title = DPSMate.L["joinparty"]
UIDropDownMenu_SetWidth(120)
getglobal(this:GetName().."_Text"):SetText(this.title)
this.aide = DPSMate.L["partymemberchangedTooltip"]
this.func = DPSMate.Options.DataResetsDropDown
this.title = DPSMate.L["partymemberchanged"]
UIDropDownMenu_SetWidth(120)
getglobal(this:GetName().."_Text"):SetText(this.title)
this.aide = DPSMate.L["leavingpartyTooltip"]
this.func = DPSMate.Options.DataResetsDropDown
this.title = DPSMate.L["leavingparty"]
UIDropDownMenu_SetWidth(120)
getglobal(this:GetName().."_Text"):SetText(this.title)
this.aide = DPSMate.L["syncrequesttooltip"]
this.func = DPSMate.Options.DataResetsDropDown
this.title = DPSMate.L["syncrequest"]
UIDropDownMenu_SetWidth(120)
getglobal(this:GetName().."_Text"):SetText(this.title)
this.aide = DPSMate.L["dataresetslogouttooltip"]
this.func = DPSMate.Options.DataResetsDropDown
this.title = DPSMate.L["dataresetslogout"]
UIDropDownMenu_SetWidth(120)
getglobal(this:GetName().."_Text"):SetText(this.title)
this.aide = DPSMate.L["minimaptooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["minimap"])
if DPSMateSettings["showminimapbutton"] then
DPSMateSettings["showminimapbutton"] = false
DPSMate_MiniMap:Hide()
else
DPSMateSettings["showminimapbutton"] = true
DPSMate_MiniMap:Show()
end
this.aide = DPSMate.L["showtotaltooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["showtotal"])
if DPSMateSettings["showtotals"] then
DPSMateSettings["showtotals"] = false
for _, val in pairs(DPSMateSettings["windows"]) do
getglobal("DPSMate_"..val["name"].."_ScrollFrame_Child_Total"):SetHeight(0.000001)
getglobal("DPSMate_"..val["name"].."_ScrollFrame_Child_StatusBar1"):SetPoint("TOPLEFT", getglobal("DPSMate_"..val["name"].."_ScrollFrame_Child_Total"), "BOTTOMLEFT", 0, -1)
end
else
DPSMateSettings["showtotals"] = true
for _, val in pairs(DPSMateSettings["windows"]) do
getglobal("DPSMate_"..val["name"].."_ScrollFrame_Child_Total"):SetHeight(val["barheight"])
getglobal("DPSMate_"..val["name"].."_ScrollFrame_Child_StatusBar1"):SetPoint("TOPLEFT", getglobal("DPSMate_"..val["name"].."_ScrollFrame_Child_Total"), "BOTTOMLEFT", 0, -1*val["barspacing"])
end
end
DPSMate:SetStatusBarValue()
this.aide = DPSMate.L["solotooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["solo"])
if DPSMateSettings["hidewhensolo"] then
DPSMateSettings["hidewhensolo"] = false
for _, val in pairs(DPSMateSettings["windows"]) do
getglobal("DPSMate_"..val["name"]):Show()
end
else
DPSMateSettings["hidewhensolo"] = true
for _, val in pairs(DPSMateSettings["windows"]) do
getglobal("DPSMate_"..val["name"]):Hide()
end
end
DPSMate.Options:HideInPvP()
DPSMate.Options:HideWhenSolo()
this.aide = DPSMate.L["combattooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["combat"])
if DPSMateSettings["hideincombat"] then
DPSMateSettings["hideincombat"] = false
for _, val in pairs(DPSMateSettings["windows"]) do
getglobal("DPSMate_"..val["name"]):Show()
end
else
DPSMateSettings["hideincombat"] = true
if UnitAffectingCombat("player") then
for _, val in pairs(DPSMateSettings["windows"]) do
getglobal("DPSMate_"..val["name"]):Hide()
end
end
end
DPSMate.Options:HideInPvP()
DPSMate.Options:HideWhenSolo()
this.aide = DPSMate.L["loginhidetooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["loginhide"])
DPSMateSettings["hideonlogin"] = not DPSMateSettings["hideonlogin"]
this.aide = DPSMate.L["bossfightstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["bossfights"])
DPSMateSettings["onlybossfights"] = not DPSMateSettings["onlybossfights"]
this.aide = DPSMate.L["pvptooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["pvp"])
if DPSMateSettings["hideinpvp"] then
DPSMateSettings["hideinpvp"] = false
for _, val in pairs(DPSMateSettings["windows"]) do
getglobal("DPSMate_"..val["name"]):Show()
end
else
DPSMateSettings["hideinpvp"] = true
end
DPSMate.Options:HideWhenSolo()
DPSMate.Options:HideInPvP()
this.aide = DPSMate.L["disabletooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["disable"])
if DPSMateSettings["disablewhilehidden"] then
DPSMateSettings["disablewhilehidden"] = false
DPSMate:Enable()
else
DPSMateSettings["disablewhilehidden"] = true
end
this.aide = DPSMate.L["mergepetstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["mergepets"])
if DPSMateSettings["mergepets"] then
DPSMateSettings["mergepets"] = false
DPSMate:Enable()
else
DPSMateSettings["mergepets"] = true
end
this.aide = DPSMate.L["segmentsTooltip"]
this.func = function()
DPSMateSettings["datasegments"] = this:GetValue()
if DPSMate:TableLength(DPSMateHistory)>DPSMateSettings["datasegments"] then
for i=(DPSMateSettings["datasegments"]+1), DPSMate:TableLength(DPSMateHistory) do
for p=1, DPSMate:TableLength(DPSMateSettings["windows"]) do
DPSMateSettings["windows"][p]["options"][2]["segment"..i] = false
end
table.remove(DPSMateHistory, i)
end
end
if DPSMate:TableLength(DPSMateCombatTime["segments"])>DPSMateSettings["datasegments"] then
for i=DPSMateSettings["datasegments"]+1, DPSMate:TableLength(DPSMateCombatTime["segments"]) do
for p=1, DPSMate:TableLength(DPSMateSettings["windows"]) do
DPSMateSettings["windows"][p]["options"][2]["segment"..i] = false
end
table.remove(DPSMateCombatTime["segments"], i)
end
end
for p=1, DPSMate:TableLength(DPSMateSettings["windows"]) do
local hasTrue = false
for _,val in pairs(DPSMateSettings["windows"][p]["options"][2]) do
if val==true then
hasTrue = true
break
end
end
if not hasTrue then
for cat,_ in pairs(DPSMateSettings["windows"][p]["options"][2]) do
DPSMateSettings["windows"][p]["options"][2][cat] = false
end
DPSMateSettings["windows"][p]["options"][2]["total"] = true
end
end
DPSMate.Options:InitializeSegments()
DPSMate:SetStatusBarValue()
end
this:SetMinMaxValues(1,20)
this:SetValueStep(1)
getglobal(this:GetName().."Text"):SetText(DPSMate.L["segments"])
getglobal(this:GetName().."Low"):SetText("1")
getglobal(this:GetName().."High"):SetText("20")
this.aide = DPSMate.L["targetscaleTooltip"]
local frames = {"", "_Absorbs", "_AbsorbsTaken", "_Auras", "_Casts", "_CCBreaker", "_CureDisease", "_CureDiseaseReceived", "_CurePoison", "_CurePoisonReceived", "_DamageTaken", "_DamageTakenTotal", "_DamageTotal", "_Deaths", "_Decurses", "_DecursesReceived", "_Dispels", "_DispelsReceived", "_EDD", "_EDT", "_EHealing", "_EHealingTaken", "_Fails", "_FF", "_FFT", "_Healing", "_HealingTaken", "_Interrupts", "_LiftMagic", "_LiftMagicReceived", "_OHealingTaken", "_Overhealing", "_Procs", "_Threat", "_AbsorbsTakenTotal", "_AbsorbsTotal", "_AurasTotal", "_CastsTotal", "_CCBreakerTotal", "_CureDisease_Total", "_CurePoison_Total", "_Deaths_Total", "_Decurses_Total", "_Dispels_Total", "_EDDTotal", "_EDTTotal", "_EHealingTakenTotal", "_EHealingTotal", "_FailsTotal", "_FFTotal", "_FFTTotal", "_HABTotal", "_HealingTakenTotal", "_HealingTotal", "_Interrupts_Total", "_LiftMagic_Total", "_OverhealingTakenTotal", "_OverhealingTotal", "_ProcsTotal", "_ThreatTotal"}
this.func = function()
DPSMateSettings["targetscale"] = this:GetValue()
for _, name in frames do
if getglobal("DPSMate_Details"..name) then
getglobal("DPSMate_Details"..name):SetScale(DPSMateSettings["targetscale"]/UIParent:GetScale())
end
end
end
this:SetMinMaxValues(0.3,2.0)
this:SetValueStep(0.01)
getglobal(this:GetName().."Text"):SetText(DPSMate.L["targetscale"])
getglobal(this:GetName().."Low"):SetText("0.3")
getglobal(this:GetName().."High"):SetText("2.0")
this.aide = DPSMate.L["updateintervalTooltip"]
this.func = function()
DPSMateSettings["mainupdatetime"] = this:GetValue()
end
this:SetMinMaxValues(0.016,2.0)
this:SetValueStep(0.016)
getglobal(this:GetName().."Text"):SetText(DPSMate.L["updateinterval"])
getglobal(this:GetName().."Low"):SetText("0.016")
getglobal(this:GetName().."High"):SetText("2.0")
this.aide = DPSMate.L["autowipeTooltip"]
this.func = function()
DPSMateSettings["autowipesessions"] = this:GetValue()
end
this:SetMinMaxValues(0,30)
this:SetValueStep(1)
getglobal(this:GetName().."Text"):SetText(DPSMate.L["autowipe"])
getglobal(this:GetName().."Low"):SetText("0")
getglobal(this:GetName().."High"):SetText("30")
this:SetVerticalScroll(0)
DPSMate.Options:OnVerticalScroll(this, arg1)
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["dps"])
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["damage"])
DPSMate.Options:CheckButton("columnsdps", 1)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["dps"])
DPSMate.Options:CheckButton("columnsdps", 2)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["percent"])
DPSMate.Options:CheckButton("columnsdps", 3)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["edps"])
DPSMate.Options:CheckButton("columnsdps", 4)
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["damage"])
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["damage"])
DPSMate.Options:CheckButton("columnsdmg", 1)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["dps"])
DPSMate.Options:CheckButton("columnsdmg", 2)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["percent"])
DPSMate.Options:CheckButton("columnsdmg", 3)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["edps"])
DPSMate.Options:CheckButton("columnsdmg", 4)
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["damagetaken"])
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["damage"])
DPSMate.Options:CheckButton("columnsdmgtaken", 1)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["dtps"])
DPSMate.Options:CheckButton("columnsdmgtaken", 2)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["percent"])
DPSMate.Options:CheckButton("columnsdmgtaken", 3)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["edtps"])
DPSMate.Options:CheckButton("columnsdmgtaken", 4)
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["dtps"])
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["damage"])
DPSMate.Options:CheckButton("columnsdtps", 1)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["dtps"])
DPSMate.Options:CheckButton("columnsdtps", 2)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["percent"])
DPSMate.Options:CheckButton("columnsdtps", 3)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["edtps"])
DPSMate.Options:CheckButton("columnsdtps", 4)
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["enemydamagedone"])
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["damage"])
DPSMate.Options:CheckButton("columnsedd", 1)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["dps"])
DPSMate.Options:CheckButton("columnsedd", 2)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["percent"])
DPSMate.Options:CheckButton("columnsedd", 3)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["edps"])
DPSMate.Options:CheckButton("columnsedd", 4)
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["enemydamagetaken"])
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["damage"])
DPSMate.Options:CheckButton("columnsedt", 1)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["dtps"])
DPSMate.Options:CheckButton("columnsedt", 2)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["percent"])
DPSMate.Options:CheckButton("columnsedt", 3)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["edtps"])
DPSMate.Options:CheckButton("columnsedt", 4)
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["healing"])
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["healing"])
DPSMate.Options:CheckButton("columnshealing", 1)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["hps"])
DPSMate.Options:CheckButton("columnshealing", 2)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["percent"])
DPSMate.Options:CheckButton("columnshealing", 3)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["ehps"])
DPSMate.Options:CheckButton("columnshealing", 4)
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["healingtaken"])
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["healing"])
DPSMate.Options:CheckButton("columnshealingtaken", 1)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["hps"])
DPSMate.Options:CheckButton("columnshealingtaken", 2)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["percent"])
DPSMate.Options:CheckButton("columnshealingtaken", 3)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["ehps"])
DPSMate.Options:CheckButton("columnshealingtaken", 4)
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["hps"])
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["healing"])
DPSMate.Options:CheckButton("columnshps", 1)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["hps"])
DPSMate.Options:CheckButton("columnshps", 2)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["percent"])
DPSMate.Options:CheckButton("columnshps", 3)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["ehps"])
DPSMate.Options:CheckButton("columnshps", 4)
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["overhealing"])
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["healing"])
DPSMate.Options:CheckButton("columnsoverhealing", 1)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["hps"])
DPSMate.Options:CheckButton("columnsoverhealing", 2)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["percent"])
DPSMate.Options:CheckButton("columnsoverhealing", 3)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["ehps"])
DPSMate.Options:CheckButton("columnsoverhealing", 4)
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["effectivehealing"])
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["healing"])
DPSMate.Options:CheckButton("columnsehealing", 1)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["hps"])
DPSMate.Options:CheckButton("columnsehealing", 2)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["percent"])
DPSMate.Options:CheckButton("columnsehealing", 3)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["ehps"])
DPSMate.Options:CheckButton("columnsehealing", 4)
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["effectivehealingtaken"])
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["healing"])
DPSMate.Options:CheckButton("columnsehealingtaken", 1)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["hps"])
DPSMate.Options:CheckButton("columnsehealingtaken", 2)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["percent"])
DPSMate.Options:CheckButton("columnsehealingtaken", 3)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["ehps"])
DPSMate.Options:CheckButton("columnsehealingtaken", 4)
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["effectivehps"])
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["healing"])
DPSMate.Options:CheckButton("columnsehps", 1)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["hps"])
DPSMate.Options:CheckButton("columnsehps", 2)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["percent"])
DPSMate.Options:CheckButton("columnsehps", 3)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["ehps"])
DPSMate.Options:CheckButton("columnsehps", 4)
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["absorbs"])
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["absorbs"])
DPSMate.Options:CheckButton("columnsabsorbs", 1)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["percent"])
DPSMate.Options:CheckButton("columnsabsorbs", 2)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["hps"])
DPSMate.Options:CheckButton("columnsabsorbs", 3)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["ehps"])
DPSMate.Options:CheckButton("columnsabsorbs", 4)
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["absorbstaken"])
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["absorbs"])
DPSMate.Options:CheckButton("columnsabsorbstaken", 1)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["percent"])
DPSMate.Options:CheckButton("columnsabsorbstaken", 2)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["hps"])
DPSMate.Options:CheckButton("columnsabsorbstaken", 3)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["ehps"])
DPSMate.Options:CheckButton("columnsabsorbstaken", 4)
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["healingandabsorbs"])
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["amount"])
DPSMate.Options:CheckButton("columnshab", 1)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["hps"])
DPSMate.Options:CheckButton("columnshab", 2)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["percent"])
DPSMate.Options:CheckButton("columnshab", 3)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["ehps"])
DPSMate.Options:CheckButton("columnshab", 4)
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["deaths"])
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["amount"])
DPSMate.Options:CheckButton("columnsdeaths", 1)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["percent"])
DPSMate.Options:CheckButton("columnsdeaths", 2)
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["interrupts"])
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["amount"])
DPSMate.Options:CheckButton("columnsinterrupts", 1)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["percent"])
DPSMate.Options:CheckButton("columnsinterrupts", 2)
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["dispels"])
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["amount"])
DPSMate.Options:CheckButton("columnsdispels", 1)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["percent"])
DPSMate.Options:CheckButton("columnsdispels", 2)
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["dispelsreceived"])
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["amount"])
DPSMate.Options:CheckButton("columnsdispelsreceived", 1)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["percent"])
DPSMate.Options:CheckButton("columnsdispelsreceived", 2)
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["decurses"])
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["amount"])
DPSMate.Options:CheckButton("columnsdecurses", 1)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["percent"])
DPSMate.Options:CheckButton("columnsdecurses", 2)
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["decursesreceived"])
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["amount"])
DPSMate.Options:CheckButton("columnsdecursesreceived", 1)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["percent"])
DPSMate.Options:CheckButton("columnsdecursesreceived", 2)
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["curedisease"])
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["amount"])
DPSMate.Options:CheckButton("columnsdisease", 1)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["percent"])
DPSMate.Options:CheckButton("columnsdisease", 2)
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["curediseasereceived"])
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["amount"])
DPSMate.Options:CheckButton("columnsdiseasereceived", 1)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["percent"])
DPSMate.Options:CheckButton("columnsdiseasereceived", 2)
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["curepoison"])
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["amount"])
DPSMate.Options:CheckButton("columnspoison", 1)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["percent"])
DPSMate.Options:CheckButton("columnspoison", 2)
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["curepoisonreceived"])
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["amount"])
DPSMate.Options:CheckButton("columnspoisonreceived", 1)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["percent"])
DPSMate.Options:CheckButton("columnspoisonreceived", 2)
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["liftmagic"])
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["amount"])
DPSMate.Options:CheckButton("columnsmagic", 1)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["percent"])
DPSMate.Options:CheckButton("columnsmagic", 2)
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["liftmagicreceived"])
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["amount"])
DPSMate.Options:CheckButton("columnsmagicreceived", 1)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["percent"])
DPSMate.Options:CheckButton("columnsmagicreceived", 2)
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["aurasgained"])
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["amount"])
DPSMate.Options:CheckButton("columnsaurasgained", 1)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["percent"])
DPSMate.Options:CheckButton("columnsaurasgained", 2)
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["auraslost"])
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["amount"])
DPSMate.Options:CheckButton("columnsauraslost", 1)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["percent"])
DPSMate.Options:CheckButton("columnsauraslost", 2)
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["aurauptime"])
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["amount"])
DPSMate.Options:CheckButton("columnsaurauptime", 1)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["percent"])
DPSMate.Options:CheckButton("columnsaurauptime", 2)
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["friendlyfire"])
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["damage"])
DPSMate.Options:CheckButton("columnsfriendlyfire", 1)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["dps"])
DPSMate.Options:CheckButton("columnsfriendlyfire", 2)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["percent"])
DPSMate.Options:CheckButton("columnsfriendlyfire", 3)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["edps"])
DPSMate.Options:CheckButton("columnsfriendlyfire", 4)
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["procs"])
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["amount"])
DPSMate.Options:CheckButton("columnsprocs", 1)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["percent"])
DPSMate.Options:CheckButton("columnsprocs", 2)
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["casts"])
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["amount"])
DPSMate.Options:CheckButton("columnscasts", 1)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["percent"])
DPSMate.Options:CheckButton("columnscasts", 2)
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["threat"])
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["amount"])
DPSMate.Options:CheckButton("columnsthreat", 1)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["tps"])
DPSMate.Options:CheckButton("columnsthreat", 2)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["percent"])
DPSMate.Options:CheckButton("columnsthreat", 3)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["etps"])
DPSMate.Options:CheckButton("columnsthreat", 4)
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["tps"])
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["amount"])
DPSMate.Options:CheckButton("columnstps", 1)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["tps"])
DPSMate.Options:CheckButton("columnstps", 2)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["percent"])
DPSMate.Options:CheckButton("columnstps", 3)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["etps"])
DPSMate.Options:CheckButton("columnstps", 4)
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["fails"])
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["amount"])
DPSMate.Options:CheckButton("columnsfails", 1)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["percent"])
DPSMate.Options:CheckButton("columnsfails", 2)
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["ccbreaker"])
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["amount"])
DPSMate.Options:CheckButton("columnsccbreaker", 1)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["percent"])
DPSMate.Options:CheckButton("columnsccbreaker", 2)
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["OHPS"])
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["healing"])
DPSMate.Options:CheckButton("columnsohps", 1)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["OHPS"])
DPSMate.Options:CheckButton("columnsohps", 2)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["percent"])
DPSMate.Options:CheckButton("columnsohps", 3)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["eohps"])
DPSMate.Options:CheckButton("columnsohps", 4)
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["OHealingTaken"])
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["healing"])
DPSMate.Options:CheckButton("columnsohealingtaken", 1)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["OHPS"])
DPSMate.Options:CheckButton("columnsohealingtaken", 2)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["percent"])
DPSMate.Options:CheckButton("columnsohealingtaken", 3)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["eohps"])
DPSMate.Options:CheckButton("columnsohealingtaken", 4)
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["friendlyfiretaken"])
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["damage"])
DPSMate.Options:CheckButton("columnsfriendlyfiretaken", 1)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["dps"])
DPSMate.Options:CheckButton("columnsfriendlyfiretaken", 2)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["percent"])
DPSMate.Options:CheckButton("columnsfriendlyfiretaken", 3)
this.aide = DPSMate.L["columnstooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["edps"])
DPSMate.Options:CheckButton("columnsfriendlyfiretaken", 4)
this.aide = DPSMate.L["showtooltipsTooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["showtooltips"])
DPSMateSettings["showtooltips"] = not DPSMateSettings["showtooltips"]
this.aide = DPSMate.L["informativetooltipsTooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["informativetooltips"])
DPSMateSettings["informativetooltips"] = not DPSMateSettings["informativetooltips"]
this.aide = DPSMate.L["subviewrowsTooltip"]
this.func = function()
DPSMateSettings["subviewrows"] = this:GetValue()
end
this:SetMinMaxValues(1,10)
this:SetValueStep(1)
getglobal(this:GetName().."Text"):SetText(DPSMate.L["subviewrows"])
getglobal(this:GetName().."Low"):SetText("1")
getglobal(this:GetName().."High"):SetText("10")
this.aide = DPSMate.L["TooltipPositionDropDownTooltip"]
this.func = DPSMate.Options.TooltipPositionDropDown
this.title = DPSMate.L["TooltipPositionDropDown"]
UIDropDownMenu_SetWidth(120)
getglobal(this:GetName().."_Text"):SetText(this.title)
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["shownmodes"])
DPSMate.Options:UpdateConfigModes(this, 0, true)
DPSMate.Options:UpdateConfigModes(this, arg1, true)
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["hiddenmodes"])
DPSMate.Options:UpdateConfigModes(this, 0, false)
DPSMate.Options:UpdateConfigModes(this, arg1, false)
this.aide = DPSMate.L["moveleftTooltip"]
getglobal(this:GetName().."Text"):SetText("<---")
local pa = this:GetParent():GetName()
for i=1, 15 do
if getglobal(pa.."_right_Button"..i).selected then
local num = getglobal(pa.."_right_Button"..i.."Text"):GetText()
DPSMateSettings["hiddenmodes"][DPSMate.ModuleNames[num]] = nil
DPSMate.Options.Options[1]["args"][DPSMate.ModuleNames[num]] = nil
DPSMate.Options:UpdateConfigModes(getglobal(pa.."_left"), 0, true)
DPSMate.Options:UpdateConfigModes(getglobal(pa.."_right"), 0, false)
DPSMate.Options.Options[1]["args"][DPSMate.ModuleNames[num]] = {
order = 300,
type = 'toggle',
name = num,
desc = "Show "..num..",",
get = function() return DPSMateSettings["windows"][DPSMate.Options.Dewdrop:GetOpenedParent().Key]["options"][1][DPSMate.ModuleNames[num]] end,
set = function() DPSMate.Options:ToggleDrewDrop(1, DPSMate.ModuleNames[num], DPSMate.Options.Dewdrop:GetOpenedParent()) end,
}
break
end
end
this.aide = DPSMate.L["moverightTooltip"]
getglobal(this:GetName().."Text"):SetText("--->")
local pa = this:GetParent():GetName()
for i=1, 15 do
if getglobal(pa.."_left_Button"..i).selected then
local num = getglobal(pa.."_left_Button"..i.."Text"):GetText()
DPSMateSettings["hiddenmodes"][DPSMate.ModuleNames[num]] = true
DPSMate.Options.Options[1]["args"][DPSMate.ModuleNames[num]] = nil
DPSMate.Options:UpdateConfigModes(getglobal(pa.."_left"), 0, true)
DPSMate.Options:UpdateConfigModes(getglobal(pa.."_right"), 0, false)
break
end
end
this.aide = DPSMate.L["helloworldTooltip"]
getglobal(this:GetName().."Text"):SetText(DPSMate.L["helloworld"])
DPSMate.Sync:HelloWorld()
this.aide = DPSMate.L["enablebroadcasting"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["enable"])
DPSMateSettings["broadcasting"] = not DPSMateSettings["broadcasting"]
this.aide = DPSMate.L["useraidwarningTooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["useraidwarning"])
DPSMateSettings["bcrw"] = not DPSMateSettings["bcrw"]
this.aide = DPSMate.L["relevantcdsTooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["relevantcds"])
DPSMateSettings["bccd"] = not DPSMateSettings["bccd"]
this.aide = DPSMate.L["ressTooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["ress"])
DPSMateSettings["bcress"] = not DPSMateSettings["bcress"]
this.aide = DPSMate.L["killingblowsTooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["killingblows"])
DPSMateSettings["bckb"] = not DPSMateSettings["bckb"]
this.aide = DPSMate.L["failsTooltip"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["fails"])
DPSMateSettings["bcfail"] = not DPSMateSettings["bcfail"]
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["whatisdpsmate"])
getglobal(this:GetName().."_Text"):SetText(DPSMate.L["whatisdpsmateText"])
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["whocreateddpsmate"])
getglobal(this:GetName().."_Text"):SetText(DPSMate.L["whocreateddpsmateText"])
getglobal(this:GetName().."_Title"):SetText(DPSMate.L["thanksto"])
getglobal(this:GetName().."_Text"):SetHeight(90)
getglobal(this:GetName().."_Text"):ClearAllPoints()
getglobal(this:GetName().."_Text"):SetPoint("TOPLEFT", this, "TOPLEFT", 5, -5)
getglobal(this:GetName().."_Text"):SetText(DPSMate.L["thankstoText"])