Remove the selection rect for nodes that do not require it

This commit is contained in:
Gilles Roudiere 2018-03-08 21:35:41 +01:00
parent 6435894275
commit 72ed1e4244
34 changed files with 427 additions and 248 deletions

View file

@ -335,6 +335,10 @@ Rect2 TouchScreenButton::_edit_get_rect() const {
return Rect2(Size2(), texture->get_size());
}
bool TouchScreenButton::_edit_use_rect() const {
return true;
}
void TouchScreenButton::set_visibility_mode(VisibilityMode p_mode) {
visibility = p_mode;
update();