rendered paste bodyTARD = {}
AceLibrary("AceGUI-2.0"):embed(TARD)
local config = {
type = "frame",
name = "AceGUITestFrame2",
parent = UIParent,
width = 100,
height = 200,
anchors = {
center = true,
},
backdrop = {
bgFile = "Interface/Tooltips/UI-Tooltip-Background",
edgeFile = "Interface/Tooltips/UI-Tooltip-Border",
tile = false, tileSize = 6, edgeSize = 18,
insets = { left = 4, right = 4, top = 4, bottom = 4}
},
backdropBorderColor = {0,0,0,.8},
backdropColor = {0,0,0,1},
OnMouseDown = function()this:StartMoving()end,
OnMouseUp = "OnMouseUp",
enableMouse = true,
movable = true,
elements = {
text = {
type = "fontstring",
text = "TEST!!",
anchors = {
center = {relPoint = "TOP", yOffset= -15},
}
},
}
}
function TARD:OnMouseUp()
self.gui:StopMovingOrSizing()
end
TARD.gui = TARD:CreateGUI(config)