prog
This commit is contained in:
102
addons/madtalk/components/DialogSearchSheet.tscn
Normal file
102
addons/madtalk/components/DialogSearchSheet.tscn
Normal file
@@ -0,0 +1,102 @@
|
||||
[gd_scene load_steps=6 format=3 uid="uid://yyd1a2x4mmop"]
|
||||
|
||||
[ext_resource type="FontFile" uid="uid://b38okvijpcxmv" path="res://addons/madtalk/fonts/FreeSans_smal.tres" id="2"]
|
||||
[ext_resource type="StyleBox" path="res://addons/madtalk/components/resources/PanelStyle.tres" id="4"]
|
||||
[ext_resource type="PackedScene" uid="uid://bxm7bq8a3137t" path="res://addons/madtalk/components/DialogSearchSheetItem.tscn" id="5"]
|
||||
[ext_resource type="StyleBox" path="res://addons/madtalk/components/resources/SheetItemStyle.tres" id="7"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="1"]
|
||||
bg_color = Color(0.186, 0.172, 0.2, 1)
|
||||
border_width_left = 1
|
||||
border_width_top = 1
|
||||
border_width_right = 1
|
||||
border_width_bottom = 1
|
||||
border_color = Color(0.06, 0.06, 0.06, 1)
|
||||
border_blend = true
|
||||
|
||||
[node name="DialogSearchSheet" type="Window"]
|
||||
initial_position = 2
|
||||
size = Vector2i(600, 400)
|
||||
visible = false
|
||||
transient = true
|
||||
exclusive = true
|
||||
popup_window = true
|
||||
|
||||
[node name="Panel" type="Panel" parent="."]
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
theme_override_styles/panel = ExtResource("4")
|
||||
|
||||
[node name="SearchEdit" type="LineEdit" parent="Panel"]
|
||||
layout_mode = 0
|
||||
anchor_right = 1.0
|
||||
offset_left = 8.0
|
||||
offset_top = 5.0
|
||||
offset_right = -8.0
|
||||
offset_bottom = 29.0
|
||||
theme_override_fonts/font = ExtResource("2")
|
||||
theme_override_font_sizes/font_size = 12
|
||||
theme_override_styles/normal = ExtResource("7")
|
||||
placeholder_text = "Search ID or description"
|
||||
|
||||
[node name="IDLabel" type="Label" parent="Panel"]
|
||||
layout_mode = 0
|
||||
offset_left = 12.0
|
||||
offset_top = 36.0
|
||||
offset_right = 69.0
|
||||
offset_bottom = 50.0
|
||||
theme_override_font_sizes/font_size = 12
|
||||
text = "Sheet ID"
|
||||
|
||||
[node name="DescLabel" type="Label" parent="Panel"]
|
||||
layout_mode = 0
|
||||
offset_left = 144.0
|
||||
offset_top = 36.0
|
||||
offset_right = 253.0
|
||||
offset_bottom = 50.0
|
||||
theme_override_font_sizes/font_size = 12
|
||||
text = "Short description"
|
||||
|
||||
[node name="SearchResultsPanel" type="Panel" parent="Panel"]
|
||||
layout_mode = 0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = 8.0
|
||||
offset_top = 52.0
|
||||
offset_right = -8.0
|
||||
offset_bottom = -30.0
|
||||
theme_override_styles/panel = SubResource("1")
|
||||
|
||||
[node name="Scroll" type="ScrollContainer" parent="Panel/SearchResultsPanel"]
|
||||
layout_mode = 0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
|
||||
[node name="VBoxResults" type="VBoxContainer" parent="Panel/SearchResultsPanel/Scroll"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
|
||||
[node name="DialogSearchSheetItem" parent="Panel/SearchResultsPanel/Scroll/VBoxResults" instance=ExtResource("5")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="BottomBar" type="Control" parent="Panel"]
|
||||
anchors_preset = 0
|
||||
anchor_top = 1.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_top = -24.0
|
||||
|
||||
[node name="BtnCancel" type="Button" parent="Panel/BottomBar"]
|
||||
layout_mode = 0
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -27.0
|
||||
offset_top = -10.0
|
||||
offset_right = 27.0
|
||||
offset_bottom = 10.0
|
||||
focus_mode = 0
|
||||
text = "Cancel"
|
Reference in New Issue
Block a user