News:

Simutrans Tools
Know our tools that can help you to create add-ons, install and customize Simutrans.

function rules.allow_tool()

Started by Andarix, October 31, 2024, 10:41:17 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Andarix

It's strange, with rules.forbid_tool() you can hide toolbar buttons.

But with rules.allow_tool() you can't show them.

It works with normal tools.

https://dwachs.github.io/simutrans-sqapi-doc/classrules.html

Andarix

It's possible that this is because no tools are allowed for the menu. Empty menus are hidden.

The tutorial is quite confusing on this point.

Andarix

sorry, function works correct