Mercurial > wow > askmrrobot
comparison ui/RobotStamp.lua @ 11:ece9167c0d1c v1.2.14.0
Localization support, combat log features (wipe command, aura/pet tracking, and realm detection).
author | yellowfive |
---|---|
date | Thu, 10 Jul 2014 12:24:59 -0700 |
parents | ec731d2fe6ba |
children |
comparison
equal
deleted
inserted
replaced
10:ef8b45e96b08 | 11:ece9167c0d1c |
---|---|
1 local _, AskMrRobot = ... | 1 local _, AskMrRobot = ... |
2 local L = AskMrRobot.L; | |
2 | 3 |
3 -- initialize the RobotStamp class (inherit from Frame) | 4 -- initialize the RobotStamp class (inherit from Frame) |
4 AskMrRobot.RobotStamp = AskMrRobot.inheritsFrom(AskMrRobot.Frame) | 5 AskMrRobot.RobotStamp = AskMrRobot.inheritsFrom(AskMrRobot.Frame) |
5 | 6 |
6 -- item icon contructor | 7 -- item icon contructor |
17 | 18 |
18 o.bigText = o:CreateFontString(nil, "ARTWORK", "GameFontNormalHuge") | 19 o.bigText = o:CreateFontString(nil, "ARTWORK", "GameFontNormalHuge") |
19 o.bigText:SetTextColor(7/255, 166/255, 11/255) | 20 o.bigText:SetTextColor(7/255, 166/255, 11/255) |
20 local file, _, flags = o.bigText:GetFont() | 21 local file, _, flags = o.bigText:GetFont() |
21 o.bigText:SetFont(file, 24, flags) | 22 o.bigText:SetFont(file, 24, flags) |
22 o.bigText:SetText("ROBOT STAMP OF APPROVAL") | 23 o.bigText:SetText(L.AMR_ROBOTSTAMP_TEXT) |
23 o.bigText:SetPoint("TOPLEFT", o, "TOPLEFT", 15, -20) | 24 o.bigText:SetPoint("TOPLEFT", o, "TOPLEFT", 15, -20) |
24 o.bigText:SetPoint("RIGHT", o, "RIGHT", -15, 0) | 25 o.bigText:SetPoint("RIGHT", o, "RIGHT", -15, 0) |
25 | 26 |
26 o.smallText = o:CreateFontString(nil, "ARTWORK", "GameFontWhite") | 27 o.smallText = o:CreateFontString(nil, "ARTWORK", "GameFontWhite") |
27 o.smallText:SetText("Your gems are 100% optimal! You are truly, truly outrageous.") | 28 o.smallText:SetText(AMR_ROBOTSTAMP_GEMS) |
28 o.smallText:SetPoint("TOPLEFT", o.bigText, "BOTTOMLEFT", 0, -7) | 29 o.smallText:SetPoint("TOPLEFT", o.bigText, "BOTTOMLEFT", 0, -7) |
29 o.smallText:SetPoint("RIGHT", o, "RIGHT", -15, 0) | 30 o.smallText:SetPoint("RIGHT", o, "RIGHT", -15, 0) |
30 o.smallText:SetWidth(o.smallText:GetWidth()) | 31 o.smallText:SetWidth(o.smallText:GetWidth()) |
31 o.smallText:SetJustifyH("CENTER") | 32 o.smallText:SetJustifyH("CENTER") |
32 | 33 |