mirror of
https://github.com/XLabsProject/iw4x-rawfiles.git
synced 2023-08-02 15:02:11 +02:00
added button to class.menu
+ added back(esc) buttons to vote menus
This commit is contained in:
parent
41617eba85
commit
f7eff52ffe
@ -51,5 +51,7 @@
|
||||
MENU_CHOICE_BUTTON_VIS(2, "button_3", "@MENU_CHANGE_MAP", open "changemap"; close "changegametype"; close "kickplayer"; close "callvote";, ;, 1)
|
||||
MENU_CHOICE_BUTTON_VIS(3, "button_4", "Change Gametype", open "changegametype"; close "changemap"; close "kickplayer"; close "callvote";, ;, 1)
|
||||
MENU_CHOICE_BUTTON_VIS(4, "button_5", "@MPUI_KICK_PLAYER", open "kickplayer"; close "changemap"; close "changegametype"; close "callvote";, ;, 1)
|
||||
|
||||
ITEM_BUTTON_BACK(close "self")
|
||||
}
|
||||
}
|
@ -60,6 +60,8 @@
|
||||
|
||||
PC_OPTIONS_SECTION_TITLE("Change Gametype")
|
||||
|
||||
ITEM_BUTTON_BACK(close "self")
|
||||
|
||||
itemDef
|
||||
{
|
||||
name "maplist2"
|
||||
|
@ -60,6 +60,8 @@
|
||||
|
||||
PC_OPTIONS_SECTION_TITLE("@MENU_CHANGE_MAP")
|
||||
|
||||
ITEM_BUTTON_BACK(close "self")
|
||||
|
||||
itemDef
|
||||
{
|
||||
name "maplist"
|
||||
|
@ -450,6 +450,16 @@
|
||||
}
|
||||
}
|
||||
itemDef
|
||||
{
|
||||
rect 0 68 216 1 1 1
|
||||
decoration
|
||||
visible 1
|
||||
style 3
|
||||
forecolor 1 1 1 0.65
|
||||
background "gradient_fadein"
|
||||
textscale 0.55
|
||||
}
|
||||
itemDef
|
||||
{
|
||||
name "game_options"
|
||||
rect -64 68 336 20 1 1
|
||||
@ -490,16 +500,6 @@
|
||||
}
|
||||
}
|
||||
itemDef
|
||||
{
|
||||
rect 0 88 216 1 1 1
|
||||
decoration
|
||||
visible 1
|
||||
style 3
|
||||
forecolor 1 1 1 0.65
|
||||
background "gradient_fadein"
|
||||
textscale 0.55
|
||||
}
|
||||
itemDef
|
||||
{
|
||||
name "game_options"
|
||||
rect -64 88 336 20 1 1
|
||||
@ -561,6 +561,7 @@
|
||||
{
|
||||
play "mouse_click";
|
||||
close self;
|
||||
//open "muteplayer";
|
||||
uiScript "CreateCurrentServerFavorite";
|
||||
}
|
||||
onFocus
|
||||
@ -583,7 +584,7 @@
|
||||
}
|
||||
itemDef
|
||||
{
|
||||
name "game_endgame"
|
||||
name "game_callvote"
|
||||
rect -64 128 336 20 1 1
|
||||
visible 1
|
||||
group "mw2_button"
|
||||
@ -596,6 +597,47 @@
|
||||
textalign 6
|
||||
textalignx -60
|
||||
textscale 0.375
|
||||
//disabled when(dvarBool("g_allowvote"))
|
||||
text "@MPUI_CALL_VOTE"
|
||||
action
|
||||
{
|
||||
play "mouse_click";
|
||||
close self;
|
||||
open "callvote";
|
||||
}
|
||||
onFocus
|
||||
{
|
||||
play "mouse_over";
|
||||
if ( dvarstring( "gameMode" ) != "mp" )
|
||||
{
|
||||
setItemColor "mw2_button" backcolor 0 0 0 0;
|
||||
}
|
||||
setItemColor self backcolor 0 0 0 1;
|
||||
setLocalVarBool "ui_menuAButton" ( 1 );
|
||||
setLocalVarFloat "ui_popupYPos" ( getfocuseditemy( ) );
|
||||
}
|
||||
leaveFocus
|
||||
{
|
||||
setItemColor self backcolor 0 0 0 "0.0";
|
||||
setLocalVarString "ui_hint_text" ( "@NULL_EMPTY" );
|
||||
setLocalVarBool "ui_menuAButton" ( 0 );
|
||||
}
|
||||
}
|
||||
itemDef
|
||||
{
|
||||
name "game_endgame"
|
||||
rect -64 148 336 20 1 1
|
||||
visible 1
|
||||
group "mw2_button"
|
||||
style 1
|
||||
forecolor 1 1 1 1
|
||||
disablecolor 0.6 0.55 0.55 1
|
||||
background "menu_button_selection_bar"
|
||||
type 1
|
||||
textfont 3
|
||||
textalign 6
|
||||
textalignx -60
|
||||
textscale 0.375
|
||||
text "@MENU_END_GAME"
|
||||
visible when ( !( dvarbool( "onlinegame" ) && !dvarbool( "xblive_privatematch" ) ) && ( dvarbool( "sv_running" ) ) )
|
||||
action
|
||||
@ -624,7 +666,7 @@
|
||||
itemDef
|
||||
{
|
||||
name "game_leavegame"
|
||||
rect -64 128 336 20 1 1
|
||||
rect -64 148 336 20 1 1
|
||||
visible 1
|
||||
group "mw2_button"
|
||||
style 1
|
||||
|
@ -60,6 +60,8 @@
|
||||
|
||||
PC_OPTIONS_SECTION_TITLE("@MPUI_KICK_PLAYER")
|
||||
|
||||
ITEM_BUTTON_BACK(close "self")
|
||||
|
||||
itemDef
|
||||
{
|
||||
name "maplist"
|
||||
|
Loading…
Reference in New Issue
Block a user