[gd_scene load_steps=7 format=3 uid="uid://dvl383ispakmn"] [ext_resource type="Script" path="res://gui_3d.gd" id="1"] [ext_resource type="Texture2D" uid="uid://brwp8bimc75uu" path="res://icon.webp" id="2"] [sub_resource type="QuadMesh" id="1"] size = Vector2(3, 2) [sub_resource type="ViewportTexture" id="2"] viewport_path = NodePath("SubViewport") [sub_resource type="StandardMaterial3D" id="3"] resource_local_to_scene = true transparency = 1 shading_mode = 0 albedo_texture = SubResource("2") [sub_resource type="BoxShape3D" id="4"] size = Vector3(3, 2, 0.1) [node name="GUIPanel3D" type="Node3D"] process_mode = 3 script = ExtResource("1") [node name="SubViewport" type="SubViewport" parent="."] gui_embed_subwindows = true size = Vector2i(280, 180) render_target_update_mode = 4 [node name="GUI" type="Control" parent="SubViewport"] layout_mode = 3 anchors_preset = 0 offset_right = 280.0 offset_bottom = 180.0 mouse_filter = 1 [node name="Panel" type="Panel" parent="SubViewport/GUI"] layout_mode = 0 anchor_right = 1.0 anchor_bottom = 1.0 [node name="VBoxContainer" type="VBoxContainer" parent="SubViewport/GUI/Panel"] layout_mode = 0 anchor_bottom = 1.0 offset_left = 10.0 offset_top = 10.0 offset_right = 150.0 offset_bottom = -10.0 grow_vertical = 2 theme_override_constants/separation = 13 [node name="Label" type="Label" parent="SubViewport/GUI/Panel/VBoxContainer"] layout_mode = 2 text = "Hello world!" horizontal_alignment = 1 [node name="Button" type="Button" parent="SubViewport/GUI/Panel/VBoxContainer"] layout_mode = 2 text = "A button!" [node name="TextEdit" type="LineEdit" parent="SubViewport/GUI/Panel/VBoxContainer"] layout_mode = 2 [node name="HSlider" type="HSlider" parent="SubViewport/GUI/Panel/VBoxContainer"] layout_mode = 2 ticks_on_borders = true [node name="ColorRect" type="ColorRect" parent="SubViewport/GUI/Panel"] layout_mode = 0 anchor_left = 1.0 anchor_right = 1.0 offset_left = -110.0 offset_top = 16.0 offset_right = -46.0 offset_bottom = 80.0 color = Color(1, 0, 0, 1) [node name="TextureRect" type="TextureRect" parent="SubViewport/GUI/Panel"] layout_mode = 0 anchor_left = 1.0 anchor_right = 1.0 offset_left = -102.0 offset_top = 24.0 offset_right = -54.0 offset_bottom = 72.0 grow_horizontal = 2 grow_vertical = 2 texture = ExtResource("2") expand_mode = 1 [node name="VSlider" type="VSlider" parent="SubViewport/GUI/Panel"] layout_mode = 0 anchor_left = 1.0 anchor_right = 1.0 anchor_bottom = 1.0 offset_left = -25.0 offset_top = 5.0 offset_right = -5.0 offset_bottom = -5.0 grow_horizontal = 0 grow_vertical = 2 [node name="OptionButton" type="OptionButton" parent="SubViewport/GUI/Panel"] layout_mode = 0 anchor_left = 1.0 anchor_top = 1.0 anchor_right = 1.0 anchor_bottom = 1.0 offset_left = -120.0 offset_top = -80.0 offset_right = -28.0 offset_bottom = -26.0 grow_horizontal = 0 grow_vertical = 0 item_count = 3 popup/item_0/text = "Item 0" popup/item_0/id = 0 popup/item_1/text = "Item 1" popup/item_1/id = 1 popup/item_2/text = "Item 2" popup/item_2/id = 2 [node name="Quad" type="MeshInstance3D" parent="."] mesh = SubResource("1") surface_material_override/0 = SubResource("3") [node name="Area3D" type="Area3D" parent="Quad"] collision_layer = 2 input_capture_on_drag = true [node name="CollisionShape3D" type="CollisionShape3D" parent="Quad/Area3D"] shape = SubResource("4")