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:
@@ -26,6 +26,7 @@ package net.runelite.mixins;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import net.runelite.api.ChatMessageType;
|
||||
import net.runelite.api.GameState;
|
||||
import net.runelite.api.IndexedSprite;
|
||||
import net.runelite.api.MenuAction;
|
||||
@@ -99,9 +100,9 @@ public abstract class RSClientMixin implements RSClient
|
||||
|
||||
@Inject
|
||||
@Override
|
||||
public void sendGameMessage(String message)
|
||||
public void sendGameMessage(ChatMessageType type, String message)
|
||||
{
|
||||
sendGameMessage(99, "", message);
|
||||
sendGameMessage(type.getType(), "", message);
|
||||
}
|
||||
|
||||
@Inject
|
||||
|
||||
Reference in New Issue
Block a user