mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Improvements to multi-node editing
- Show revert button for properties that are not default for all selected nodes - Show property documentation tooltips - Show common class name and icon and number of selected nodes in EditorPath, e.g. "Node2D (4 Selected)" - Hide metadata for MultiNodeEdit and AnimationMultiTrackKeyEdit - Hide script for MultiNodeEdit
This commit is contained in:
parent
00fa4e23e4
commit
a914dc0c46
6 changed files with 182 additions and 52 deletions
|
@ -45,15 +45,25 @@ class MultiNodeEdit : public RefCounted {
|
|||
bool _set_impl(const StringName &p_name, const Variant &p_value, const String &p_field);
|
||||
|
||||
protected:
|
||||
static void _bind_methods();
|
||||
|
||||
bool _set(const StringName &p_name, const Variant &p_value);
|
||||
bool _get(const StringName &p_name, Variant &r_ret) const;
|
||||
void _get_property_list(List<PropertyInfo> *p_list) const;
|
||||
|
||||
public:
|
||||
bool _hide_script_from_inspector() { return true; }
|
||||
bool _hide_metadata_from_inspector() { return true; }
|
||||
|
||||
bool _property_can_revert(const StringName &p_name) const;
|
||||
bool _property_get_revert(const StringName &p_name, Variant &r_property) const;
|
||||
String _get_editor_name() const;
|
||||
|
||||
void add_node(const NodePath &p_node);
|
||||
|
||||
int get_node_count() const;
|
||||
NodePath get_node(int p_index) const;
|
||||
StringName get_edited_class_name() const;
|
||||
|
||||
void set_property_field(const StringName &p_property, const Variant &p_value, const String &p_field);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue