Godot-RTS-Template/UI/player interface.tscn

56 lines
1.8 KiB
Text
Raw Normal View History

2025-07-29 12:34:48 +00:00
[gd_scene load_steps=7 format=3 uid="uid://c7hu51a2omayl"]
[ext_resource type="Script" uid="uid://c6xp0y6y0gnjt" path="res://core/scripts/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://core/scripts/player_selection_manager.gd" id="3_u7fvt"]
[ext_resource type="StyleBox" uid="uid://nn1eq5h68x1b" path="res://ui/selection_rect_style.tres" id="4_u7fvt"]
2025-07-29 12:34:48 +00:00
[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
2025-07-29 12:34:48 +00:00
accessibility_name = "Player interface"
script = ExtResource("1_nbn0p")
[node name="Button" type="Button" parent="."]
layout_mode = 0
anchor_top = 1.0
anchor_bottom = 1.0
offset_left = 35.0
offset_top = -62.559998
offset_right = 169.0
offset_bottom = -22.559937
grow_vertical = 0
pivot_offset = Vector2(0, 40)
theme = SubResource("Theme_ur0rc")
text = "Test Button"
icon = ExtResource("1_ur0rc")
2025-07-29 12:34:48 +00:00
[node name="SelectionManager" type="Control" parent="." node_paths=PackedStringArray("hover")]
process_mode = 3
process_priority = -1
anchors_preset = 0
mouse_filter = 2
script = ExtResource("3_u7fvt")
2025-07-29 12:34:48 +00:00
hover = NodePath("../HoverLabel")
rect_style = ExtResource("4_u7fvt")
2025-07-29 12:34:48 +00:00
[node name="HoverLabel" type="Label" parent="."]
editor_description = "Control that displayed the hovered informations"
top_level = true
layout_mode = 0
offset_right = 40.0
offset_bottom = 23.0
script = ExtResource("5_fvvd0")