mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-11 21:01:29 +00:00
24 lines
495 B
C++
Executable File
24 lines
495 B
C++
Executable File
#include "../client.h"
|
|
#include "../data_bucket.h"
|
|
|
|
void command_devtools(Client *c, const Seperator *sep)
|
|
{
|
|
const uint16 arguments = sep->argnum;
|
|
if (arguments != 2) {
|
|
c->ShowDevToolsMenu();
|
|
return;
|
|
}
|
|
|
|
const std::string& type = sep->arg[1];
|
|
const bool toggle = Strings::ToBool(sep->arg[2]);
|
|
|
|
if (Strings::EqualFold(type, "menu")) {
|
|
c->SetDevToolsEnabled(toggle);
|
|
} else if (Strings::EqualFold(type, "window")) {
|
|
c->SetDisplayMobInfoWindow(toggle);
|
|
}
|
|
|
|
c->ShowDevToolsMenu();
|
|
}
|
|
|