Files
godot-demo-projects/viewport/3d_scaling/hud.tscn
2023-01-05 16:50:17 +01:00

58 lines
1.5 KiB
Plaintext

[gd_scene load_steps=4 format=3 uid="uid://c5uc5vwuqvck5"]
[ext_resource type="PackedScene" uid="uid://bbnebk7xoaoto" path="res://cubes.tscn" id="2"]
[ext_resource type="Script" path="res://hud.gd" id="3"]
[sub_resource type="Theme" id="2"]
[node name="HUD" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
theme = SubResource("2")
script = ExtResource("3")
[node name="SubViewportContainer" type="SubViewportContainer" parent="."]
texture_filter = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
stretch = true
[node name="SubViewport" type="SubViewport" parent="SubViewportContainer"]
handle_input_locally = false
size = Vector2i(1152, 648)
render_target_update_mode = 4
[node name="Cubes" parent="SubViewportContainer/SubViewport" instance=ExtResource("2")]
[node name="Help" type="Label" parent="."]
anchors_preset = 2
anchor_top = 1.0
anchor_bottom = 1.0
offset_left = 16.0
offset_top = -106.0
offset_right = 554.0
offset_bottom = -16.0
text = "This text will always render at the native resolution.
Press Space to adjust the 3D viewport's resolution scaling.
Press Enter to toggle filtering."
[node name="VBoxContainer" type="VBoxContainer" parent="."]
offset_left = 16.0
offset_top = 16.0
offset_right = 124.0
offset_bottom = 76.0
[node name="Scale" type="Label" parent="VBoxContainer"]
offset_right = 111.0
offset_bottom = 26.0
text = "Scale: 100%"
[node name="Filter" type="Label" parent="VBoxContainer"]
offset_top = 30.0
offset_right = 111.0
offset_bottom = 56.0
text = "Filter: Enabled"