Thorsten wrote in Fri Aug 26, 2022 6:15 am:You wrote a complicated piece of simulation, with many options. However there is no weather related help anywhere in sim.
Well, let's say that the UI design is something that was hotly discussed and then a compromise found - it is not how I would have structured it, and indeed at one point a few years ago I planned to create a modern canvas UI with things like tooltips when I was told that canvas UIs are discouraged...
Speaking in general, it should be trivial to add an arbitrary tag with context related help to each PUI widget - e.g. something like <tooltip>Hello world</tooltip> - these could in turn be processed from Nasal space - and given that the new UI system is currently being developed using Nasal and Canvas, adding custom tags for such "meta information" is cheap and doable - the Nasal side of things would then simply set up a custom tooltip for each widget's "mouseover" event, i.e. in a corresponding for-each loop.
So if there is anything that people would consider useful/helpful or necessary, please make suggestions and share them here - adding a <tooltip></tooltip> to each PUI widget is free of charge, and can then be processed rather easily from scripting space. Localization is another matter however, because as far as I remember, the underlying APIs are not currently exposed to scripting space, so there really is no way to access that stuff, short of re-doing it in scripting/XML space - e.g. by using a Nasal hash with English descriptions as fallback, whenever a localized help string cannot be found.