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:
@@ -58,6 +58,7 @@ import lombok.extern.slf4j.Slf4j;
|
||||
import net.runelite.api.Client;
|
||||
import net.runelite.api.Query;
|
||||
import net.runelite.client.account.AccountSession;
|
||||
import net.runelite.client.chat.ChatMessageManager;
|
||||
import net.runelite.client.config.ConfigManager;
|
||||
import net.runelite.client.events.SessionClose;
|
||||
import net.runelite.client.events.SessionOpen;
|
||||
@@ -101,6 +102,9 @@ public class RuneLite
|
||||
@Inject
|
||||
private ConfigManager configManager;
|
||||
|
||||
@Inject
|
||||
private ChatMessageManager chatMessageManager;
|
||||
|
||||
@Inject
|
||||
private ScheduledExecutorService executor;
|
||||
|
||||
@@ -166,6 +170,7 @@ public class RuneLite
|
||||
configManager.load();
|
||||
|
||||
eventBus.register(menuManager);
|
||||
eventBus.register(chatMessageManager);
|
||||
|
||||
// Setup the notifier
|
||||
notifier = new Notifier(trayIcon);
|
||||
|
||||
Reference in New Issue
Block a user