News:

SimuTranslator
Make Simutrans speak your language.

[r9531] script tool icon is not shown when menu key contains ")"

Started by THLeaderH, January 09, 2021, 12:27:36 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

THLeaderH

In r9531, the script tool icon is not shown in menubar when the menu key of the script tool contains ")" character. This is just a parsing problem and should be fixed with the attached patch.

prissi

I do not think that get_sound will work with that too. So maybe a little more effort is needed. Still submitted this, thank you.

THLeaderH

script_tool_manager_t::fill_menu() does not take sound parameter. To be precise, the function ignores the sound argument.

prissi

But it should be possible to connect a sound to it, I think.

Dwachs

Parsley, sage, rosemary, and maggikraut.

prissi

Probably the get_sound() call should go then as well. Although building definitively makes noise.