// use : DEFINE_SCRIPT_SPECIAL(scriptName, functionName, parameters, helpString) DEFINE_SCRIPT_SPECIAL(XML_Parse, SCRIPT_Xml2Lua, CATEGORY(Special), "Convert a XML data into lua table") DEFINE_SCRIPT_SPECIAL(XML_ParseFile, SCRIPT_XmlFile2Lua, CATEGORY(Special), "Convert a XML File into lua table") #ifndef SKIMMED_NET DEFINE_SCRIPT_SPECIAL(SendFlash, SCRIPT_SendFlash, CATEGORY(Special), "Send a lua command into socket (broadcast)") #endif DEFINE_SCRIPT_SPECIAL(TableToString, TableToString, CATEGORY(Special), "Convert a lua table/element into string") DEFINE_SCRIPT_SPECIAL(StringToTable, StringToTable, CATEGORY(Special), "Convert a string into lua table/element") DEFINE_SCRIPT_SPECIAL(UpdateEvents, UpdateEvents, CATEGORY(Special), "Update lua events. Warning, only use it when you add or remove an event.") DEFINE_SCRIPT_SPECIAL(AddEvent, AddToEvents, CATEGORY(Special) PARAM_STRING(eventName), "Add a single event") DEFINE_SCRIPT_SPECIAL(GetEventsData, GetEventsData, CATEGORY(Special), "Get the data on an event:
Mouse events: {x=XXX, y=XXX, keys={control|lbutton|mbutton|rbutton|shift}, value=XXX}
Key events: int value representing VK_ value of a character
onDropFiles: string path") DEFINE_SCRIPT_SPECIAL(dofile, SCRIPT_DoFile, CATEGORY(Special), "Redefinition of lua dofile") DEFINE_SCRIPT_SPECIAL(APP_ValueSet, IniValueSet, CATEGORY(Application) PARAM_STRING(Var_Path) PARAM_VALUE_OPT(Var_Value) PARAM_STRING_OPT(Bloc_Name, "Camcam.ccm"), "Set the value of a variable in a memory bloc.") DEFINE_SCRIPT_SPECIAL(APP_ValueGet, IniValueGet, CATEGORY(Application) PARAM_STRING(Var_Path) PARAM_STRING_OPT(Var_Default_Value, "NIL") PARAM_STRING_OPT(Bloc_Name, "Camcam.ccm"), "Get the value of a variable set in a memory bloc or the default value if it doesnt exist.") //DEFINE_SCRIPT_SPECIAL(APP_ValueGetFromServer, IniValueGetFromServer, // CATEGORY(Application) PARAM_STRING(Var_Path) PARAM_STRING_OPT(Var_Default_Value, "NIL") PARAM_STRING_OPT(Bloc_Name, "Camcam.ccm"), // "Get the value of a variable set in a memory bloc or the default value if it doesnt exist.") DEFINE_SCRIPT_SPECIAL(APP_ValueDel, IniValueDel, CATEGORY(Application) PARAM_STRING(Var_Path) PARAM_STRING_OPT(Bloc_Name, "Camcam.ccm"), "Del the value of a variable set in a memory bloc.") DEFINE_SCRIPT_SPECIAL(APP_ValueSave, IniSave, CATEGORY(Application) PARAM_STRING_OPT(Bloc_Name, "Camcam.ccm"), "Save the contents of a memory bloc in a CCM file.") DEFINE_SCRIPT_SPECIAL(APP_ValueDestroy, IniDestroy, CATEGORY(Application) PARAM_STRING_OPT(Bloc_Name, "Camcam.ccm"), "Destroy IN MEMORY ONLY a CCM.") DEFINE_SCRIPT_SPECIAL(APP_GetAccountInfo, GetAccountInfo, CATEGORY(Application), "Return an associative array with the following keys: 'v' (Protocol Number), 'ia' (idAccount)") DEFINE_SCRIPT_SPECIAL(APP_AddCredits, AddCredits, CATEGORY(Application) PARAM_NUMBER(amount), "Add some credits to the account (makes a server request). [TEMP]") DEFINE_SCRIPT_SPECIAL(APP_OpenExternalBrowser, OpenExternalBrowser, CATEGORY(Application) PARAM_STRING(url) PARAM_INT_OPT(pageIndex, 0), "Open an external browser to visit an URL (the URL must begin with 'http://', or be empty in which case the YouUp website is open using auto-log-in if possible, and uses optional arg: 0=Profile, 1=Collection, 2=BugReport, 3=Forum, 4=Help, 5=MoreCredits, 6=Register)") //DEFINE_SCRIPT_SPECIAL(NET_GetHTTPProxy, GetHTTPProxy, // CATEGORY(Network), // "Return the proxy address, or empty string for direct, or nil for auto-configuration (call only after first connection, usually log-in).") // //DEFINE_SCRIPT_SPECIAL(NET_SetRecommendedHTTPProxy, SetRecommendedHTTPProxy, // CATEGORY(Network) PARAM_STRING(proxyAddr), // "Set the recommended proxy address (this can speed up the first connection if successful, by bypssing auto-detection), or empty string for direct (don't call for auto-config) (call only before first connection, usually log-in).") // DEFINE_SCRIPT_SPECIAL(NET_HTTPGet, HTTPGet, CATEGORY(Network) PARAM_STRING(url) PARAM_STRING_OPT(destFile, "") PARAM_BOOL_OPT(verbose, false) PARAM_NUMBER_OPT(channel, 0), "Get a HTTP page, either returned as string or written to file (then boolean is returned)") DEFINE_SCRIPT_SPECIAL(NET_HTTPPost, HTTPPost, CATEGORY(Network) PARAM_STRING(url) PARAM_STRING(args) PARAM_STRING_OPT(destFile, "") PARAM_BOOL_OPT(verbose, false) PARAM_NUMBER_OPT(channel, 0), "Post params (syntax: a=u&b=v) to a HTTP page, either returned as string or written to file (then boolean is returned)") DEFINE_SCRIPT_SPECIAL(NET_HTTPPostMultipart, HTTPPostMultipart, CATEGORY(Network) PARAM_STRING(url) PARAM_STRING(args) PARAM_STRING_OPT(destFile, "") PARAM_BOOL_OPT(verbose, false) PARAM_NUMBER_OPT(channel, 0), "Post params (syntax: a=u&b=v&c=@filename, where @ indicates a file to be sent) to a HTTP page, either returned as string or written to file (then boolean is returned)") DEFINE_SCRIPT_SPECIAL(NET_JSONToTable, JSONToTable, CATEGORY(Network) PARAM_STRING(jsonStr), "Parse the provided JSON string and returns the corresponding table hierarchy") DEFINE_SCRIPT_SPECIAL(APP_ValueLoad, IniLoad, CATEGORY(Application) PARAM_STRING_OPT(Bloc_Name, "Camcam.ccm"), "Load (or reload) the contents of a CCM file in the memory.") DEFINE_SCRIPT_SPECIAL(FILE_Enum, EnumFiles, CATEGORY(File) PARAM_STRING(dirname) PARAM_INT_OPT(recuriv, 0) PARAM_STRING_OPT(extension, "") PARAM_INT_OPT(fullInfo, 0), "Create table with file enumeration") DEFINE_SCRIPT_SPECIAL(SCN_ObjectList, GetObjectList, CATEGORY(Small Scene) PARAM_SCENE(SmSc) PARAM_INT_OPT(onlyMesh, 0), "Get list of all scene objects (with parent index)") DEFINE_SCRIPT_SPECIAL(SCN_MatList, GetMatList, CATEGORY(Small Scene) PARAM_SCENE(SmSc), "Get list of all materials in scene") DEFINE_SCRIPT_SPECIAL(SCN_MediaList, GetMediaList, CATEGORY(Small Scene) PARAM_SCENE(SmSc), "Get list of all media in scene") DEFINE_SCRIPT_SPECIAL(SCN_MultiMaterialNew, SCRIPT_SmallSceneNewMultiMaterial, CATEGORY(Small Scene) PARAM_SCENE(SmSc) PARAM_STRING(MultiMat) PARAM_STRING_OPT(ObjectName, "") PARAM_LIST_INT(MatList), "Create Multimaterial with the specifi material list (list of mat name, not int ...)") /* DEFINE_SCRIPT_SPECIAL(APP_IniValueSet, IniValueSetOld, CATEGORY(Deprecated) PARAM_STRING(Var_Path) PARAM_VALUE_OPT(Var_Value) PARAM_STRING_OPT(Bloc_Name, "Camcam.ccm"), "Set the value of a variable in a memory bloc.") DEFINE_SCRIPT_SPECIAL(APP_IniValueGet, IniValueGetOld, CATEGORY(Deprecated) PARAM_STRING(Var_Path) PARAM_STRING_OPT(Var_Default_Value, "NIL") PARAM_STRING_OPT(Bloc_Name, "Camcam.ccm"), "Get the value of a variable set in a memory bloc or the default value if it doesnt exist.") DEFINE_SCRIPT_SPECIAL(APP_IniValueDel, IniValueDelOld, CATEGORY(Deprecated) PARAM_STRING(Var_Path) PARAM_STRING_OPT(Bloc_Name, "Camcam.ccm"), "Del the value of a variable set in a memory bloc.") */