annotate ui/HelpTab.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 |
e77e01abce98 |
rev |
line source |
adam@0
|
1 local _, AskMrRobot = ...
|
yellowfive@11
|
2 local L = AskMrRobot.L;
|
adam@0
|
3
|
adam@0
|
4 -- initialize the HelpTab class
|
adam@0
|
5 AskMrRobot.HelpTab = AskMrRobot.inheritsFrom(AskMrRobot.Frame)
|
adam@0
|
6
|
adam@0
|
7 function AskMrRobot.HelpTab:new(parent)
|
adam@0
|
8
|
adam@0
|
9 local tab = AskMrRobot.Frame:new(nil, parent)
|
adam@0
|
10 setmetatable(tab, { __index = AskMrRobot.HelpTab })
|
adam@0
|
11 tab:SetPoint("TOPLEFT")
|
adam@0
|
12 tab:SetPoint("BOTTOMRIGHT")
|
adam@0
|
13 tab:Hide()
|
adam@0
|
14
|
adam@0
|
15 local text = tab:CreateFontString("AmrHelpText1", "ARTWORK", "GameFontNormalLarge")
|
adam@0
|
16 text:SetPoint("TOPLEFT", 0, -5)
|
yellowfive@11
|
17 text:SetText(L.AMR_HELPTAB_TITLE)
|
adam@0
|
18
|
adam@0
|
19 local text2 = tab:CreateFontString(nil, "ARTWORK", "GameFontWhite")
|
adam@0
|
20 text2:SetPoint("TOPLEFT", text, "BOTTOMLEFT", 0, -20)
|
adam@0
|
21 text2:SetPoint("RIGHT", tab, "RIGHT", -25, -20)
|
adam@0
|
22 text2:SetWidth(text2:GetWidth())
|
yellowfive@11
|
23 text2:SetText(L.AMR_HELPTAB_LINK ..
|
yellowfive@11
|
24 L.AMR_HELPTAB_Q1 ..
|
yellowfive@11
|
25 L.AMR_HELPTAB_A1 ..
|
yellowfive@11
|
26 L.AMR_HELPTAB_Q2 ..
|
yellowfive@11
|
27 L.AMR_HELPTAB_A2 ..
|
yellowfive@11
|
28 L.AMR_HELPTAB_Q3 ..
|
yellowfive@11
|
29 L.AMR_HELPTAB_A3 ..
|
yellowfive@11
|
30 L.AMR_HELPTAB_Q4 ..
|
yellowfive@11
|
31 L.AMR_HELPTAB_A4 ..
|
yellowfive@11
|
32 L.AMR_HELPTAB_Q5 ..
|
yellowfive@11
|
33 L.AMR_HELPTAB_A5)
|
adam@0
|
34 --text2:SetHeight(100)
|
adam@0
|
35 text2:SetJustifyH("LEFT")
|
adam@0
|
36
|
adam@0
|
37 return tab
|
adam@0
|
38 end |