[gd_scene load_steps=7 format=3 uid="uid://c7hu51a2omayl"]

[ext_resource type="Script" uid="uid://c6xp0y6y0gnjt" path="res://player/player_interface.gd" id="1_nbn0p"]
[ext_resource type="Texture2D" uid="uid://dtnvfhpg0fmlk" path="res://packs/Kenney-cursors/Outline/steps.svg" id="1_ur0rc"]
[ext_resource type="Script" uid="uid://bxo7f7f1th34m" path="res://player/player_selection_manager.gd" id="3_u7fvt"]
[ext_resource type="StyleBox" uid="uid://nn1eq5h68x1b" path="res://ui/selection_rect_style.tres" id="4_u7fvt"]
[ext_resource type="Script" uid="uid://c3jwnn1dj2tg5" path="res://ui/hover.gd" id="5_fvvd0"]

[sub_resource type="Theme" id="Theme_ur0rc"]

[node name="PlayerInterface" type="Control"]
modulate = Color(0.6745098, 1, 1, 1)
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
pivot_offset = Vector2(960, 540)
size_flags_horizontal = 3
size_flags_vertical = 3
mouse_filter = 2
accessibility_name = "Player interface"
script = ExtResource("1_nbn0p")

[node name="VBoxContainer" type="VBoxContainer" parent="."]
layout_mode = 1
anchors_preset = -1
anchor_top = 1.0
anchor_bottom = 1.0
offset_left = 50.0
offset_top = -90.0
offset_right = 184.0
offset_bottom = -50.0
grow_vertical = 0
alignment = 1

[node name="Label" type="Label" parent="VBoxContainer"]
layout_mode = 2
text = "Selected:"

[node name="Button" type="Button" parent="VBoxContainer"]
layout_mode = 2
theme = SubResource("Theme_ur0rc")
text = "Test Button"
icon = ExtResource("1_ur0rc")

[node name="SelectionManager" type="Control" parent="." node_paths=PackedStringArray("hover", "selecteddisplay")]
process_mode = 3
process_priority = -1
anchors_preset = 0
mouse_filter = 2
script = ExtResource("3_u7fvt")
hover = NodePath("../HoverLabel")
selecteddisplay = NodePath("../VBoxContainer/Button")
rect_style = ExtResource("4_u7fvt")

[node name="HoverLabel" type="RichTextLabel" parent="."]
unique_name_in_owner = true
editor_description = "Control that displayed the hovered informations"
top_level = true
custom_minimum_size = Vector2(250, 150)
layout_mode = 0
offset_right = 40.0
offset_bottom = 23.0
fit_content = true
threaded = true
script = ExtResource("5_fvvd0")
