This is what I intended to say. Thanks, Skisoccer!
m (→Tabs in LUA) |
(This is what I intended to say. Thanks, Skisoccer!) |
||
| Line 53: | Line 53: | ||
Now, what have we just done? Let's take a look at the UIPanelTemplates.LUA: | Now, what have we just done? Let's take a look at the UIPanelTemplates.LUA: | ||
* SetNumTabs() is basically adding an attribute to our frame | * SetNumTabs() is basically adding an attribute numTabs to our frame containing the value of n | ||
* In the next line we specify another attribute by ourselve, selectedTab | * In the next line we specify another attribute by ourselve, selectedTab | ||
* The UpdateTabs is a bit more sophisticated. Basically, it takes care of setting up the buttons like we've already seen in other tabbed windows like the characterframe. This function already uses the prior defined numTabs and selectedTab attributes. | * The UpdateTabs is a bit more sophisticated. Basically, it takes care of setting up the buttons like we've already seen in other tabbed windows like the characterframe. This function already uses the prior defined numTabs and selectedTab attributes. | ||