aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortpart <tpart120@proton.me>2025-08-30 00:06:23 +0200
committertpart <tpart120@proton.me>2025-08-30 00:06:38 +0200
commit04fe002f25d74919ca3e69595099e799e259eb69 (patch)
tree14f8e1dbd383c78c7a9fb28f5c2bac73bccabaf6
parentf9fca9a3b657aff75bb6d56f4a9fea90ef8c19e9 (diff)
downloadhurrycurry-04fe002f25d74919ca3e69595099e799e259eb69.tar
hurrycurry-04fe002f25d74919ca3e69595099e799e259eb69.tar.bz2
hurrycurry-04fe002f25d74919ca3e69595099e799e259eb69.tar.zst
Fix unfinished comment in smart margin container
-rw-r--r--client/menu/smart_margin_container.gd6
1 files changed, 3 insertions, 3 deletions
diff --git a/client/menu/smart_margin_container.gd b/client/menu/smart_margin_container.gd
index 43fd4c4f..046dc6f3 100644
--- a/client/menu/smart_margin_container.gd
+++ b/client/menu/smart_margin_container.gd
@@ -15,7 +15,7 @@
#
extends MarginContainer
class_name SmartMarginContainer
-# A smart margin container which automatically
+# A smart margin container which automatically adjusts the margin such that it doesn't cover notch on phones
func _ready() -> void:
var os := OS.get_name()
@@ -31,11 +31,11 @@ func update_margins() -> void:
var top := viewport_safe_rect.position.y - viewport_full_rect.position.y
var right := viewport_full_rect.end.x - viewport_safe_rect.end.x
var bottom := viewport_full_rect.end.y - viewport_safe_rect.end.y
- print("OLD: ", get_theme_constant("margin_left"))
+ # print("OLD: ", get_theme_constant("margin_left"))
begin_bulk_theme_override()
add_theme_constant_override('margin_left', roundi(left) + get_theme_constant("margin_left"))
add_theme_constant_override('margin_top', roundi(top) + get_theme_constant("margin_top"))
add_theme_constant_override('margin_right', roundi(right) + get_theme_constant("margin_right"))
add_theme_constant_override('margin_bottom', roundi(bottom) + get_theme_constant("margin_bottom"))
end_bulk_theme_override()
- print("NEW: ", get_theme_constant("margin_left"))
+ # print("NEW: ", get_theme_constant("margin_left"))