mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-21 15:08:12 +00:00
fixed fonts being loaded using shitty fuckass uids
This commit is contained in:
@@ -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 != {}:
|
||||
|
@@ -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()
|
||||
|
@@ -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
|
||||
|
@@ -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:
|
||||
|
Reference in New Issue
Block a user