Updated LibOpenRaid and DetailsFramework
This commit is contained in:
+31
-31
@@ -35,32 +35,32 @@ function Details.OpenMacrosWindow()
|
||||
local scrollbox_line_height = 79.5
|
||||
local scrollbox_size = {890, 563}
|
||||
|
||||
f.bg1 = f:CreateTexture (nil, "background")
|
||||
f.bg1:SetTexture ([[Interface\AddOns\Details\images\background]], true)
|
||||
f.bg1 = f:CreateTexture(nil, "background")
|
||||
f.bg1:SetTexture([[Interface\AddOns\Details\images\background]], true)
|
||||
f.bg1:SetAlpha (0.8)
|
||||
f.bg1:SetVertexColor (0.27, 0.27, 0.27)
|
||||
f.bg1:SetVertTile (true)
|
||||
f.bg1:SetHorizTile (true)
|
||||
f.bg1:SetSize (790, 454)
|
||||
f.bg1:SetSize(790, 454)
|
||||
f.bg1:SetAllPoints()
|
||||
f:SetBackdrop ({edgeFile = [[Interface\Buttons\WHITE8X8]], edgeSize = 1, bgFile = [[Interface\AddOns\Details\images\background]], tileSize = 64, tile = true})
|
||||
f:SetBackdropColor (.5, .5, .5, .7)
|
||||
f:SetBackdropBorderColor (0, 0, 0, 1)
|
||||
f:SetBackdrop({edgeFile = [[Interface\Buttons\WHITE8X8]], edgeSize = 1, bgFile = [[Interface\AddOns\Details\images\background]], tileSize = 64, tile = true})
|
||||
f:SetBackdropColor(.5, .5, .5, .7)
|
||||
f:SetBackdropBorderColor(0, 0, 0, 1)
|
||||
|
||||
local macrosAvailable = Details.MacroList
|
||||
|
||||
local OnEnterMacroButton = function(self)
|
||||
self:SetBackdropColor (unpack (scrollbox_line_backdrop_color_onenter))
|
||||
self:SetBackdropColor(unpack (scrollbox_line_backdrop_color_onenter))
|
||||
end
|
||||
|
||||
local onLeaveMacroButton = function(self)
|
||||
self:SetBackdropColor (unpack (scrollbox_line_backdrop_color))
|
||||
self:SetBackdropColor(unpack (scrollbox_line_backdrop_color))
|
||||
end
|
||||
|
||||
local updateMacroLine = function(self, index, title, desc, macroText)
|
||||
self.Title:SetText (title)
|
||||
self.Desc:SetText (desc)
|
||||
self.MacroTextEntry:SetText (macroText)
|
||||
self.Title:SetText(title)
|
||||
self.Desc:SetText(desc)
|
||||
self.MacroTextEntry:SetText(macroText)
|
||||
end
|
||||
|
||||
local textEntryOnFocusGained = function(self)
|
||||
@@ -84,21 +84,21 @@ function Details.OpenMacrosWindow()
|
||||
|
||||
local macroListCreateLine = function(self, index)
|
||||
--create a new line
|
||||
local line = CreateFrame ("button", "$parentLine" .. index, self,"BackdropTemplate")
|
||||
local line = CreateFrame("button", "$parentLine" .. index, self,"BackdropTemplate")
|
||||
|
||||
--set its parameters
|
||||
line:SetPoint ("topleft", self, "topleft", 0, -((index-1) * (scrollbox_line_height+1)))
|
||||
line:SetSize (scrollbox_size[1], scrollbox_line_height)
|
||||
line:SetScript ("OnEnter", OnEnterMacroButton)
|
||||
line:SetScript ("OnLeave", onLeaveMacroButton)
|
||||
line:SetBackdrop ({bgFile = [[Interface\Tooltips\UI-Tooltip-Background]], tileSize = 64, tile = true, edgeFile = [[Interface\Buttons\WHITE8X8]], edgeSize = 1})
|
||||
line:SetBackdropColor (unpack (scrollbox_line_backdrop_color))
|
||||
line:SetBackdropBorderColor (0, 0, 0, 0.3)
|
||||
line:SetPoint("topleft", self, "topleft", 0, -((index-1) * (scrollbox_line_height+1)))
|
||||
line:SetSize(scrollbox_size[1], scrollbox_line_height)
|
||||
line:SetScript("OnEnter", OnEnterMacroButton)
|
||||
line:SetScript("OnLeave", onLeaveMacroButton)
|
||||
line:SetBackdrop({bgFile = [[Interface\Tooltips\UI-Tooltip-Background]], tileSize = 64, tile = true, edgeFile = [[Interface\Buttons\WHITE8X8]], edgeSize = 1})
|
||||
line:SetBackdropColor(unpack (scrollbox_line_backdrop_color))
|
||||
line:SetBackdropBorderColor(0, 0, 0, 0.3)
|
||||
|
||||
local titleLabel = DF:CreateLabel (line, "", DF:GetTemplate ("font", "ORANGE_FONT_TEMPLATE"))
|
||||
local titleLabel = DF:CreateLabel(line, "", DF:GetTemplate ("font", "ORANGE_FONT_TEMPLATE"))
|
||||
titleLabel.textsize = 14
|
||||
titleLabel.textcolor = "yellow"
|
||||
local descLabel = DF:CreateLabel (line, "", DF:GetTemplate ("font", "ORANGE_FONT_TEMPLATE"))
|
||||
local descLabel = DF:CreateLabel(line, "", DF:GetTemplate ("font", "ORANGE_FONT_TEMPLATE"))
|
||||
descLabel.textsize = 12
|
||||
|
||||
local options_dropdown_template = DF:GetTemplate ("dropdown", "OPTIONS_DROPDOWN_TEMPLATE")
|
||||
@@ -107,14 +107,14 @@ function Details.OpenMacrosWindow()
|
||||
options_dropdown_template.onenterbordercolor = {.51, .51, .51, .2}
|
||||
|
||||
local textEntry = DF:CreateTextEntry (line, function()end, scrollbox_size[1] - 10, 40, "MacroTextEntry", _, _, options_dropdown_template)
|
||||
textEntry:SetHook ("OnEditFocusGained", textEntryOnFocusGained)
|
||||
textEntry:SetHook ("OnEditFocusLost", textEntryOnFocusLost)
|
||||
textEntry:SetJustifyH ("left")
|
||||
textEntry:SetHook("OnEditFocusGained", textEntryOnFocusGained)
|
||||
textEntry:SetHook("OnEditFocusLost", textEntryOnFocusLost)
|
||||
textEntry:SetJustifyH("left")
|
||||
textEntry:SetTextInsets (8, 8, 0, 0)
|
||||
|
||||
titleLabel:SetPoint ("topleft", line, "topleft", 5, -5)
|
||||
descLabel:SetPoint ("topleft", titleLabel, "bottomleft", 0, -2)
|
||||
textEntry:SetPoint ("topleft", descLabel, "bottomleft", 0, -4)
|
||||
titleLabel:SetPoint("topleft", line, "topleft", 5, -5)
|
||||
descLabel:SetPoint("topleft", titleLabel, "bottomleft", 0, -2)
|
||||
textEntry:SetPoint("topleft", descLabel, "bottomleft", 0, -4)
|
||||
|
||||
line.Title = titleLabel
|
||||
line.Desc = descLabel
|
||||
@@ -127,10 +127,10 @@ function Details.OpenMacrosWindow()
|
||||
end
|
||||
|
||||
local macroScrollbox = DF:CreateScrollBox (f, "$parentMacroScrollbox", refreshMacroScrollbox, macrosAvailable, scrollbox_size[1], scrollbox_size[2], scrollbox_lines, scrollbox_line_height)
|
||||
macroScrollbox:SetPoint ("topleft", f, "topleft", 5, -30)
|
||||
macroScrollbox:SetBackdrop ({edgeFile = [[Interface\Buttons\WHITE8X8]], edgeSize = 1, bgFile = [[Interface\Tooltips\UI-Tooltip-Background]], tileSize = 64, tile = true})
|
||||
macroScrollbox:SetBackdropColor (0, 0, 0, 0)
|
||||
macroScrollbox:SetBackdropBorderColor (0, 0, 0, 1)
|
||||
macroScrollbox:SetPoint("topleft", f, "topleft", 5, -30)
|
||||
macroScrollbox:SetBackdrop({edgeFile = [[Interface\Buttons\WHITE8X8]], edgeSize = 1, bgFile = [[Interface\Tooltips\UI-Tooltip-Background]], tileSize = 64, tile = true})
|
||||
macroScrollbox:SetBackdropColor(0, 0, 0, 0)
|
||||
macroScrollbox:SetBackdropBorderColor(0, 0, 0, 1)
|
||||
f.MacroScrollbox = macroScrollbox
|
||||
DF:ReskinSlider(macroScrollbox)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user