Feature: Allow AI/GS to be fully modified in scenario editor (#10152)

This commit is contained in:
Artin Alavi
2022-11-11 14:48:07 -08:00
committed by GitHub
parent 3f579fa7dc
commit 5d6cdf4385
3 changed files with 9 additions and 5 deletions

View File

@@ -442,7 +442,10 @@ struct GSConfigWindow : public Window {
private:
bool IsEditableItem(const ScriptConfigItem &config_item) const
{
return _game_mode == GM_MENU || (config_item.flags & SCRIPTCONFIG_INGAME) != 0;
return _game_mode == GM_MENU
|| _game_mode == GM_EDITOR
|| (config_item.flags & SCRIPTCONFIG_INGAME) != 0
|| _settings_client.gui.ai_developer_tools;
}
void SetValue(int value)