#include "../client.h" #include "../groups.h" void command_ginfo(Client *c, const Seperator *sep) { Client *target = c; if (c->GetTarget() && c->GetTarget()->IsClient()) { target = c->GetTarget()->CastToClient(); } auto target_group = target->GetGroup(); if (!target_group) { c->Message( Chat::White, fmt::format( "{} {} not in a group.", c->GetTargetDescription(target, TargetDescriptionType::UCYou), c == target ? "are" : "is" ).c_str() ); return; } std::string popup_title = fmt::format( "Group Info for {}", c->GetTargetDescription(target, TargetDescriptionType::UCSelf) ); std::string popup_text = "
| Group ID | {} | Members | {} | ", target_group->GetID(), target_group->GroupCount() ); popup_text += "||
| Index | "; popup_text += "Name | "; popup_text += "In Zone | "; popup_text += "Assist | "; popup_text += "Puller | "; popup_text += "Tank | "; popup_text += "
| {} | {} | {} | {} | {} | {} |