]> Skullheadx's Git Forge - Pygame-Jam.git/commitdiff
Fixed Autoload button so it can be toggled off
authorlbcmk <30442978+lbcmk@users.noreply.github.com>
Sat, 9 Jul 2022 08:13:12 +0000 (04:13 -0400)
committerlbcmk <30442978+lbcmk@users.noreply.github.com>
Sat, 9 Jul 2022 08:13:12 +0000 (04:13 -0400)
DevLevelSelect.py

index 7b4df99a93a78d943bd0e4c0eb623cf86e7b2eed..261e7191fd240304763a5ff5a61a26f98ac6d273 100644 (file)
@@ -57,8 +57,12 @@ class DevLevelSelect:
             case 3:
                 self.level = -2
             case 4:
-                self.texts[4] = createText(250, 550, 24, black, "Regular", "AutoLoad [x]")
-                self.autoload = True
+                if(self.autoload == False):
+                    self.texts[4] = createText(250, 550, 24, black, "Regular", "AutoLoad [x]")
+                    self.autoload = True
+                else:
+                    self.texts[4] = createText(250, 550, 24, black, "Regular", "AutoLoad [-]")
+                    self.autoload = False
                 return;
 
         if(self.autoload == True):