diff options
author | Stijn Buys <ingar@osirion.org> | 2008-10-19 17:16:39 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-10-19 17:16:39 +0000 |
commit | 8ccfd7747bddf3fad75b0f358a64e66646b54032 (patch) | |
tree | 8d666d7172fced1e310701741b860ed13f400a78 /src/client/client.cc | |
parent | 1d580ed36893b24b618ff1e6f9023e497c62498c (diff) |
ui_chat and ui_chatsmall
Diffstat (limited to 'src/client/client.cc')
-rw-r--r-- | src/client/client.cc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/client/client.cc b/src/client/client.cc index c1fab8a..076e72a 100644 --- a/src/client/client.cc +++ b/src/client/client.cc @@ -52,6 +52,15 @@ void func_r_restart(std::string const &args) void func_ui_chat(std::string const &args) { if (core::application()->connected()) { + client()->view()->chat()->set_small(false); + client()->view()->chat()->toggle(); + } +} + +void func_ui_chatsmall(std::string const &args) +{ + if (core::application()->connected()) { + client()->view()->chat()->set_small(true); client()->view()->chat()->toggle(); } } @@ -143,6 +152,9 @@ void Client::init(int count, char **arguments) func = core::Func::add("ui_chat", func_ui_chat); func->set_info("toggle chat window"); + func = core::Func::add("ui_chatsmall", func_ui_chatsmall); + func->set_info("toggle small chat window"); + func = core::Func::add("ui_console", func_ui_console); func->set_info("toggle console on or off"); @@ -230,6 +242,7 @@ void Client::shutdown() core::Func::remove("r_restart"); core::Func::remove("ui_chat"); + core::Func::remove("ui_chatsmall"); core::Func::remove("ui_console"); core::Func::remove("snd_restart"); |