Files
coa-details/gumps/janela_copy.lua
T
tercio a56db81297 - Added four more abbreviation types.
- Abbreviations now are applied on all numbers in the bar.
- Minimum amount of instances was lowered to 3.
- Fixed issue where the instance menu wasn't respecting the amount limit of instances.
- Added options for cutomize the right text of a row.
- Added a option to be able to chance the framestrata of an window.
- Added shift, ctrl, alt interaction for rows which shows all spells, targets or pets when pressed.
- Fixed a issue where changing the alpha of a window makes it disappear on the next logon.
- Added a option for auto transparency to ignore rows.
- Added option to be able to set shadow on the attribute text.
- Fixed a issue with window snap where disabled statusbar makes a gap between the windows.
- Fixed issue where mini displayes wasn't saved and back to default values on every logon.
- Mini display 'instance segment' now have a option to show the encounter name instead the number of the segment.
- Added a new experimental library called hotcorners, this library create a menu hidden on the top left corner.
- New API: instance:GetId() return the id of the instance.
2014-04-23 21:37:34 -03:00

57 lines
2.0 KiB
Lua

do
local _detalhes = _G._detalhes
local DetailsFrameWork = _detalhes.gump
local _
--> panel
function _detalhes:CreateCopyPasteWindow()
local panel = DetailsFrameWork:NewPanel (UIParent, _, "DetailsCopy", _, 512, 128, false)
tinsert (UISpecialFrames, "DetailsCopy")
panel:SetFrameStrata ("FULLSCREEN")
panel:SetPoint ("center", UIParent, "center")
panel.locked = false
DetailsFrameWork:NewImage (panel, "Interface\\AddOns\\Details\\images\\copy", 512, 128, "background", nil, "background", "$parentBackGround")
panel.background:SetPoint()
--> title
DetailsFrameWork:NewLabel (panel, _, "$parentTitle", "title", "Paste & Copy", "GameFontHighlightLeft", 12, {227/255, 186/255, 4/255})
panel.title:SetPoint ("center", panel, "center")
panel.title:SetPoint ("top", panel, "top", 0, -18)
--> close
panel.fechar = CreateFrame ("Button", nil, panel.widget, "UIPanelCloseButton")
panel.fechar:SetWidth (32)
panel.fechar:SetHeight (32)
panel.fechar:SetPoint ("TOPRIGHT", panel.widget, "TOPRIGHT", -1, -8)
panel.fechar:SetText ("X")
panel.fechar:SetFrameLevel (panel:GetFrameLevel()+2)
panel.fechar:SetScript ("OnClick", function()
panel:Hide()
end)
DetailsFrameWork:NewTextEntry (panel, _, "$parentTextEntry", "text", 476, 14)
panel.text:SetPoint (20, -106)
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, -54)
panel.desc.width = 150
panel.desc.height = 25
panel.desc.align = "|"
panel.desc.color = "gray"
panel:Hide()
end
function _detalhes:CopyPaste (link)
_G.DetailsCopy.MyObject.text.text = link
_G.DetailsCopy.MyObject.text:HighlightText()
_G.DetailsCopy.MyObject:Show()
_G.DetailsCopy.MyObject.text:SetFocus()
end
end