mirror of
https://github.com/EQEmu/Server.git
synced 2026-09-05 03:06:38 +00:00
[Expansions] Zone Expansion Version Routing (#4084)
* Expansion version routing * CheckForImproperContentFiles rule * Update world_content_service.cpp * Update client.cpp * Update client.cpp * Update CheckForImproperContentFiles * Remove nek pok check * Remove file checking * Remove * Command and dev tools menu tweaks * Update world_content_service.cpp * Update world_content_service.cpp * Update version path * Update content_filter_criteria.h * Update content_filter_criteria.h * Update quest_parser_collection.cpp * Update comments * PR feedback * Update client_packet.cpp * Remove notes column for display cleanliness
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
#include "show/buffs.cpp"
|
||||
#include "show/buried_corpse_count.cpp"
|
||||
#include "show/client_version_summary.cpp"
|
||||
#include "show/content_flags.cpp"
|
||||
#include "show/currencies.cpp"
|
||||
#include "show/distance.cpp"
|
||||
#include "show/emotes.cpp"
|
||||
@@ -64,6 +65,7 @@ void command_show(Client *c, const Seperator *sep)
|
||||
Cmd{.cmd = "buffs", .u = "buffs", .fn = ShowBuffs, .a = {"#showbuffs"}},
|
||||
Cmd{.cmd = "buried_corpse_count", .u = "buried_corpse_count", .fn = ShowBuriedCorpseCount, .a = {"#getplayerburiedcorpsecount"}},
|
||||
Cmd{.cmd = "client_version_summary", .u = "client_version_summary", .fn = ShowClientVersionSummary, .a = {"#cvs"}},
|
||||
Cmd{.cmd = "content_flags", .u = "content_flags", .fn = ShowContentFlags, .a = {"#showcontentflags"}},
|
||||
Cmd{.cmd = "currencies", .u = "currencies", .fn = ShowCurrencies, .a = {"#viewcurrencies"}},
|
||||
Cmd{.cmd = "distance", .u = "distance", .fn = ShowDistance, .a = {"#distance"}},
|
||||
Cmd{.cmd = "emotes", .u = "emotes", .fn = ShowEmotes, .a = {"#emoteview"}},
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
#include "../../client.h"
|
||||
#include "../../dialogue_window.h"
|
||||
|
||||
void ShowContentFlags(Client *c, const Seperator *sep)
|
||||
{
|
||||
Client *t = c;
|
||||
if (c->GetTarget() && c->GetTarget()->IsClient()) {
|
||||
t = c->GetTarget()->CastToClient();
|
||||
}
|
||||
|
||||
std::string flags = DialogueWindow::TableRow(
|
||||
DialogueWindow::TableCell("id") +
|
||||
DialogueWindow::TableCell("flag_name") +
|
||||
DialogueWindow::TableCell("enabled")
|
||||
);
|
||||
|
||||
for (auto &f: ContentFlagsRepository::All(database)) {
|
||||
flags += DialogueWindow::TableRow(
|
||||
DialogueWindow::TableCell(std::to_string(f.id)) +
|
||||
DialogueWindow::TableCell(f.flag_name) +
|
||||
DialogueWindow::TableCell(
|
||||
f.enabled ?
|
||||
DialogueWindow::ColorMessage("forest_green", "yes") :
|
||||
DialogueWindow::ColorMessage("red", "no")
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
c->SendPopupToClient("Server Content Flag Settings", DialogueWindow::Table(flags).c_str());
|
||||
}
|
||||
Reference in New Issue
Block a user