chat channel: use fc max size from container

This commit is contained in:
Adam
2022-06-10 08:35:40 -04:00
parent b9d9cab697
commit 70ca9a7706
2 changed files with 8 additions and 1 deletions

View File

@@ -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
*

View File

@@ -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)