Search in sources :

Example 6 with Usericon

use of chatty.util.api.usericons.Usericon in project chatty by chatty.

the class ChannelTextPane method printUserIcons.

/**
 * Prints the icons for the given User.
 *
 * @param user
 */
private void printUserIcons(User user) {
    addAddonIcons(user, true);
    addTwitchBadges(user);
    if (user.isBot() && styles.botBadgeEnabled()) {
        Usericon icon = user.getIcon(Usericon.Type.BOT);
        if (icon != null && !icon.removeBadge) {
            print(icon.getSymbol(), styles.makeIconStyle(icon));
        }
    }
    addAddonIcons(user, false);
}
Also used : Usericon(chatty.util.api.usericons.Usericon)

Example 7 with Usericon

use of chatty.util.api.usericons.Usericon in project chatty by chatty.

the class UsericonEditor method addUsericonOfBadgeType.

public void addUsericonOfBadgeType(String idVersion) {
    Usericon usericon = UsericonFactory.createCustomIcon(Type.TWITCH, idVersion, "", "", "");
    addItem(usericon);
}
Also used : Usericon(chatty.util.api.usericons.Usericon)

Aggregations

Usericon (chatty.util.api.usericons.Usericon)7 User (chatty.User)2 EmoticonImage (chatty.util.api.Emoticon.EmoticonImage)2 JSONObject (org.json.simple.JSONObject)2 UserListener (chatty.gui.UserListener)1 ChannelContextMenu (chatty.gui.components.menus.ChannelContextMenu)1 EmoteContextMenu (chatty.gui.components.menus.EmoteContextMenu)1 UrlContextMenu (chatty.gui.components.menus.UrlContextMenu)1 UserContextMenu (chatty.gui.components.menus.UserContextMenu)1 UsericonContextMenu (chatty.gui.components.menus.UsericonContextMenu)1 Emoticon (chatty.util.api.Emoticon)1 EmoticonUpdate (chatty.util.api.EmoticonUpdate)1 ArrayList (java.util.ArrayList)1 JPopupMenu (javax.swing.JPopupMenu)1 JSONParser (org.json.simple.parser.JSONParser)1