godotengine / godotengine/godot-visual-script

Rename VisualScript properties and signals

Open
#4 3 comments 5 reactions 0 assignees View on GitHub
enhancement
Dominant language
C++
Stars
131
Forks
25
PR merge metrics
No merged PRs in 30d

Description

### Describe the project you are working on

General VisualScript improvements and learning c++

### Describe the problem or limitation you are having in your project

When editing a property name or signal name in the visual script the vs_nodes do not get renamed.
This is the case for functions

### Describe the feature / enhancement and how it helps to overcome the problem or limitation

Implement Similar functionality ass for Function rename.
![image](https://user-images.githubusercontent.com/20573784/141810752-3b36358f-5d6a-4e84-9774-24a2158b12d8.png)

This will increase refactor capability a lot.

### Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams

1. Add an edit button like on the right of the function.
@ VisualScriptEditor::_update_members
2. Add edit name to dropdown edit member
@ VisualScriptEditor::_member_rmb_selected
3. when doing any edit in the member's menu assume it needs to be implemented in all the script's nodes that implement that member.
Example code
@ VisualScriptEditor::_rename_function
@ VisualScript::rename_variable

### If this enhancement will not be used often, can it be worked around with a few lines of script?

The lack of this function is mentioned every so often in discord

### Is there a reason why this should be core and not an add-on in the asset library?

This seems base editor functionality

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.