Jump to content
Sign in to follow this  
fake

Colored text messages

Recommended Posts

Hey folks,

just a quick question - how can I send colored text messages to the player?

Right now I'm sending text messages to players likes this:

void sendPlayerMessage(PlayerBase player, string message)	
{
  Param1<string> Msgparam;
  Msgparam = new Param1<string>(message);
  GetGame().RPCSingleParam(player, ERPCs.RPC_USER_ACTION_MESSAGE, Msgparam, true, player.GetIdentity());
}

I am triggering any input of the player by the callback:

override void OnEvent(EventType eventTypeId, Param params)

case ChatMessageEventTypeID

This allows the player to use commands without mods of course and
to send global messages by using a command right before his message.

The issue is the RPC_USER_ACTION_MESSAGE type which is DARK RED and hard to see.
 

(1) How could I send messages instead by defining an own color or at least in WHITE?

(2) How can I hide the (local) message the player has entered from being displayed in the chat?

 

I appreciate any kind of help.

Regards - FakE

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×