Reorganize inspector layout workflow for Control nodes
This commit is contained in:
parent
242c636a63
commit
107b6f299c
43 changed files with 2118 additions and 550 deletions
|
|
@ -959,6 +959,25 @@ bool GraphNode::is_resizable() const {
|
|||
return resizable;
|
||||
}
|
||||
|
||||
Vector<int> GraphNode::get_allowed_size_flags_horizontal() const {
|
||||
Vector<int> flags;
|
||||
flags.append(SIZE_FILL);
|
||||
flags.append(SIZE_SHRINK_BEGIN);
|
||||
flags.append(SIZE_SHRINK_CENTER);
|
||||
flags.append(SIZE_SHRINK_END);
|
||||
return flags;
|
||||
}
|
||||
|
||||
Vector<int> GraphNode::get_allowed_size_flags_vertical() const {
|
||||
Vector<int> flags;
|
||||
flags.append(SIZE_FILL);
|
||||
flags.append(SIZE_EXPAND);
|
||||
flags.append(SIZE_SHRINK_BEGIN);
|
||||
flags.append(SIZE_SHRINK_CENTER);
|
||||
flags.append(SIZE_SHRINK_END);
|
||||
return flags;
|
||||
}
|
||||
|
||||
void GraphNode::_bind_methods() {
|
||||
ClassDB::bind_method(D_METHOD("set_title", "title"), &GraphNode::set_title);
|
||||
ClassDB::bind_method(D_METHOD("get_title"), &GraphNode::get_title);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue