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