comparison Libs/DF/fw.lua @ 18:680465749fc7

- framework update.
author Tercio
date Fri, 26 Jun 2015 14:03:10 -0300
parents 0c160948ac5e
children dc1c77254f80
comparison
equal deleted inserted replaced
17:0c160948ac5e 18:680465749fc7
1 1
2 local major, minor = "DetailsFramework-1.0", 2 2 local major, minor = "DetailsFramework-1.0", 3
3 local DF, oldminor = LibStub:NewLibrary (major, minor) 3 local DF, oldminor = LibStub:NewLibrary (major, minor)
4 4
5 5 if (not DF) then
6 if (not DF) then 6 DetailsFrameWorkLoadValid = false
7 return 7 return
8 end 8 end
9
10 DetailsFrameWorkLoadValid = true
9 11
10 local _type = type 12 local _type = type
11 local _unpack = unpack 13 local _unpack = unpack
12 local _ 14 local _
13 local upper = string.upper 15 local upper = string.upper
735 options_frame:Hide() 737 options_frame:Hide()
736 738
737 options_frame:SetPoint ("center", UIParent, "center") 739 options_frame:SetPoint ("center", UIParent, "center")
738 740
739 options_frame:SetBackdrop ({bgFile = "Interface\\Tooltips\\UI-Tooltip-Background", tile = true, tileSize = 16, 741 options_frame:SetBackdrop ({bgFile = "Interface\\Tooltips\\UI-Tooltip-Background", tile = true, tileSize = 16,
740 edgeFile = [[Interface\AddOns\Details\images\border_2]], edgeSize = 32, 742 edgeFile = DF.folder .. "border_2", edgeSize = 32,
741 insets = {left = 1, right = 1, top = 1, bottom = 1}}) 743 insets = {left = 1, right = 1, top = 1, bottom = 1}})
742 options_frame:SetBackdropColor (0, 0, 0, .7) 744 options_frame:SetBackdropColor (0, 0, 0, .7)
743 745
744 local texturetitle = options_frame:CreateTexture (nil, "artwork") 746 local texturetitle = options_frame:CreateTexture (nil, "artwork")
745 texturetitle:SetTexture ([[Interface\CURSOR\Interact]]) 747 texturetitle:SetTexture ([[Interface\CURSOR\Interact]])