runelite-client: recolor chat command messages when chatbox transparency changes

Support different colors for transparent chat boxes
This commit is contained in:
l2-
2017-11-10 13:46:16 -05:00
committed by Adam
parent ea6a650c1e
commit 7539e7b640
8 changed files with 359 additions and 68 deletions

View File

@@ -32,10 +32,27 @@ import net.runelite.rs.api.RSMessageNode;
@Mixin(RSMessageNode.class)
public abstract class RSMessageNodeMixin implements RSMessageNode
{
@Inject
private String runeLiteFormatMessage;
@Inject
@Override
public ChatMessageType getType()
{
return ChatMessageType.of(getRSType());
}
@Inject
@Override
public String getRuneLiteFormatMessage()
{
return runeLiteFormatMessage;
}
@Inject
@Override
public void setRuneLiteFormatMessage(String runeLiteFormatMessage)
{
this.runeLiteFormatMessage = runeLiteFormatMessage;
}
}