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"/> I18N="Login dialog" text="Add user" label_location="bottom"/>
<icon-button id="delete" width="64" height="64" icon="gui/gp_remove_track.png" <icon-button id="delete" width="64" height="64" icon="gui/gp_remove_track.png"
I18N="Login dialog" text="Delete" label_location="bottom"/> 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" <icon-button id="rename" width="64" height="64" icon="gui/gp_rename.png"
I18N="Login dialog" text="Rename" label_location="bottom"/> I18N="Login dialog" text="Rename" label_location="bottom"/>
<icon-button id="cancel" width="64" height="64" icon="gui/main_quit.png" <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/list_widget.hpp"
#include "guiengine/widgets/text_box_widget.hpp" #include "guiengine/widgets/text_box_widget.hpp"
#include "states_screens/dialogs/message_dialog.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/main_menu_screen.hpp"
#include "states_screens/options_screen_audio.hpp" #include "states_screens/options_screen_audio.hpp"
#include "states_screens/options_screen_input.hpp" #include "states_screens/options_screen_input.hpp"
@ -279,6 +280,10 @@ void BaseUserScreen::eventCallback(Widget* widget,
StateManager::get()->popMenu(); StateManager::get()->popMenu();
onEscapePressed(); onEscapePressed();
} }
else if (button == "recover")
{
new RecoveryDialog();
}
else if (button == "rename") else if (button == "rename")
{ {
PlayerProfile *cp = getSelectedPlayer(); PlayerProfile *cp = getSelectedPlayer();