enabled word wrap in chat
parent
a4cceb93ec
commit
4a6e6cee20
|
@ -871,8 +871,8 @@ void the_game(
|
||||||
gui::IGUIStaticText *guitext_chat = guienv->addStaticText(
|
gui::IGUIStaticText *guitext_chat = guienv->addStaticText(
|
||||||
L"",
|
L"",
|
||||||
core::rect<s32>(0,0,0,0),
|
core::rect<s32>(0,0,0,0),
|
||||||
false, false); // Disable word wrap as of now
|
//false, false); // Disable word wrap as of now
|
||||||
//false, true);
|
false, true);
|
||||||
//guitext_chat->setBackgroundColor(video::SColor(96,0,0,0));
|
//guitext_chat->setBackgroundColor(video::SColor(96,0,0,0));
|
||||||
core::list<ChatLine> chat_lines;
|
core::list<ChatLine> chat_lines;
|
||||||
|
|
||||||
|
@ -1996,7 +1996,7 @@ void the_game(
|
||||||
10,
|
10,
|
||||||
50,
|
50,
|
||||||
screensize.X - 10,
|
screensize.X - 10,
|
||||||
50 + text_height*chat_lines.size()
|
50 + guitext_chat->getTextHeight()
|
||||||
);
|
);
|
||||||
|
|
||||||
guitext_chat->setRelativePosition(rect);
|
guitext_chat->setRelativePosition(rect);
|
||||||
|
|
Loading…
Reference in New Issue