Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New AIConfig flag: AICONFIG_AI_DEVELOPER - hides setting unless user have gui.ai_developer_tools = 1 #4700

Closed
DorpsGek opened this issue Jul 30, 2011 · 1 comment
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) patch from FlySpray This issue is in fact a Patch, but imported from FlySrpay

Comments

@DorpsGek
Copy link
Member

Zuu opened the ticket and wrote:

This patch adds a new flag AICONFIG_AI_DEVELOPER that an AI author can use in info.nut to indicate that an AI setting should only be available if the OpenTTD user have gui.ai_development_tools enabled.

The motivation for this patch is that AI authors can have a need for settings in their AI for development, which no user would have any use for. This patch make it possible for AI authors to add these settings but hide them from regular users so that the AI Settings window does not get cluttered.

The patch has been tested to be functional. An AI that demonstrate the patch has also been attached (ai_dev_test.tar).

How to test:
- Click AI Settings in game menu
- Select the "AI Dev Test" AI
- Click to configure the AI
- Open the console and toggle gui.ai_developer_tools on and off

When gui.ai_developer_tools is enabled an extra setting "Debug: Clock AI performance" show at the bottom of the window.

Attachments

Reported version: trunk
Operating system: All


This issue was imported from FlySpray: https://bugs.openttd.org/task/4700
@DorpsGek
Copy link
Member Author

DorpsGek commented Nov 8, 2011

Yexo closed the ticket.

Reason for closing: Implemented

In r23169, thanks for the patch


This comment was imported from FlySpray: https://bugs.openttd.org/task/4700

@DorpsGek DorpsGek closed this as completed Nov 8, 2011
@DorpsGek DorpsGek added flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) patch from FlySpray This issue is in fact a Patch, but imported from FlySrpay Script labels Apr 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) patch from FlySpray This issue is in fact a Patch, but imported from FlySrpay
Projects
None yet
Development

No branches or pull requests

1 participant