diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-04-19 22:50:55 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-04-19 22:50:55 +0300 |
commit | 1e1398a0c731dab75d5ca5d7077af68cc6104769 (patch) | |
tree | 87fafbcd6a086f4586b53e1c46d680e684521779 /src/emap/init.c | |
parent | 095588880ef3c2577fc9e6a81da20479c56f5bf7 (diff) | |
download | plugin-1e1398a0c731dab75d5ca5d7077af68cc6104769.tar.gz plugin-1e1398a0c731dab75d5ca5d7077af68cc6104769.tar.bz2 plugin-1e1398a0c731dab75d5ca5d7077af68cc6104769.tar.xz plugin-1e1398a0c731dab75d5ca5d7077af68cc6104769.zip |
Add script functions for manipulate item options.
New functions:
getitemoptionidbyindex
getitemoptionvaluebyindex
getitemoptionparambyindex
setitemoptionbyindex
Diffstat (limited to 'src/emap/init.c')
-rw-r--r-- | src/emap/init.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/emap/init.c b/src/emap/init.c index 341f9dd..ee03f84 100644 --- a/src/emap/init.c +++ b/src/emap/init.c @@ -190,6 +190,10 @@ HPExport void plugin_init (void) addScriptCommand("tolabel", "i", toLabel); addScriptCommand("input", "r??", input); addScriptCommand("slide", "ii", slide); + addScriptCommand("getitemoptionidbyindex", "ii", getItemOptionIdByIndex); + addScriptCommand("getitemoptionvaluebyindex", "ii", getItemOptionValueByIndex); + addScriptCommand("getitemoptionparambyindex", "ii", getItemOptionParamByIndex); + addScriptCommand("setitemoptionbyindex", "iii*", setItemOptionByIndex); do_init_langs(); |