chat channel: use fc max size from container
This commit is contained in:
@@ -33,6 +33,13 @@ public interface NameableContainer<T extends Nameable>
|
||||
*/
|
||||
int getCount();
|
||||
|
||||
/**
|
||||
* Get the maximum size of the container.
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
int getSize();
|
||||
|
||||
/**
|
||||
* Get the members in this container
|
||||
*
|
||||
|
||||
@@ -608,7 +608,7 @@ public class ChatChannelPlugin extends Plugin
|
||||
Widget chatTitle = client.getWidget(WidgetInfo.FRIENDS_CHAT_TITLE);
|
||||
if (friendsChatManager != null && friendsChatManager.getCount() > 0 && chatTitle != null)
|
||||
{
|
||||
chatTitle.setText(chatTitle.getText() + " (" + friendsChatManager.getCount() + "/100)");
|
||||
chatTitle.setText(chatTitle.getText() + " (" + friendsChatManager.getCount() + "/" + friendsChatManager.getSize() + ")");
|
||||
}
|
||||
}
|
||||
else if (event.getScriptId() == ScriptID.CLAN_SIDEPANEL_DRAW)
|
||||
|
||||
Reference in New Issue
Block a user