From 50d8ee8eee619e8c406b85bb69766e9adac3ef78 Mon Sep 17 00:00:00 2001 From: Winston <44872771+winston-yallow@users.noreply.github.com> Date: Tue, 30 May 2023 21:16:29 +0200 Subject: [PATCH] Expose ProjectSettings.set_as_internal() --- core/config/project_settings.cpp | 1 + doc/classes/ProjectSettings.xml | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/core/config/project_settings.cpp b/core/config/project_settings.cpp index 2b18319a2570..c374fdb84fad 100644 --- a/core/config/project_settings.cpp +++ b/core/config/project_settings.cpp @@ -1207,6 +1207,7 @@ void ProjectSettings::_bind_methods() { ClassDB::bind_method(D_METHOD("get_order", "name"), &ProjectSettings::get_order); ClassDB::bind_method(D_METHOD("set_initial_value", "name", "value"), &ProjectSettings::set_initial_value); ClassDB::bind_method(D_METHOD("set_as_basic", "name", "basic"), &ProjectSettings::set_as_basic); + ClassDB::bind_method(D_METHOD("set_as_internal", "name", "internal"), &ProjectSettings::set_as_internal); ClassDB::bind_method(D_METHOD("add_property_info", "hint"), &ProjectSettings::_add_property_info_bind); ClassDB::bind_method(D_METHOD("set_restart_if_changed", "name", "restart"), &ProjectSettings::set_restart_if_changed); ClassDB::bind_method(D_METHOD("clear", "name"), &ProjectSettings::clear); diff --git a/doc/classes/ProjectSettings.xml b/doc/classes/ProjectSettings.xml index 55cef92f16d3..311b37b1b155 100644 --- a/doc/classes/ProjectSettings.xml +++ b/doc/classes/ProjectSettings.xml @@ -185,6 +185,14 @@ Defines if the specified setting is considered basic or advanced. Basic settings will always be shown in the project settings. Advanced settings will only be shown if the user enables the "Advanced Settings" option. + + + + + + Defines if the specified setting is considered internal. An internal setting won't show up in the Project Settings dialog. This is mostly useful for addons that need to store their own internal settings without exposing them directly to the user. + +