#include "ui/menudef.h" #include "ui_mp/main.inc" #include "ui_mp/pc_options.inc" #define MENU_NAME "trickshot_options" menuDef { name MENU_NAME rect 0 0 640 480 foreColor CHOICE_TEXTCOLOR focusColor CHOICE_TEXTCOLOR blurWorld 7 MENU_ON_OPEN(ON_MENU_OPEN) MENU_ON_CLOSE(ON_MENU_CLOSE) itemDef { rect -108 -130 860 470 0 0 decoration visible 1 style 3 forecolor 0 0 0 0.15 backcolor 0 0 0 0.15 border 1 borderSize 2 borderColor 0 0 0 0.2 background "black" textscale 0.55 } onEsc { close self; open "class" } itemDef { rect 0 0 640 480 4 4 decoration visible 1 style 3 forecolor 0 0 0 0.4 background "white" textscale 0.55 } itemDef { rect 205 5 310 1 1 1 decoration visible 1 style 3 forecolor 1 1 1 0.05 background "white" textscale 0.55 } itemDef { rect 205 30 310 1 1 1 decoration visible 1 style 3 forecolor 1 1 1 0.05 background "white" textscale 0.55 } itemDef { rect 205 254.5 310 1 1 1 decoration visible 1 style 3 forecolor 1 1 1 0.05 background "white" textscale 0.55 } itemDef { rect 185 16 1 230 1 1 decoration visible 1 style 3 forecolor 1 1 1 0.05 background "white" textscale 0.55 } itemDef { rect (185+27*2+300-10) 16 1 230 1 1 decoration visible 1 style 3 forecolor 1 1 1 0.05 background "white" textscale 0.55 } itemDef { rect 97 -55 435 415 0 1 style 3 foreColor 1 1 1 1 decoration visible 1 exp material("box") } itemDef { rect -10 5 272 28 1 1 decoration visible 1 forecolor 1 0.8 0.3 1 type 1 textfont 9 textalign 6 textalignx 210 textscale 0.5 text "Trickshot Settings" } itemDef { rect 0 0 640 480 4 4 decoration visible 1 style 3 forecolor 1 1 1 0 background "mockup_bg_glow" textscale 0.55 exp forecolor a ( ( ( sin( milliseconds( ) / 1500 ) + 1 ) 0.25 ) + 0.25 ) } itemDef { rect 0 0 640 480 4 4 decoration visible 1 style 3 forecolor 1 1 1 0 background "mockup_bg_glow" textscale 0.55 exp forecolor a ( ( ( sin( milliseconds( ) / 480 ) + 1 ) 0.25 ) + 0.25 ) } #define SEPARATORE(index) \ itemDef \ { \ rect 200 (14 + (18.5 * index)) 310 1 1 1 \ decoration \ visible 1 \ style 3 \ forecolor 1 1 1 0.05 \ background "white" \ textscale 0.55 \ } #define TOGGLE_MSG(index, txt) \ itemDef \ { \ name "cust_msg" \ rect 180 (14 + (18.5 * index)) 300 18.5 1 1 \ visible 1 \ group "mw2_button" \ disablecolor 0.6 0.55 0.55 1 \ background "menu_setting_selection_bar" \ style 1 \ forecolor 1 1 1 1 \ type 1 \ textfont 3 \ textAlignX 179 \ textAligny 15 \ textAlign 0 \ textscale 0.275 \ exp text(dvarString("messages_enable")) \ action \ { \ play "mouse_click"; \ if(dvarString("messages_enable") == "Show just mine") \ { \ scriptmenuresponse "alertson"; \ } \ if(dvarString("messages_enable") == "Show all") \ { \ scriptmenuresponse "alertsoff"; \ } \ if(dvarString("messages_enable") == "Do not show") \ { \ scriptmenuresponse "alertsme"; \ } \ } \ onFocus \ { \ play "mouse_over"; \ setItemColor self backcolor 0 0 0 0.8; \ 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 "value" \ rect 180 (14 + (18.5 * index)) 30 30 1 1 \ decoration \ foreColor 1 1 1 1 \ textalign 6 \ textalignx 107 \ textaligny 2 \ visible 1 \ textscale 0.275 \ exp text("^3CUSTOM ALERTS") \ } PC_OPTIONS_DVARSLIDER(0.4, "YAWSPEED VALUE", "cl_yawspeed", 750, 1300, 1, ;, ;, ;, when(0)) PC_OPTIONS_KEYBINDING(1.4, "SPIN RIGHT", "+right") PC_OPTIONS_KEYBINDING(2.4, "SPIN LEFT", "+left") PC_OPTIONS_KEYBINDING(3.4, "CONSOLE RELOAD", "+usereload") PC_OPTIONS_FLOATLIST_RAW(4.4, "MAXIMUM FPS", "com_maxfps", { "30" 30 "57" 57 "60" 60 "85 (Default)" 85 "125" 125 "144" 144 "250" 250 "333" 333 "Unlimited" 0}, ;, "@MPUI_DESC_MAXFPS", when(0), 1) SEPARATORE(5.6) TOGGLE_MSG(5.7) PC_OPTIONS_KEYBINDING(6.7, "ENLARGE MINI-MAP", "+actionslot 1") PC_OPTIONS_KEYBINDING(7.7, "DROP A WEAPON", "openscriptmenu open drop") PC_OPTIONS_KEYBINDING(8.7, "SPECTATOR MODE", "openscriptmenu open spectate") PC_OPTIONS_KEYBINDING(9.7, "GET UAV", "openscriptmenu open uav") PC_OPTIONS_KEYBINDING(10.7, "GET CAREPACKAGE", "openscriptmenu open carepackage") PC_OPTIONS_KEYBINDING(11.7, "GET PREDATOR MISSILE", "openscriptmenu open predator") PC_OPTIONS_KEYBINDING(12.7, "GET SENTRY GUN", "openscriptmenu open sentry") itemDef { rect 59 390 70 75 0 0 decoration visible 1 forecolor 1 1 1 1 textfont 9 textscale 0.2 exp text ("THIS IS") } itemDef { rect 59 406 120 75 0 0 decoration visible 1 forecolor 1 0.8 0.3 1 textfont 9 textscale 0.43 exp text (dvarString("server_name")) } itemDef { rect 59 418 70 75 0 0 decoration visible 1 forecolor 1 1 1 1 textfont 9 textscale 0.2 exp text ("CREATED BY") } itemDef { rect 59 437 120 75 0 0 decoration visible 1 forecolor 1 0.8 0.3 1 textfont 9 textscale 0.43 exp text ("SHOCKEH & RAEZ") } #define BOTTONE_PICCOLO(fila,colonna,descrizione, materiale, myaction)\ itemDef \ { \ name "social" \ rect (545 + (fila * 25) + 20/6) (374 + colonna * (25) + 20/6) 20 20 0 0 \ style 3 \ foreColor 1 1 1 1 \ textScale 3 \ forecolor 1 1 1 1 \ type 1 \ decoration \ visible 1 \ exp material(materiale) \ } \ itemDef \ { \ rect (545 + (fila * 25)) (374 + colonna * (25) ) 25 25 0 0 \ visible 1 \ style 1 \ forecolor 1 0.8 0.3 1 \ backcolor 0 0 0 0.15 \ border 1 \ borderSize 1 \ borderColor 0 0 0 0.35 \ type 1 \ visible 1 \ action \ { \ play "mouse_click"; \ execnow myaction; \ } \ onFocus \ { \ play "mouse_over"; \ setItemColor self backcolor 0 0 0 0.3 \ setLocalVarBool "ui_menuAButton" ( 1 ); \ setLocalVarFloat "ui_popupYPos" ( getfocuseditemy( ) ); \ } \ leaveFocus \ { \ setItemColor self backcolor 0 0 0 0.1 \ setLocalVarString "ui_hint_text" ( "@NULL_EMPTY" ); \ setLocalVarBool "ui_menuAButton" ( 0 ); \ } \ } \ itemDef \ { \ rect (420 + (fila * 25)) (374 + colonna * (25)) 125 25 0 0 \ visible 1 \ style 1 \ forecolor 1 1 1 1 \ backcolor 0 0 0 0.15 \ border 1 \ borderSize 1 \ borderColor 0 0 0 0.35 \ type 1 \ visible 1 \ decoration \ textfont 9 \ textalign 6 \ textAlignY 7 \ textAlignX -5 \ textscale 0.192 \ exp text(descrizione) \ } // fila colonna testo materiale azione dimX dimY posX posY BOTTONE_PICCOLO(0, 0, "Discord.io/SnRServers", "discord", "openLink www.discord.gg/DX6d38H"); BOTTONE_PICCOLO(0, 1, "Twitter.com/SnRServers", "twitter", "openLink www.twitter.com/SnRServers"); BOTTONE_PICCOLO(0, 2, "SnRServers.com/Donation", "paypal", "openLink www.snrservers.com/donation"); itemDef { rect (545 + 25) 374 93 75 0 0 visible 1 style 1 forecolor 1 0.8 0.3 1 backcolor 0 0 0 0.15 border 1 borderSize 1 borderColor 0 0 0 0.35 type 1 visible 1 action { play "mouse_click"; open "popup_leavegame"; } onFocus { play "mouse_over"; setItemColor self backcolor 0 0 0 0.3 setLocalVarBool "ui_menuAButton" ( 1 ); setLocalVarFloat "ui_popupYPos" ( getfocuseditemy( ) ); } leaveFocus { setItemColor self backcolor 0 0 0 0.1 setLocalVarString "ui_hint_text" ( "@NULL_EMPTY" ); setLocalVarBool "ui_menuAButton" ( 0 ); } } itemDef { rect (545 + 25 + 10) (374 + 10) 70 56 0 0 style 3 foreColor 1 1 1 1 textScale 3 forecolor 1 1 1 1 type 1 decoration visible 1 exp material("leave") } itemDef { rect -100 55 220 170 0 1 style 3 foreColor 1 1 1 1 decoration visible 1 exp material("box") } itemDef { rect -80 80 180 28 0 1 decoration visible 1 forecolor 1 0.8 0.3 1 textfont 9 textalign 4 textalignx 4 textscale 0.25 exp text ( "Online vips and admins" ) } itemDef { rect -80 95 175 120 0 1 decoration autowrapped visible 1 forecolor 1 1 1 0.75 textalign 4 textalignx 4 textscale 0.25 exp text dvarstring("g_description") } itemDef { rect 9 -75 76.8 81.6 1 3 decoration visible 1 style 3 forecolor 1 1 1 1 textfont 9 background "cardicon_prestige10_02" } itemDef { rect 15 -69 64.5 68 1 3 decoration visible 1 style 3 forecolor 1 1 1 1 textfont 9 border 1 borderSize 0.5 forecolor 0 0 0 0 backcolor 0 0 0 0 borderColor 1 0.8 0.3 1 background "white" textscale 0.52 } itemDef { rect 510 55 220 170 0 1 style 3 foreColor 1 1 1 1 decoration visible 1 exp material("box") } itemDef { rect 530 80 175 120 0 1 decoration visible 1 forecolor 1 0.8 0.3 1 textfont 9 textalign 4 textalignx 4 textscale 0.25 exp text ( "Rules & More info" ) } itemDef { rect 530 95 175 120 0 1 decoration autowrapped visible 1 forecolor 1 1 1 0.75 textalign 4 textalignx 4 textscale 0.25 exp text(dvarString("server_rules")) } } }