added rotation and scale support to gui controls
This commit is contained in:
parent
cc7880fba5
commit
890b462ffb
6 changed files with 73 additions and 15 deletions
|
|
@ -105,6 +105,8 @@ void Container::fit_child_in_rect(Control *p_child,const Rect2& p_rect) {
|
|||
|
||||
p_child->set_pos(r.pos);
|
||||
p_child->set_size(r.size);
|
||||
p_child->set_rotation(0);
|
||||
p_child->set_scale(Vector2(1,1));
|
||||
}
|
||||
|
||||
void Container::queue_sort() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue