mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-22 07:28:14 +00:00
Resource Pack Expansion Pt. 1
- Fixed Disclaimer Screen not playing Sound Effects loaded from the Resource Pack - Fixed Quit Dialog not playing Beep.wav loaded from Resource Packs - Fixed the Campaign Icons not loading the Resource Pack textures (in fairness the only icon applicable is the Custom Levels one)
This commit is contained in:
@@ -13,9 +13,15 @@ var old_campaign := ""
|
||||
@export var campaign := ["SMB1", "SMBLL", "SMBS", "SMBANN", "Custom"]
|
||||
|
||||
func _ready() -> void:
|
||||
update()
|
||||
Global.level_theme_changed.connect(update)
|
||||
get_starting_position()
|
||||
handle_visuals()
|
||||
|
||||
func update() -> void:
|
||||
for icon in campaign_icons:
|
||||
icon.atlas = $ResourceGetter.get_resource(icon.atlas)
|
||||
|
||||
func _process(_delta: float) -> void:
|
||||
if active:
|
||||
handle_input()
|
||||
|
@@ -3,6 +3,13 @@ extends Control
|
||||
signal cancelled
|
||||
var is_active := false
|
||||
|
||||
func _ready() -> void:
|
||||
update()
|
||||
Global.level_theme_changed.connect(update)
|
||||
|
||||
func update() -> void:
|
||||
$AudioStreamPlayer.stream = $ResourceGetter.get_resource($AudioStreamPlayer.stream)
|
||||
|
||||
func _physics_process(delta: float) -> void:
|
||||
modulate.a = lerpf(modulate.a, int(is_active), delta * 15)
|
||||
if Input.is_action_just_released("ui_back") and is_active:
|
||||
|
Reference in New Issue
Block a user