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>2013-11-08 13:20:45 +0000
committerStijn Buys <ingar@osirion.org>2013-11-08 13:20:45 +0000
commitbeefcbd30e5cb1b700c977090021cd4784989c1e (patch)
tree354086869e69b72b5603a9a58485d1e09c373bd8 /src/client/client.cc
parent3aa51da4ec976665a7e74bb659868d474400a101 (diff)
Added player reputation window,
minor cosmetic user interface changes.
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)
{