Ticket #3954: load_fix.patch
File load_fix.patch, 1.4 KB (added by , 16 years ago) |
---|
-
launcher.cpp
662 662 new ButtonWidget(this, "launcher_options_button", "Options", kOptionsCmd, 'O'); 663 663 _startButton = 664 664 new ButtonWidget(this, "launcher_start_button", "Start", kStartCmd, 'S'); 665 666 new ButtonWidget(this, "launcher_loadGame_button", "Load", kLoadGameCmd, 'L');667 665 666 _loadButton = 667 new ButtonWidget(this, "launcher_loadGame_button", "Load", kLoadGameCmd, 'L'); 668 668 669 // Above the lowest button rows: two more buttons (directly below the list box) 669 670 _addButton = 670 671 new ButtonWidget(this, "launcher_addGame_button", "Add Game...", kAddGameCmd, 'A'); … … 1068 1069 _removeButton->draw(); 1069 1070 } 1070 1071 1072 if (enable != _loadButton->isEnabled()) { 1073 _loadButton->setEnabled(enable); 1074 _loadButton->draw(); 1075 } 1076 1071 1077 // Update the label of the "Add" button depending on whether shift is pressed or not 1072 1078 int modifiers = g_system->getEventManager()->getModifierState(); 1073 1079 const char *newAddButtonLabel = ((modifiers & Common::KBD_SHIFT) != 0) -
launcher.h
54 54 ListWidget *_list; 55 55 ButtonWidget *_addButton; 56 56 Widget *_startButton; 57 Widget *_loadButton; 57 58 Widget *_editButton; 58 59 Widget *_removeButton; 59 60 #ifndef DISABLE_FANCY_THEMES