From ab9ffb755805cbde54a6db4e702817f287158ea4 Mon Sep 17 00:00:00 2001 From: Christen Lofland Date: Mon, 1 Apr 2024 18:50:12 -0500 Subject: [PATCH] Fix font setup in Dodge the Creeps (#1026) --- 2d/dodge_the_creeps/HUD.tscn | 6 +++++- 2d/dodge_the_creeps/fonts/Xolonium-Regular.tres | 6 ------ 2 files changed, 5 insertions(+), 7 deletions(-) delete mode 100644 2d/dodge_the_creeps/fonts/Xolonium-Regular.tres diff --git a/2d/dodge_the_creeps/HUD.tscn b/2d/dodge_the_creeps/HUD.tscn index ec57adf3..c11f0971 100644 --- a/2d/dodge_the_creeps/HUD.tscn +++ b/2d/dodge_the_creeps/HUD.tscn @@ -1,6 +1,7 @@ -[gd_scene load_steps=4 format=3 uid="uid://ccqoreueuxdb7"] +[gd_scene load_steps=5 format=3 uid="uid://ccqoreueuxdb7"] [ext_resource type="Script" path="res://HUD.gd" id="1"] +[ext_resource type="FontFile" uid="uid://cit6gwe5px1q8" path="res://fonts/Xolonium-Regular.ttf" id="2_2jm3i"] [sub_resource type="InputEventAction" id="InputEventAction_fopy7"] action = &"start_game" @@ -16,6 +17,7 @@ anchors_preset = 10 anchor_right = 1.0 offset_bottom = 78.0 grow_horizontal = 2 +theme_override_fonts/font = ExtResource("2_2jm3i") theme_override_font_sizes/font_size = 60 text = "0" horizontal_alignment = 1 @@ -29,6 +31,7 @@ offset_top = -79.5 offset_bottom = 79.5 grow_horizontal = 2 grow_vertical = 2 +theme_override_fonts/font = ExtResource("2_2jm3i") theme_override_font_sizes/font_size = 60 text = "Dodge the Creeps" @@ -46,6 +49,7 @@ offset_right = 90.0 offset_bottom = -100.0 grow_horizontal = 2 grow_vertical = 0 +theme_override_fonts/font = ExtResource("2_2jm3i") theme_override_font_sizes/font_size = 60 shortcut = SubResource("4") text = "Start" diff --git a/2d/dodge_the_creeps/fonts/Xolonium-Regular.tres b/2d/dodge_the_creeps/fonts/Xolonium-Regular.tres deleted file mode 100644 index a525fcbc..00000000 --- a/2d/dodge_the_creeps/fonts/Xolonium-Regular.tres +++ /dev/null @@ -1,6 +0,0 @@ -[gd_resource type="Font" load_steps=2 format=3 uid="uid://dyjc58f6sdms0"] - -[ext_resource type="FontData" uid="uid://cit6gwe5px1q8" path="res://fonts/Xolonium-Regular.ttf" id="1_mnk3h"] - -[resource] -data/0 = ExtResource( "1_mnk3h" )