r2619 - in trunk/data/menu: creategame data

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sat May 19 16:04:01 EDT 2007


Author: div0
Date: 2007-05-19 16:04:01 -0400 (Sat, 19 May 2007)
New Revision: 2619

Modified:
   trunk/data/menu/creategame/maplist.menu
   trunk/data/menu/data/server.menu
Log:
added menu controls for g_maplist_votable and g_maplist_shuffle; these are now saved


Modified: trunk/data/menu/creategame/maplist.menu
===================================================================
--- trunk/data/menu/creategame/maplist.menu	2007-05-19 19:24:18 UTC (rev 2618)
+++ trunk/data/menu/creategame/maplist.menu	2007-05-19 20:04:01 UTC (rev 2619)
@@ -21,10 +21,24 @@
 	Derive Nex_Option_MapType MapQuery
 	{
 		pos	'0 0'
-		size	'900 20'
+		size	'380 20'
 		text	"Map Type:"
 		target	"Data::Server::Map::Query::Switch"
 	}
+	Derive Nex_Option_MapType Votable
+	{
+		pos	'380 0'
+		size	'260 20'
+		text	"Voting:"
+		target	"Data::Server::Map::Votable::Switch"
+	}
+	Derive Nex_Option_MapType Random
+	{
+		pos	'640 0'
+		size	'200 20'
+		text	"Selection:"
+		target	"Data::Server::Map::Random::Switch"
+	}
 	Derive Label MapsLabel
 	{
 		pos	'0 20'

Modified: trunk/data/menu/data/server.menu
===================================================================
--- trunk/data/menu/data/server.menu	2007-05-19 19:24:18 UTC (rev 2618)
+++ trunk/data/menu/data/server.menu	2007-05-19 20:04:01 UTC (rev 2619)
@@ -37,6 +37,34 @@
 			// creates x and x_index (CVAR_SAVE)
 			cvarName	"g_maplist"
 		}
+
+		Item Data_CvarCreateSave Random
+		{
+			cvarName	"g_maplist_shuffle"
+			defValue	1
+
+			Item DataLink_ValueSwitch Switch
+			{
+				minValue	0
+				stepValue	1
+				maxValue	1
+				descList	"'Linear''Random'"
+				link		"##up"
+			}
+		}
+
+		Item Data_CvarCreateSave Votable
+		{
+			cvarName	"g_maplist_votable"
+			defValue	5
+
+			Item DataLink_ValueSwitch Switch
+			{
+				valueList   "'0''3''4''5'"
+				descList	"'none''3 maps''4 maps''5 maps'"
+				link		"##up"
+			}
+		}
 	}
 
 	Item Data_Cvar Hostname




More information about the nexuiz-commits mailing list