Regular API function


Description Saves one or several OpenGl-based custom UIs into a UI file (*.ttb-file). Any existing file with same name will be overwritten. See also simLoadUI, simSaveModel and simSaveScene.
C synopsis simInt simSaveUI(int count,const int* uiHandles,const simChar* filename)
C parameters
count: the number of UIs to save. Can be 0, in which case all UIs in the scene will be saved
uiHandles: a pointer to UI handles to save. Can be NULL if count is 0
filename: UI filename. The filename extension is required ("ttb")
C return value
-1 if operation was not successful. In a future release, a more differentiated return value might be available
Lua synopsis number result=simSaveUI(table uiHandles,string filename)
Lua parameters
Same as C-function
Lua return values
Same as C-function

All regular API functions on one page