Skip to content
This repository has been archived by the owner on Oct 14, 2021. It is now read-only.

Commit

Permalink
- Death Knight: Epidemic, Scourge Strike and Howling Blast now has a …
Browse files Browse the repository at this point in the history
…better description on the spell name.

- Fixed snap button showing when 'Hide Resize Buttons' are enabled.
- Fixed title bar icons not hiding when 'Auto Hide Buttons' is enabled.
- Several improvements to overall data, it should be more consistent now.
- Details! now passes to identify the tank role of the player even when out of a party or raid.
- Debug helper Details:DumpTable(table) now correctly shows the key name when it isn't a string.
- Improvements done on the Bookmark config frame accessed by the options panel > display section.
- New slash command: '/details spells'.
- Statistics for Legion has been closed! You can access statistics from the orange gear > statistics.
  • Loading branch information
Tercio authored and Tercio committed Aug 7, 2018
1 parent 5f55045 commit 2fb29a4
Show file tree
Hide file tree
Showing 45 changed files with 847 additions and 678 deletions.
13 changes: 12 additions & 1 deletion Libs/DF/button.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1149,8 +1149,17 @@ end
local pickcolor_callback = function (self, r, g, b, a, button)
a = abs (a-1)
button.MyObject.color_texture:SetVertexColor (r, g, b, a)
button.MyObject:color_callback (r, g, b, a)

--> safecall
--button.MyObject:color_callback (r, g, b, a)
local success, errorText = pcall (button.MyObject.color_callback, button.MyObject, r, g, b, a)
if (not success) then
error ("Details! Framework: colorpick " .. (self:GetName() or "-NONAME-") .. " error: " .. errorText)
end

button.MyObject:RunHooksForWidget ("OnColorChanged", button.MyObject, r, g, b, a)
end

local pickcolor = function (self, alpha, param2)
local r, g, b, a = self.MyObject.color_texture:GetVertexColor()
a = abs (a-1)
Expand Down Expand Up @@ -1181,6 +1190,8 @@ function DF:NewColorPickButton (parent, name, member, callback, alpha, button_te
button.Cancel = colorpick_cancel
button.SetColor = set_colorpick_color

button.HookList.OnColorChanged = {}

if (not button_template) then
button:InstallCustomTexture()
button:SetBackdrop ({edgeFile = [[Interface\Tooltips\UI-Tooltip-Border]], edgeSize = 6,
Expand Down
12 changes: 7 additions & 5 deletions Libs/DF/dropdown.lua
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ function DetailsFrameworkDropDownOptionClick (button)
error ("Details! Framework: dropdown " .. button:GetParent():GetParent():GetParent().MyObject:GetName() .. " error: " .. errorText)
end

--button.table.onclick (button:GetParent():GetParent():GetParent().MyObject, button.object.FixedValue, button.table.value)
button:GetParent():GetParent():GetParent().MyObject:RunHooksForWidget ("OnOptionSelected", button:GetParent():GetParent():GetParent().MyObject, button.object.FixedValue, button.table.value)
end

--> set the value of selected option in main object
Expand Down Expand Up @@ -987,7 +987,8 @@ function DF:NewDropDown (parent, container, name, member, w, h, func, default, t

local scroll = _G [DropDownObject.dropdown:GetName() .. "_ScrollFrame"]

DropDownObject.scroll = DF:NewScrollBar (scroll, _G [DropDownObject.dropdown:GetName() .. "_ScrollFrame".."_ScrollChild"], -25, -18)
DropDownObject.scroll = DF:NewScrollBar (scroll, _G [DropDownObject.dropdown:GetName() .. "_ScrollFrame".."_ScrollChild"], -18, -18)
DF:ReskinSlider (scroll)

function DropDownObject:HideScroll()
scroll.baixo:Hide()
Expand All @@ -1000,8 +1001,6 @@ function DF:NewDropDown (parent, container, name, member, w, h, func, default, t
scroll.slider:Show()
end

--button_down_scripts (DropDownObject, scroll.slider, scroll.baixo)

DropDownObject:HideScroll()
DropDownObject.label:SetSize (DropDownObject.dropdown:GetWidth()-40, 10)

Expand All @@ -1010,6 +1009,7 @@ function DF:NewDropDown (parent, container, name, member, w, h, func, default, t
OnLeave = {},
OnHide = {},
OnShow = {},
OnOptionSelected = {},
}

DropDownObject.dropdown:SetScript ("OnShow", DetailsFrameworkDropDownOnShow)
Expand Down Expand Up @@ -1110,13 +1110,15 @@ function DF:CreateNewDropdownFrame (parent, name)
scroll:SetSize (150, 150)
scroll:SetPoint ("topleft", f, "bottomleft", 0, 0)
f.dropdownframe = scroll

local child = CreateFrame ("frame", "$Parent_ScrollChild", scroll)
child:SetSize (150, 150)
child:SetPoint ("topleft", scroll, "topleft", 0, 0)
child:SetBackdrop (child_backdrop)
child:SetBackdropColor (0, 0, 0, 1)

DF:ApplyStandardBackdrop (child)

local selected = child:CreateTexture ("$parent_SelectedTexture", "BACKGROUND")
selected:SetSize (150, 16)
selected:Hide()
Expand Down
Loading

0 comments on commit 2fb29a4

Please sign in to comment.