Everything that I can find is either Hello World and nothing more advanced or good god you know just about everything and just need references. I alredy know xml, lua and some of the basic UI hooks.
My first project is display a table of information and preferably make it sortable. I want to have it similar to the guild roster window so I have been looking at Blizzard_GuildRoster xml and lua.
This is what I have so far and nothing is displaying in game, and for my OnShow the buttons is nil and I can't figure out why.
i'm guessing that "buttons" hasn't been defined by the time the OnShow event fires for the parent frame. you should check the blizz template code lua files to see when/where/how the buttons field is created.
TBH, your first problem is in your intent here. "My first project is display a table of information and preferably make it sortable"
While a table of information may seem simple in practice, the display part is quite complicated and sorting it is even more so. The way that blizzard's UI does the whole sroll frame is not a simple method to use.
-I'd recommend you start smaller, work with it in the chat frame first and then more to the other GUI elements.
-If you've already done that, then start smaller like with a simple frame of data that dosn't scroll.
Going on from that, there is a nice guide on wowpedia for the FauxScrollFrame that IMO is easier to use than the hybrid one
BTW, the whole of the Guild Roster is Load On Demand, so 99% of the objects in the roster don't exist till it's loaded by opening it. the default ui manually loads the GuildRoster & Friends when you hit the hotkey :)
Everything that I can find is either Hello World and nothing more advanced or good god you know just about everything and just need references. I alredy know xml, lua and some of the basic UI hooks.
My first project is display a table of information and preferably make it sortable. I want to have it similar to the guild roster window so I have been looking at Blizzard_GuildRoster xml and lua.
This is what I have so far and nothing is displaying in game, and for my OnShow the buttons is nil and I can't figure out why.
I do get Loaded Frame and Showing Frame in game as well as the ReloadButton
I believe that the reason why the onshow is nil is because there values for
and if you wanted to print and test my theory on the print line put this
While a table of information may seem simple in practice, the display part is quite complicated and sorting it is even more so. The way that blizzard's UI does the whole sroll frame is not a simple method to use.
-I'd recommend you start smaller, work with it in the chat frame first and then more to the other GUI elements.
-If you've already done that, then start smaller like with a simple frame of data that dosn't scroll.
Going on from that, there is a nice guide on wowpedia for the FauxScrollFrame that IMO is easier to use than the hybrid one
http://www.wowpedia.org/Making_a_scrollable_list_using_FauxScrollFrameTemplate
BTW, the whole of the Guild Roster is Load On Demand, so 99% of the objects in the roster don't exist till it's loaded by opening it. the default ui manually loads the GuildRoster & Friends when you hit the hotkey :)
Uhhh...
:confused: