// Can be used to add custom GUI components to Esc menu. class SRMenuAddition extends ReplicationInfo abstract; var PlayerController PlayerOwner; var SRInvasionLoginMenu ActiveMenu; var bool bHasInit; replication { // Functions server can call. reliable if( Role==ROLE_Authority ) RepInit; } function PostBeginPlay() { PlayerOwner = PlayerController(Owner); GoToState('ServerIdle'); } simulated function PostNetBeginPlay() { bHasInit = true; } simulated function RepInit() { // Do nothing, simply to force server initiate actor channel immeaditly. } simulated function NotifyMenuOpen( SRInvasionLoginMenu M, GUIController C ) { ActiveMenu = M; } simulated function NotifyMenuShown(); simulated function NotifyMenuClosed(); simulated function RemoveComponents(); // Unhook the custom menu buttons here so game doesn't crash. simulated function Destroyed() { local int i; if( ActiveMenu!=None ) { for( i=0; i