Mercurial > wow > askmrrobot
comparison ui/HelpTab.lua @ 17:e77e01abce98
Warlords of Draenor pre-patch
author | Adam tegen <adam.tegen@gmail.com> |
---|---|
date | Mon, 13 Oct 2014 21:28:32 -0500 |
parents | ece9167c0d1c |
children |
comparison
equal
deleted
inserted
replaced
16:9793e8b683d2 | 17:e77e01abce98 |
---|---|
15 local text = tab:CreateFontString("AmrHelpText1", "ARTWORK", "GameFontNormalLarge") | 15 local text = tab:CreateFontString("AmrHelpText1", "ARTWORK", "GameFontNormalLarge") |
16 text:SetPoint("TOPLEFT", 0, -5) | 16 text:SetPoint("TOPLEFT", 0, -5) |
17 text:SetText(L.AMR_HELPTAB_TITLE) | 17 text:SetText(L.AMR_HELPTAB_TITLE) |
18 | 18 |
19 local text2 = tab:CreateFontString(nil, "ARTWORK", "GameFontWhite") | 19 local text2 = tab:CreateFontString(nil, "ARTWORK", "GameFontWhite") |
20 text2:SetPoint("TOPLEFT", text, "BOTTOMLEFT", 0, -20) | 20 text2:SetPoint("TOPLEFT", text, "BOTTOMLEFT", 0, -10) |
21 text2:SetPoint("RIGHT", tab, "RIGHT", -25, -20) | 21 text2:SetPoint("RIGHT", tab, "RIGHT", -25, -8) |
22 text2:SetWidth(text2:GetWidth()) | 22 text2:SetWidth(text2:GetWidth()) |
23 text2:SetText(L.AMR_HELPTAB_LINK .. | |
24 L.AMR_HELPTAB_Q1 .. | |
25 L.AMR_HELPTAB_A1 .. | |
26 L.AMR_HELPTAB_Q2 .. | |
27 L.AMR_HELPTAB_A2 .. | |
28 L.AMR_HELPTAB_Q3 .. | |
29 L.AMR_HELPTAB_A3 .. | |
30 L.AMR_HELPTAB_Q4 .. | |
31 L.AMR_HELPTAB_A4 .. | |
32 L.AMR_HELPTAB_Q5 .. | |
33 L.AMR_HELPTAB_A5) | |
34 --text2:SetHeight(100) | |
35 text2:SetJustifyH("LEFT") | 23 text2:SetJustifyH("LEFT") |
24 text2:SetText(L.AMR_HELPTAB_LINK) | |
25 | |
26 local answer = text2 | |
27 for i = 1, 6 do | |
28 text = AskMrRobot.FontString:new(tab, nil, "ARTWORK", "GameFontWhite") | |
29 text:SetPoint("TOPLEFT", answer, "BOTTOMLEFT", 0, -11) | |
30 text:SetPoint("RIGHT", -18, 0) | |
31 text:SetWidth(text2:GetWidth()) | |
32 text:SetJustifyH("LEFT") | |
33 text:SetText(L['AMR_HELPTAB_Q' .. i]) | |
34 text:IncreaseFontSize(1) | |
35 text:SetTextColor(1,1,1) | |
36 | |
37 answer = tab:CreateFontString(nil, "ARTWORK", "GameFontWhite") | |
38 answer:SetPoint("TOPLEFT", text, "BOTTOMLEFT", 0, -4) | |
39 answer:SetPoint("RIGHT", tab, "RIGHT", -18, 0) | |
40 answer:SetWidth(text2:GetWidth()) | |
41 answer:SetJustifyH("LEFT") | |
42 answer:SetText(L['AMR_HELPTAB_A' .. i]) | |
43 answer:SetTextColor(0.7,0.7,0.7) | |
44 end | |
36 | 45 |
37 return tab | 46 return tab |
38 end | 47 end |