comparison 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
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 HelpTab class 4 -- initialize the HelpTab class
4 AskMrRobot.HelpTab = AskMrRobot.inheritsFrom(AskMrRobot.Frame) 5 AskMrRobot.HelpTab = AskMrRobot.inheritsFrom(AskMrRobot.Frame)
5 6
6 function AskMrRobot.HelpTab:new(parent) 7 function AskMrRobot.HelpTab:new(parent)
11 tab:SetPoint("BOTTOMRIGHT") 12 tab:SetPoint("BOTTOMRIGHT")
12 tab:Hide() 13 tab:Hide()
13 14
14 local text = tab:CreateFontString("AmrHelpText1", "ARTWORK", "GameFontNormalLarge") 15 local text = tab:CreateFontString("AmrHelpText1", "ARTWORK", "GameFontNormalLarge")
15 text:SetPoint("TOPLEFT", 0, -5) 16 text:SetPoint("TOPLEFT", 0, -5)
16 text:SetText("Help") 17 text:SetText(L.AMR_HELPTAB_TITLE)
17 18
18 local text2 = tab:CreateFontString(nil, "ARTWORK", "GameFontWhite") 19 local text2 = tab:CreateFontString(nil, "ARTWORK", "GameFontWhite")
19 text2:SetPoint("TOPLEFT", text, "BOTTOMLEFT", 0, -20) 20 text2:SetPoint("TOPLEFT", text, "BOTTOMLEFT", 0, -20)
20 text2:SetPoint("RIGHT", tab, "RIGHT", -25, -20) 21 text2:SetPoint("RIGHT", tab, "RIGHT", -25, -20)
21 text2:SetWidth(text2:GetWidth()) 22 text2:SetWidth(text2:GetWidth())
22 text2:SetText("Visit |c003333ffhttp://blog.askmrrobot.com/addon/|r for a full tutorial and to ask questions.\r\r" .. 23 text2:SetText(L.AMR_HELPTAB_LINK ..
23 "|c00999999Q:|r Do I have to get a new text-string every time I need to optimize?\r" .. 24 L.AMR_HELPTAB_Q1 ..
24 '|c0066dd66A:|r Yes. Go to the website and click the green "Update from Armory" button to the left of your character to make sure you have the most up-to-date gear. Optimize your gear and then click the "Export to Addon" button to get your new text-string.\r\r' .. 25 L.AMR_HELPTAB_A1 ..
25 "|c00999999Q:|r The belt buckle didn't show up in my list.\r" .. 26 L.AMR_HELPTAB_Q2 ..
26 "|c0066dd66A:|r Correct, it's actually quite hard to detect it's status in-game, believe it or not. But we're working on a clever way to detect it!\r\r".. 27 L.AMR_HELPTAB_A2 ..
27 "|c00999999Q:|r My cogwheels/tinkers didn't show up.\r".. 28 L.AMR_HELPTAB_Q3 ..
28 "|c0066dd66A:|r Correct, we're working on adding those into the list as well... the problem is Mr. Robot has been using them to build other robots...\r\r".. 29 L.AMR_HELPTAB_A3 ..
29 "|c00999999Q:|r Can I send my shopping list to an alt?\r".. 30 L.AMR_HELPTAB_Q4 ..
30 '|c0066dd66A:|r Yes, go to the shopping list tab and select the "mail" option in the drop down. You can mail the list to your alt.\r\r'.. 31 L.AMR_HELPTAB_A4 ..
31 "|c00999999Q:|r I am in the middle of a raid and just won a piece of loot. Can I optimize really quick\r".. 32 L.AMR_HELPTAB_Q5 ..
32 "|c0066dd66A:|r Yes! You'll want to read the tutorial on that here: |c003333ffhttp://blog.askmrrobot.com/addon#raid|r") 33 L.AMR_HELPTAB_A5)
33 --text2:SetHeight(100) 34 --text2:SetHeight(100)
34 text2:SetJustifyH("LEFT") 35 text2:SetJustifyH("LEFT")
35 36
36 return tab 37 return tab
37 end 38 end