Topic: wl.ui.show_messagebox
kaputtnik Topic Opener |
Posted at: 2023-11-28, 16:35
Writing scripts for the editor may need to show the results of the script. Looking at the scripting API i found wl.ui.show_messagebox. Does this message box support wl.richtext? I have tried that but the result looks it doesn't support that... It would be nice if this box would also support richtext. Top Quote |
Nordfriese |
Posted at: 2023-11-28, 16:58
The text you seem to be using is not valid richtext… Richtext is always encapsulated in a toplevel Top Quote |
kaputtnik Topic Opener |
Posted at: 2023-11-28, 17:12
Arghhh, this richtext is really difficult for me.
Results in :
And:
Results in a crash and the error:
Yes, Top Quote |
kaputtnik Topic Opener |
Posted at: 2023-11-28, 17:14
The image of the first post was created like this:
Top Quote |
Nordfriese |
Posted at: 2023-11-28, 17:29
This is actually a cornercase bug. The last example ( Top Quote |
kaputtnik Topic Opener |
Posted at: 2023-11-28, 17:38
Maybe i misunderstand, but normal message boxes do not need an explicit rt-function call, see e.g. here: https://www.widelands.org/documentation/autogen_auxiliary_richtext/#lua-formatting-example Btw.: nice to see you again Top Quote |