{ menuDef { name "startup_answer" rect 0 0 640 480 0 0 forecolor 1 1 1 1 focuscolor 1 1 1 1 blurWorld 7 onOpen { focusfirst; } onEsc { focusfirst; } 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 { name nome rect (-200 + (1.5 * 180 + 52.5)) (57) 395 45 0 0 style 3 foreColor 1 1 1 1 decoration visible 1 exp material("box") } 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 { rect 225 51 272 28 1 1 decoration visible 1 forecolor 1 0.8 0.3 1 type 1 textfont 9 textalign 1 textscale 0.415 text "REGISTRATION TO S&RSERVERS!" } #define BOTTONE(riga, colonna, nome, myaction, dimX, dimY, posX, posY) \ itemDef \ { \ name nome \ rect (-175 + (riga * 180 + 45)) (60 + colonna * (135) ) 180 90 0 0 \ style 3 \ foreColor 1 1 1 1 \ decoration \ visible 1 \ exp material("box") \ } \ itemDef \ { \ rect (-180 + (riga * 180 + 72)) (79 + colonna * (132) ) 135 50 0 0 \ visible 1 \ style 1 \ forecolor 1 1 1 0.96 \ backcolor 0 0 0 0 \ background "menu_button_selection_bar" \ type 1 \ textfont 9 \ textscale 0.215 \ textAlign 1 \ textAligny 25 \ exp text (nome) \ visible 1 \ action \ { \ play "mouse_click"; \ execnow myaction; \ execnow "set trickshotter yes"; \ 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 azione dimX dimY posX posY BOTTONE(1.5, 0.5, "I've read and accepted the\n rules of this server.", "openscriptmenu open yesiam", 70, 70, 0, -10); BOTTONE(2.5, 0.5, "I do not agree with the\n rules of this server.", "openscriptmenu open noimnot", 70, 70, 0, -5); itemDef { rect (-175 + (1.5 * 180 + 45)) (60 + 0.5 * (135) ) 180 90 0 0 decoration visible 1 forecolor 1 0.8 0.3 1 textfont 9 textalign 1 textaligny 29 textscale 0.25 exp text ( "I ACCEPT THE RULES" ) } itemDef { rect (-175 + (2.5 * 180 + 45)) (60 + 0.5 * (135) ) 180 90 0 0 decoration visible 1 forecolor 1 0.8 0.3 1 textfont 9 textalign 1 textaligny 29 textscale 0.25 exp text ( "I DECLINE THE RULES" ) } // BOTTOM 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 decoration 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")) } } }