From 36abc689d783774ce4f2d7b5a1bb621d8684be45 Mon Sep 17 00:00:00 2001 From: David Luevano Alvarado Date: Sat, 4 Jun 2022 23:00:58 -0600 Subject: added more ui for after gameplay, generalized basic food --- src/ui/stats_display/scenes/ProgressionLabel.tscn | 50 ++++++++++++++++++++++ src/ui/stats_display/scenes/StatsDisplay.tscn | 52 +++++++++++++++++++++++ 2 files changed, 102 insertions(+) create mode 100644 src/ui/stats_display/scenes/ProgressionLabel.tscn create mode 100644 src/ui/stats_display/scenes/StatsDisplay.tscn (limited to 'src/ui/stats_display/scenes') diff --git a/src/ui/stats_display/scenes/ProgressionLabel.tscn b/src/ui/stats_display/scenes/ProgressionLabel.tscn new file mode 100644 index 0000000..bc7aef8 --- /dev/null +++ b/src/ui/stats_display/scenes/ProgressionLabel.tscn @@ -0,0 +1,50 @@ +[gd_scene load_steps=5 format=2] + +[ext_resource path="res://ui/stats_display/sprites/sep_8x8.png" type="Texture" id=1] +[ext_resource path="res://themes/Theme.tres" type="Theme" id=2] +[ext_resource path="res://ui/stats_display/scripts/progression_label.gd" type="Script" id=3] +[ext_resource path="res://ui/stats_display/sprites/sep_2x2.png" type="Texture" id=4] + +[node name="ProgressionLabel" type="MarginContainer"] +theme = ExtResource( 2 ) +script = ExtResource( 3 ) + +[node name="HBox" type="HBoxContainer" parent="."] +margin_right = 74.0 +margin_bottom = 13.0 +custom_constants/separation = 0 + +[node name="Center" type="CenterContainer" parent="HBox"] +margin_right = 8.0 +margin_bottom = 13.0 + +[node name="VBox" type="VBoxContainer" parent="HBox/Center"] +margin_top = 1.0 +margin_right = 8.0 +margin_bottom = 11.0 +custom_constants/separation = 0 + +[node name="Sep" type="TextureRect" parent="HBox/Center/VBox"] +margin_right = 8.0 +margin_bottom = 2.0 +texture = ExtResource( 4 ) + +[node name="TextureRect" type="TextureRect" parent="HBox/Center/VBox"] +margin_top = 2.0 +margin_right = 8.0 +margin_bottom = 10.0 +texture = ExtResource( 1 ) + +[node name="Prefix" type="Label" parent="HBox"] +margin_left = 8.0 +margin_right = 44.0 +margin_bottom = 13.0 +custom_colors/font_color_shadow = Color( 0, 0, 0, 1 ) +text = "Prefix" + +[node name="Stats" type="Label" parent="HBox"] +margin_left = 44.0 +margin_right = 74.0 +margin_bottom = 13.0 +custom_colors/font_color_shadow = Color( 0, 0, 0, 1 ) +text = "Stats" diff --git a/src/ui/stats_display/scenes/StatsDisplay.tscn b/src/ui/stats_display/scenes/StatsDisplay.tscn new file mode 100644 index 0000000..9b86a55 --- /dev/null +++ b/src/ui/stats_display/scenes/StatsDisplay.tscn @@ -0,0 +1,52 @@ +[gd_scene load_steps=5 format=2] + +[ext_resource path="res://fonts/MonogramExtended.tres" type="DynamicFont" id=1] +[ext_resource path="res://themes/Theme.tres" type="Theme" id=2] +[ext_resource path="res://ui/stats_display/scenes/ProgressionLabel.tscn" type="PackedScene" id=3] +[ext_resource path="res://ui/stats_display/scripts/stats_display.gd" type="Script" id=4] + +[node name="StatsDisplay" type="MarginContainer"] +anchor_right = 1.0 +anchor_bottom = 1.0 +theme = ExtResource( 2 ) +script = ExtResource( 4 ) +PROGRESSION_LABEL = ExtResource( 3 ) + +[node name="Center" type="CenterContainer" parent="."] +margin_right = 320.0 +margin_bottom = 180.0 + +[node name="HBox" type="HBoxContainer" parent="Center"] +margin_left = 126.0 +margin_top = 82.0 +margin_right = 194.0 +margin_bottom = 98.0 + +[node name="ProgressionPanel" type="PanelContainer" parent="Center/HBox"] +margin_right = 68.0 +margin_bottom = 16.0 + +[node name="VBox" type="VBoxContainer" parent="Center/HBox/ProgressionPanel"] +margin_left = 1.0 +margin_top = 1.0 +margin_right = 67.0 +margin_bottom = 15.0 +custom_constants/separation = 0 + +[node name="Label" type="Label" parent="Center/HBox/ProgressionPanel/VBox"] +margin_right = 66.0 +margin_bottom = 13.0 +custom_colors/font_color_shadow = Color( 0, 0, 0, 1 ) +custom_fonts/font = ExtResource( 1 ) +text = "Progression" + +[node name="HSeparator" type="HSeparator" parent="Center/HBox/ProgressionPanel/VBox"] +margin_top = 13.0 +margin_right = 66.0 +margin_bottom = 14.0 + +[node name="VBox" type="VBoxContainer" parent="Center/HBox/ProgressionPanel/VBox"] +margin_top = 14.0 +margin_right = 66.0 +margin_bottom = 14.0 +custom_constants/separation = 0 -- cgit v1.2.3-70-g09d2