I asked about this a few months ago, and I know at least one person has figured it out, but I haven't had much luck myself despite spending pretty considerable time trying, so I thought I'd ask again.
Can anyone give a quick example of adding a tab to the HTML5 client?
Ideally, I would love a minimal example that:
- Creates a new inactive tab called "My New Tab" and adds it to the upper-right container.
- Swaps to that tab (I'd like to see how to swap tabs with a function rather than by clicking so I can automate it - e.g., so I can swap to my limb counter's display whenever I get into combat).
- Pushes a paragraph of text into the tab.
- Updates the tab, replacing that paragraph of text with a different paragraph of text.
- Updates the tab, appending below the existing paragraph (not as essential - if there isn't an easy way to append, I can always just keep the string, append to it, and replace the tab content as in #4).
Ideally the tab would retain the styling of the existing tabs, and integrate with the right-click context menu for instance, though obviously neither of those are essential.@Sarapis
, I know you said documentation was forthcoming, but (especially because I got the sense that this sort of more-advanced UI stuff wouldn't be in it) is there any chance you could get whoever is writing the client to pop over and bang out a quick, simple example of the above? I know I'm not the only person interested in answers to these particular questions and it's the only thing really holding me back with the HTML5 client right now.