- added a help message to the statusbar

Mon, 15 Dec 2014 01:47:40 +0200

author
Teemu Piippo <crimsondusk64@gmail.com>
date
Mon, 15 Dec 2014 01:47:40 +0200
changeset 28
3cc042af3090
parent 27
089e37c0887e
child 29
e534f2f78196

- added a help message to the statusbar

sources/interface.cpp file | annotate | diff | comparison | revisions
--- a/sources/interface.cpp	Mon Dec 15 01:41:06 2014 +0200
+++ b/sources/interface.cpp	Mon Dec 15 01:47:40 2014 +0200
@@ -289,14 +289,14 @@
 
 	if (session == nullptr)
 	{
-		text = "[DISCONNECTED]";
+		text = "";
 	}
 	else
 	{
 		switch (session->state())
 		{
 		case RCON_DISCONNECTED:
-			text = "[DISCONNECTED]";
+			text = "Disconnected.";
 			break;
 
 		case RCON_CONNECTING:
@@ -320,6 +320,11 @@
 		}
 	}
 
+	if (not text.is_empty())
+		text += " | ";
+
+	text += "^N to connect, ^Q to quit";
+
 	if (text != g_statusBarText)
 	{
 		g_statusBarText = text;

mercurial