mirror of
https://github.com/EQEmu/Server.git
synced 2026-01-07 06:13:52 +00:00
[Bug Fix] Fix #show group_info Popup (#3605)
# Notes - Wasn't using `DialogueWindow::TableCell` so they weren't showing up. - Fixed `red1` to `red_1` so it shows.
This commit is contained in:
parent
f053cd3b56
commit
7db7631308
@ -46,7 +46,7 @@ void ShowGroupInfo(Client *c, const Seperator *sep)
|
||||
);
|
||||
|
||||
const std::string yes = DialogueWindow::ColorMessage("forest_green", "Y");
|
||||
const std::string no = DialogueWindow::ColorMessage("red1", "N");
|
||||
const std::string no = DialogueWindow::ColorMessage("red_1", "N");
|
||||
|
||||
for (int group_member = 0; group_member < MAX_GROUP_MEMBERS; group_member++) {
|
||||
if (g->membername[group_member][0] == '\0') {
|
||||
@ -60,8 +60,8 @@ void ShowGroupInfo(Client *c, const Seperator *sep)
|
||||
popup_table += DialogueWindow::TableRow(
|
||||
fmt::format(
|
||||
"{}{}{}{}{}{}",
|
||||
group_member,
|
||||
(
|
||||
DialogueWindow::TableCell(std::to_string(group_member)),
|
||||
DialogueWindow::TableCell(
|
||||
strcmp(g->membername[group_member], c->GetCleanName()) ?
|
||||
g->membername[group_member] :
|
||||
fmt::format(
|
||||
@ -69,10 +69,10 @@ void ShowGroupInfo(Client *c, const Seperator *sep)
|
||||
g->membername[group_member]
|
||||
)
|
||||
),
|
||||
g->members[group_member] ? yes : no,
|
||||
is_assist ? yes : no,
|
||||
is_puller ? yes : no,
|
||||
is_tank ? yes : no
|
||||
DialogueWindow::TableCell(g->members[group_member] ? yes : no),
|
||||
DialogueWindow::TableCell(is_assist ? yes : no),
|
||||
DialogueWindow::TableCell(is_puller ? yes : no),
|
||||
DialogueWindow::TableCell(is_tank ? yes : no)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
@ -24,7 +24,7 @@ void ShowZoneData(Client *c, const Seperator *sep)
|
||||
fmt::format(
|
||||
"{} {} {}",
|
||||
DialogueWindow::ColorMessage(
|
||||
"red1",
|
||||
"red_1",
|
||||
std::to_string(zone->newzone_data.fog_red[fog_index])
|
||||
),
|
||||
DialogueWindow::ColorMessage(
|
||||
@ -206,7 +206,7 @@ void ShowZoneData(Client *c, const Seperator *sep)
|
||||
DialogueWindow::TableCell(
|
||||
zone->newzone_data.suspend_buffs ?
|
||||
DialogueWindow::ColorMessage("forest_green", "Y") :
|
||||
DialogueWindow::ColorMessage("red1", "N")
|
||||
DialogueWindow::ColorMessage("red_1", "N")
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user