Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
WoW
Talk
English
Views
Read
Edit
History
More
Search
Navigation
Home
Random page
Help using wiki
Editions
for WoW
for WildStar
for Solar2D
Documentation
for WoW
for WildStar
Reference
WoW
⦁ FrameXML
⦁ AddOns
⦁ API
⦁ WoW Lua
WildStar
⦁ AddOns
⦁ API
⦁ WildStar Lua
Engine
Tools
What links here
Related changes
Special pages
Page information
Site
Recent Changes
Editing
WoW:Earth (AddOn)/Using earth to create a QuestLog
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Starting the Code == Then, going into our PartyQuests.lua file, we create: function PartyQuests_Frame_OnLoad() local ebf = getglobal(this:GetName().."Tree".."ExpandButtonFrame"); ebf:SetPoint("TOPLEFT", ebf:GetParent():GetName(), "TOPLEFT", 50, 1); getglobal(this:GetName().."ExitButton"):Hide(); getglobal(this:GetName().."TitleText"):SetText(PARTYQUESTS_TITLE_TEXT); end First, we move the +All frame a bit to the right, then hide the Exit Button and set the Title text. This just makes it look nicer. Next, we add the dummy function: function PartyQuests_Frame_OnLoad() local ebf = getglobal(this:GetName().."Tree".."ExpandButtonFrame"); ebf:SetPoint("TOPLEFT", ebf:GetParent():GetName(), "TOPLEFT", 50, 1); getglobal(this:GetName().."ExitButton"):Hide(); getglobal(this:GetName().."TitleText"):SetText(PARTYQUESTS_TITLE_TEXT); local testTable = {1,2,3, {4, 5, {6,7}, 8}, 9}; EarthTree_LoadTable( getglobal(this:GetName().."Tree"), testTable, { onClick = function(a) Sea.io.printTable(a); end; } ); EarthTree_UpdateFrame( getglobal(this:GetName().."Tree") ); end EarthTable_LoadTable will put the data into the tree. Once the data is inside we don't need to call LoadTable unless the data changes. Then EarthTree_UpdateFrame will draw the information to the screen. For the sake of speed, I'm going to pass on screenshotting this. Try it out!
Summary:
Please note that all contributions to AddOn Studio are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
AddOn Studio Wiki:Copyrights
for details).
Submissions must be written by you, or copied from a public domain or similar free resource (see
AddOn Studio Wiki:Copyrights
for details).
Cancel
Editing help
(opens in new window)