chat message manager: add default color for friendschatnotification chat type
This allows the config value for friends chat notifications to just default to null, allowing plugins to detect whether or not we want to override the default color for friends chat notification messages.
This commit is contained in:
@@ -231,6 +231,7 @@ public class ChatMessageManager
|
||||
case OBJECT_EXAMINE:
|
||||
case NPC_EXAMINE:
|
||||
case CONSOLE:
|
||||
case FRIENDSCHATNOTIFICATION:
|
||||
return JagexColors.CHAT_GAME_EXAMINE_TEXT_OPAQUE_BACKGROUND;
|
||||
}
|
||||
}
|
||||
@@ -251,6 +252,7 @@ public class ChatMessageManager
|
||||
case OBJECT_EXAMINE:
|
||||
case NPC_EXAMINE:
|
||||
case CONSOLE:
|
||||
case FRIENDSCHATNOTIFICATION:
|
||||
return JagexColors.CHAT_GAME_EXAMINE_TEXT_TRANSPARENT_BACKGROUND;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,7 +25,6 @@
|
||||
package net.runelite.client.config;
|
||||
|
||||
import java.awt.Color;
|
||||
import net.runelite.client.ui.JagexColors;
|
||||
|
||||
@ConfigGroup("textrecolor")
|
||||
public interface ChatColorConfig extends Config
|
||||
@@ -111,15 +110,12 @@ public interface ChatColorConfig extends Config
|
||||
|
||||
@ConfigItem(
|
||||
position = 7,
|
||||
keyName = "opaqueClanChatInfo",
|
||||
keyName = "opaqueFriendsChatInfo",
|
||||
name = "Friends chat info",
|
||||
description = "Friends Chat Information (eg. when joining a channel)",
|
||||
section = opaqueSection
|
||||
)
|
||||
default Color opaqueFriendsChatInfo()
|
||||
{
|
||||
return JagexColors.CHAT_GAME_EXAMINE_TEXT_OPAQUE_BACKGROUND;
|
||||
}
|
||||
Color opaqueFriendsChatInfo();
|
||||
|
||||
@ConfigItem(
|
||||
position = 8,
|
||||
@@ -387,15 +383,12 @@ public interface ChatColorConfig extends Config
|
||||
|
||||
@ConfigItem(
|
||||
position = 57,
|
||||
keyName = "transparentClanChatInfo",
|
||||
keyName = "transparentFriendsChatInfo",
|
||||
name = "Friends chat info (transparent)",
|
||||
description = "Friends chat information (eg. when joining a channel) (transparent)",
|
||||
section = transparentSection
|
||||
)
|
||||
default Color transparentFriendsChatInfo()
|
||||
{
|
||||
return JagexColors.CHAT_GAME_EXAMINE_TEXT_TRANSPARENT_BACKGROUND;
|
||||
}
|
||||
Color transparentFriendsChatInfo();
|
||||
|
||||
@ConfigItem(
|
||||
position = 58,
|
||||
|
||||
Reference in New Issue
Block a user