[Global]: loading init
This commit is contained in:
221
iw3sp_mod_ff_src/raw/ui/scriptmenus/invert_axis_pc.menu
Normal file
221
iw3sp_mod_ff_src/raw/ui/scriptmenus/invert_axis_pc.menu
Normal file
@ -0,0 +1,221 @@
|
||||
#include "ui/menudef.h"
|
||||
#include "ui_mp/common_macro.inc"
|
||||
|
||||
#define CHOICE_GROUP "invert_axis_pc"
|
||||
|
||||
// required for inside-popup styles
|
||||
#include "ui_mp/menustyle.inc"
|
||||
#include "ui/choices_setup_common.menu"
|
||||
|
||||
// required for popup style
|
||||
#include "ui_mp/popupstyle.inc"
|
||||
#include "ui/choices_setup_popmenu.menu"
|
||||
|
||||
// setting longer buttons which in turn sets the width of the popup
|
||||
#undef CHOICE_SIZE_X
|
||||
#define CHOICE_SIZE_X 320
|
||||
|
||||
#undef CHOICE_HORIZONTAL_ALIGN
|
||||
#define CHOICE_HORIZONTAL_ALIGN HORIZONTAL_ALIGN_CENTER
|
||||
#undef CHOICE_VERTICAL_ALIGN
|
||||
#define CHOICE_VERTICAL_ALIGN VERTICAL_ALIGN_CENTER
|
||||
|
||||
{
|
||||
/*
|
||||
menuDef
|
||||
{
|
||||
//IMPROVED_POPUP_SETUP( nameArg, itemCount, xArg, yArg, onEscArg, shadow_visArg )
|
||||
// setup popup properties
|
||||
IMPROVED_POPUP_SETUP( "invert_axis_pc", 4, 160, 170, scriptMenuResponse "accept_normal";, 1 )
|
||||
// yes action
|
||||
//#define LOCAL_YES \
|
||||
// play "mouse_click"; \
|
||||
// execnow "toggle ui_mousePitch";\
|
||||
// uiScript update ui_mousePitch;\
|
||||
// scriptMenuResponse "try_invert";\
|
||||
// close self;
|
||||
// no action
|
||||
//#define LOCAL_NO \
|
||||
// play "mouse_click"; \
|
||||
// scriptMenuResponse "accept_normal"; \
|
||||
// close self;
|
||||
// yes action
|
||||
#define LOCAL_YES \
|
||||
play "mouse_click"; \
|
||||
execNowOnDvarIntValue ui_start_inverted 0 "set ui_mousePitch 1";\
|
||||
execNowOnDvarIntValue ui_start_inverted 1 "set ui_mousePitch 0";\
|
||||
uiScript update ui_mousePitch;\
|
||||
scriptMenuResponse "try_invert";\
|
||||
close self;
|
||||
// no action
|
||||
#define LOCAL_NO \
|
||||
play "mouse_click"; \
|
||||
execNowOnDvarIntValue ui_start_inverted 0 "set ui_mousePitch 0";\
|
||||
execNowOnDvarIntValue ui_start_inverted 1 "set ui_mousePitch 1";\
|
||||
uiScript update ui_mousePitch;\
|
||||
scriptMenuResponse "accept_normal"; \
|
||||
close self;
|
||||
CHOICE_POPMENU_SUBTITLE( dvarString( "ui_invert_string" ) )
|
||||
CHOICE_BUTTON( 4, "@MENU_NO", LOCAL_NO )
|
||||
CHOICE_BUTTON( 3, "@MENU_YES", LOCAL_YES )
|
||||
}
|
||||
*/
|
||||
|
||||
menuDef
|
||||
{
|
||||
// yes action
|
||||
#define LOCAL_YES \
|
||||
play "mouse_click"; \
|
||||
execNowOnDvarIntValue ui_start_inverted 0 "set ui_mousePitch 1";\
|
||||
execNowOnDvarIntValue ui_start_inverted 1 "set ui_mousePitch 0";\
|
||||
uiScript update ui_mousePitch;\
|
||||
scriptMenuResponse "try_invert";\
|
||||
close self;
|
||||
// no action
|
||||
#define LOCAL_NO \
|
||||
play "mouse_click"; \
|
||||
execNowOnDvarIntValue ui_start_inverted 0 "set ui_mousePitch 0";\
|
||||
execNowOnDvarIntValue ui_start_inverted 1 "set ui_mousePitch 1";\
|
||||
uiScript update ui_mousePitch;\
|
||||
scriptMenuResponse "accept_normal"; \
|
||||
close self;
|
||||
|
||||
// hook for custom onClose action
|
||||
#undef CENTER_POPUP_ON_CLOSE
|
||||
#define CENTER_POPUP_ON_CLOSE scriptMenuResponse "accept_normal";
|
||||
|
||||
CENTER_POPUP_SETUP( "invert_axis_pc", 4, scriptMenuResponse "accept_normal";, 1 )
|
||||
CHOICE_POPMENU_SUBTITLE( dvarString( "ui_invert_string" ) )
|
||||
|
||||
CHOICE_BUTTON( 4, "@MENU_NO", LOCAL_NO )
|
||||
CHOICE_BUTTON( 3, "@MENU_YES", LOCAL_YES )
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
`
|
||||
#include "ui/menudef.h"
|
||||
|
||||
#define ORIGIN_BUTTONS 0 0
|
||||
#define ORIGIN_MENUWINDOW 115 50
|
||||
|
||||
{
|
||||
menuDef
|
||||
{
|
||||
name invert_axis_pc
|
||||
visible 0
|
||||
fullscreen 0
|
||||
//rect 217 200 210 85
|
||||
rect 204 160 235 160
|
||||
style 1
|
||||
border 1
|
||||
popup
|
||||
onESC
|
||||
{
|
||||
scriptMenuResponse "accept_normal";
|
||||
close "invert_axis_pc";
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name backimage2fade
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect -150 2 535 150
|
||||
background "popmenu_bg"
|
||||
// forecolor 0 0 0 0.4
|
||||
// backcolor 0 0 0 0.4
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef
|
||||
{
|
||||
name backimage2fade
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect -90 20 415 24
|
||||
background "popmenu_goldline"
|
||||
// forecolor 0 0 0 0.4
|
||||
// backcolor 0 0 0 0.4
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef
|
||||
{
|
||||
name confirm
|
||||
exp text ( dvarString( "ui_invert_string" ) );
|
||||
style 0
|
||||
textscale .38
|
||||
textstyle ITEM_TEXTSTYLE_SHADOWED
|
||||
rect 126 25 110 20
|
||||
textalign 1
|
||||
textalignx -7
|
||||
textaligny 5
|
||||
decoration
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name invert_enabled
|
||||
text "@MENU_YES"
|
||||
type 1
|
||||
textscale .5
|
||||
style 1
|
||||
textfont UI_FONT_NORMAL
|
||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
||||
rect 20 60 100 20
|
||||
textalign 0
|
||||
//textalignx 50
|
||||
//textaligny 19
|
||||
forecolor .9 .9 .95 1
|
||||
//backcolor .1747 .1903 .2335 0
|
||||
border 1
|
||||
bordercolor 0 0 0 0
|
||||
visible 1
|
||||
focusdvar { "1" }
|
||||
mouseEnter
|
||||
{
|
||||
play "mouse_over";
|
||||
}
|
||||
action
|
||||
{
|
||||
play "mouse_click";
|
||||
execnow "toggle ui_mousePitch";
|
||||
uiScript update ui_mousePitch;
|
||||
scriptMenuResponse "try_invert";
|
||||
close invert_axis_pc;
|
||||
}
|
||||
}
|
||||
itemDef
|
||||
{
|
||||
name invert_disabled
|
||||
text "@MENU_NO"
|
||||
type 1
|
||||
textscale .5
|
||||
style 1
|
||||
textfont UI_FONT_NORMAL
|
||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
||||
rect 120 60 100 20
|
||||
textalign 0
|
||||
//textalignx 50
|
||||
//textaligny 19
|
||||
forecolor .9 .9 .95 1
|
||||
//backcolor .1747 .1903 .2335 0
|
||||
border 0
|
||||
bordercolor 0 0 0 0
|
||||
visible 1
|
||||
focusdvar { "0" }
|
||||
mouseEnter
|
||||
{
|
||||
play "mouse_over";
|
||||
}
|
||||
action
|
||||
{
|
||||
play "mouse_click";
|
||||
scriptMenuResponse "accept_normal";
|
||||
close invert_axis_pc;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
*/
|
122
iw3sp_mod_ff_src/raw/ui/scriptmenus/select_difficulty.menu
Normal file
122
iw3sp_mod_ff_src/raw/ui/scriptmenus/select_difficulty.menu
Normal file
@ -0,0 +1,122 @@
|
||||
#include "ui/menudef.h"
|
||||
#include "ui_mp/common_macro.inc"
|
||||
|
||||
#define CHOICE_GROUP "select_difficulty"
|
||||
|
||||
#include "ui_mp/menustyle.inc"
|
||||
#include "ui/choices_setup_common.menu"
|
||||
|
||||
// no PC background clickable popup close function
|
||||
#define NO_BG_CLOSE 1
|
||||
|
||||
#undef CHOICE_HORIZONTAL_ALIGN
|
||||
#define CHOICE_HORIZONTAL_ALIGN HORIZONTAL_ALIGN_CENTER
|
||||
#undef CHOICE_VERTICAL_ALIGN
|
||||
#define CHOICE_VERTICAL_ALIGN VERTICAL_ALIGN_CENTER
|
||||
|
||||
#ifdef CONSOLE
|
||||
#define UPDATE_GAMER_PROFILE exec "updategamerprofile"; scriptMenuResponse "continue";
|
||||
#else
|
||||
#define UPDATE_GAMER_PROFILE scriptMenuResponse "continue";
|
||||
#endif
|
||||
|
||||
{
|
||||
#include "ui_mp/popupstyle.inc"
|
||||
#include "ui/choices_setup_popmenu.menu"
|
||||
|
||||
#undef CHOICE_SIZE_X
|
||||
#define CHOICE_SIZE_X 320
|
||||
|
||||
#define LOCAL_DIFF_CONFIRM( menuName, execArg )\
|
||||
menuDef{\
|
||||
CENTER_POPUP_SETUP_ONOPEN( menuName, 5, open select_difficulty;, setfocus "no";, 1 )\
|
||||
CHOICE_POPMENU_SUBTITLE( "@MENU_DIFFICULTY_WARNING" )\
|
||||
CHOICE_BUTTON( 4, "@MENU_YES", execnow execArg; UPDATE_GAMER_PROFILE; close self; close select_difficulty; )\
|
||||
CHOICE_BUTTON_EX( 5, "@MENU_NO", close self; open select_difficulty;, name "no" )\
|
||||
}
|
||||
|
||||
LOCAL_DIFF_CONFIRM( "diff_con_easy", "difficultyeasy" )
|
||||
LOCAL_DIFF_CONFIRM( "diff_con_regular", "difficultymedium" )
|
||||
LOCAL_DIFF_CONFIRM( "diff_con_hardened", "difficultyhard" )
|
||||
LOCAL_DIFF_CONFIRM( "diff_con_veteran", "difficultyfu" )
|
||||
|
||||
// custom setting for difficulty selection ===========================================
|
||||
|
||||
#undef CHOICE_SIZE_Y
|
||||
#define CHOICE_SIZE_Y 22
|
||||
|
||||
#undef A_BUTTON_SIZE
|
||||
#define A_BUTTON_SIZE 0.33
|
||||
|
||||
#undef CHOICE_POPUP_BORDER_X
|
||||
#define CHOICE_POPUP_BORDER_X 130
|
||||
|
||||
#undef CHOICE_POPUP_TITLE_HEIGHT
|
||||
#define CHOICE_POPUP_TITLE_HEIGHT 16
|
||||
|
||||
#undef CHOICE_X_START
|
||||
#define CHOICE_X_START 0
|
||||
|
||||
#undef CHOICE_TEXTSIZE
|
||||
#define CHOICE_TEXTSIZE TEXTSIZE_DEFAULT
|
||||
|
||||
#undef CHOICE_POPUP_TITLE_TEXTSIZE
|
||||
#define CHOICE_POPUP_TITLE_TEXTSIZE TEXTSIZE_TITLE
|
||||
|
||||
#undef CHOICE_POPUP_SUBTITLE_TEXTSIZE
|
||||
#define CHOICE_POPUP_SUBTITLE_TEXTSIZE TEXTSIZE_DEFAULT
|
||||
|
||||
#ifdef PC
|
||||
#undef CHOICE_SIZE_X
|
||||
#define CHOICE_SIZE_X 160
|
||||
#else
|
||||
#undef CHOICE_SIZE_X
|
||||
#define CHOICE_SIZE_X 140
|
||||
#endif
|
||||
|
||||
#define LOCAL_DIFF_DESC_X exp rect X( CHOICE_SIZE_X+16 ); autowrapped exp rect Y( 46 ) exp rect W(216)
|
||||
|
||||
#define LOCAL_DIFFICULTY_DESC\
|
||||
CHOICE_POPMENU_SUBTITLE_VIS( locString( "@MENU_REGULAR_DESC_3" ) + " " + locString( "@MENU_REGULAR_DESC_4" ), when( localVarInt( ui_highlight ) == 2 ); LOCAL_DIFF_DESC_X )\
|
||||
CHOICE_POPMENU_SUBTITLE_VIS( locString( "@MENU_SKILLED_DESC" ) + " " + locString( "@MENU_SKILLED_DESC_2" ), when( localVarInt( ui_highlight ) == 3 ); LOCAL_DIFF_DESC_X )\
|
||||
CHOICE_POPMENU_SUBTITLE_VIS( "@MENU_HARDENED_DESC", when( localVarInt( ui_highlight ) == 4 ); LOCAL_DIFF_DESC_X )\
|
||||
CHOICE_POPMENU_SUBTITLE_VIS( "@MENU_VETERAN_DESC", when( localVarInt( ui_highlight ) == 5 ); LOCAL_DIFF_DESC_X )\
|
||||
CHOICE_POPMENU_SUBTITLE_VIS( "@MENU_TRY_AGAIN_DESC", when( localVarInt( ui_highlight ) == 7 ); LOCAL_DIFF_DESC_X )
|
||||
|
||||
#define LOCAL_ESC_ACTION\
|
||||
execondvarintvalue recommended_gameskill 0 "difficultyeasy";\
|
||||
execondvarintvalue recommended_gameskill 1 "difficultymedium";\
|
||||
execondvarintvalue recommended_gameskill 2 "difficultyhard";\
|
||||
execondvarintvalue recommended_gameskill 3 "difficultyfu";\
|
||||
scriptMenuResponse "closed";
|
||||
|
||||
menuDef
|
||||
{
|
||||
CENTER_POPUP_SETUP_ONOPEN( select_difficulty, 7, LOCAL_ESC_ACTION, setfocus "newgame_regular"; setfocusbydvar "recommended_gameskill", 1 )
|
||||
onclose{ exec "wait; wait"; scriptMenuResponse "closed"; }
|
||||
execkeyint BUTTON_START{;}
|
||||
|
||||
CHOICE_POPMENU_TITLE( "@MENU_SELECT_DIFFICULTY" )
|
||||
|
||||
CHOICE_BUTTON_BG( 2, when( dvarInt(recommended_gameskill)!=0 ); forecolor 1 0 0 0.25 )
|
||||
CHOICE_BUTTON_BG( 3, when( dvarInt(recommended_gameskill)!=1 ); forecolor 1 0 0 0.25 )
|
||||
CHOICE_BUTTON_BG( 4, when( dvarInt(recommended_gameskill)!=2 ); forecolor 1 0 0 0.25 )
|
||||
CHOICE_BUTTON_BG( 5, when( dvarInt(recommended_gameskill)!=3 ); forecolor 1 0 0 0.25 )
|
||||
|
||||
CHOICE_BUTTON_FOCUS_VIS_EX( 2, "@MENU_RECRUIT", execnow "difficultyeasy"; UPDATE_GAMER_PROFILE; close self;, ;, ;, when( dvarInt(recommended_gameskill)==0 );, dvartest "recommended_gameskill"; focusdvar { "0" } )
|
||||
CHOICE_BUTTON_FOCUS_VIS( 2, "@MENU_RECRUIT", open "diff_con_easy";, ;, ;, when( dvarInt(recommended_gameskill)!=0 ); )
|
||||
|
||||
CHOICE_BUTTON_FOCUS_VIS_EX( 3, "@MENU_REGULAR", execnow "difficultymedium"; UPDATE_GAMER_PROFILE; close self;, ;, ;, when( dvarInt(recommended_gameskill)==1 );, dvartest "recommended_gameskill"; focusdvar { "1" } )
|
||||
CHOICE_BUTTON_FOCUS_VIS( 3, "@MENU_REGULAR", open "diff_con_regular";, ;, ;, when( dvarInt(recommended_gameskill)!=1 ); )
|
||||
|
||||
CHOICE_BUTTON_FOCUS_VIS_EX( 4, "@MENU_HARDENED", execnow "difficultyhard"; UPDATE_GAMER_PROFILE; close self;, ;, ;, when( dvarInt(recommended_gameskill)==2 );, dvartest "recommended_gameskill"; focusdvar { "2" } )
|
||||
CHOICE_BUTTON_FOCUS_VIS( 4, "@MENU_HARDENED", open "diff_con_hardened";, ;, ;, when( dvarInt(recommended_gameskill)!=2 ); )
|
||||
|
||||
CHOICE_BUTTON_FOCUS_VIS_EX( 5, "@MENU_VETERAN", execnow "difficultyfu"; UPDATE_GAMER_PROFILE; close self;, ;, ;, when( dvarInt(recommended_gameskill)==3 );, dvartest "recommended_gameskill"; focusdvar { "3" } )
|
||||
CHOICE_BUTTON_FOCUS_VIS( 5, "@MENU_VETERAN", open "diff_con_veteran";, ;, ;, when( dvarInt(recommended_gameskill)!=3 ); )
|
||||
|
||||
CHOICE_BUTTON_FOCUS( 7, "@MENU_TRY_AGAIN", scriptMenuResponse "tryagain"; close self;, ;, ; )
|
||||
|
||||
LOCAL_DIFFICULTY_DESC
|
||||
}
|
||||
}
|
156
iw3sp_mod_ff_src/raw/ui/scriptmenus/special_features.menu
Normal file
156
iw3sp_mod_ff_src/raw/ui/scriptmenus/special_features.menu
Normal file
@ -0,0 +1,156 @@
|
||||
#include "ui/menudef.h"
|
||||
|
||||
#define COLOR_LOCKED 0.5 0.5 0.5 0.5
|
||||
#define COLOR_UNLOCKED 0.2 1.0 0.2 0.75
|
||||
|
||||
#define CHOICE_X_START 0
|
||||
#define CHOICE_Y_START 34
|
||||
|
||||
#define CHOICE_GROUP "special_features"
|
||||
|
||||
#include "ui_mp/menustyle.inc"
|
||||
|
||||
#undef CHOICE_SIZE_X
|
||||
#undef CHOICE_SIZE_Y
|
||||
#define CHOICE_SIZE_X 267
|
||||
#define CHOICE_SIZE_Y 22
|
||||
|
||||
#undef CHOICE_DVAR_OFFSET_X
|
||||
#define CHOICE_DVAR_OFFSET_X (CHOICE_SIZE_X+24)
|
||||
|
||||
#undef CHOICE_DVAR_TEXTALIGN
|
||||
#define CHOICE_DVAR_TEXTALIGN ITEM_ALIGN_MIDDLE_LEFT
|
||||
|
||||
#include "ui/choices_setup_common.menu"
|
||||
|
||||
#define LOCAL_ACTION_CHAPLIN exec "set sf_use_bw 0; set sf_use_invert 0; set sf_use_contrast 0; set sf_use_slowmo 0";
|
||||
#define LOCAL_ACTION_CHAPLIN_DISABLE exec "set sf_use_chaplin 0";
|
||||
|
||||
//CHOICE_DVARFLOATLIST_FOCUS_VIS( itemIndex, textArg, dvarArg, strListArg, actionArg, onFocusArg, leaveFocusArg, visArg )
|
||||
|
||||
#define CHOICE_SF_TOGGLE_BUTTON( itemIndex, textArg, hintArg, hintArg2, costVal, toggleDvarArg, extraExec, mapArg ) \
|
||||
CHOICE_DBUTTON_VIS( itemIndex, textArg, when( ( dvarInt(cheat_points)<int(costVal) || dvarString(mapname)== mapArg ) && dvarInt(mis_01)>=20 ); ) \
|
||||
CHOICE_BUTTON_FOCUS_VIS_NOHI( itemIndex, "", ;, exec "set ui_hint_text "hintArg;, CLEARUIHINT, when( dvarInt(cheat_points)<int(costVal) && dvarInt(mis_01)>=20 ); ) \
|
||||
CHOICE_DVARFLOATLIST_FOCUS_VIS( itemIndex, textArg, toggleDvarArg, { "@MENU_ENABLED" 1 "@MENU_DISABLED" 0 }, \
|
||||
scriptMenuResponse toggleDvarArg; extraExec, exec "set ui_hint_text "hintArg2, CLEARUIHINT, when( !dvarBool("profile_unlock_all") && (dvarInt(cheat_points)>=int(costVal) && dvarInt(mis_01)>=20 && dvarString( mapname ) != mapArg ) ); ) \
|
||||
CHOICE_DVARFLOATLIST_FOCUS_VIS( itemIndex, textArg, toggleDvarArg, { "@MENU_ENABLED" 1 "@MENU_DISABLED" 0 }, \
|
||||
scriptMenuResponse toggleDvarArg; extraExec, exec "set ui_hint_text "hintArg2, CLEARUIHINT, when( dvarBool("profile_unlock_all"));)
|
||||
|
||||
#define CLEARUIHINT exec "set ui_hint_text @NULL_EMPTY"
|
||||
|
||||
{
|
||||
menuDef
|
||||
{
|
||||
name menu_special_features
|
||||
fullScreen 0
|
||||
rect 0 0 640 480
|
||||
focusColor COLOR_FOCUSED
|
||||
soundloop ""
|
||||
blurWorld 4.8
|
||||
onOpen
|
||||
{
|
||||
setdvar cg_drawhud "0";
|
||||
}
|
||||
onClose
|
||||
{
|
||||
setdvar cg_drawhud "1";
|
||||
}
|
||||
onESC
|
||||
{
|
||||
open main_options;
|
||||
close self;
|
||||
}
|
||||
|
||||
// background overlay
|
||||
itemDef
|
||||
{
|
||||
style WINDOW_STYLE_FILLED
|
||||
rect 0 0 640 480 HORIZONTAL_ALIGN_FULLSCREEN VERTICAL_ALIGN_FULLSCREEN
|
||||
backcolor 0 0 0 0.75
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
#define SLOMO_EXEC execOnDvarIntValue sf_use_slowmo 1 "unbind button_rstick"; \
|
||||
execOnDvarIntValue sf_use_slowmo 0 "updategamerprofile";
|
||||
|
||||
//#define ARMADA_EXEC exec "map armada";
|
||||
#define BACK_OPEN open main_options;
|
||||
|
||||
#include "ui_mp/navcontrols.inc"
|
||||
|
||||
CHOICE_MENU_TITLE( "@MENU_CHEATS" )
|
||||
|
||||
// no cheats until you finish the game at least once
|
||||
itemDef {
|
||||
type ITEM_TYPE_TEXT
|
||||
rect 14 64 360 40 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_TOP
|
||||
exp text( "@MENU_CHEATS_HOWTO" )
|
||||
textfont UI_FONT_DEFAULT
|
||||
textscale TEXTSIZE_DEFAULT
|
||||
textaligny 16
|
||||
forecolor COLOR_TITLE
|
||||
visible when( dvarInt(mis_01) < 20 ); autowrapped decoration
|
||||
}
|
||||
|
||||
CHOICE_SF_TOGGLE_BUTTON( 1, "@MENU_CHEATS_NAME1", "@MENU_CHEATS_UNLOCK1", "@MENU_CHEATS_DESC1", "2", "sf_use_bw", LOCAL_ACTION_CHAPLIN_DISABLE, "ac130" );
|
||||
CHOICE_SF_TOGGLE_BUTTON( 2, "@MENU_CHEATS_NAME2", "@MENU_CHEATS_UNLOCK2", "@MENU_CHEATS_DESC2", "4", "sf_use_invert", LOCAL_ACTION_CHAPLIN_DISABLE, "ac130" );
|
||||
CHOICE_SF_TOGGLE_BUTTON( 3, "@MENU_CHEATS_NAME3", "@MENU_CHEATS_UNLOCK3", "@MENU_CHEATS_DESC3", "6", "sf_use_contrast", LOCAL_ACTION_CHAPLIN_DISABLE, "ac130" );
|
||||
CHOICE_SF_TOGGLE_BUTTON( 4, "@MENU_CHEATS_NAME4", "@MENU_CHEATS_UNLOCK4", "@MENU_CHEATS_DESC4", "8", "sf_use_chaplin", LOCAL_ACTION_CHAPLIN, "ac130" );
|
||||
CHOICE_SF_TOGGLE_BUTTON( 5, "@MENU_CHEATS_NAME5", "@MENU_CHEATS_UNLOCK5", "@MENU_CHEATS_DESC5", "10", "sf_use_clustergrenade", ;, "" );
|
||||
CHOICE_SF_TOGGLE_BUTTON( 6, "@MENU_CHEATS_NAME6", "@MENU_CHEATS_UNLOCK6", "@MENU_CHEATS_DESC6", "15", "sf_use_tire_explosion", ;, "" );
|
||||
CHOICE_SF_TOGGLE_BUTTON( 7, "@MENU_CHEATS_NAME7", "@MENU_CHEATS_UNLOCK7", "@MENU_CHEATS_DESC7", "20", "sf_use_slowmo", LOCAL_ACTION_CHAPLIN_DISABLE, "" );
|
||||
CHOICE_SF_TOGGLE_BUTTON( 8, "@MENU_CHEATS_NAME8", "@MENU_CHEATS_UNLOCK8", "@MENU_CHEATS_DESC8", "30", "sf_use_ignoreammo", ;, "" );
|
||||
|
||||
itemDef {
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect 2 246 10 10 CHOICE_HORIZONTAL_ALIGN VERTICAL_ALIGN_TOP
|
||||
background "ui_arrow_right"
|
||||
forecolor 1 1 1 0.5
|
||||
visible when( dvarInt(mis_01) >= 20 ); decoration
|
||||
}
|
||||
itemDef {
|
||||
type ITEM_TYPE_TEXT
|
||||
rect 14 244 360 40 CHOICE_HORIZONTAL_ALIGN VERTICAL_ALIGN_TOP
|
||||
exp text( dvarString( ui_hint_text ) )
|
||||
textfont UI_FONT_DEFAULT
|
||||
textscale TEXTSIZE_SMALL
|
||||
textaligny 16
|
||||
forecolor 1 1 1 0.5
|
||||
visible when( dvarInt(mis_01) >= 20 ); decoration
|
||||
}
|
||||
itemDef {
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect 2 266 10 10 CHOICE_HORIZONTAL_ALIGN VERTICAL_ALIGN_TOP
|
||||
background "ui_arrow_right"
|
||||
forecolor 1 1 1 0.5
|
||||
visible 1 decoration
|
||||
}
|
||||
itemDef {
|
||||
type ITEM_TYPE_TEXT
|
||||
rect 14 264 360 40 CHOICE_HORIZONTAL_ALIGN VERTICAL_ALIGN_TOP
|
||||
exp text( locString( "@MENU_CHEAT_POINTS_LEVEL", dvarInt( ui_level_player_cheatpoints ), dvarInt( ui_level_cheatpoints ) ) )
|
||||
textfont UI_FONT_DEFAULT
|
||||
textscale TEXTSIZE_SMALL
|
||||
textaligny 16
|
||||
forecolor 1 1 1 0.5
|
||||
visible 1 decoration
|
||||
}
|
||||
itemDef {
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect 2 286 10 10 CHOICE_HORIZONTAL_ALIGN VERTICAL_ALIGN_TOP
|
||||
background "ui_arrow_right"
|
||||
forecolor 1 1 1 0.5
|
||||
visible 1 decoration
|
||||
}
|
||||
itemDef {
|
||||
type ITEM_TYPE_TEXT
|
||||
rect 14 284 360 40 CHOICE_HORIZONTAL_ALIGN VERTICAL_ALIGN_TOP
|
||||
exp text( locString( "@MENU_CHEAT_POINTS", dvarInt( cheat_points ) ) )
|
||||
textfont UI_FONT_DEFAULT
|
||||
textscale TEXTSIZE_SMALL
|
||||
textaligny 16
|
||||
forecolor 1 1 1 0.5
|
||||
visible 1 decoration
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user