m
→Tabs in LUA
m (→Conclusion) |
m (→Tabs in LUA) |
||
| 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 called | * SetNumTabs() is basically adding an attribute to our frame called myFrame 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. | ||