mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-22 15:38:14 +00:00
fixed a crash when exiting pipes, and restored the LL font cause apparently i accidentily deleted it last commit, whoops, also wrote a quick optimization into the font updater to speed up load times
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
class_name FontUpdater
|
||||
extends Node
|
||||
|
||||
var main_font: Resource = null
|
||||
var score_font: Resource = null
|
||||
var main_font: FontFile = null
|
||||
var score_font: FontFile = null
|
||||
var ga_font: Resource = null
|
||||
var jp_font: Resource = null
|
||||
|
||||
@@ -17,5 +17,7 @@ func _ready() -> void:
|
||||
Global.level_theme_changed.connect(update_fonts)
|
||||
|
||||
func update_fonts() -> void:
|
||||
FONT_MAIN.base_font = main_font
|
||||
if FONT_MAIN.base_font.get_meta("base_path", "") != main_font.get_meta("base_path", "null"):
|
||||
print([FONT_MAIN.base_font.get_meta("base_path"), main_font.get_meta("base_path")])
|
||||
FONT_MAIN.base_font = main_font
|
||||
SCORE_FONT.base_font = score_font
|
||||
|
Reference in New Issue
Block a user