first commit
This commit is contained in:
65
godot_client/scenes/character/character_card.tscn
Normal file
65
godot_client/scenes/character/character_card.tscn
Normal file
@@ -0,0 +1,65 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://dqx8k3h5nwc2r"]
|
||||
|
||||
[ext_resource type="Theme" uid="uid://bviqieumdiccr" path="res://assets/themes/main_theme.tres" id="1_80ja4"]
|
||||
[ext_resource type="Script" uid="uid://sxgrib8ck0wx" path="res://scripts/character/character_card.gd" id="1_card"]
|
||||
|
||||
[node name="CharacterCard" type="PanelContainer"]
|
||||
custom_minimum_size = Vector2(0, 120)
|
||||
size_flags_horizontal = 3
|
||||
theme = ExtResource("1_80ja4")
|
||||
script = ExtResource("1_card")
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="."]
|
||||
layout_mode = 2
|
||||
theme_override_constants/margin_left = 16
|
||||
theme_override_constants/margin_top = 12
|
||||
theme_override_constants/margin_right = 16
|
||||
theme_override_constants/margin_bottom = 12
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="InfoVBox" type="VBoxContainer" parent="MarginContainer/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
theme_override_constants/separation = 4
|
||||
|
||||
[node name="NameLabel" type="Label" parent="MarginContainer/HBoxContainer/InfoVBox"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 18
|
||||
text = "Character Name"
|
||||
|
||||
[node name="ClassLabel" type="Label" parent="MarginContainer/HBoxContainer/InfoVBox"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 14
|
||||
text = "Class Name"
|
||||
|
||||
[node name="LevelLabel" type="Label" parent="MarginContainer/HBoxContainer/InfoVBox"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 12
|
||||
text = "Level 1"
|
||||
|
||||
[node name="GoldLabel" type="Label" parent="MarginContainer/HBoxContainer/InfoVBox"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 12
|
||||
text = "0 Gold"
|
||||
|
||||
[node name="LocationLabel" type="Label" parent="MarginContainer/HBoxContainer/InfoVBox"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 12
|
||||
text = "Unknown Location"
|
||||
|
||||
[node name="ActionVBox" type="VBoxContainer" parent="MarginContainer/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 8
|
||||
alignment = 1
|
||||
|
||||
[node name="SelectButton" type="Button" parent="MarginContainer/HBoxContainer/ActionVBox"]
|
||||
custom_minimum_size = Vector2(100, 36)
|
||||
layout_mode = 2
|
||||
text = "Select"
|
||||
|
||||
[node name="DeleteButton" type="Button" parent="MarginContainer/HBoxContainer/ActionVBox"]
|
||||
custom_minimum_size = Vector2(100, 36)
|
||||
layout_mode = 2
|
||||
text = "Delete"
|
||||
156
godot_client/scenes/character/character_list.tscn
Normal file
156
godot_client/scenes/character/character_list.tscn
Normal file
@@ -0,0 +1,156 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://csqelun8tcd7y"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://x4mt6jwbywsl" path="res://scripts/character/character_list.gd" id="1_list"]
|
||||
[ext_resource type="Texture2D" uid="uid://cja8kui47qb3d" path="res://assets/ui/main_menu.png" id="2_arrgh"]
|
||||
[ext_resource type="Theme" uid="uid://bviqieumdiccr" path="res://assets/themes/main_theme.tres" id="3_pfk5o"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_mvluj"]
|
||||
bg_color = Color(0, 0, 0, 0.69411767)
|
||||
border_width_left = 1
|
||||
border_width_top = 1
|
||||
border_width_right = 1
|
||||
border_width_bottom = 1
|
||||
border_color = Color(0.83137256, 0.6862745, 0.21568628, 1)
|
||||
|
||||
[node name="CharacterList" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_list")
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = ExtResource("2_arrgh")
|
||||
expand_mode = 3
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_constants/separation = 16
|
||||
|
||||
[node name="Header" type="HBoxContainer" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="TitleLabel" type="Label" parent="VBoxContainer/Header"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
theme_override_font_sizes/font_size = 24
|
||||
text = "Your Characters"
|
||||
|
||||
[node name="TierLabel" type="Label" parent="VBoxContainer/Header"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 16
|
||||
text = "Free: 0/1"
|
||||
horizontal_alignment = 2
|
||||
|
||||
[node name="LoadingIndicator" type="CenterContainer" parent="VBoxContainer"]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="VBoxContainer/LoadingIndicator"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="ProgressBar" type="ProgressBar" parent="VBoxContainer/LoadingIndicator/VBoxContainer"]
|
||||
custom_minimum_size = Vector2(200, 0)
|
||||
layout_mode = 2
|
||||
max_value = 0.0
|
||||
indeterminate = true
|
||||
editor_preview_indeterminate = false
|
||||
|
||||
[node name="Label" type="Label" parent="VBoxContainer/LoadingIndicator/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "Loading characters..."
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="CharacterScrollContainer" type="ScrollContainer" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
horizontal_scroll_mode = 0
|
||||
|
||||
[node name="CharacterVBox" type="VBoxContainer" parent="VBoxContainer/CharacterScrollContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
theme_override_constants/separation = 12
|
||||
|
||||
[node name="ErrorContainer" type="MarginContainer" parent="VBoxContainer"]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
theme = ExtResource("3_pfk5o")
|
||||
theme_override_constants/margin_left = 16
|
||||
theme_override_constants/margin_top = 8
|
||||
theme_override_constants/margin_right = 16
|
||||
theme_override_constants/margin_bottom = 8
|
||||
|
||||
[node name="ErrorLabel" type="Label" parent="VBoxContainer/ErrorContainer"]
|
||||
custom_minimum_size = Vector2(200, 20)
|
||||
layout_mode = 2
|
||||
theme_override_colors/font_color = Color(0.9, 0.3, 0.3, 1)
|
||||
theme_override_styles/normal = SubResource("StyleBoxFlat_mvluj")
|
||||
text = "Error message here"
|
||||
horizontal_alignment = 1
|
||||
autowrap_mode = 2
|
||||
|
||||
[node name="ActionContainer" type="HBoxContainer" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 16
|
||||
alignment = 1
|
||||
|
||||
[node name="CreateButton" type="Button" parent="VBoxContainer/ActionContainer"]
|
||||
custom_minimum_size = Vector2(180, 44)
|
||||
layout_mode = 2
|
||||
text = "Create Character"
|
||||
|
||||
[node name="RefreshButton" type="Button" parent="VBoxContainer/ActionContainer"]
|
||||
custom_minimum_size = Vector2(100, 44)
|
||||
layout_mode = 2
|
||||
text = "Refresh"
|
||||
|
||||
[node name="EmptyState" type="CenterContainer" parent="."]
|
||||
visible = false
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="EmptyState"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 16
|
||||
|
||||
[node name="IconLabel" type="Label" parent="EmptyState/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 48
|
||||
text = "⚔"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="MessageLabel" type="Label" parent="EmptyState/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 18
|
||||
text = "No characters yet"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="SubMessageLabel" type="Label" parent="EmptyState/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "Create your first character to begin your adventure!"
|
||||
horizontal_alignment = 1
|
||||
autowrap_mode = 2
|
||||
|
||||
[node name="CreateFirstButton" type="Button" parent="EmptyState/VBoxContainer"]
|
||||
custom_minimum_size = Vector2(180, 44)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
text = "Create Character"
|
||||
Reference in New Issue
Block a user