From b4324e7a4516060d7491fbc11c33546b354749a3 Mon Sep 17 00:00:00 2001 From: Micky Date: Thu, 20 Oct 2022 22:27:52 +0200 Subject: Remove `PROPERTY_HINT_IMAGE_COMPRESS` constants These were used in 3.x but there's no reference of them in the codebase, at all. --- core/core_constants.cpp | 2 -- core/object/object.h | 2 -- doc/classes/@GlobalScope.xml | 68 +++++++++++++++++++------------------------- 3 files changed, 29 insertions(+), 43 deletions(-) diff --git a/core/core_constants.cpp b/core/core_constants.cpp index 0e8532a327..628740ed32 100644 --- a/core/core_constants.cpp +++ b/core/core_constants.cpp @@ -595,8 +595,6 @@ void register_global_constants() { BIND_CORE_ENUM_CONSTANT(PROPERTY_HINT_EXPRESSION); BIND_CORE_ENUM_CONSTANT(PROPERTY_HINT_PLACEHOLDER_TEXT); BIND_CORE_ENUM_CONSTANT(PROPERTY_HINT_COLOR_NO_ALPHA); - BIND_CORE_ENUM_CONSTANT(PROPERTY_HINT_IMAGE_COMPRESS_LOSSY); - BIND_CORE_ENUM_CONSTANT(PROPERTY_HINT_IMAGE_COMPRESS_LOSSLESS); BIND_CORE_ENUM_CONSTANT(PROPERTY_HINT_OBJECT_ID); BIND_CORE_ENUM_CONSTANT(PROPERTY_HINT_TYPE_STRING); diff --git a/core/object/object.h b/core/object/object.h index 7bb88998a2..16ad7b8832 100644 --- a/core/object/object.h +++ b/core/object/object.h @@ -71,8 +71,6 @@ enum PropertyHint { PROPERTY_HINT_EXPRESSION, ///< used for string properties that can contain multiple lines PROPERTY_HINT_PLACEHOLDER_TEXT, ///< used to set a placeholder text for string properties PROPERTY_HINT_COLOR_NO_ALPHA, ///< used for ignoring alpha component when editing a color - PROPERTY_HINT_IMAGE_COMPRESS_LOSSY, - PROPERTY_HINT_IMAGE_COMPRESS_LOSSLESS, PROPERTY_HINT_OBJECT_ID, PROPERTY_HINT_TYPE_STRING, ///< a type string, the hint is the base type to choose PROPERTY_HINT_NODE_PATH_TO_EDITED_NODE, ///< so something else can provide this (used in scripts) diff --git a/doc/classes/@GlobalScope.xml b/doc/classes/@GlobalScope.xml index ed404ea504..09713bce2f 100644 --- a/doc/classes/@GlobalScope.xml +++ b/doc/classes/@GlobalScope.xml @@ -2734,17 +2734,10 @@ Hints that a [Color] property should be edited without affecting its transparency ([member Color.a] is not editable). - - Hints that an image is compressed using lossy compression. The editor does not internally use this property hint. + - - Hints that an image is compressed using lossless compression. The editor does not internally use this property hint. - - - - - Hints that a property represents a particular type. If a property is [constant TYPE_STRING], allows to set a type from the create dialog. If you need to create an [Array] to contain elements of a specific type, the [code]hint_string[/code] must encode nested types using [code]":"[/code] and [code]"/"[/code] for specifying [Resource] types. - [b]Example:[/b] + + Hint that a property represents a particular type. If a property is [constant TYPE_STRING], allows to set a type from the create dialog. If you need to create an [Array] to contain elements of a specific type, the [code]hint_string[/code] must encode nested types using [code]":"[/code] and [code]"/"[/code] for specifying [Resource] types. For instance: [codeblock] hint_string = "%s:" % [TYPE_INT] # Array of integers. hint_string = "%s:%s:" % [TYPE_ARRAY, TYPE_REAL] # Two-dimensional array of floats. @@ -2753,56 +2746,53 @@ [/codeblock] [b]Note:[/b] The final colon is required for properly detecting built-in types. - + - + - + - + - + - + - + - + - + - - Hints that a property's size (in bytes) is too big to be displayed, when debugging a running project. The debugger uses this hint internally. + - + - + - + - + - + - + - - Hints that a [String] property is a locale code. Editing it will show a locale dialog for picking language and country. + + Hints that a string property is a locale code. Editing it will show a locale dialog for picking language and country. - - Hints that a [Dictionary] property is string translation map. Dictionary keys are locale codes and, values are translated strings. + + Hints that a dictionary property is string translation map. Dictionary keys are locale codes and, values are translated strings. - + - - Hints that a [Quaternion] property should disable the temporary euler editor. + + Hints that a quaternion property should disable the temporary euler editor. - - Hints that a [String] property is a password. Every character of the string is displayed as the secret character (typically [code]*[/code]). - An optional placeholder text can be shown on its input field, similarly to [constant PROPERTY_HINT_PLACEHOLDER_TEXT]. + + Hints that a string property is a password, and every character is replaced with the secret character. - - Represents the size of the [enum PropertyHint] enum. + The property is not stored, and does not display in the editor. This is the default for non-exported properties. -- cgit v1.2.3