Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2015-02-28 22:38:47 +0000
committerStijn Buys <ingar@osirion.org>2015-02-28 22:38:47 +0000
commit3fc2e602f059dee3f92a9f0063f43eecccb48a1f (patch)
tree0662fb7055cb0511d999008b8916e6598bc06db7
parent874c85f8a009a1c16a85b439c2dccfb04e3371f9 (diff)
Added a repair option to the menu of carriers.
-rw-r--r--src/game/base/ship.cc6
1 files changed, 6 insertions, 0 deletions
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);