diff options
author | Stijn Buys <ingar@osirion.org> | 2008-12-07 09:03:10 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-12-07 09:03:10 +0000 |
commit | 7de62efc14d0e0f037051bd887c96f28fd9a3215 (patch) | |
tree | c3e792bc7feaaa73d69eb417d2b2424195206818 /src/client/client.cc | |
parent | 94a368b734911abe5cab7c61a23e8c225354df85 (diff) |
add system map,
prepare source tree for dataset reorganization
Diffstat (limited to 'src/client/client.cc')
-rw-r--r-- | src/client/client.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/client/client.cc b/src/client/client.cc index 650813c..769aacb 100644 --- a/src/client/client.cc +++ b/src/client/client.cc @@ -117,6 +117,9 @@ void Client::init(int count, char **arguments) func = core::Func::add("ui_chatsmall", Client::func_ui_chatsmall); func->set_info("toggle small chat window"); + func = core::Func::add("ui_map", Client::func_ui_map); + func->set_info("toggle map"); + func = core::Func::add("snd_restart", Client::func_snd_restart); func->set_info("restart audio subsystem"); @@ -352,5 +355,12 @@ void Client::func_ui_chatsmall(std::string const &args) } } +void Client::func_ui_map(std::string const &args) +{ + if (core::application()->connected()) { + client()->view()->map()->toggle(); + } +} + } // namespace client |