87 lines
3.2 KiB
Plaintext
87 lines
3.2 KiB
Plaintext
[gd_scene load_steps=4 format=3 uid="uid://dgok5l3frx53m"]
|
|||
|
|
|
||
|
|
[ext_resource type="Script" uid="uid://bfmpjs4x3fhte" path="res://addons/loggie-console/scripts/components/panel_domain_selector.gd" id="1_panel_selector"]
|
||
|
|
[ext_resource type="Theme" uid="uid://c1lnnysnspc6v" path="res://addons/loggie-console/theme_compact.tres" id="2_theme"]
|
||
|
|
[ext_resource type="StyleBox" uid="uid://b7k8yo7jfhpue" path="res://addons/loggie-console/assets/inner_panel.tres" id="3_panel_style"]
|
||
|
|
|
||
|
|
[node name="PanelDomainSelector" type="Control" node_paths=PackedStringArray("trigger_button", "domain_panel", "select_all_button", "select_none_button", "scroll_container", "domain_list")]
|
||
|
|
custom_minimum_size = Vector2(100, 20)
|
||
|
|
layout_mode = 3
|
||
|
|
anchors_preset = 15
|
||
|
|
anchor_right = 1.0
|
||
|
|
anchor_bottom = 1.0
|
||
|
|
grow_horizontal = 2
|
||
|
|
grow_vertical = 2
|
||
|
|
theme = ExtResource("2_theme")
|
||
|
|
script = ExtResource("1_panel_selector")
|
||
|
|
trigger_button = NodePath("TriggerButton")
|
||
|
|
domain_panel = NodePath("DomainPanel")
|
||
|
|
select_all_button = NodePath("DomainPanel/PanelContainer/VBoxContainer/SelectionControls/SelectAllButton")
|
||
|
|
select_none_button = NodePath("DomainPanel/PanelContainer/VBoxContainer/SelectionControls/SelectNoneButton")
|
||
|
|
scroll_container = NodePath("DomainPanel/PanelContainer/VBoxContainer/ScrollContainer")
|
||
|
|
domain_list = NodePath("DomainPanel/PanelContainer/VBoxContainer/ScrollContainer/DomainList")
|
||
|
|
|
||
|
|
[node name="TriggerButton" type="Button" parent="."]
|
||
|
|
layout_mode = 1
|
||
|
|
anchors_preset = 15
|
||
|
|
anchor_right = 1.0
|
||
|
|
anchor_bottom = 1.0
|
||
|
|
grow_horizontal = 2
|
||
|
|
grow_vertical = 2
|
||
|
|
tooltip_text = "All domains selected (1)"
|
||
|
|
text = "Domains: All"
|
||
|
|
text_overrun_behavior = 3
|
||
|
|
|
||
|
|
[node name="DomainPanel" type="PopupPanel" parent="."]
|
||
|
|
initial_position = 1
|
||
|
|
size = Vector2i(300, 160)
|
||
|
|
visible = true
|
||
|
|
min_size = Vector2i(300, 150)
|
||
|
|
|
||
|
|
[node name="PanelContainer" type="PanelContainer" parent="DomainPanel"]
|
||
|
|
anchors_preset = 15
|
||
|
|
anchor_right = 1.0
|
||
|
|
anchor_bottom = 1.0
|
||
|
|
offset_left = 2.0
|
||
|
|
offset_top = 2.0
|
||
|
|
offset_right = -2.0
|
||
|
|
offset_bottom = -2.0
|
||
|
|
grow_horizontal = 2
|
||
|
|
grow_vertical = 2
|
||
|
|
theme_override_styles/panel = ExtResource("3_panel_style")
|
||
|
|
|
||
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="DomainPanel/PanelContainer"]
|
||
|
|
layout_mode = 2
|
||
|
|
|
||
|
|
[node name="SelectionControls" type="HBoxContainer" parent="DomainPanel/PanelContainer/VBoxContainer"]
|
||
|
|
layout_mode = 2
|
||
|
|
size_flags_vertical = 0
|
||
|
|
alignment = 2
|
||
|
|
|
||
|
|
[node name="SelectAllButton" type="Button" parent="DomainPanel/PanelContainer/VBoxContainer/SelectionControls"]
|
||
|
|
custom_minimum_size = Vector2(60, 20)
|
||
|
|
layout_mode = 2
|
||
|
|
size_flags_horizontal = 0
|
||
|
|
tooltip_text = "Select all domains"
|
||
|
|
text = "Select All"
|
||
|
|
|
||
|
|
[node name="SelectNoneButton" type="Button" parent="DomainPanel/PanelContainer/VBoxContainer/SelectionControls"]
|
||
|
|
custom_minimum_size = Vector2(60, 20)
|
||
|
|
layout_mode = 2
|
||
|
|
size_flags_horizontal = 0
|
||
|
|
tooltip_text = "Deselect all domains"
|
||
|
|
text = "None"
|
||
|
|
|
||
|
|
[node name="HSeparator" type="HSeparator" parent="DomainPanel/PanelContainer/VBoxContainer"]
|
||
|
|
layout_mode = 2
|
||
|
|
|
||
|
|
[node name="ScrollContainer" type="ScrollContainer" parent="DomainPanel/PanelContainer/VBoxContainer"]
|
||
|
|
layout_mode = 2
|
||
|
|
size_flags_vertical = 3
|
||
|
|
|
||
|
|
[node name="DomainList" type="VBoxContainer" parent="DomainPanel/PanelContainer/VBoxContainer/ScrollContainer"]
|
||
|
|
layout_mode = 2
|
||
|
|
size_flags_horizontal = 3
|
||
|
|
size_flags_vertical = 3
|
||
|
|
|