Updated LibOpenRaid and DetailsFramework
This commit is contained in:
+15
-15
@@ -3,19 +3,19 @@ do
|
||||
local _detalhes = _G._detalhes
|
||||
local DetailsFrameWork = _detalhes.gump
|
||||
local _
|
||||
--> panel
|
||||
--panel
|
||||
|
||||
function _detalhes:CreateCopyPasteWindow()
|
||||
|
||||
local panel = CreateFrame ("frame", "DetailsCopy", UIParent, "ButtonFrameTemplate")
|
||||
panel:SetSize (512, 148)
|
||||
local panel = CreateFrame("frame", "DetailsCopy", UIParent, "ButtonFrameTemplate")
|
||||
panel:SetSize(512, 148)
|
||||
tinsert (UISpecialFrames, "DetailsCopy")
|
||||
panel:SetFrameStrata ("TOOLTIP")
|
||||
panel:SetPoint ("center", UIParent, "center")
|
||||
panel:SetPoint("center", UIParent, "center")
|
||||
panel.locked = false
|
||||
panel:SetToplevel (true)
|
||||
panel:SetMovable (true)
|
||||
panel:SetScript ("OnMouseDown", function(self, button)
|
||||
panel:SetScript("OnMouseDown", function(self, button)
|
||||
if (self.isMoving) then
|
||||
return
|
||||
end
|
||||
@@ -26,7 +26,7 @@ do
|
||||
self.isMoving = true
|
||||
end
|
||||
end)
|
||||
panel:SetScript ("OnMouseUp", function(self, button)
|
||||
panel:SetScript("OnMouseUp", function(self, button)
|
||||
if (self.isMoving and button == "LeftButton") then
|
||||
self:StopMovingOrSizing()
|
||||
self.isMoving = nil
|
||||
@@ -34,19 +34,19 @@ do
|
||||
end)
|
||||
|
||||
DetailsFrameWork:NewImage (panel, "Interface\\AddOns\\Details\\images\\copy", 512, 128, "overlay", nil, "background", "$parentBackGround")
|
||||
panel.background:SetPoint (0, -25)
|
||||
panel.background:SetPoint(0, -25)
|
||||
|
||||
--> title
|
||||
--panel.TitleText:SetText ("Paste & Copy") --10.0 fuck
|
||||
--panel.portrait:SetTexture ([[Interface\CHARACTERFRAME\TEMPORARYPORTRAIT-FEMALE-BLOODELF]])
|
||||
--title
|
||||
--panel.TitleText:SetText("Paste & Copy") --10.0 fuck
|
||||
--panel.portrait:SetTexture([[Interface\CHARACTERFRAME\TEMPORARYPORTRAIT-FEMALE-BLOODELF]])
|
||||
|
||||
DetailsFrameWork:NewTextEntry (panel, _, "$parentTextEntry", "text", 476, 14)
|
||||
panel.text:SetPoint (20, -127)
|
||||
panel.text:SetHook ("OnEditFocusLost", function() panel:Hide() end)
|
||||
panel.text:SetHook ("OnChar", function() panel:Hide() end)
|
||||
panel.text:SetPoint(20, -127)
|
||||
panel.text:SetHook("OnEditFocusLost", function() panel:Hide() end)
|
||||
panel.text:SetHook("OnChar", function() panel:Hide() end)
|
||||
|
||||
DetailsFrameWork:NewLabel (panel, _, _, "desc", "paste on your web browser address bar", "OptionsFontHighlightSmall", 12)
|
||||
panel.desc:SetPoint (340, -78)
|
||||
DetailsFrameWork:NewLabel(panel, _, _, "desc", "paste on your web browser address bar", "OptionsFontHighlightSmall", 12)
|
||||
panel.desc:SetPoint(340, -78)
|
||||
panel.desc.width = 150
|
||||
panel.desc.height = 25
|
||||
panel.desc.align = "|"
|
||||
|
||||
Reference in New Issue
Block a user