2022-08-24 07:33:58 -07:00
|
|
|
#include "ui/menudef.h"
|
|
|
|
#include "ui_mp/main.inc"
|
|
|
|
#include "ui_mp/pc_options.inc"
|
|
|
|
|
2022-11-30 15:45:48 -08:00
|
|
|
#define MENU_NAME "controls_multi"
|
|
|
|
#define MENU_TITLE "@MENU_CHAT"
|
2022-08-24 07:33:58 -07:00
|
|
|
|
|
|
|
#undef CHOICE_GROUP
|
2022-11-30 15:45:48 -08:00
|
|
|
#define CHOICE_GROUP MENU_NAME
|
2022-08-24 07:33:58 -07:00
|
|
|
|
|
|
|
#define CLOSE_MENUS \
|
|
|
|
close "main_controls"; \
|
|
|
|
close "main_options"; \
|
|
|
|
close "options_control_defaults"; \
|
|
|
|
close "options_graphics"; \
|
|
|
|
close "options_graphics_defaults"; \
|
|
|
|
close "options_graphics_texture"; \
|
|
|
|
close "options_multi"; \
|
|
|
|
close "options_voice"; \
|
|
|
|
close "pc_options_actions"; \
|
|
|
|
close "pc_options_advanced_video"; \
|
|
|
|
close "pc_options_audio"; \
|
|
|
|
close "pc_options_controls"; \
|
|
|
|
close "pc_options_game"; \
|
|
|
|
close "pc_options_look"; \
|
|
|
|
close "pc_options_movement"; \
|
|
|
|
close "pc_options_multi"; \
|
|
|
|
close "pc_options_video"; \
|
|
|
|
close "pc_options_voice";
|
|
|
|
|
|
|
|
#define ON_MENU_OPEN \
|
2022-11-30 15:45:48 -08:00
|
|
|
CLOSE_MENUS \
|
|
|
|
setLocalVarBool "ui_hideBack" (1); \
|
|
|
|
setLocalVarBool ui_hint_display 0;
|
2022-08-24 07:33:58 -07:00
|
|
|
|
|
|
|
#define ON_MENU_CLOSE \
|
2022-11-30 15:45:48 -08:00
|
|
|
setLocalVarBool "ui_hideBack" (0); \
|
|
|
|
open "pc_options_controls";
|
2022-08-24 07:33:58 -07:00
|
|
|
|
|
|
|
#define ON_MENU_ESC \
|
2022-11-30 15:45:48 -08:00
|
|
|
close self;
|
2022-08-24 07:33:58 -07:00
|
|
|
|
|
|
|
{
|
2023-12-15 09:02:18 -08:00
|
|
|
menuDef
|
|
|
|
{
|
|
|
|
name MENU_NAME
|
|
|
|
rect 0 0 640 480
|
|
|
|
foreColor CHOICE_TEXTCOLOR
|
|
|
|
focusColor CHOICE_TEXTCOLOR
|
|
|
|
blurWorld 7
|
2022-08-24 07:33:58 -07:00
|
|
|
|
2023-12-15 09:02:18 -08:00
|
|
|
MENU_ON_OPEN(ON_MENU_OPEN)
|
|
|
|
MENU_ON_CLOSE(ON_MENU_CLOSE)
|
|
|
|
MENU_ON_ESC(ON_MENU_ESC)
|
2022-08-24 07:33:58 -07:00
|
|
|
|
2023-12-15 09:02:18 -08:00
|
|
|
#define BACKGROUND_PC_OPTIONS
|
|
|
|
#define BACKGROUND_IW4
|
|
|
|
#define DISABLE_SIDEBAR
|
|
|
|
#define BACKGROUND_FULL
|
|
|
|
#include "ui_mp/bg.inc"
|
2022-08-24 07:33:58 -07:00
|
|
|
|
2023-12-15 09:02:18 -08:00
|
|
|
PC_OPTIONS_SECTION_TITLE(MENU_TITLE)
|
2022-08-24 07:33:58 -07:00
|
|
|
|
2023-12-15 09:02:18 -08:00
|
|
|
PC_OPTIONS_KEYBINDING(0, "@MENU_TEXT_CHAT", "chatmodepublic")
|
|
|
|
PC_OPTIONS_KEYBINDING(1, "@MENU_TEXT_TEAM_CHAT", "chatmodeteam")
|
|
|
|
PC_OPTIONS_KEYBINDING(2, "@MENU_QUICK_CHAT", "mp_QuickMessage")
|
2022-08-24 07:33:58 -07:00
|
|
|
|
2023-12-15 09:02:18 -08:00
|
|
|
PC_OPTIONS_KEYBINDING(4, "@MENU_VOTE_YES", "vote yes")
|
|
|
|
PC_OPTIONS_KEYBINDING(5, "@MENU_VOTE_NO", "vote no")
|
2022-11-30 15:45:48 -08:00
|
|
|
|
2023-12-15 09:02:18 -08:00
|
|
|
PC_OPTIONS_KEYBINDSTATUS
|
2022-08-24 07:33:58 -07:00
|
|
|
|
2023-12-15 09:02:18 -08:00
|
|
|
ITEM_BUTTON_BACK(ON_MENU_ESC)
|
|
|
|
}
|
2022-11-30 15:45:48 -08:00
|
|
|
}
|