mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-22 07:28:14 +00:00
fonts can now have custom variations via jsons
This commit is contained in:
@@ -146,7 +146,6 @@ layer = 0
|
||||
script = ExtResource("1_f34v2")
|
||||
|
||||
[node name="Main" type="HBoxContainer" parent="."]
|
||||
visible = false
|
||||
custom_minimum_size = Vector2(256, 32)
|
||||
anchors_preset = 10
|
||||
anchor_right = 1.0
|
||||
@@ -242,7 +241,6 @@ offset_left = 4.0
|
||||
offset_top = -12.0
|
||||
offset_right = 36.0
|
||||
offset_bottom = 4.0
|
||||
theme_override_fonts/font = ExtResource("17_2w8b3")
|
||||
text = "*03"
|
||||
|
||||
[node name="CoinIcon" type="AnimatedSprite2D" parent="Main/CoinCount"]
|
||||
@@ -267,7 +265,6 @@ offset_left = 4.0
|
||||
offset_top = -4.0
|
||||
offset_right = 36.0
|
||||
offset_bottom = 12.0
|
||||
theme_override_fonts/font = ExtResource("17_2w8b3")
|
||||
text = "*00"
|
||||
|
||||
[node name="RedCoins" type="Control" parent="Main"]
|
||||
@@ -585,6 +582,7 @@ custom_minimum_size = Vector2(24, 0)
|
||||
layout_mode = 2
|
||||
|
||||
[node name="ModernHUD" type="Control" parent="."]
|
||||
visible = false
|
||||
custom_minimum_size = Vector2(256, 0)
|
||||
layout_mode = 3
|
||||
anchors_preset = 10
|
||||
|
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=56 format=3 uid="uid://c3h2iqkvitqd2"]
|
||||
[gd_scene load_steps=58 format=3 uid="uid://c3h2iqkvitqd2"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://bod0jkf7jc5pm" path="res://Scenes/Prefabs/GameHud.tscn" id="1_ctvpw"]
|
||||
[ext_resource type="Script" uid="uid://bbxqn16ekbpcl" path="res://Scripts/Classes/Singletons/Global.gd" id="1_t23sr"]
|
||||
@@ -23,6 +23,8 @@
|
||||
[ext_resource type="Script" uid="uid://cbal8ms2oe1ik" path="res://Scripts/Classes/Components/ResourceSetterNew.gd" id="19_okfpr"]
|
||||
[ext_resource type="Texture2D" uid="uid://bhgjvnslkt143" path="res://Assets/Sprites/UI/PanelSelected.png" id="19_xspbb"]
|
||||
[ext_resource type="JSON" path="res://Assets/Sprites/UI/Cursor.json" id="20_3l3ph"]
|
||||
[ext_resource type="JSON" path="res://Assets/Sprites/UI/FontMain.json" id="23_3l3ph"]
|
||||
[ext_resource type="JSON" path="res://Assets/Sprites/UI/ScoreFont.json" id="24_m6bur"]
|
||||
|
||||
[sub_resource type="Animation" id="Animation_6jmk5"]
|
||||
resource_name = "FadeIn"
|
||||
@@ -441,6 +443,22 @@ metadata/_custom_type_script = "uid://cbal8ms2oe1ik"
|
||||
script = ExtResource("18_1la0o")
|
||||
metadata/_custom_type_script = "uid://ctsjagoa5t33f"
|
||||
|
||||
[node name="MainFontGetter" type="Node" parent="FontUpdater" node_paths=PackedStringArray("node_to_affect")]
|
||||
script = ExtResource("19_okfpr")
|
||||
node_to_affect = NodePath("..")
|
||||
property_name = "main_font"
|
||||
mode = 4
|
||||
resource_json = ExtResource("23_3l3ph")
|
||||
metadata/_custom_type_script = "uid://cbal8ms2oe1ik"
|
||||
|
||||
[node name="ScoreFontGetter" type="Node" parent="FontUpdater" node_paths=PackedStringArray("node_to_affect")]
|
||||
script = ExtResource("19_okfpr")
|
||||
node_to_affect = NodePath("..")
|
||||
property_name = "score_font"
|
||||
mode = 4
|
||||
resource_json = ExtResource("24_m6bur")
|
||||
metadata/_custom_type_script = "uid://cbal8ms2oe1ik"
|
||||
|
||||
[node name="TextShadowColourChanger" type="Node" parent="." node_paths=PackedStringArray("labels")]
|
||||
script = ExtResource("19_l7dvb")
|
||||
labels = [NodePath("../CanvasLayer/VBoxContainer/ErrorMessage"), NodePath("../CanvasLayer/VBoxContainer/Comment"), NodePath("../CanvasLayer/VBoxContainer/Warning"), NodePath("../GameHUD/FPSCount")]
|
||||
|
Reference in New Issue
Block a user