Skip to content

Commit

Permalink
runelite-client: add chat color config
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam- committed May 28, 2018
1 parent 2480b55 commit cbb23cf
Show file tree
Hide file tree
Showing 6 changed files with 903 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
import net.runelite.api.Client;
import net.runelite.client.account.SessionManager;
import net.runelite.client.chat.ChatMessageManager;
import net.runelite.client.config.ChatColorConfig;
import net.runelite.client.config.ConfigManager;
import net.runelite.client.config.RuneLiteConfig;
import net.runelite.client.game.ItemManager;
Expand Down Expand Up @@ -73,6 +74,13 @@ RuneLiteConfig provideConfig(ConfigManager configManager)
return configManager.getConfig(RuneLiteConfig.class);
}

@Provides
@Singleton
ChatColorConfig provideChatColorConfig(ConfigManager configManager)
{
return configManager.getConfig(ChatColorConfig.class);
}

@Provides
@Singleton
EventBus provideEventBus()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,28 @@
package net.runelite.client.chat;

import java.awt.Color;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@AllArgsConstructor
@EqualsAndHashCode(exclude = "color")
@EqualsAndHashCode(exclude = {"color", "isDefault"})
public class ChatColor
{
private ChatColorType type;
private Color color;
private boolean transparent;
private boolean isDefault;

public ChatColor(ChatColorType type, Color color, boolean transparent)
{
this(type, color, transparent, false);
}

public ChatColor(ChatColorType type, Color color, boolean transparent, boolean isDefault)
{
this.type = type;
this.color = color;
this.transparent = transparent;
this.isDefault = isDefault;
}
}
Loading

0 comments on commit cbb23cf

Please sign in to comment.