Ask for help about creating mods and scripts for Grimrock 2 or share your tips, scripts, tools and assets with other modders here. Warning: forum contains spoilers!
Unless I am mistaken, onDrawUi is pretty tricky, and the context lines can only be called from within this hook (to be confirmed by more talented scripters...). I agree, I really don't like that, because for many UI stuff, it could become cumbersome pretty fast...
Thinking about that, and i'm asking for something .... possibly AH Devs could answer :
Script components seems having possibility to load external files, more else, JKos has proved that datas can be stored into entities ... could external scripts, defined as entities by hard coded definition, storing datas on the external file, or will just save datas to the savegame file ?