Godot-RTS-Template/dev/debug_tools.tscn

52 lines
1.7 KiB
Text

[gd_scene load_steps=4 format=3 uid="uid://d363j4yjxcgw4"]
[ext_resource type="Script" uid="uid://cmvyyl6g5kgwu" path="res://dev/debugtool_mouse_overlay.gd" id="1_j07kd"]
[ext_resource type="Script" uid="uid://dj3iov1nypjpm" path="res://dev/debug_tools.gd" id="1_xqln8"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_xqln8"]
content_margin_left = 0.0
content_margin_top = 0.0
content_margin_right = 0.0
content_margin_bottom = 0.0
bg_color = Color(0.10196078, 0.10196078, 0.10196078, 0.27450982)
corner_radius_top_left = 3
corner_radius_top_right = 3
corner_radius_bottom_right = 3
corner_radius_bottom_left = 3
corner_detail = 5
[node name="DebugTools" type="Control" node_paths=PackedStringArray("MouseOverlay")]
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
script = ExtResource("1_xqln8")
MouseOverlay = NodePath("MouseCursorOverlay")
[node name="MouseCursorOverlay" type="CanvasLayer" parent="."]
script = ExtResource("1_j07kd")
[node name="PanelContainer" type="Panel" parent="MouseCursorOverlay"]
offset_right = 32.0
offset_bottom = 32.0
mouse_filter = 2
theme_override_styles/panel = SubResource("StyleBoxFlat_xqln8")
[node name="TextureRect" type="TextureRect" parent="MouseCursorOverlay/PanelContainer"]
layout_mode = 0
offset_right = 40.0
offset_bottom = 40.0
stretch_mode = 2
[node name="HotSpotMarker" type="ColorRect" parent="MouseCursorOverlay/PanelContainer/TextureRect"]
custom_minimum_size = Vector2(1, 1)
layout_mode = 0
offset_right = 4.0
offset_bottom = 4.0
pivot_offset = Vector2(2, 2)
color = Color(1, 0.3137255, 1, 1)