Add buttons in Remote Scene Tree
A Scene button to any scene instantiated from file. When clicked, it opens the original PackedScene. A toggle visibility button is also available.
This commit is contained in:
parent
3a59c833f1
commit
809dad907a
7 changed files with 103 additions and 11 deletions
|
|
@ -110,12 +110,23 @@ public:
|
|||
String name;
|
||||
String type_name;
|
||||
ObjectID id;
|
||||
String scene_file_path;
|
||||
uint8_t view_flags = 0;
|
||||
|
||||
RemoteNode(int p_child, const String &p_name, const String &p_type, ObjectID p_id) {
|
||||
enum ViewFlags {
|
||||
VIEW_HAS_VISIBLE_METHOD = 1 << 1,
|
||||
VIEW_VISIBLE = 1 << 2,
|
||||
VIEW_VISIBLE_IN_TREE = 1 << 3,
|
||||
};
|
||||
|
||||
RemoteNode(int p_child, const String &p_name, const String &p_type, ObjectID p_id, const String p_scene_file_path, int p_view_flags) {
|
||||
child_count = p_child;
|
||||
name = p_name;
|
||||
type_name = p_type;
|
||||
id = p_id;
|
||||
|
||||
scene_file_path = p_scene_file_path;
|
||||
view_flags = p_view_flags;
|
||||
}
|
||||
|
||||
RemoteNode() {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue