diff options
author | Stijn Buys <ingar@osirion.org> | 2008-05-12 18:32:15 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-05-12 18:32:15 +0000 |
commit | 5ceb4694a05ec68b5cfba18b0f25ba804be88a80 (patch) | |
tree | d1baddc086de4bb4fa04cf59d11516f4ecc89bf3 /src/client/chat.cc | |
parent | e4f2faa8d5895ba30207c09c7886afb21a697d5f (diff) |
console colors
Diffstat (limited to 'src/client/chat.cc')
-rw-r--r-- | src/client/chat.cc | 15 |
1 files changed, 6 insertions, 9 deletions
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); } } |