diff options
author | Stijn Buys <ingar@osirion.org> | 2013-11-08 13:20:45 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2013-11-08 13:20:45 +0000 |
commit | beefcbd30e5cb1b700c977090021cd4784989c1e (patch) | |
tree | 354086869e69b72b5603a9a58485d1e09c373bd8 /src/client/client.cc | |
parent | 3aa51da4ec976665a7e74bb659868d474400a101 (diff) |
Added player reputation window,
minor cosmetic user interface changes.
Diffstat (limited to 'src/client/client.cc')
-rw-r--r-- | src/client/client.cc | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/client/client.cc b/src/client/client.cc index 4d40e78..128ac7f 100644 --- a/src/client/client.cc +++ b/src/client/client.cc @@ -153,7 +153,10 @@ void Client::init(int count, char **arguments) func->set_info("toggle chat bar"); func = core::Func::add("ui_inventory", func_ui_inventory); - func->set_info("toggle inventory"); + func->set_info("toggle inventory window"); + + func = core::Func::add("ui_reputation", func_ui_reputation); + func->set_info("toggle reputation window"); func = core::Func::add("ui_map", func_ui_map); func->set_info("toggle map"); @@ -586,6 +589,14 @@ void Client::func_ui_inventory(std::string const &args) } } +// used by keybinds to open the reputation view +void Client::func_ui_reputation(std::string const &args) +{ + if (client()->connected() && client()->mainwindow()->gamewindow()->visible()) { + client()->mainwindow()->gamewindow()->toggle_reputation(); + } +} + // used by keybinds to open the map view void Client::func_ui_map(std::string const &args) { |