Skip to content

Commit

Permalink
Patch Popup Bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Killarexe committed Jul 21, 2024
1 parent 0980f34 commit a19ff4d
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 34 deletions.
60 changes: 30 additions & 30 deletions assets/style/default_theme.tres

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion export_presets.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ application/short_version="0.6.0"
application/version="0.6.0"
application/copyright="CC-BY-4.0"
application/copyright_localized={}
application/min_macos_version="10.12"
application/min_macos_version="10.0"
application/export_angle=0
display/high_res=true
xcode/platform_build="14C18"
Expand Down
2 changes: 1 addition & 1 deletion project.godot
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ config_version=5
config/name="Little Rage"
config/description="Little Rage is a Solo platformer game based on speedrun and race. And you can make your own levels."
config/version="0.6.0b"
config/tags=PackedStringArray("games")
config/tags=PackedStringArray("games", "singleplayer")
run/main_scene="res://scenes/uis/MainMenu.tscn"
config/features=PackedStringArray("4.2", "GL Compatibility")
boot_splash/bg_color=Color(0.235294, 0.737255, 0.988235, 1)
Expand Down
1 change: 1 addition & 0 deletions scenes/uis/CollectionsMenu.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,7 @@ _data = {
}

[node name="CollectionsMenu" type="Control"]
process_mode = 3
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
Expand Down
1 change: 0 additions & 1 deletion scripts/level/player/cosmetic/LootBoxesManager.gd
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ func add_loot_box(chance: float, always: bool = false):
SaveManager.save()
PopUpFrame.set_on_pressed(
func():
get_tree().paused = false
SceneManager.change_scene("res://scenes/uis/CollectionsMenu.tscn")
)
PopUpFrame.pop_translated("message.popup.new_loot_box", load("res://assets/textures/ui/icons/chest.png"))
Expand Down
4 changes: 3 additions & 1 deletion scripts/uis/collections_menu/MainCollectionMenu.gd
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,14 @@ func _ready():
func _input(event: InputEvent):
if (event is InputEventKey || event is InputEventMouseButton) && !event.is_released():
if event.is_action_pressed(UNLOCK_ALL_CHEAT_CODE[cheat_code_index]):
if cheat_code_index >= UNLOCK_ALL_CHEAT_CODE.size() - 1:
if cheat_code_index >= UNLOCK_ALL_CHEAT_CODE.size() - 1 && !Game.has_unlocked_all():
cheat_code_index = 0
for skin in PlayerSkinManager.skins:
PlayerSkinManager.unlock_skin(skin.id)
for hat in PlayerHatManager.hats:
PlayerHatManager.unlock_hat(hat.id)
for particle in PlayerParticleManager.particles:
PlayerParticleManager.unlock_particle(particle.id)
PopUpFrame.pop("Cheat Code: Unlock all!")
else:
cheat_code_index += 1
Expand Down

0 comments on commit a19ff4d

Please sign in to comment.