-
Notifications
You must be signed in to change notification settings - Fork 158
Editor: consistent Script Name and Description/Name property labels #2824
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
base: master
Are you sure you want to change the base?
Editor: consistent Script Name and Description/Name property labels #2824
Conversation
This assigns consistent labels to "script name" and "description" kind of properties in all the game entities. This also makes them consistent with how they are called in script api. Only DisplayName of properties are changed, leaving property names as they are, so there should not be any compatibility issues and data format is not changed. The effect is purely in how the users will see these properties are called in the editor panel.
|
I don't know if it needs any change, but thought to mention... Audio Clips have a GetByName (which suggests... Name) and a property ScriptName. Should they also be updated to read ScriptName? Lines 179 to 189 in 9981bd4
Edit: actually it appears everything got a GetByName added which will make things more confusing if the Name now gets renamed as ScriptName. Shouldn't the "Name" be kept as "Description" to avoid confusion? |
It's already ScriptName in script, and this difference existed before. They both were added in this PR: Somehow nobody mentioned that it's bad. Renaming to "GetByScriptName", if desired, would require to add an alias, and keep old function name for backwards compatibility, maybe under the script api switch. |
I never thought about it, I guess I was used and didn't see that this difference between the Editor properties and Script API could cause confusion for someone newly arrived. I got the difference and then moved on with making games... |
|
I will wait a little and think more about this. |
There's a long time issue that the properties that tell "script name" and "human text name" are called differently in the Editor and in the script.
In the old Editor the settings were labelled "Name" and "Script O-Name" (maybe it means "object name", as in OOP).
In the new Editor they got different labels: "Description" for a human name, and "Name" for the script name.
But the script commands stayed the same.
This is an endless source of confusion for beginners, and maybe not only beginners (for example, see recent #2823.
This PR assigns consistent labels to "script name" and "description" kind of properties in all the game entities in the Editor. This also makes them consistent with how they are called in script api. Only labels of properties are changed, leaving property identifying names as they are, so there should not be any compatibility issues and the project data format is not changed. The effect is purely in how the users will see these properties are called in the editor panel.