The International Simutrans Forum

Development => Scripting Scenarios and AI => Topic started by: Yona-TYT on November 18, 2022, 05:40:06 PM

Title: How to disable the debug tab
Post by: Yona-TYT on November 18, 2022, 05:40:06 PM
I wonder if it is possible to disable or at least not show so much data (I don't think they are very useful for the end user.)
Captura desde 2022-11-18 13-35-17.png
Title: Re: How to disable the debug tab
Post by: Dwachs on November 18, 2022, 08:29:24 PM
You can implement your own get_debug_text() method to show some custom data. It is currently not possible to disable the tab.
Title: Re: How to disable the debug tab
Post by: Dwachs on November 19, 2022, 12:21:47 PM
with r10812 you can disable the tab by returning null in get_debug_text:
function get_debug_text(pl)
{
return null
}
Title: Re: How to disable the debug tab
Post by: Yona-TYT on November 19, 2022, 12:33:00 PM
great thank you very much. 8)