actionHandler communication
Posted: 25 Mar 2016, 10:30
I'm going to implement a way for textActions from the actionHandlers to appear as autocomplete suggestions in Chonsole. Within Chonsole, I've already added functionality to insert/remove suggestions on the fly. What's left to do is:
(1) A way of retrieving the current textActions from the LuaUI actionHandler; options are to poll from widgetHandler.actionHandler, or give the actionHandler a way to modify Chonsoles suggestions directly. Neither is difficult, but which is best depends on future plans for the actionHandler.
(2) A way of retrieving the current textActions from the LuaRules actionHandler; I guess that it would be best to have the LuaRules actionHandler send updates to its actions tables (through a Script.LuaUI call) to the LuaUI actionHandler, which then maintains track of what the LuaRules one has in store.
So, I would like to know future plans (if any?) for the actionHandlers (LuaUI<->LuaRules? engine integration? etc). Aimed mostly at gajop/jK because I can see from the code that you've both planned/thought about this in the past.
If there is nothing planned, I'll simply implement it all myself
In which case, thoughts on best design also welcome.
(1) A way of retrieving the current textActions from the LuaUI actionHandler; options are to poll from widgetHandler.actionHandler, or give the actionHandler a way to modify Chonsoles suggestions directly. Neither is difficult, but which is best depends on future plans for the actionHandler.
(2) A way of retrieving the current textActions from the LuaRules actionHandler; I guess that it would be best to have the LuaRules actionHandler send updates to its actions tables (through a Script.LuaUI call) to the LuaUI actionHandler, which then maintains track of what the LuaRules one has in store.
So, I would like to know future plans (if any?) for the actionHandlers (LuaUI<->LuaRules? engine integration? etc). Aimed mostly at gajop/jK because I can see from the code that you've both planned/thought about this in the past.
If there is nothing planned, I'll simply implement it all myself
