Skip to content

Commit

Permalink
Update ui-menu.py
Browse files Browse the repository at this point in the history
  • Loading branch information
TJ Ferry committed Sep 1, 2014
1 parent 4353726 commit d056f98
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions ui-menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ def __init__(self):
x = 62 + i % half * 155
y = 160 if i < half else 365
self.add_subview(self.make_button(x, y, character))
self.present(style='full_screen', hide_title_bar=True)

@classmethod
def make_header(cls):
Expand Down Expand Up @@ -42,7 +41,6 @@ def __init__(self, high_scores=high_scores):
tv.data_source = ui.ListDataSource(items=self.scores_list(high_scores))
tv.allows_selection = tv.data_source.delete_enabled = False
self.add_subview(tv)
self.present('sheet')
#self.wait_modal()

@classmethod
Expand All @@ -69,16 +67,15 @@ def __init__(self, default_user_name='Name'):
frame=(360, 175, 75, 36),
image=ui.Image.named('ionicons-arrow-right-a-32'))
self.add_subview(button)
self.present(style='sheet', hide_title_bar=True)

def change_character(sender):
SelectACharacterView()
SelectACharacterView().present(style='full_screen', hide_title_bar=True)

def change_name(sender):
UserNameView()
UserNameView().present(style='sheet', hide_title_bar=True)

def show_leaderboard(sender):
HighScoreView()
HighScoreView().present('sheet')

def play_game(sender):
ui.close_all()
Expand Down

0 comments on commit d056f98

Please sign in to comment.