From 3fc2e602f059dee3f92a9f0063f43eecccb48a1f Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 28 Feb 2015 22:38:47 +0000 Subject: Added a repair option to the menu of carriers. --- src/game/base/ship.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/game/base/ship.cc b/src/game/base/ship.cc index 15b995c..cc583d9 100644 --- a/src/game/base/ship.cc +++ b/src/game/base/ship.cc @@ -113,6 +113,12 @@ Ship::Ship(core::Player *owner, const ShipModel *shipmodel) : core::EntityContro add_menu(menu_main); ButtonDescription *button = new ButtonDescription(); + button->set_text("Repair"); + button->set_command("repair confirm", ButtonDescription::CommandGame); + button->set_alignment(ButtonDescription::Center); + menu_main->add_button(button); + + button = new ButtonDescription(); button->set_text("Launch"); button->set_command("launch", ButtonDescription::CommandGame); button->set_alignment(ButtonDescription::Center); -- cgit v1.2.3