init
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
[gd_scene format=3]
|
||||
|
||||
[ext_resource type="Script" path="src/UI/ActionCardNode.cs" id="ActionCardNodeScript"]
|
||||
|
||||
[node name="ActionCardNode" type="Control" script=ExtResource("ActionCardNodeScript")]
|
||||
custom_minimum_size = Vector2(200, 280)
|
||||
layout_mode = 3
|
||||
|
||||
[node name="Image" type="TextureRect" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
offset_left = 15.0
|
||||
offset_top = 15.0
|
||||
offset_right = -15.0
|
||||
offset_bottom = -40.0
|
||||
mouse_filter = 2
|
||||
expand_mode = 1
|
||||
stretch_mode = 4
|
||||
|
||||
[node name="Frame" type="TextureRect" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
expand_mode = 1
|
||||
stretch_mode = 4
|
||||
|
||||
[node name="NameLabel" type="Label" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 12
|
||||
anchor_left = 0.0
|
||||
anchor_top = 1.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
offset_top = -40.0
|
||||
offset_bottom = 0.0
|
||||
theme_override_font_sizes/font_size = 14
|
||||
horizontal_alignment = 1
|
||||
@@ -0,0 +1,14 @@
|
||||
[gd_scene format=3]
|
||||
|
||||
[ext_resource type="Script" path="src/UI/BattleCardPanel.cs" id="1_script"]
|
||||
|
||||
[node name="BattleCardPanel" type="Control" script=ExtResource("1_script")]
|
||||
layout_mode = 3
|
||||
|
||||
[node name="Content" type="Control" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
@@ -0,0 +1,135 @@
|
||||
[gd_scene format=3]
|
||||
|
||||
[ext_resource type="Script" path="src/UI/CharacterCardNode.cs" id="1_script"]
|
||||
|
||||
[node name="CharacterCardNode" type="Control" script=ExtResource("1_script")]
|
||||
custom_minimum_size = Vector2(230, 420)
|
||||
layout_mode = 3
|
||||
|
||||
[node name="TeamOutline" type="ColorRect" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
offset_left = -4.0
|
||||
offset_top = -4.0
|
||||
offset_right = 4.0
|
||||
offset_bottom = 4.0
|
||||
mouse_filter = 2
|
||||
|
||||
[node name="Image" type="TextureRect" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
offset_left = 20.0
|
||||
offset_top = 20.0
|
||||
offset_right = -20.0
|
||||
offset_bottom = -60.0
|
||||
mouse_filter = 2
|
||||
expand_mode = 1
|
||||
stretch_mode = 4
|
||||
|
||||
[node name="Frame" type="TextureRect" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
expand_mode = 1
|
||||
stretch_mode = 4
|
||||
|
||||
[node name="Selection" type="TextureRect" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
|
||||
[node name="InfoPanel" type="Control" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 12
|
||||
anchor_left = 0.0
|
||||
anchor_top = 1.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
offset_top = -60.0
|
||||
offset_bottom = 0.0
|
||||
|
||||
[node name="NameLabel" type="Label" parent="InfoPanel"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 10
|
||||
anchor_right = 1.0
|
||||
grow_horizontal = 2
|
||||
offset_bottom = 18.0
|
||||
horizontal_alignment = 1
|
||||
theme_override_font_sizes/font_size = 16
|
||||
|
||||
[node name="HealthBar" type="Control" parent="InfoPanel"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 12
|
||||
anchor_left = 0.0
|
||||
anchor_top = 1.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
offset_top = -18.0
|
||||
offset_bottom = 0.0
|
||||
|
||||
[node name="HealthBg" type="ColorRect" parent="InfoPanel/HealthBar"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
color = Color(0.2, 0.2, 0.2, 1)
|
||||
|
||||
[node name="HealthRect" type="ColorRect" parent="InfoPanel/HealthBar"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
color = Color(0, 0.8, 0, 1)
|
||||
|
||||
[node name="Labels" type="HBoxContainer" parent="InfoPanel"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 13
|
||||
anchor_left = 0.0
|
||||
anchor_top = 0.5
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 0.5
|
||||
grow_horizontal = 2
|
||||
alignment = 1
|
||||
|
||||
[node name="LabelS" type="Label" parent="InfoPanel/Labels"]
|
||||
text = "S"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="DefenceLabel" type="Label" parent="InfoPanel/Labels"]
|
||||
text = "0"
|
||||
|
||||
[node name="LabelA" type="Label" parent="InfoPanel/Labels"]
|
||||
text = "A"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="AttackLabel" type="Label" parent="InfoPanel/Labels"]
|
||||
text = "0"
|
||||
|
||||
[node name="LabelP" type="Label" parent="InfoPanel/Labels"]
|
||||
text = "P"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="PointsLabel" type="Label" parent="InfoPanel/Labels"]
|
||||
text = "0"
|
||||
@@ -0,0 +1,16 @@
|
||||
[gd_scene format=3]
|
||||
|
||||
[ext_resource type="Script" path="src/UI/EndTurnButton.cs" id="1_script"]
|
||||
|
||||
[node name="EndTurnButton" type="Control" script=ExtResource("1_script")]
|
||||
custom_minimum_size = Vector2(160, 50)
|
||||
layout_mode = 3
|
||||
|
||||
[node name="BtnEndTurn" type="Button" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_font_sizes/font_size = 16
|
||||
Reference in New Issue
Block a user