Skip to content

Commit

Permalink
Add a way to exit without changing directory
Browse files Browse the repository at this point in the history
Press button 5 to exit without changing directory.
  • Loading branch information
wrzwicky committed Nov 2, 2017
1 parent 26c1a8c commit 580aa49
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions fofix/game/SongChoosingScene.py
Expand Up @@ -87,8 +87,8 @@ def __init__(self, engine, libraryName = None, songName = None):
self.gameStarted = False

self.gamePlayers = len(self.playerList)
self.parts = [None for i in self.playerList]
self.diffs = [None for i in self.playerList]
self.parts = [None] * self.gamePlayers
self.diffs = [None] * self.gamePlayers

self.time = 0
self.lastTime = 0
Expand Down Expand Up @@ -881,6 +881,9 @@ def keyPressed(self, key, isUnicode):
self.moreInfo = True
elif c in Player.menuNo and c in Player.cancels:
self.engine.view.pushLayer(self.menu)
elif c in Player.key5s:
""" exit song choosing screen """
self.quit()
def scrollUp(self):
if self.moreInfo:
self.infoPage -= 1
Expand Down

0 comments on commit 580aa49

Please sign in to comment.