File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 3636 BUTTON_BACK = 7
3737 BUTTON_NEXT = 8
3838 BUTTON_CLOSE = 9
39+ BUTTON_CLOSE_SLOT = BUTTON_CLOSE
3940 MAX_ITEM_COUNT = 6
4041 VALID_CHOICES = range (1 , 10 )
4142else :
4243 BUTTON_BACK = 8
4344 BUTTON_NEXT = 9
4445 BUTTON_CLOSE = 10
46+ BUTTON_CLOSE_SLOT = 0
4547 MAX_ITEM_COUNT = 7
4648 VALID_CHOICES = range (1 , 11 )
4749
@@ -61,8 +63,8 @@ def _get_menu_data(self, player_index):
6163 @param <player_index>:
6264 A player index.
6365 """
64- # Always enable BUTTON_CLOSE
65- slots = {BUTTON_CLOSE }
66+ # Always enable BUTTON_CLOSE_SLOT
67+ slots = {BUTTON_CLOSE_SLOT }
6668 buffer = ''
6769 page = self ._player_pages [player_index ]
6870 page .options = {}
@@ -314,8 +316,8 @@ def _get_menu_data(self, player_index):
314316 # Get the player's current page
315317 page = self ._player_pages [player_index ]
316318
317- # Always enable slot BUTTON_CLOSE
318- slots = {BUTTON_CLOSE }
319+ # Always enable BUTTON_CLOSE_SLOT
320+ slots = {BUTTON_CLOSE_SLOT }
319321
320322 # Format the menu
321323 buffer = self ._format_header (player_index , page , slots )
You can’t perform that action at this time.
0 commit comments