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>2014-12-13 14:27:26 +0000
committerStijn Buys <ingar@osirion.org>2014-12-13 14:27:26 +0000
commit2c4d6e947546f2732dd59d13fb331ec1412315ee (patch)
tree0eff7023435767cb1deace51f0dbd9e26016e0cd /src/client
parentf58c9992f6a6006213123c2fc2cda0d0f055494b (diff)
Use messagebox notifications when buying a ship.
Diffstat (limited to 'src/client')
-rw-r--r--src/client/buymenu.cc13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/client/buymenu.cc b/src/client/buymenu.cc
index 857e663..c81d80f 100644
--- a/src/client/buymenu.cc
+++ b/src/client/buymenu.cc
@@ -105,13 +105,24 @@ void BuyMenu::set_item(core::Info *info)
menu_buybutton->set_label("buy " + menu_inforecord->type()->label() + ' ' + menu_inforecord->label());
menu_modelview->show();
-
+
+ /*
+ * NOTE
+ *
+ * client-side is only aware of the price of the item/ship but has no knowledge of any potential refunds
+ * made by the game-side buy function (see game::base::Game::func_buy)
+ * The buy button is always shown, and game-side should send messageboxes where approriate.
+ * */
+ menu_buybutton->show();
+ /*
if (core::localplayer()->credits() < menu_inforecord->price()) {
menu_msgtext->set_text("^1Not enough credits");
menu_msgtext->show();
} else {
menu_buybutton->show();
}
+ */
+
}
menu_infotimestamp = menu_inforecord->timestamp();