Skip to content

Commit

Permalink
Merge pull request #116 from wrzwicky/wrz_exitchooser
Browse files Browse the repository at this point in the history
Add a way to exit without changing directory
  • Loading branch information
Linkid committed Nov 12, 2017
2 parents a9da6dd + 580aa49 commit 46a4cc2
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 @@ -805,6 +805,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 46a4cc2

Please sign in to comment.