Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

Onslaught.ONSLinkDesignMessage


00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
// Onslaught Link Designer and link setup related messages

class ONSLinkDesignMessage extends LocalMessage;

var(String) localized string SetupString, SaveSetupString, LoadSetupString, SaveFailedString, LoadFailedString, DeleteSetupString,
			DeleteOfficialFailedString, DeleteNothingString, NoPathToPowerCoreString, LoadFailedNoPathToCoreString;

static function ClientReceive(	PlayerController P, optional int Switch, optional PlayerReplicationInfo RelatedPRI_1,
				optional PlayerReplicationInfo RelatedPRI_2, optional Object OptionalObject )
{
	if (Switch == 7)
		P.ClientOpenMenu("GUI2K4.UT2K4GenericMessageBox",,, default.NoPathToPowerCoreString);
	else if (Switch == 8)
		P.ClientOpenMenu("GUI2K4.UT2K4GenericMessageBox",,, default.LoadFailedNoPathToCoreString);
	else
		Super.ClientReceive(P, Switch, RelatedPRI_1, RelatedPRI_2, OptionalObject);
}

static function color GetConsoleColor(PlayerReplicationInfo RelatedPRI_1)
{
	return class'HUD'.Default.WhiteColor;
}

static function string GetString( optional int Switch, optional PlayerReplicationInfo RelatedPRI_1, optional PlayerReplicationInfo RelatedPRI_2,
			 optional Object OptionalObject )
{
	switch (Switch)
	{
	case 0:
		return Default.SaveSetupString;
	case 1:
		return Default.SaveFailedString;
	case 2:
		return Default.LoadSetupString;
	case 3:
		return Default.LoadFailedString;
	case 4:
		return Default.DeleteSetupString;
	case 5:
		return Default.DeleteOfficialFailedString;
	case 6:
		return Default.DeleteNothingString;
	}
}

defaultproperties
{
	SaveSetupString="Successfully saved Link Setup."
	SaveFailedString="You can't overwrite official Link Setups!"
	LoadSetupString="Successfully loaded Link Setup."
	LoadFailedString="Failed to load Link Setup because no setup of that name exists."
	DeleteSetupString="Successfully deleted Link Setup."
	DeleteOfficialFailedString="You can't delete official Link Setups!"
	DeleteNothingString="Failed to delete Link Setup because no setup of that name exists."
	NoPathToPowerCoreString="Cannot save Link Setup: There must be a complete path between the PowerCores."
	LoadFailedNoPathToCoreString="Failed to load Link Setup because it does not have a complete path between the PowerCores."
	bIsSpecial=false
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: Di 5.9.2006 22:31:48.000 - Creation time: Do 14.8.2014 09:58:46.618 - Created with UnCodeX