From 5ceb4694a05ec68b5cfba18b0f25ba804be88a80 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Mon, 12 May 2008 18:32:15 +0000 Subject: console colors --- src/client/chat.cc | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'src/client/chat.cc') diff --git a/src/client/chat.cc b/src/client/chat.cc index 0d1def6..1953390 100644 --- a/src/client/chat.cc +++ b/src/client/chat.cc @@ -79,19 +79,16 @@ void draw() while (input_pos - draw_pos > width) draw_pos += 2; - // draw the console input - gl::color(1.0f, 1.0f, 1.0f, 1.0f); - Text::draw(4 , 5 + Text::fontheight() * (MAXNOTIFYLINES+1), "say"); - gl::color(0.0f, 1.0f, .0f, 1.0f); - Text::draw(4+Text::fontwidth()*3 , 5 + Text::fontheight() * (MAXNOTIFYLINES+1), ":"); + // draw the chat input + float y = video::height * 8.0 / 10.0; - gl::color(1.0f, 1.0f, 1.0f, 1.0f); - Text::draw(4+Text::fontwidth()*5, 5 + Text::fontheight() * (MAXNOTIFYLINES+1), (*history_pos).substr(draw_pos, width)); + Text::draw(4 , y, "^Bsay^F:^B"); + Text::draw(4+Text::fontwidth()*5 , y, (*history_pos).substr(draw_pos, width)); // draw cursor if ((core::application()->time() - ::floorf(core::application()->time())) < 0.5f) { - std::string cursor("_"); - Text::draw(4+Text::fontwidth()*(input_pos - draw_pos+5), 5 + Text::fontheight() * (MAXNOTIFYLINES+1) , cursor); + std::string cursor("^B_"); + Text::draw(4+Text::fontwidth()*(input_pos - draw_pos+5), y, cursor); } } -- cgit v1.2.3