From 16451e675cd99d18cda77719d20c2120d6aaa726 Mon Sep 17 00:00:00 2001 From: Lyssa <75037904+thecatontheceiling@users.noreply.github.com> Date: Tue, 29 Oct 2024 12:00:41 +0400 Subject: [PATCH] Add files via upload --- GlobalVariables.gd | 14 ++++---------- MenuManager.gd | 4 ++-- OptionsManager.gd | 5 ++--- 3 files changed, 8 insertions(+), 15 deletions(-) diff --git a/GlobalVariables.gd b/GlobalVariables.gd index 2b348c9..b3f1dd8 100644 --- a/GlobalVariables.gd +++ b/GlobalVariables.gd @@ -1,15 +1,13 @@ extends Node -var currentVersion_nr = "v1.9.905" -var currentVersion_hotfix = 3 +var currentVersion_nr = "v1.9.903" +var currentVersion_hotfix = 1 var using_steam = true var currentVersion = "" var versuffix_steam = " (STEAM)" var versuffix_itch = " (ITCH.IO)" -var discord_link = "https://discord.gg/UdjMNaKkQe" - var using_gl = false var controllerEnabled = false var music_enabled = true @@ -39,8 +37,6 @@ var skipping_intro = false #whether or not to skip the intro var lobby_id_found_in_command_line = 0 #lobby ID for when a player joins through an invite with the game closed var running_short_intro_in_lobby_scene : bool = false #if the user is entering the lobby scene from mp main, or has a command line lobby ID, skip the bootup animation var command_line_checked = false #whether or not the command line has been checked on running the game. -var version_to_check : String = "" #full version string that includes major, minor, patch, hotfix -var steam_id_version_checked_array : Array[int] #array of steam IDs that have the version checked. this must match the steam lobby member array IDs. func _ready(): if using_steam: currentVersion = currentVersion_nr + versuffix_steam @@ -48,8 +44,7 @@ func _ready(): debug_round_index_to_end_game_at = 2 original_volume_linear_interaction = db_to_linear(AudioServer.get_bus_volume_db(3)) original_volume_linear_music = db_to_linear(AudioServer.get_bus_volume_db(1)) - version_to_check = currentVersion_nr + "." + str(currentVersion_hotfix) - print("running full version name: ", version_to_check) + print("running version: ", currentVersion_nr, " with hotfix: ", str(currentVersion_hotfix)) func _unhandled_input(event): if GlobalVariables.mp_debugging: @@ -69,9 +64,8 @@ func _unhandled_input(event): var language_array = ["EN", "EE", "RU", "ES LATAM", "ES", "FR", "IT", "JA", "KO", "PL", "PT", "DE", "TR", "UA", "ZHS", "ZHT"] var index = 0 func SwapLanguage(dir : bool): - return if dir: - if index == language_array.size() - 1: + if index == language_array.size() - 1: index = 0 else: index += 1 diff --git a/MenuManager.gd b/MenuManager.gd index 8b0e09c..3110f3c 100644 --- a/MenuManager.gd +++ b/MenuManager.gd @@ -60,6 +60,7 @@ func _ready(): func _process(delta): T() + CheckCommandLine() func CheckCommandLine(): var arguments = OS.get_cmdline_args() @@ -176,7 +177,6 @@ func Show(what : String): func ReturnToLastScreen(): print("return to last screen") - if currentScreen == "credits": anim_creds.play("RESET") if (currentScreen) == "sub options": lastScreen = "main" if (currentScreen) == "rebind controls": lastScreen = "sub options" if (currentScreen == "audio video" or currentScreen == "language" or currentScreen == "controller" or currentScreen == "rebind controls"): optionmanager.SaveSettings() @@ -249,7 +249,7 @@ func ToggleMusic(): func ToggleColorblind(): optionmanager.ToggleColorblind() func DiscordLink(): - OS.shell_open(GlobalVariables.discord_link) + OS.shell_open("https://discord.gg/UdjMNaKkQe") func RebindControls(): Show("rebind controls") ResetButtons() diff --git a/OptionsManager.gd b/OptionsManager.gd index cf29bcc..035ea59 100644 --- a/OptionsManager.gd +++ b/OptionsManager.gd @@ -120,9 +120,8 @@ func AdjustSettings_music(): func ApplySettings_music(): if (setting_music_enabled): anim_vinyl.speed_scale = 1 else: anim_vinyl.speed_scale = 0 - AudioServer.set_bus_mute(1, !setting_music_enabled) #music - AudioServer.set_bus_mute(2, !setting_music_enabled) #music secondary - AudioServer.set_bus_mute(4, !setting_music_enabled) #music resolve + AudioServer.set_bus_mute(1, !setting_music_enabled) + AudioServer.set_bus_mute(2, !setting_music_enabled) AudioServer.get_property_list() GlobalVariables.music_enabled = setting_music_enabled