1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-29 16:16:38 +00:00

added rotation and scale support to gui controls

This commit is contained in:
Juan Linietsky
2015-12-12 13:54:26 -03:00
parent cc7880fba5
commit 890b462ffb
6 changed files with 73 additions and 15 deletions

View File

@@ -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() {