Mercurial > wow > askmrrobot
comparison ui/HelpTab.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 |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:ec731d2fe6ba |
|---|---|
| 1 local _, AskMrRobot = ... | |
| 2 | |
| 3 -- initialize the HelpTab class | |
| 4 AskMrRobot.HelpTab = AskMrRobot.inheritsFrom(AskMrRobot.Frame) | |
| 5 | |
| 6 function AskMrRobot.HelpTab:new(parent) | |
| 7 | |
| 8 local tab = AskMrRobot.Frame:new(nil, parent) | |
| 9 setmetatable(tab, { __index = AskMrRobot.HelpTab }) | |
| 10 tab:SetPoint("TOPLEFT") | |
| 11 tab:SetPoint("BOTTOMRIGHT") | |
| 12 tab:Hide() | |
| 13 | |
| 14 local text = tab:CreateFontString("AmrHelpText1", "ARTWORK", "GameFontNormalLarge") | |
| 15 text:SetPoint("TOPLEFT", 0, -5) | |
| 16 text:SetText("Help") | |
| 17 | |
| 18 local text2 = tab:CreateFontString(nil, "ARTWORK", "GameFontWhite") | |
| 19 text2:SetPoint("TOPLEFT", text, "BOTTOMLEFT", 0, -20) | |
| 20 text2:SetPoint("RIGHT", tab, "RIGHT", -25, -20) | |
| 21 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 "|c00999999Q:|r Do I have to get a new text-string every time I need to optimize?\r" .. | |
| 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 "|c00999999Q:|r The belt buckle didn't show up in my list.\r" .. | |
| 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 "|c00999999Q:|r My cogwheels/tinkers didn't show up.\r".. | |
| 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 "|c00999999Q:|r Can I send my shopping list to an alt?\r".. | |
| 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 "|c00999999Q:|r I am in the middle of a raid and just won a piece of loot. Can I optimize really quick\r".. | |
| 32 "|c0066dd66A:|r Yes! You'll want to read the tutorial on that here: |c003333ffhttp://blog.askmrrobot.com/addon#raid|r") | |
| 33 --text2:SetHeight(100) | |
| 34 text2:SetJustifyH("LEFT") | |
| 35 | |
| 36 return tab | |
| 37 end |
