pastebin

Paste #UfI -- näytä pelkkänä tekstinä -- uusi tämän pohjalta

Värjäys: Tyyli: ensimmäinen rivinumero: Tabin korvaus:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
diff --git a/src/game.cpp b/src/game.cpp
index a3a5f42..5495191 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -991,6 +991,9 @@ void the_game(
 			core::rect<s32>(0,0,400,text_height+5) + v2s32(100,200),
 			false, false);
 	
+	guitext_info->setBackgroundColor(video::SColor(64, 0, 0, 0));
+	guitext_info->setDrawBackground(true);
+	
 	// Chat text
 	gui::IGUIStaticText *guitext_chat = guienv->addStaticText(
 			L"",
@@ -2120,7 +2123,13 @@ void the_game(
 		}
 		
 		{
-			guitext_info->setText(infotext.c_str());
+			if(infotext.empty()) {
+				guitext_info->setVisible(false);
+			}
+			else {
+				guitext_info->setVisible(true);
+				guitext_info->setText(infotext.c_str());
+			}
 		}
 		
 		/*