[gd_scene load_steps=6 format=2]

[ext_resource path="res://addons/openvr_overlay/overlay_instance.gd" type="Script" id=1]
[ext_resource path="res://addons/openvr_overlay/OverlayInteraction.tscn" type="PackedScene" id=2]
[ext_resource path="res://addons/godot-openvr/OpenVROverlay.gdns" type="Script" id=3]

[sub_resource type="StyleBoxFlat" id=1]
bg_color = Color( 0, 1, 1, 0.231373 )
border_width_left = 24
border_width_top = 24
border_width_right = 24
border_width_bottom = 24
border_color = Color( 0, 0.784314, 1, 0.611765 )

[sub_resource type="ViewportTexture" id=2]
flags = 4
viewport_path = NodePath("OverlayViewport")

[node name="OverlayInstance" type="Spatial"]
script = ExtResource( 1 )

[node name="OverlayViewport" type="Viewport" parent="."]
size = Vector2( 2048, 2048 )
transparent_bg = true
hdr = false
disable_3d = true
usage = 0
render_target_update_mode = 3
shadow_atlas_quad_0 = 0
shadow_atlas_quad_1 = 0
shadow_atlas_quad_2 = 0
shadow_atlas_quad_3 = 0

[node name="Container" type="Control" parent="OverlayViewport"]
anchor_right = 1.0
anchor_bottom = 1.0

[node name="Selected" type="Panel" parent="OverlayViewport"]
visible = false
anchor_right = 1.0
anchor_bottom = 1.0
mouse_filter = 2
custom_styles/panel = SubResource( 1 )

[node name="VROverlayViewport" type="Viewport" parent="."]
size = Vector2( 100, 100 )
transparent_bg = true
handle_input_locally = false
hdr = false
disable_3d = true
usage = 0
render_target_update_mode = 3
shadow_atlas_quad_0 = 0
shadow_atlas_quad_1 = 0
shadow_atlas_quad_2 = 0
shadow_atlas_quad_3 = 0
script = ExtResource( 3 )
overlay_width_in_meters = 0.4

[node name="TextureRect" type="TextureRect" parent="VROverlayViewport"]
anchor_right = 1.0
anchor_bottom = 1.0
texture = SubResource( 2 )
expand = true
stretch_mode = 5
flip_v = true

[node name="OverlayInteraction" parent="." instance=ExtResource( 2 )]
