From beefcbd30e5cb1b700c977090021cd4784989c1e Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Fri, 8 Nov 2013 13:20:45 +0000 Subject: Added player reputation window, minor cosmetic user interface changes. --- src/client/client.cc | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'src/client/client.cc') 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) { -- cgit v1.2.3