mirror of
https://codeberg.org/Ikatono/TierMaker.git
synced 2025-10-28 20:45:35 -05:00
106 lines
3.6 KiB
Plaintext
106 lines
3.6 KiB
Plaintext
[gd_scene load_steps=6 format=3 uid="uid://dxvues6b3g2tn"]
|
|
|
|
[ext_resource type="Script" path="res://card_edit_popup.cs" id="1_xxurr"]
|
|
[ext_resource type="Script" path="res://CardEditImageBox.cs" id="2_flth7"]
|
|
[ext_resource type="PackedScene" uid="uid://bhlqt64wrhx83" path="res://card_image_picker.tscn" id="3_4k21m"]
|
|
|
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_nx8uj"]
|
|
|
|
[sub_resource type="ButtonGroup" id="ButtonGroup_t74v5"]
|
|
|
|
[node name="CardEditPopup" type="ConfirmationDialog"]
|
|
title = "Edit Card"
|
|
position = Vector2i(0, 36)
|
|
size = Vector2i(350, 327)
|
|
visible = true
|
|
unresizable = true
|
|
always_on_top = true
|
|
script = ExtResource("1_xxurr")
|
|
|
|
[node name="CardEditContainer" type="VBoxContainer" parent="."]
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
offset_left = 8.0
|
|
offset_top = 8.0
|
|
offset_right = 342.0
|
|
offset_bottom = 278.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
|
|
[node name="TitleContainer" type="HBoxContainer" parent="CardEditContainer"]
|
|
layout_mode = 2
|
|
|
|
[node name="TitleLabel" type="Label" parent="CardEditContainer/TitleContainer"]
|
|
layout_mode = 2
|
|
text = "Text"
|
|
|
|
[node name="TitleEdit" type="LineEdit" parent="CardEditContainer/TitleContainer"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
|
|
[node name="CardDetailsContainer" type="HSplitContainer" parent="CardEditContainer"]
|
|
layout_mode = 2
|
|
split_offset = 6
|
|
dragger_visibility = 1
|
|
|
|
[node name="CardImageSelectContainer" type="PanelContainer" parent="CardEditContainer/CardDetailsContainer"]
|
|
clip_contents = true
|
|
layout_mode = 2
|
|
size_flags_horizontal = 0
|
|
size_flags_vertical = 0
|
|
mouse_filter = 1
|
|
theme_override_styles/panel = SubResource("StyleBoxFlat_nx8uj")
|
|
|
|
[node name="CardEditImageBox" type="TextureRect" parent="CardEditContainer/CardDetailsContainer/CardImageSelectContainer"]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(200, 200)
|
|
layout_mode = 2
|
|
expand_mode = 1
|
|
stretch_mode = 5
|
|
script = ExtResource("2_flth7")
|
|
|
|
[node name="ImageStretchButtonsContainer" type="VBoxContainer" parent="CardEditContainer/CardDetailsContainer"]
|
|
layout_mode = 2
|
|
alignment = 1
|
|
|
|
[node name="StretchModeLabel" type="Label" parent="CardEditContainer/CardDetailsContainer/ImageStretchButtonsContainer"]
|
|
layout_mode = 2
|
|
text = " Stretch Mode"
|
|
|
|
[node name="StretchModeFitButton" type="CheckBox" parent="CardEditContainer/CardDetailsContainer/ImageStretchButtonsContainer"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
button_pressed = true
|
|
button_group = SubResource("ButtonGroup_t74v5")
|
|
text = "Fit"
|
|
|
|
[node name="StretchModeStretchButton" type="CheckBox" parent="CardEditContainer/CardDetailsContainer/ImageStretchButtonsContainer"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
button_group = SubResource("ButtonGroup_t74v5")
|
|
text = "Stretch"
|
|
|
|
[node name="StretchModeCropButton" type="CheckBox" parent="CardEditContainer/CardDetailsContainer/ImageStretchButtonsContainer"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
button_group = SubResource("ButtonGroup_t74v5")
|
|
text = "Crop"
|
|
|
|
[node name="DeleteCardButton" type="Button" parent="CardEditContainer"]
|
|
custom_minimum_size = Vector2(100, 0)
|
|
layout_mode = 2
|
|
size_flags_horizontal = 8
|
|
size_flags_vertical = 8
|
|
text = "DELETE"
|
|
|
|
[node name="CardImagePicker" parent="." instance=ExtResource("3_4k21m")]
|
|
unique_name_in_owner = true
|
|
|
|
[connection signal="canceled" from="." to="." method="CancelClicked"]
|
|
[connection signal="confirmed" from="." to="." method="OkClicked"]
|
|
[connection signal="visibility_changed" from="." to="." method="OnVisibilityChange"]
|
|
[connection signal="pressed" from="CardEditContainer/DeleteCardButton" to="." method="DeleteCard"]
|
|
[connection signal="file_selected" from="CardImagePicker" to="." method="FileSelected"]
|