changeset 2017:f59e1368b14d

unified brackets in chat windows and added some extra margin to avoid unexpected line breaks
author wuha
date Mon, 31 Oct 2011 19:36:51 +0000
parents db8415fd72a8
children 6d0c4b752ab0
files src/core/world.cpp src/gui/mainwindow.cpp
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/core/world.cpp	Mon Oct 31 19:27:48 2011 +0000
+++ b/src/core/world.cpp	Mon Oct 31 19:36:51 2011 +0000
@@ -1247,9 +1247,9 @@
             getNetwork()->pushSlotMessage(cv);
 			m_network->deallocatePacket(cv);
 
-            smsg = "[";
+            smsg = "<";
 			smsg += m_local_player->getName().getRawText();
-            smsg += "] ";
+            smsg += "> ";
             smsg += msg.getTranslation();
 			
 			trsmsg = TranslatableString(smsg);
--- a/src/gui/mainwindow.cpp	Mon Oct 31 19:27:48 2011 +0000
+++ b/src/gui/mainwindow.cpp	Mon Oct 31 19:36:51 2011 +0000
@@ -2299,7 +2299,7 @@
 
 		float width = vec.asRelative(area).d_x;
 		float maxwidth = area.d_width * 0.43;
-		width += 3;
+		width += 10;
 		if (width > maxwidth)
 		{
 			width = maxwidth;