From 1e1398a0c731dab75d5ca5d7077af68cc6104769 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 19 Apr 2017 22:50:55 +0300 Subject: Add script functions for manipulate item options. New functions: getitemoptionidbyindex getitemoptionvaluebyindex getitemoptionparambyindex setitemoptionbyindex --- src/emap/init.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/emap/init.c') 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(); -- cgit v1.2.3-70-g09d2