framework update
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
|
||||
|
||||
local dversion = 314
|
||||
local dversion = 315
|
||||
local major, minor = "DetailsFramework-1.0", dversion
|
||||
local DF, oldminor = LibStub:NewLibrary (major, minor)
|
||||
|
||||
|
||||
+11
-3
@@ -1584,9 +1584,10 @@ function DF:IconPick (callback, close_when_select, param1, param2)
|
||||
DF.IconPickFrame.preview:Hide()
|
||||
|
||||
--serach
|
||||
DF.IconPickFrame.searchLabel = DF:NewLabel (DF.IconPickFrame, nil, "$parentSearchBoxLabel", nil, "search:")
|
||||
DF.IconPickFrame.searchLabel = DF:NewLabel (DF.IconPickFrame, nil, "$parentSearchBoxLabel", nil, "Search:")
|
||||
DF.IconPickFrame.searchLabel:SetPoint ("topleft", DF.IconPickFrame, "topleft", 12, -36)
|
||||
DF.IconPickFrame.searchLabel:SetTemplate (DF:GetTemplate ("font", "ORANGE_FONT_TEMPLATE"))
|
||||
DF.IconPickFrame.searchLabel.fontsize = 12
|
||||
|
||||
DF.IconPickFrame.search = DF:NewTextEntry (DF.IconPickFrame, nil, "$parentSearchBox", nil, 140, 20)
|
||||
DF.IconPickFrame.search:SetPoint ("left", DF.IconPickFrame.searchLabel, "right", 2, 0)
|
||||
@@ -1609,6 +1610,7 @@ function DF:IconPick (callback, close_when_select, param1, param2)
|
||||
--manually enter the icon path
|
||||
DF.IconPickFrame.customIcon = DF:CreateLabel (DF.IconPickFrame, "Icon Path:", DF:GetTemplate ("font", "ORANGE_FONT_TEMPLATE"))
|
||||
DF.IconPickFrame.customIcon:SetPoint ("bottomleft", DF.IconPickFrame, "bottomleft", 12, 16)
|
||||
DF.IconPickFrame.customIcon.fontsize = 12
|
||||
|
||||
DF.IconPickFrame.customIconEntry = DF:CreateTextEntry (DF.IconPickFrame, function()end, 200, 20, "CustomIconEntry", _, _, DF:GetTemplate ("dropdown", "OPTIONS_DROPDOWN_TEMPLATE"))
|
||||
DF.IconPickFrame.customIconEntry:SetPoint ("left", DF.IconPickFrame.customIcon, "right", 2, 0)
|
||||
@@ -1652,11 +1654,13 @@ function DF:IconPick (callback, close_when_select, param1, param2)
|
||||
local MACRO_ICON_FILENAMES = {}
|
||||
local SPELLNAMES_CACHE = {}
|
||||
|
||||
local texturePathGetter = DF.IconPickFrame:CreateTexture(nil, "overlay")
|
||||
|
||||
DF.IconPickFrame:SetScript ("OnShow", function()
|
||||
|
||||
MACRO_ICON_FILENAMES [1] = "INV_MISC_QUESTIONMARK"
|
||||
local index = 2
|
||||
|
||||
|
||||
for i = 1, GetNumSpellTabs() do
|
||||
local tab, tabTex, offset, numSpells, _ = GetSpellTabInfo (i)
|
||||
offset = offset + 1
|
||||
@@ -1691,7 +1695,7 @@ function DF:IconPick (callback, close_when_select, param1, param2)
|
||||
GetLooseMacroIcons (MACRO_ICON_FILENAMES)
|
||||
GetMacroIcons (MACRO_ICON_FILENAMES)
|
||||
GetMacroItemIcons (MACRO_ICON_FILENAMES)
|
||||
|
||||
|
||||
--reset the custom icon text entry
|
||||
DF.IconPickFrame.customIconEntry:SetText ("")
|
||||
--reset the search text entry
|
||||
@@ -1832,6 +1836,10 @@ function DF:IconPick (callback, close_when_select, param1, param2)
|
||||
newcheck:SetScript ("OnEnter", onenter)
|
||||
newcheck:SetScript ("OnLeave", onleave)
|
||||
end
|
||||
|
||||
for _, button in ipairs(DF.IconPickFrame.buttons) do
|
||||
button:SetBackdropBorderColor(0, 0, 0, 1)
|
||||
end
|
||||
|
||||
local scroll = CreateFrame ("ScrollFrame", "DetailsFrameworkIconPickFrameScroll", DF.IconPickFrame, "ListScrollFrameTemplate", "BackdropTemplate")
|
||||
DF:ReskinSlider (scroll)
|
||||
|
||||
+6
-2
@@ -467,9 +467,13 @@
|
||||
statusBar:SetPoint ("topleft", menuBackground, "bottomleft", 0, 1)
|
||||
statusBar:SetPoint ("topright", f, "bottomright", 0, 1)
|
||||
statusBar:SetHeight (20)
|
||||
_detalhes.gump:ApplyStandardBackdrop (statusBar)
|
||||
statusBar:SetAlpha (1)
|
||||
_detalhes.gump:BuildStatusbarAuthorInfo (statusBar)
|
||||
DetailsFramework:BuildStatusbarAuthorInfo (statusBar)
|
||||
DetailsFramework:ApplyStandardBackdrop (statusBar)
|
||||
local extraDarkTexture = statusBar:CreateTexture(nil, "background")
|
||||
extraDarkTexture:SetAllPoints()
|
||||
extraDarkTexture:SetColorTexture(.2, .2, .2, .8)
|
||||
|
||||
--
|
||||
local right_click_to_back = _detalhes.gump:CreateLabel (statusBar, "right click to close", 10, "gray")
|
||||
right_click_to_back:SetPoint ("bottomright", statusBar, "bottomright", -1, 5)
|
||||
|
||||
Reference in New Issue
Block a user