Add achievements button to titlescreen.
This commit is contained in:
parent
9f5d58763e
commit
f68d8cf980
2 changed files with 7 additions and 0 deletions
|
@ -254,6 +254,7 @@ where
|
|||
{_GUI_BUTTON "addons" _"Add-ons" _"Download usermade campaigns, eras, or map packs"}
|
||||
{_GUI_BUTTON "editor" _"Map Editor" _"Start the map editor"}
|
||||
{_GUI_BUTTON "preferences" _"Preferences" _"Configure the game’s settings"}
|
||||
{_GUI_BUTTON "achievements" _"Achievements" _"View achievements"}
|
||||
{_GUI_BUTTON "credits" _"Credits" _"View the credits"}
|
||||
{_GUI_BUTTON "quit" _"Quit" _"Quit the game"}
|
||||
# This debug feature doesn't need to be translated, so put it in the test textdomain.
|
||||
|
|
|
@ -354,6 +354,12 @@ void title_screen::init_callbacks()
|
|||
gui2::dialogs::preferences_dialog::display();
|
||||
});
|
||||
|
||||
//
|
||||
// Achievements
|
||||
//
|
||||
register_button(*this, "achievements", hotkey::HOTKEY_ACHIEVEMENTS,
|
||||
std::bind(&title_screen::show_achievements, this));
|
||||
|
||||
//
|
||||
// Credits
|
||||
//
|
||||
|
|
Loading…
Add table
Reference in a new issue