From 8ccfd7747bddf3fad75b0f358a64e66646b54032 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 19 Oct 2008 17:16:39 +0000 Subject: ui_chat and ui_chatsmall --- src/client/client.cc | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/client/client.cc') 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"); -- cgit v1.2.3