#include "ui/menudef.h" #include "ui_mp/main.inc" { menuDef { name "class" rect 0 0 640 480 0 0 forecolor 1 1 1 1 focuscolor 1 1 1 1 blurWorld 7 onOpen { if(dvarBool("menuoff") == 1) { close self; } focusfirst; } onEsc { close self; } execKeyInt 22 { } execKeyInt 23 { } itemDef { rect -426.667 -426.667 893.333 893.333 2 2 decoration visible 1 style 3 forecolor 0 0 0 0.4 background "white" textscale 0.55 } itemDef { rect -426.667 -426.667 893.333 893.333 2 2 decoration visible 1 style 3 forecolor 0 0 0 1 background "black" textscale 0.55 exp forecolor a ( ( cos ( milliseconds( ) / 1500 ) * 3) - 2.75 ) } 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 } itemDef { name "guid" rect 666 34 120 20 HORIZONTAL_ALIGN_LEFT VERTICAL_ALIGN_BOTTOM decoration foreColor 1 1 1 0.4 textAlign 0 textAlignX 0 textAlignY -4 textScale 0.25 visible 1 exp text ("Your GUID: " + dvarString("my_guid")) } #define BOTTONE(riga, colonna, nome, materiale, myaction, dimX, dimY, posX, posY, condition) \ itemDef \ { \ name nome \ rect (0 + (riga * 125)) (20 + colonna * (135) ) 135 175 0 0 \ style 3 \ foreColor 1 1 1 1 \ decoration \ visible 1 \ exp material("box") \ } \ itemDef \ { \ rect (0 + (riga * 125) + 135/4 + posX) (20 + colonna * (135) + 175/4 + posY) dimX dimY 0 0 \ style 3 \ foreColor 1 1 1 1 \ decoration \ visible 1 \ exp material(materiale) \ } \ itemDef \ { \ rect (0 + (riga * 125)) (20 + colonna * (135) ) 135 175 0 0 \ visible 1 \ style 1 \ forecolor 1 0.8 0.3 1 \ backcolor 0 0 0 0 \ disablecolor 0.6 0.55 0.55 1 \ type 1 \ textfont 9 \ textscale 0.25 \ textAlign 1 \ textAligny 130 \ exp text (nome) \ disabled when (condition >= 1) \ action \ { \ play "mouse_click"; \ execnow myaction; \ close self; \ } \ onFocus \ { \ play "mouse_over"; \ setLocalVarBool "ui_menuAButton" ( 1 ); \ setLocalVarFloat "ui_popupYPos" ( getfocuseditemy( ) ); \ } \ leaveFocus \ { \ setLocalVarString "ui_hint_text" ( "@NULL_EMPTY" ); \ setLocalVarBool "ui_menuAButton" ( 0 ); \ } \ } // fila colonna testo materiale azione dimX dimY posX posY BOTTONE(1, 0, "Change Class", "eac", "openMenu changeclass", 70, 70, 0, -10, dvarInt("spectator") + dvarInt("ufomode")); BOTTONE(2, 0, "Mods Menu", "mods", "openMenu main", 70, 70, 0, -5, !dvarInt("trickshot_server") + dvarInt("dead")); BOTTONE(3, 0, "Become a VIP", "shop", "openMenu iw4x_credits", 70, 70, 0, 0, 0); BOTTONE(1, 1, "Edit a Class", "cac", "openMenu muteplayer", 80, 60, -5, 2, dvarInt("dead") + dvarInt("spectator") + dvarInt("ufomode")); BOTTONE(2, 1, "Trickshot Options", "controller", "openMenu trickshot_options", 70, 70, 0, 0, !dvarInt("trickshot_server")); BOTTONE(3, 1, "Settings", "settings", "openMenu pc_options_video", 70, 70, 0, 0, 0); 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 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 -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 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")) } } }