57 lines
1.5 KiB
Plaintext
57 lines
1.5 KiB
Plaintext
[gd_scene load_steps=8 format=2]
|
|
|
|
[ext_resource path="res://cards/base_card.png" type="Texture" id=1]
|
|
[ext_resource path="res://cards/base_card.gd" type="Script" id=2]
|
|
[ext_resource path="res://theme/ui.tres" type="Theme" id=3]
|
|
[ext_resource path="res://theme/fonts/daggersquare.regular.otf" type="DynamicFontData" id=4]
|
|
[ext_resource path="res://helpers/drag.gd" type="Script" id=5]
|
|
[ext_resource path="res://units/points.tscn" type="PackedScene" id=6]
|
|
|
|
[sub_resource type="DynamicFont" id=1]
|
|
size = 22
|
|
font_data = ExtResource( 4 )
|
|
|
|
[node name="card" type="Node2D"]
|
|
self_modulate = Color( 1, 1, 1, 0 )
|
|
z_index = 30
|
|
z_as_relative = false
|
|
script = ExtResource( 2 )
|
|
|
|
[node name="background" type="Sprite" parent="."]
|
|
position = Vector2( 90, 120 )
|
|
texture = ExtResource( 1 )
|
|
|
|
[node name="title" type="Label" parent="."]
|
|
margin_left = 30.0
|
|
margin_top = 10.0
|
|
margin_right = 150.0
|
|
margin_bottom = 45.0
|
|
theme = ExtResource( 3 )
|
|
custom_fonts/font = SubResource( 1 )
|
|
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
|
text = "Card"
|
|
align = 1
|
|
valign = 1
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="portrait" type="Sprite" parent="."]
|
|
position = Vector2( 90, 140 )
|
|
scale = Vector2( 0.6, 0.6 )
|
|
|
|
[node name="points" parent="." instance=ExtResource( 6 )]
|
|
visible = false
|
|
position = Vector2( 90, 220 )
|
|
scale = Vector2( 0.5, 0.5 )
|
|
|
|
[node name="drag" type="Control" parent="."]
|
|
margin_right = 180.0
|
|
margin_bottom = 240.0
|
|
script = ExtResource( 5 )
|
|
__meta__ = {
|
|
"_edit_lock_": true,
|
|
"_edit_use_anchors_": false
|
|
}
|
|
[connection signal="dragged" from="drag" to="." method="on_dragged"]
|