Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/client.cc')
-rw-r--r--src/client/client.cc13
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)
{