-Added AnimationGraphPlayer (still missing features)
-Added ability to edit resources from built-in inspector (wip, needs testing and feedback)
This commit is contained in:
parent
5c5aafabec
commit
0a1c1c660f
25 changed files with 4049 additions and 55 deletions
|
|
@ -31,6 +31,7 @@
|
|||
#ifndef GRAPH_EDIT_H
|
||||
#define GRAPH_EDIT_H
|
||||
|
||||
#include "scene/gui/box_container.h"
|
||||
#include "scene/gui/graph_node.h"
|
||||
#include "scene/gui/scroll_bar.h"
|
||||
#include "scene/gui/slider.h"
|
||||
|
|
@ -62,6 +63,7 @@ public:
|
|||
StringName to;
|
||||
int from_port;
|
||||
int to_port;
|
||||
float activity;
|
||||
};
|
||||
|
||||
private:
|
||||
|
|
@ -157,6 +159,8 @@ private:
|
|||
Set<int> valid_left_disconnect_types;
|
||||
Set<int> valid_right_disconnect_types;
|
||||
|
||||
HBoxContainer *zoom_hb;
|
||||
|
||||
friend class GraphEditFilter;
|
||||
bool _filter_input(const Point2 &p_point);
|
||||
void _snap_toggled();
|
||||
|
|
@ -175,6 +179,8 @@ public:
|
|||
void disconnect_node(const StringName &p_from, int p_from_port, const StringName &p_to, int p_to_port);
|
||||
void clear_connections();
|
||||
|
||||
void set_connection_activity(const StringName &p_from, int p_from_port, const StringName &p_to, int p_to_port, float p_activity);
|
||||
|
||||
void add_valid_connection_type(int p_type, int p_with_type);
|
||||
void remove_valid_connection_type(int p_type, int p_with_type);
|
||||
bool is_valid_connection_type(int p_type, int p_with_type) const;
|
||||
|
|
@ -206,6 +212,8 @@ public:
|
|||
int get_snap() const;
|
||||
void set_snap(int p_snap);
|
||||
|
||||
HBoxContainer *get_zoom_hbox();
|
||||
|
||||
GraphEdit();
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue