fixed fonts being loaded using shitty fuckass uids

This commit is contained in:
JHDev2006
2025-10-17 19:23:13 +01:00
parent 9a17f140e0
commit 676efa6443
4 changed files with 6 additions and 5 deletions

View File

@@ -190,11 +190,12 @@ func apply_properties(properties := {}) -> void:
obj.set(p, properties[i])
continue
func get_variation_json(json := {}) -> Dictionary:
var level_theme = Global.level_theme
if force_properties.has("Theme"):
level_theme = force_properties.Theme
for i in json.keys().filter(func(key): return key.contains("config:")):
get_config_file(current_resource_pack)
if config_to_use != {}:

View File

@@ -464,7 +464,7 @@ func check_completionist_achievement() -> void:
if achievements.count("0") == 1:
unlock_achievement(AchievementID.COMPLETIONIST)
const FONT = preload("uid://cd221873lbtj1")
const FONT = preload("res://Assets/Sprites/UI/Font.fnt")
func sanitize_string(string := "") -> String:
string = string.to_upper()

View File

@@ -6,8 +6,8 @@ var score_font: FontFile = null
var ga_font: Resource = null
var jp_font: Resource = null
var FONT_MAIN = preload("uid://bl7sbw4nx3l1t")
var SCORE_FONT = preload("uid://cflgloiossd8a")
var FONT_MAIN = preload("res://Resources/ThemedResources/FontMain.tres")
var SCORE_FONT = preload("res://Resources/ThemedResources/ScoreFont.tres")
static var current_font: Font = null

View File

@@ -4,7 +4,7 @@ extends Node
const valid_chars := "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-*!.^/+:,'()?_;<> \n"
@export var node_to_validate: Control = null
const FONT = preload("uid://cd221873lbtj1")
const FONT = preload("res://Assets/Sprites/UI/Font.fnt")
signal text_validated(new_text: String)
func validate_text() -> void: