diff options
author | Stijn Buys <ingar@osirion.org> | 2014-12-13 14:27:26 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2014-12-13 14:27:26 +0000 |
commit | 2c4d6e947546f2732dd59d13fb331ec1412315ee (patch) | |
tree | 0eff7023435767cb1deace51f0dbd9e26016e0cd /src/client | |
parent | f58c9992f6a6006213123c2fc2cda0d0f055494b (diff) |
Use messagebox notifications when buying a ship.
Diffstat (limited to 'src/client')
-rw-r--r-- | src/client/buymenu.cc | 13 |
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(); |