iw4x-rawfiles/iw4x/iw4x_00/ui_mp/scriptmenus/callvote.menu

57 lines
1.3 KiB
Plaintext
Raw Normal View History

2022-11-30 15:45:48 -08:00
#include "ui/menudef.h"
#include "ui_mp/main.inc"
#define MENU_NAME "callvote"
#define MENU_TITLE "@MPUI_CALLVOTE"
#define MENU_SECTION_TITLE ""
#undef CHOICE_GROUP
#define CHOICE_GROUP MENU_NAME
{
menuDef
{
name MENU_NAME
rect 0 0 640 480
foreColor CHOICE_TEXTCOLOR
focusColor CHOICE_TEXTCOLOR
blurWorld 7
onEsc
{
2023-03-18 04:08:23 -07:00
close "self";
open "class";
2022-11-30 15:45:48 -08:00
}
#define BACKGROUND_PC_OPTIONS
#define BACKGROUND_IW4
#define SIDEBAR_RIGHT
#include "ui_mp/bg.inc"
itemDef
{
rect 0 0 272 28 1 1
decoration
visible 1
forecolor 1 1 1 1
textfont 9
textalign 6
textalignx -60
textscale 0.5
text MENU_TITLE
}
#define CHOICE_Y(i) (28 + (i * 20))
#define CHOICE_ORIGIN(i) -64 CHOICE_Y(i)
#define CHOICE_RECT(i) CHOICE_ORIGIN(i) 336 20 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_TOP
#define HR_ORIGIN(i) 0 (CHOICE_Y(i) - 0.5)
#define HR_RECT(i) HR_ORIGIN(i) 216 1 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_TOP
MENU_CHOICE_BUTTON_VIS(0, "button_1", "@MP_VOTE_MAPRESTART", exec "cmd callvote map_restart"; close self;, ;, 1)
MENU_CHOICE_BUTTON_VIS(1, "button_2", "@MP_VOTE_NEXTMAP", exec "cmd callvote map_rotate"; close self;, ;, 1)
2022-12-28 06:49:26 -08:00
MENU_CHOICE_BUTTON_VIS(2, "button_3", "@MPUI_KICK_PLAYER", open "kickplayer"; close "changemap"; close "changegametype"; close self;, ;, 1)
2022-11-30 15:45:48 -08:00
ITEM_BUTTON_BACK(close "self")
}
}