feat: updated engine version to 4.4-rc1

This commit is contained in:
Sara 2025-02-23 14:38:14 +01:00
parent ee00efde1f
commit 21ba8e33af
5459 changed files with 1128836 additions and 198305 deletions

View file

@ -30,7 +30,7 @@
#include "touch_screen_button.h"
#include "scene/main/window.h"
#include "scene/main/viewport.h"
void TouchScreenButton::set_texture_normal(const Ref<Texture2D> &p_texture) {
if (texture_normal == p_texture) {
@ -185,6 +185,7 @@ void TouchScreenButton::_notification(int p_what) {
}
} break;
case NOTIFICATION_SUSPENDED:
case NOTIFICATION_PAUSED: {
if (is_pressed()) {
_release();
@ -329,7 +330,7 @@ void TouchScreenButton::_release(bool p_exiting_tree) {
}
}
#ifdef TOOLS_ENABLED
#ifdef DEBUG_ENABLED
Rect2 TouchScreenButton::_edit_get_rect() const {
if (texture_normal.is_null()) {
return CanvasItem::_edit_get_rect();
@ -339,9 +340,9 @@ Rect2 TouchScreenButton::_edit_get_rect() const {
}
bool TouchScreenButton::_edit_use_rect() const {
return !texture_normal.is_null();
return texture_normal.is_valid();
}
#endif
#endif // DEBUG_ENABLED
Rect2 TouchScreenButton::get_anchorable_rect() const {
if (texture_normal.is_null()) {
@ -429,6 +430,6 @@ void TouchScreenButton::_bind_methods() {
}
TouchScreenButton::TouchScreenButton() {
unit_rect = Ref<RectangleShape2D>(memnew(RectangleShape2D));
unit_rect.instantiate();
unit_rect->set_size(Vector2(1, 1));
}