This 260-lines-function with half a dozen string buffers does all kinds of stuff, and a lot of it is just backwards compatibility with Clonk 4 or so. Can somebody check what's still needed (just look at the docs and the usages in the planet folder) and propose a saner API?
What always bothered me was that you cannot specify a custom "footer" for the menues (gold/manacost/components).
PS: We will need more complex menus at some point anyway (content handling, multiple open menus) - so if anyone feels motivated to do that... :)
PS: We will need more complex menus at some point anyway (content handling, multiple open menus) - so if anyone feels motivated to do that... :)
A lot of the parameters just control the menu item symbol. I propose we change the first parameter to be flexible enough to define the symbol in a standard way - e.g. using the ImageSpecs also used elsewhere.
Hm, couldn't we change it to something proplist-based? That would naturally deal with all the optional stuff menus can currently have.
Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill