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

Engine.ChatRoomMessage


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
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
//==============================================================================
//	Created on: 08/18/2003
//	This class handles localized messages dealing with voice chatrooms.
//
//	Written by Ron Prestenback
//	© 2003, Epic Games, Inc.  All Rights Reserved
//==============================================================================
class ChatRoomMessage extends LocalMessage;

var localized string AnonText;
var localized string ChatRoomString[16];

static function string AssembleMessage(
    int Index,
    string ChannelTitle,
    optional PlayerReplicationInfo RelatedPRI
    )
{
    local string Text;

    if ( RelatedPRI != None )
        Text = Repl( default.ChatRoomString[Index], "%pri%", RelatedPRI.PlayerName );
    else if ( InStr(default.ChatRoomString[Index], "%pri%") != -1 )
        Text = Repl(default.ChatRoomString[Index], "%pri%", default.AnonText);
    else
        Text = default.ChatRoomString[Index];

    if ( ChannelTitle != "" )
        return Repl( Text, "%title%", ChannelTitle );

    else return Text;
}

static function bool IsConsoleMessage( int Index )
{
    switch ( Index )
    {
    case 1:
    case 7:
    case 8:
    case 9:
    case 10:
    case 11:
    case 12:
        return False;
    }

    return Super.IsConsoleMessage(Index);
}

defaultproperties
{
     AnonText="Someone"
     ChatRoomString(0)="Invalid channel or channel couldn't be found: '%title%'"
     ChatRoomString(1)="Already a member of channel '%title%'"
     ChatRoomString(2)="Channel '%title%' requires a password!"
     ChatRoomString(3)="Incorrect password specified for channel '%title%'"
     ChatRoomString(4)="You have been banned from channel '%title%'"
     ChatRoomString(5)="Couldn't join channel '%title%'.  Channel full!"
     ChatRoomString(6)="You are not allowed to join channel '%title%'"
     ChatRoomString(7)="Successfully joined channel '%title%'"
     ChatRoomString(8)="You left channel '%title%'"
     ChatRoomString(9)="Now speaking on channel '%title%'"
     ChatRoomString(10)="No longer speaking on channel '%title%'"
     ChatRoomString(11)="'%pri%' joined channel '%title%'"
     ChatRoomString(12)="'%pri%' left channel '%title%'"
     ChatRoomString(13)="Successfully banned '%pri%' from your personal chat channel"
     ChatRoomString(14)="Voice-chat ban action not successful.  No player with the specified ID was found"
     ChatRoomString(15)="Voice chat is not enabled on this server"
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: Fr 30.3.2007 08:43:36.000 - Creation time: Mo 16.4.2007 11:20:45.281 - Created with UnCodeX