Link new HOWTO that discusses how to minimize garbage of throw-away tables and have UI examples.
(Explains how to use UIDropDownMenu.) |
(Link new HOWTO that discusses how to minimize garbage of throw-away tables and have UI examples.) |
||
| Line 69: | Line 69: | ||
UIDropDownMenu_AddButton(info); | UIDropDownMenu_AddButton(info); | ||
end | end | ||
Note that careless use of throw-away tables can make your addon generate a lot of unnecessary memory garbage. This is especially true I you don't create menu only once, but recreate it dynamically every time it is displayed to place check marks or any other dynamic content where it needed. See [[HOWTO: Use Tables Without Generating Extra Garbage]] for some advices on how to minimize or eliminate completely garbage generation in such cases. | |||
== Step 4 : Showing the Menu == | == Step 4 : Showing the Menu == | ||