diff ui/RobotStamp.lua @ 0:ec731d2fe6ba

Version 1.2.12.0
author Adam tegen <adam.tegen@gmail.com>
date Tue, 20 May 2014 21:43:23 -0500
parents
children ece9167c0d1c
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ui/RobotStamp.lua	Tue May 20 21:43:23 2014 -0500
@@ -0,0 +1,38 @@
+local _, AskMrRobot = ...
+
+-- initialize the RobotStamp class (inherit from Frame)
+AskMrRobot.RobotStamp = AskMrRobot.inheritsFrom(AskMrRobot.Frame)
+
+-- item icon contructor
+function AskMrRobot.RobotStamp:new(name, parent)
+	-- create a new frame (if one isn't supplied)
+	local o = AskMrRobot.Frame:new(name, parent)
+
+	-- use the RobotStamp class
+	setmetatable(o, { __index = AskMrRobot.RobotStamp })
+
+	o:SetPoint("TOPLEFT", parent, "TOPLEFT")
+	o:SetPoint("RIGHT", parent, "RIGHT")
+	o:SetHeight(80);
+
+	o.bigText = o:CreateFontString(nil, "ARTWORK", "GameFontNormalHuge")
+	o.bigText:SetTextColor(7/255, 166/255, 11/255)
+	local file, _, flags = o.bigText:GetFont()
+	o.bigText:SetFont(file, 24, flags)
+	o.bigText:SetText("ROBOT STAMP OF APPROVAL")
+	o.bigText:SetPoint("TOPLEFT", o, "TOPLEFT", 15, -20)
+	o.bigText:SetPoint("RIGHT", o, "RIGHT", -15, 0)
+
+	o.smallText = o:CreateFontString(nil, "ARTWORK", "GameFontWhite")
+	o.smallText:SetText("Your gems are 100% optimal! You are truly, truly outrageous.")
+	o.smallText:SetPoint("TOPLEFT", o.bigText, "BOTTOMLEFT", 0, -7)
+	o.smallText:SetPoint("RIGHT", o, "RIGHT", -15, 0)
+	o.smallText:SetWidth(o.smallText:GetWidth())
+	o.smallText:SetJustifyH("CENTER")
+
+	o:SetBackdrop({edgeFile = "Interface\\AddOns\\AskMrRobot\\Media\\round-edge-big", edgeSize = 16})
+	o:SetBackdropBorderColor(7/255, 166/255, 11/255)
+
+	-- return the instance of the RobotStamp
+	return o
+end
\ No newline at end of file