mirror of
https://codeberg.org/Ikatono/TierMaker.git
synced 2025-10-28 20:45:35 -05:00
forgot to push for a while, got drag-and-drop mostly working
This commit is contained in:
63
card_preview.tscn
Normal file
63
card_preview.tscn
Normal file
@@ -0,0 +1,63 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://dh6xfgsoquxdc"]
|
||||
|
||||
[ext_resource type="Script" path="res://card_preview.cs" id="1_o00ln"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_ndhi0"]
|
||||
bg_color = Color(1, 1, 1, 1)
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_ui6ue"]
|
||||
outline_size = 2
|
||||
outline_color = Color(0, 0, 0, 1)
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_gncft"]
|
||||
outline_size = 2
|
||||
outline_color = Color(0, 0, 0, 1)
|
||||
|
||||
[node name="CardPreview" type="Control" groups=["CardGroup"]]
|
||||
custom_minimum_size = Vector2(200, 200)
|
||||
layout_mode = 3
|
||||
anchors_preset = 0
|
||||
offset_right = 200.0
|
||||
offset_bottom = 200.0
|
||||
script = ExtResource("1_o00ln")
|
||||
|
||||
[node name="CardPreviewBackground" type="Panel" parent="."]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_ndhi0")
|
||||
|
||||
[node name="CardPreviewImage" type="TextureRect" parent="CardPreviewBackground"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
expand_mode = 1
|
||||
stretch_mode = 5
|
||||
|
||||
[node name="CardPreviewNameLabel" type="Label" parent="."]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 0
|
||||
offset_right = 40.0
|
||||
offset_bottom = 23.0
|
||||
text = "Name"
|
||||
label_settings = SubResource("LabelSettings_ui6ue")
|
||||
|
||||
[node name="CardPreviewIdLabel" type="Label" parent="."]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 1
|
||||
anchors_preset = 2
|
||||
anchor_top = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_top = -23.0
|
||||
offset_right = 40.0
|
||||
grow_vertical = 0
|
||||
text = "ID"
|
||||
label_settings = SubResource("LabelSettings_gncft")
|
||||
Reference in New Issue
Block a user