Added the recovery dialog back in :)

This commit is contained in:
hiker 2014-08-11 22:39:08 +10:00
parent 40224a85f6
commit 11f3c1fc11
2 changed files with 7 additions and 0 deletions

View File

@ -54,6 +54,8 @@
I18N="Login dialog" text="Add user" label_location="bottom"/>
<icon-button id="delete" width="64" height="64" icon="gui/gp_remove_track.png"
I18N="Login dialog" text="Delete" label_location="bottom"/>
<icon-button id="recover" width="64" height="64" icon="gui/main_options.png"
I18N="Login dialog" text="Recovery" label_location="bottom"/>
<icon-button id="rename" width="64" height="64" icon="gui/gp_rename.png"
I18N="Login dialog" text="Rename" label_location="bottom"/>
<icon-button id="cancel" width="64" height="64" icon="gui/main_quit.png"

View File

@ -27,6 +27,7 @@
#include "guiengine/widgets/list_widget.hpp"
#include "guiengine/widgets/text_box_widget.hpp"
#include "states_screens/dialogs/message_dialog.hpp"
#include "states_screens/dialogs/recovery_dialog.hpp"
#include "states_screens/main_menu_screen.hpp"
#include "states_screens/options_screen_audio.hpp"
#include "states_screens/options_screen_input.hpp"
@ -279,6 +280,10 @@ void BaseUserScreen::eventCallback(Widget* widget,
StateManager::get()->popMenu();
onEscapePressed();
}
else if (button == "recover")
{
new RecoveryDialog();
}
else if (button == "rename")
{
PlayerProfile *cp = getSelectedPlayer();