#include <lib/csqcmodel/cl_model.qh>
#include <lib/csqcmodel/interpolate.qh>
#include <lib/warpzone/client.qh>
-#include <menu/command/notice.qh>
+#include <menu/modules/chat/interface.qh>
// --------------------------------------------------------------------------
// BEGIN REQUIRED CSQC FUNCTIONS
localcmd(strMessage);
}
-string autocvar__cl_hook_print;
-
// CSQC_Parse_Print : Provides the print string in the first parameter that the server provided. To execute standard behavior, simply execute print with the string.
void CSQC_Parse_Print(string strMessage)
{
#include <menu/anim/_mod.inc>
#include <menu/command/_mod.inc>
#include <menu/item/_mod.inc>
+#include <menu/modules/_mod.inc>
#include <menu/mutators/_mod.inc>
#include <menu/xonotic/_mod.inc>
#include <menu/anim/_mod.qh>
#include <menu/command/_mod.qh>
#include <menu/item/_mod.qh>
+#include <menu/modules/_mod.qh>
#include <menu/mutators/_mod.qh>
#include <menu/xonotic/_mod.qh>
// generated file; do not modify
#include <menu/command/menu_cmd.qc>
-#include <menu/command/notice.qc>
// generated file; do not modify
#include <menu/command/menu_cmd.qh>
-#include <menu/command/notice.qh>
+++ /dev/null
-#include "notice.qh"
-
-#include <common/sounds/all.qh>
-
-noref string autocvar__cl_hook_print = "menu_cmd notice";
-
-int notice_buffer;
-int notice_buffer_idx;
-
-STATIC_INIT(notice_buffer) {
- notice_buffer = buf_create();
-}
-
-GENERIC_COMMAND(notice, "Append a notice to chat")
-{
- switch(request)
- {
- case CMD_REQUEST_COMMAND:
- {
- string s = console_decode(substring(command, argv_start_index(1), argv_end_index(1) - argv_start_index(1)));
- int flags = stoi(argv(2));
- s = ColorTranslateRGB(s);
- string prefix = (flags & NOTICE_CHAT) ? "\{3}" : "";
- if (!(flags & NOTICE_SILENT)) {
- entity snd = (flags & NOTICE_PRIVATE) ? SND_TALK2 : SND_TALK;
- localsound(Sound_fixpath(snd));
- }
- bufstr_set(notice_buffer, notice_buffer_idx++, s);
- print(prefix, "^7", s, "\n");
- return;
- }
-
- default:
- case CMD_REQUEST_USAGE:
- {
- LOG_INFO("Usage:^3 ", GetProgramCommandPrefix(), " notice message");
- LOG_INFO(" Where 'message' is the message to append.");
- return;
- }
- }
-}
+++ /dev/null
-#pragma once
-
-enum {
- NOTICE_CHAT = BIT(0),
- NOTICE_SILENT = BIT(1),
- NOTICE_PRIVATE = BIT(2),
-};
--- /dev/null
+// generated file; do not modify
+
+#include <menu/modules/chat/_mod.inc>
--- /dev/null
+// generated file; do not modify
+
+#include <menu/modules/chat/_mod.qh>
--- /dev/null
+// generated file; do not modify
+#include <menu/modules/chat/commands.qc>
--- /dev/null
+// generated file; do not modify
+#include <menu/modules/chat/commands.qh>
--- /dev/null
+#include "commands.qh"
+
+#include <common/sounds/all.qh>
+
+noref string autocvar__cl_hook_print = "menu_cmd notice";
+
+int notice_buffer;
+int notice_buffer_idx;
+
+STATIC_INIT(notice_buffer) {
+ notice_buffer = buf_create();
+}
+
+GENERIC_COMMAND(notice, "Append a notice to chat")
+{
+ switch(request)
+ {
+ case CMD_REQUEST_COMMAND:
+ {
+ string s = console_decode(substring(command, argv_start_index(1), argv_end_index(1) - argv_start_index(1)));
+ int flags = stoi(argv(2));
+ s = ColorTranslateRGB(s);
+ string prefix = (flags & NOTICE_CHAT) ? "\{3}" : "";
+ if (!(flags & NOTICE_SILENT)) {
+ entity snd = (flags & NOTICE_PRIVATE) ? SND_TALK2 : SND_TALK;
+ localsound(Sound_fixpath(snd));
+ }
+ bufstr_set(notice_buffer, notice_buffer_idx++, s);
+ print(prefix, "^7", s, "\n");
+ return;
+ }
+
+ default:
+ case CMD_REQUEST_USAGE:
+ {
+ LOG_INFO("Usage:^3 ", GetProgramCommandPrefix(), " notice message");
+ LOG_INFO(" Where 'message' is the message to append.");
+ return;
+ }
+ }
+}
--- /dev/null
+#pragma once
+
+enum {
+ NOTICE_CHAT = BIT(0),
+ NOTICE_SILENT = BIT(1),
+ NOTICE_PRIVATE = BIT(2),
+};
--- /dev/null
+#pragma once
+
+#include "commands.qh"
+
+string autocvar__cl_hook_print;