//=============================================================================//
// ___ ___ _ _ _ __ _ ___ ___ __ __
// |_ _|| __| / \ | \_/ | / _| / \ | o \ o \\ V /
// | | | _| | o || \_/ | ( |_n| o || / / \ /
// |_| |___||_n_||_| |_| \__/|_n_||_|\\_|\\ |_| 2007
//
//=============================================================================//
local PANEL = {}
/*---------------------------------------------------------
---------------------------------------------------------*/
function PANEL:Init()
self.StartGame:
SetText( "Start Game" )
self.StartGame.DoClick = function() self:LaunchGame() end
self.StartGame:SetDisabled( true )
self.Help:
SetText( "#ChooseMapHelp" )
self.Help:SetTextColor
( Color( 0,
0,
0,
230 ) )
// Restore the saved hostname
end
/*---------------------------------------------------------
---------------------------------------------------------*/
function PANEL:Paint()
end
/*---------------------------------------------------------
---------------------------------------------------------*/
function PANEL:PerformLayout()
end
/*---------------------------------------------------------
---------------------------------------------------------*/
function PANEL:SetMap( strMap )
self.Map = strMap
self.StartGame:SetDisabled( false )
end
/*--------------------------------------------------------
---------------------------------------------------------*/
function PANEL:SetMultiplayer()
self.Multiplayer = true
end
/*---------------------------------------------------------
---------------------------------------------------------*/
function PANEL:LaunchGame()
// Error Sound?
if (!self.Map) then return end
// This hook is used to close all of the GAMEUI windows.
if ( !self.Multiplayer ) then
else
// Set maxplayers..
end
// This tiny delay is to allow the disconnect, then allow maxplayers to change.
// Save the hostname
end