04-15-2013 02:14 AM
In Sample06 of gameplay I found that a menu is shown. I am invesdicating on that and found a .form file containg a .theme file and .theme file containing .png (texture). And also I saw in .form file there are lots of label & button specifying there fixed position.
Now my question is can I draw label/button dynamically in any position from my C++ code and also is it necessary to use .form, .there and .png file ??
Thanks for your co-operation.
04-15-2013 02:57 PM
You can create UI forms programmatically without the use of a .form file. You do however need a .theme file and a theme image. The following method creates a form from C++ code:
static Form* create(const char* id, Theme:tyle* style, Layout::Type layoutType = Layout::LAYOUT_ABSOLUTE);