Add chat message recolouring API

- Update api of SendMessage to also include message type
- Create API for updating chat message based on saved colors for normal
and highlighted message and for adding game messages that can be
recolored too
- Update chat commands plugin to use the new API
- Add option to globally disable recoloring to RuneliteConfig

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
Tomas Slusny
2017-12-06 14:53:45 +01:00
committed by Adam
parent 88932d2a72
commit 4860eb871f
14 changed files with 373 additions and 248 deletions

View File

@@ -42,6 +42,7 @@ public enum ChatMessageType
FRIENDS_LIST_ADD(30),
IGNORE_LIST_ADD(31),
AUTOCHAT(90),
GAME(99),
TRADE(101),
DUEL(103),
FILTERED(105),
@@ -66,4 +67,9 @@ public enum ChatMessageType
}
return UNKNOWN;
}
public int getType()
{
return type;
}
}

View File

@@ -40,7 +40,7 @@ public interface Client
int getRealSkillLevel(Skill skill);
void sendGameMessage(String message);
void sendGameMessage(ChatMessageType type, String message);
GameState getGameState();