ChessBuilder/card_visual.tscn
2025-03-04 23:55:53 -06:00

67 lines
1.9 KiB
Text

[gd_scene load_steps=3 format=3 uid="uid://bpfuysambx702"]
[ext_resource type="Script" uid="uid://b5xl0bxh21vbi" path="res://Systems/Game/Shop/CardVisual.gd" id="1_nbt2g"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_mkr1p"]
bg_color = Color(0.14902, 0.14902, 0.188235, 1)
border_color = Color(1, 0.8, 0, 1)
corner_radius_top_left = 10
corner_radius_top_right = 10
corner_radius_bottom_right = 10
corner_radius_bottom_left = 10
[node name="CardVisual" type="Control"]
custom_minimum_size = Vector2(150, 250)
layout_mode = 3
anchors_preset = 0
size_flags_horizontal = 4
size_flags_vertical = 4
script = ExtResource("1_nbt2g")
[node name="CardContainer" type="Panel" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
pivot_offset = Vector2(75, 125)
theme_override_styles/panel = SubResource("StyleBoxFlat_mkr1p")
[node name="VBoxContainer" type="VBoxContainer" parent="CardContainer"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = 10.0
offset_top = 10.0
offset_right = -10.0
offset_bottom = -10.0
grow_horizontal = 2
grow_vertical = 2
[node name="NameLabel" type="Label" parent="CardContainer/VBoxContainer"]
layout_mode = 2
theme_override_font_sizes/font_size = 18
text = "Card Name"
horizontal_alignment = 1
autowrap_mode = 3
[node name="HSeparator" type="HSeparator" parent="CardContainer/VBoxContainer"]
layout_mode = 2
[node name="RankLabel" type="Label" parent="CardContainer/VBoxContainer"]
layout_mode = 2
theme_override_font_sizes/font_size = 14
text = "Rank 3"
horizontal_alignment = 1
[node name="Spacer" type="Control" parent="CardContainer/VBoxContainer"]
layout_mode = 2
size_flags_vertical = 3
[node name="PriceLabel" type="Label" parent="CardContainer/VBoxContainer"]
layout_mode = 2
theme_override_font_sizes/font_size = 16
text = "25 gold"
horizontal_alignment = 1