From 7b9a8b101fe0267aadc4ff0966f39be2bf211fbd Mon Sep 17 00:00:00 2001 From: CrispyPin Date: Sun, 16 May 2021 20:17:06 +0200 Subject: [PATCH] fix xyz widget to be square --- ovr-utils/overlays/xyz_widget/yz.tscn | 7 ++++++- ovr-utils/overlays/xyz_widget/zx.tscn | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/ovr-utils/overlays/xyz_widget/yz.tscn b/ovr-utils/overlays/xyz_widget/yz.tscn index ae225b7..d0799b4 100644 --- a/ovr-utils/overlays/xyz_widget/yz.tscn +++ b/ovr-utils/overlays/xyz_widget/yz.tscn @@ -9,8 +9,13 @@ __meta__ = { "_edit_use_anchors_": false } -[node name="TextureRect" type="TextureRect" parent="."] +[node name="AspectRatioContainer" type="AspectRatioContainer" parent="."] anchor_right = 1.0 anchor_bottom = 1.0 + +[node name="TextureRect" type="TextureRect" parent="AspectRatioContainer"] +margin_left = 212.0 +margin_right = 812.0 +margin_bottom = 600.0 texture = ExtResource( 1 ) expand = true diff --git a/ovr-utils/overlays/xyz_widget/zx.tscn b/ovr-utils/overlays/xyz_widget/zx.tscn index 5dc55e9..ed482de 100644 --- a/ovr-utils/overlays/xyz_widget/zx.tscn +++ b/ovr-utils/overlays/xyz_widget/zx.tscn @@ -9,8 +9,13 @@ __meta__ = { "_edit_use_anchors_": false } -[node name="TextureRect" type="TextureRect" parent="."] +[node name="AspectRatioContainer" type="AspectRatioContainer" parent="."] anchor_right = 1.0 anchor_bottom = 1.0 + +[node name="TextureRect" type="TextureRect" parent="AspectRatioContainer"] +margin_left = 212.0 +margin_right = 812.0 +margin_bottom = 600.0 texture = ExtResource( 1 ) expand = true