mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-22 07:28:14 +00:00
Adjusted previous update and added Ach
- Adjusted previous update to use Godot Editor Metadata - Applied Resource Pack changes to Ach Unlock Popup (I assume) and Container - Applied Resource Pack changes to Character Select Spotlight - Applied Resource Pack changes to Level Containers (Icon, Difficulty Stars, and Campaign)
This commit is contained in:
@@ -3,13 +3,6 @@ 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:
|
||||
|
@@ -59,8 +59,9 @@ func setup_visuals() -> void:
|
||||
var world_visited = (SaveManager.visited_levels.substr((idx + world_offset) * 4, 4) != "0000" or Global.debug_mode or idx == 0)
|
||||
if world_visited == false:
|
||||
level_theme = "Mystery"
|
||||
var resource_getter = ResourceGetter.new() #Is it safe to be making a new one of these per icon?
|
||||
i.get_node("Icon").region_rect = CustomLevelContainer.THEME_RECTS[level_theme]
|
||||
i.get_node("Icon").texture = CustomLevelContainer.ICON_TEXTURES[0 if (idx <= 3 or idx >= 8) and Global.current_campaign != "SMBANN" else 1]
|
||||
i.get_node("Icon").texture = resource_getter.get_resource(CustomLevelContainer.ICON_TEXTURES[0 if (idx <= 3 or idx >= 8) and Global.current_campaign != "SMBANN" else 1])
|
||||
i.get_node("Icon/Number").region_rect.position.y = clamp(NUMBER_Y.find(level_theme) * 12, 0, 9999)
|
||||
i.get_node("Icon/Number").region_rect.position.x = (idx + world_offset) * 12
|
||||
idx += 1
|
||||
|
Reference in New Issue
Block a user