{ menuDef { name "onemanarmy" rect 0 0 640 480 0 0 forecolor 1 1 1 1 focuscolor 1 1 1 1 blurWorld 7 onOpen { setLocalVarString "default_custom" ("CUSTOM CLASSES") setLocalVarString "opposite" ("DEFAULT CLASSES") focusfirst; } onEsc { scriptmenuresponse "back"; } 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 { 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 (5 + 110 - 60 - 15) (80 - 5 - 45) (220 + 20) 1 1 1 decoration visible 1 style 3 forecolor 1 1 1 0.05 background "white" textscale 0.55 } itemDef { rect (5 + 110 - 60 - 15) (80 - 5 + 30 - 45) (220 + 20) 1 1 1 decoration visible 1 style 3 forecolor 1 1 1 0.05 background "white" textscale 0.55 } itemDef { rect (5 + 110 - 60 - 15) (80 - 5 + 30 - 45 + 173) (220 + 20) 1 1 1 decoration visible 1 style 3 forecolor 1 1 1 0.05 background "white" textscale 0.55 } itemDef { rect (5 + 110 - 60) (80) 220 28 1 1 decoration visible 1 forecolor 1 0.8 0.3 1 textfont 9 textAlign 1 textAligny -25 textscale 0.41 exp text (localVarString("default_custom")) } itemDef { rect (-10 + 20 + 13) 38 1 185 1 1 decoration visible 1 style 3 forecolor 1 1 1 0.05 background "white" textscale 0.55 } itemDef { rect (-10 + 300 + 3) 38 1 185 1 1 decoration visible 1 style 3 forecolor 1 1 1 0.05 background "white" textscale 0.55 } itemDef { rect -10 -20 340 340 1 1 style 3 foreColor 1 1 1 1 decoration visible 1 exp material("box") } itemDef { rect 392 -67 395 453 1 1 style 3 foreColor 1 1 1 1 decoration visible 1 exp material("box") } itemDef { rect (392 + 55) -3 287 1 1 1 decoration visible 1 style 3 forecolor 1 1 1 0.05 background "white" textscale 0.55 } itemDef { rect (392 + 55) 274 287 1 1 1 decoration visible 1 style 3 forecolor 1 1 1 0.05 background "white" textscale 0.55 } itemDef { rect (392 + 55 - 15) 8 1 255 1 1 decoration visible 1 style 3 forecolor 1 1 1 0.05 background "white" textscale 0.55 } itemDef { rect (392 + 55 + 313 - 15) 8 1 255 1 1 decoration visible 1 style 3 forecolor 1 1 1 0.05 background "white" textscale 0.55 } itemDef { name "toggle" rect (40) (62.5) 240 18.6 1 1 visible 1 style 1 forecolor 1 1 1 1 backcolor 0 0 0 0 disablecolor 0.6 0.55 0.55 1 type 1 textfont 3 textAlign 1 textAligny 15 textscale 0.25 visible 1 exp text ( "^3SHOW " + localvarString("opposite") ) action { play "mouse_click"; setLocalVarInt "ind" (1); if(localvarString("default_custom") == "CUSTOM CLASSES" && localVarInt("ind") == 1) { setLocalVarString "default_custom" ("DEFAULT CLASSES") setLocalVarString "opposite" ("CUSTOM CLASSES") setLocalVarInt "ind" (2); } if(localvarString("default_custom") == "DEFAULT CLASSES" && localVarInt("ind") == 1) { setLocalVarString "default_custom" ("CUSTOM CLASSES") setLocalVarString "opposite" ("DEFAULT CLASSES") setLocalVarInt "ind" (2); } setLocalVarInt "ind" (1); } onFocus { play "mouse_over"; setItemColor self backcolor 0 0 0 0.2; setLocalVarBool "ui_menuAButton" ( 1 ); setLocalVarFloat "ui_popupYPos" ( getfocuseditemy( ) ); setItemColor self backcolor 0 0 0 0.2; setLocalVarBool "ui_menuAButton" ( 1 ); setLocalVarFloat "ui_popupYPos" ( getfocuseditemy( ) ); setLocalVarString "loadoutPrimary" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutPrimary" , 1 ) ); setLocalVarString "loadoutPrimaryAttachment" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutPrimaryAttachment" , 1 ) ); setLocalVarString "loadoutPrimaryAttachment2" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutPrimaryAttachment2" , 1 ) ); if ( localvarstring( "loadoutPrimaryAttachment2" ) == "" ) { setLocalVarString "loadoutPrimaryAttachment2" ( "none" ); } setLocalVarString "loadoutPrimaryCamo" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutPrimaryCamo" , 1 ) ); setLocalVarString "loadoutSecondary" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutSecondary" , 1) ); setLocalVarString "loadoutSecondaryAttachment" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutSecondaryAttachment" , 1 ) ); setLocalVarString "loadoutSecondaryAttachment2" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutPrimaryAttachment2" , 1 ) ); if ( localvarstring( "loadoutSecondaryAttachment2" ) == "" ) { setLocalVarString "loadoutSecondaryAttachment2" ( "none" ); } setLocalVarString "loadoutSecondaryCamo" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutSecondaryCamo" , 1 ) ); setLocalVarString "loadoutEquipment" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutEquipment" , 1 ) ); setLocalVarString "loadoutPerk1" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutPerk1" , 1 ) ); setLocalVarString "loadoutPerk2" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutPerk2" , 1 ) ); setLocalVarString "loadoutPerk3" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutPerk3" , 1 ) ); setLocalVarString "loadoutStreak1" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutStreak1" , 1 ) ); setLocalVarString "loadoutStreak2" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutStreak2" , 1 ) ); setLocalVarString "loadoutStreak3" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutStreak3" , 1 ) ); setLocalVarString "loadoutDeathStreak" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutDeathStreak" , 1 ) ); setLocalVarString "loadoutOffhandSecondary" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutOffhand" , 1 ) ); setLocalVarString "loadoutClassName" ( "^3SHOW " + localvarString("opposite") ) ) ); \ } leaveFocus { setItemColor self backcolor 0 0 0 "0.0"; setLocalVarString "ui_hint_text" ( "@NULL_EMPTY" ); setLocalVarBool "ui_menuAButton" ( 0 ); } } #define CLASS_BUTTON(index, colonna, classindex, classname) \ itemDef \ { \ name "class_custom" \ rect (40 + (colonna * 120)) (82.5 + (18.6 * index)) 120 18.6 1 1 \ visible 1 \ style 1 \ forecolor 1 1 1 1 \ backcolor 0 0 0 0 \ disablecolor 0.6 0.55 0.55 1 \ type 1 \ textfont 3 \ textAlign 1 \ textAligny 15 \ textscale 0.25 \ visible when (localvarString("default_custom") == "CUSTOM CLASSES") \ exp text ( getplayerdata( "customClasses" , classindex , "name" ) ) \ action \ { \ play "mouse_click"; \ scriptmenuresponse classname; \ close self; \ } \ onFocus \ { \ play "mouse_over"; \ if ( dvarstring( "gameMode" ) != "mp" ) \ { \ setItemColor "mw2_button" backcolor 0 0 0 0; \ } \ setItemColor self backcolor 0 0 0 0.2; \ setLocalVarBool "ui_menuAButton" ( 1 ); \ setLocalVarFloat "ui_popupYPos" ( getfocuseditemy( ) ); \ setLocalVarInt "classIndex" ( classindex ); \ setLocalVarString "loadoutPrimary" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) ); \ setLocalVarString "loadoutPrimaryAttachment" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 0 ) ); \ setLocalVarString "loadoutPrimaryAttachment2" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "attachment" , 1 ) ); \ if ( localvarstring( "loadoutPrimaryAttachment2" ) == "" ) \ { \ setLocalVarString "loadoutPrimaryAttachment2" ( "none" ); \ } \ setLocalVarString "loadoutPrimaryCamo" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "camo" ) ); \ setLocalVarString "loadoutSecondary" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "weapon" ) ); \ setLocalVarString "loadoutSecondaryAttachment" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 0 ) ); \ setLocalVarString "loadoutSecondaryAttachment2" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "attachment" , 1 ) ); \ if ( localvarstring( "loadoutSecondaryAttachment2" ) == "" ) \ { \ setLocalVarString "loadoutSecondaryAttachment2" ( "none" ); \ } \ setLocalVarString "loadoutSecondaryCamo" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 1 , "camo" ) ); \ setLocalVarString "loadoutEquipment" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 0 ) ); \ setLocalVarString "loadoutPerk1" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 1 ) ); \ setLocalVarString "loadoutPerk2" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 2 ) ); \ setLocalVarString "loadoutPerk3" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 3 ) ); \ setLocalVarString "loadoutStreak1" ( getplayerdata( "killstreaks" , 0 ) ); \ setLocalVarString "loadoutStreak2" ( getplayerdata( "killstreaks" , 1 ) ); \ setLocalVarString "loadoutStreak3" ( getplayerdata( "killstreaks" , 2 ) ); \ setLocalVarString "loadoutDeathStreak" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "perks" , 4 ) ); \ setLocalVarString "loadoutOffhandSecondary" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "specialGrenade" ) ); \ setLocalVarString "loadoutClassName" ( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "name" ) ); \ } \ leaveFocus \ { \ setItemColor self backcolor 0 0 0 "0.0"; \ setLocalVarString "ui_hint_text" ( "@NULL_EMPTY" ); \ setLocalVarBool "ui_menuAButton" ( 0 ); \ } \ } // custom classes CLASS_BUTTON(0, 0, 0, "custom1") CLASS_BUTTON(1, 0, 1, "custom2") CLASS_BUTTON(2, 0, 2, "custom3") CLASS_BUTTON(3, 0, 3, "custom4") CLASS_BUTTON(4, 0, 4, "custom5") CLASS_BUTTON(5, 0, 5, "custom6") CLASS_BUTTON(6, 0, 6, "custom7") CLASS_BUTTON(0, 1, 7, "custom8") CLASS_BUTTON(1, 1, 8, "custom9") CLASS_BUTTON(2, 1, 9, "custom10") CLASS_BUTTON(3, 1, 10, "custom11") CLASS_BUTTON(4, 1, 11, "custom12") CLASS_BUTTON(5, 1, 12, "custom13") CLASS_BUTTON(6, 1, 13, "custom14") #define DEFAULT_CLASSES(altezza, classname, txt) \ itemDef \ { \ name "class_custom" \ rect (40) (82.5 + (18.6 * altezza)) 240 18.6 1 1 \ visible 1 \ style 1 \ forecolor 1 1 1 1 \ backcolor 0 0 0 0 \ disablecolor 0.6 0.55 0.55 1 \ type 1 \ textfont 3 \ textAlign 1 \ textAligny 15 \ textscale 0.25 \ visible when (localvarString("default_custom") == "DEFAULT CLASSES") \ exp text ( txt ) \ action \ { \ play "mouse_click"; \ scriptmenuresponse classname; \ close self; \ } \ onFocus \ { \ play "mouse_over"; \ setItemColor self backcolor 0 0 0 0.2; \ setLocalVarBool "ui_menuAButton" ( 1 ); \ setLocalVarFloat "ui_popupYPos" ( getfocuseditemy( ) ); \ setLocalVarString "loadoutPrimary" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutPrimary" , altezza+1 ) ); \ setLocalVarString "loadoutPrimaryAttachment" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutPrimaryAttachment" , altezza+1 ) ); \ setLocalVarString "loadoutPrimaryAttachment2" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutPrimaryAttachment2" , altezza+1 ) ); \ if ( localvarstring( "loadoutPrimaryAttachment2" ) == "" ) \ { \ setLocalVarString "loadoutPrimaryAttachment2" ( "none" ); \ } \ setLocalVarString "loadoutPrimaryCamo" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutPrimaryCamo" , altezza+1 ) ); \ setLocalVarString "loadoutSecondary" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutSecondary" , altezza+1 ) ); \ setLocalVarString "loadoutSecondaryAttachment" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutSecondaryAttachment" , altezza+1 ) ); \ setLocalVarString "loadoutSecondaryAttachment2" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutPrimaryAttachment2" , altezza+1 ) ); \ if ( localvarstring( "loadoutSecondaryAttachment2" ) == "" ) \ { \ setLocalVarString "loadoutSecondaryAttachment2" ( "none" ); \ } \ setLocalVarString "loadoutSecondaryCamo" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutSecondaryCamo" , altezza+1 ) ); \ setLocalVarString "loadoutEquipment" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutEquipment" , altezza+1 ) ); \ setLocalVarString "loadoutPerk1" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutPerk1" , altezza+1 ) ); \ setLocalVarString "loadoutPerk2" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutPerk2" , altezza+1 ) ); \ setLocalVarString "loadoutPerk3" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutPerk3" , altezza+1 ) ); \ setLocalVarString "loadoutStreak1" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutStreak1" , altezza+1 ) ); \ setLocalVarString "loadoutStreak2" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutStreak2" , altezza+1 ) ); \ setLocalVarString "loadoutStreak3" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutStreak3" , altezza+1 ) ); \ setLocalVarString "loadoutDeathStreak" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutDeathStreak" , altezza+1 ) ); \ setLocalVarString "loadoutOffhandSecondary" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutOffhand" , altezza+1 ) ); \ setLocalVarString "loadoutClassName" ( txt ) ) ); \ } \ leaveFocus \ { \ setItemColor self backcolor 0 0 0 "0.0"; \ setLocalVarString "ui_hint_text" ( "@NULL_EMPTY" ); \ setLocalVarBool "ui_menuAButton" ( 0 ); \ } \ } // DEFAULT CLASSES DEFAULT_CLASSES(0, "class0", "OVERUSED") DEFAULT_CLASSES(1, "class1", "DOUBLE SNIPER") DEFAULT_CLASSES(2, "class2", "NAC GOD") DEFAULT_CLASSES(3, "class3", "LYNX") DEFAULT_CLASSES(4, "class4", "PSG-1") DEFAULT_CLASSES(5, "class5", "L96A1") DEFAULT_CLASSES(6, "class6", "CHEYTAC M200") itemDef { name "random_class" rect (40) (82.5 + (18.6 * 7)) 240 18.6 1 1 visible 1 style 1 forecolor 1 1 1 1 backcolor 0 0 0 0 disablecolor 0.6 0.55 0.55 1 type 1 textfont 3 textAlign 1 textAligny 15 textscale 0.25 visible 1 exp text ( "^3RANDOM WEAPONS & PERKS" ) action { play "mouse_click"; scriptmenuresponse "class9"; close self; } onFocus { play "mouse_over"; setItemColor self backcolor 0 0 0 0.2; setLocalVarBool "ui_menuAButton" ( 1 ); setLocalVarFloat "ui_popupYPos" ( getfocuseditemy( ) ); setLocalVarString "loadoutPrimary" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutPrimary" , 9 ) ); setLocalVarString "loadoutPrimaryAttachment" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutPrimaryAttachment" , 9 ) ); setLocalVarString "loadoutPrimaryAttachment2" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutPrimaryAttachment2" , 9 ) ); if ( localvarstring( "loadoutPrimaryAttachment2" ) == "" ) { setLocalVarString "loadoutPrimaryAttachment2" ( "none" ); } setLocalVarString "loadoutPrimaryCamo" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutPrimaryCamo" , 9 ) ); setLocalVarString "loadoutSecondary" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutSecondary" , 9 ) ); setLocalVarString "loadoutSecondaryAttachment" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutSecondaryAttachment" , 9 ) ); setLocalVarString "loadoutSecondaryAttachment2" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutPrimaryAttachment2" , 9 ) ); if ( localvarstring( "loadoutSecondaryAttachment2" ) == "" ) { setLocalVarString "loadoutSecondaryAttachment2" ( "none" ); } setLocalVarString "loadoutSecondaryCamo" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutSecondaryCamo" , 9 ) ); setLocalVarString "loadoutEquipment" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutEquipment" , 9 ) ); setLocalVarString "loadoutPerk1" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutPerk1" , 9 ) ); setLocalVarString "loadoutPerk2" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutPerk2" , 9 ) ); setLocalVarString "loadoutPerk3" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutPerk3" , 9 ) ); setLocalVarString "loadoutStreak1" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutStreak1" , 9 ) ); setLocalVarString "loadoutStreak2" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutStreak2" , 9 ) ); setLocalVarString "loadoutStreak3" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutStreak3" , 9 ) ); setLocalVarString "loadoutDeathStreak" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutDeathStreak" , 9 ) ); setLocalVarString "loadoutOffhandSecondary" ( tablelookup( "mp/classTable.csv" , 0 , "loadoutOffhand" , 9 ) ); } leaveFocus { setItemColor self backcolor 0 0 0 "0.0"; setLocalVarString "ui_hint_text" ( "@NULL_EMPTY" ); setLocalVarBool "ui_menuAButton" ( 0 ); } } itemDef { rect -270 8 -272 100 3 1 style 3 decoration visible 1 forecolor 1 1 1 0.1 background "gradient_fadein" textscale 0.55 } itemDef { rect -270 108 -272 100 3 1 style 3 decoration visible 1 forecolor 1 1 1 0.1 background "gradient_fadein" textscale 0.55 } itemDef { rect -270 8 272 100 3 1 style 3 decoration visible 1 forecolor 1 1 1 0.5 textscale 0.55 visible when ( localvarstring( "loadoutPrimaryCamo" ) != "none" ) exp material ( tablelookup( "mp/camoTable.csv" , 1 , localvarstring( "loadoutPrimaryCamo" ) , 4 ) ) } itemDef { rect -270 8 272 18 3 1 style 3 decoration visible 1 forecolor 0 0 0 0.25 textscale 0.55 visible when ( localvarstring( "loadoutPrimaryCamo" ) != "none" ) exp material ( tablelookup( "mp/camoTable.csv" , 1 , localvarstring( "loadoutPrimaryCamo" ) , 4 ) ) } itemDef { rect -270 8 -272 18 3 1 style 1 decoration visible 1 forecolor 1 1 1 1 backcolor 0 0 0 0.35 background "gradient_fadein" textfont 9 textalign 4 textalignx 4 textscale 0.375 exp text ( "@" + tablelookup( "table/statsTable.csv" , 4 , localvarstring( "loadoutPrimary" ) , 3 ) ) } itemDef { rect -198 8 200 101.333 3 1 style 3 decoration visible 1 forecolor 1 1 1 1 textscale 0.55 exp material ( tablelookup( "table/statsTable.csv" , 4 , localvarstring( "loadoutPrimary" ) , 6 ) ) } itemDef { rect -266 26 40 40 3 1 style 3 decoration visible 1 forecolor 1 1 1 0 textscale 0.55 exp material ( tablelookup( "mp/attachmentTable.csv" , 4 , localvarstring( "loadoutPrimaryAttachment2" ) , 6 ) ) } itemDef { rect -266 66 40 40 3 1 style 3 decoration visible 1 forecolor 1 1 1 1 textscale 0.55 exp material ( tablelookup( "mp/attachmentTable.csv" , 4 , localvarstring( "loadoutPrimaryAttachment" ) , 6 ) ) } itemDef { rect -222 66 40 40 3 1 style 3 decoration visible 1 forecolor 1 1 1 1 textscale 0.55 exp material ( tablelookup( "mp/attachmentTable.csv" , 4 , localvarstring( "loadoutPrimaryAttachment2" ) , 6 ) ) } itemDef { rect -270 108 272 100 3 1 style 3 decoration visible 1 forecolor 1 1 1 0.5 textscale 0.55 visible when ( localvarstring( "loadoutSecondaryCamo" ) != "none" ) exp material ( tablelookup( "mp/camoTable.csv" , 1 , localvarstring( "loadoutSecondaryCamo" ) , 4 ) ) } itemDef { rect -270 108 272 18 3 1 style 3 decoration visible 1 forecolor 0 0 0 0.25 textscale 0.55 visible when ( localvarstring( "loadoutSecondaryCamo" ) != "none" ) exp material ( tablelookup( "mp/camoTable.csv" , 1 , localvarstring( "loadoutSecondaryCamo" ) , 4 ) ) } itemDef { rect -270 108 -272 18 3 1 style 1 decoration visible 1 forecolor 1 1 1 1 backcolor 0 0 0 0.35 background "gradient_fadein" textfont 9 textalign 4 textalignx 4 textscale 0.375 exp text ( "@" + tablelookup( "table/statsTable.csv" , 4 , localvarstring( "loadoutSecondary" ) , 3 ) ) } itemDef { rect -198 108 200 101.333 3 1 style 3 decoration visible 1 forecolor 1 1 1 1 textscale 0.55 exp material ( tablelookup( "table/statsTable.csv" , 4 , localvarstring( "loadoutSecondary" ) , 6 ) ) } itemDef { rect -266 126 40 40 3 1 style 3 decoration visible 1 forecolor 1 1 1 0 textscale 0.55 exp material ( tablelookup( "mp/attachmentTable.csv" , 4 , localvarstring( "loadoutSecondaryAttachment2" ) , 6 ) ) } itemDef { rect -266 166 40 40 3 1 style 3 decoration visible 1 forecolor 1 1 1 1 textscale 0.55 exp material ( tablelookup( "mp/attachmentTable.csv" , 4 , localvarstring( "loadoutSecondaryAttachment" ) , 6 ) ) } itemDef { rect -222 166 40 40 3 1 style 3 decoration visible 1 forecolor 1 1 1 1 textscale 0.55 exp material ( tablelookup( "mp/attachmentTable.csv" , 4 , localvarstring( "loadoutSecondaryAttachment2" ) , 6 ) ) } itemDef { rect -270 208 -272 20 3 1 style 3 decoration visible 1 forecolor 1 1 1 0.1 background "gradient_fadein" textscale 0.55 } itemDef { rect -270 208 -272 20 3 1 style 3 decoration visible 1 forecolor 0 0 0 0.35 background "gradient_fadein" textscale 0.55 } itemDef { rect -270 208 20 20 3 1 style 3 decoration visible 1 forecolor 1 1 1 1 textscale 0.55 exp material ( tablelookup( "mp/perkTable.csv" , 1 , localvarstring( "loadoutEquipment" ) , 3 ) ) } itemDef { rect -246 208 272 20 3 1 decoration visible 1 forecolor 1 1 1 1 textfont 3 textalign 4 textalignx 4 textscale 0.375 exp text ( "@" + tablelookup( "mp/perkTable.csv" , 1 , localvarstring( "loadoutEquipment" ) , 2 ) ) } itemDef { rect -134 208 20 20 3 1 style 3 decoration visible 1 forecolor 1 1 1 1 textscale 0.55 exp material ( tablelookup( "table/statsTable.csv" , 4 , localvarstring( "loadoutOffhandSecondary" ) , 6 ) ) } itemDef { rect -114 208 272 20 3 1 decoration visible 1 forecolor 1 1 1 1 textfont 3 textalign 4 textalignx 4 textscale 0.375 exp text ( locstring( "@MPUI_N_XN" , "@" + tablelookup( "table/statsTable.csv" , 4 , localvarstring( "loadoutOffhandSecondary" ) , 3 ) , int( tablelookup( "table/statsTable.csv" , 4 , localvarstring( "loadoutOffhandSecondary" ) , 5 ) ) ) ) } itemDef { rect -270 228 -272 1 3 1 style 3 decoration visible 1 forecolor 0 0 0 0.5 background "gradient_fadein" textscale 0.55 } itemDef { rect -270 228 -272 36 3 1 style 3 decoration visible 1 forecolor 1 1 1 0.1 background "gradient_fadein" textscale 0.55 } itemDef { rect -266 228 36 36 3 1 style 3 decoration visible 1 forecolor 1 1 1 1 textscale 0.55 visible when ( tablelookup( "mp/perkTable.csv" , 1 , localvarstring( "loadoutPerk1" ) , 8 ) == "specialty_null" || !isitemunlocked( tablelookup( "mp/perkTable.csv" , 1 , localvarstring( "loadoutPerk1" ) , 8 ) ) ) exp material ( tablelookup( "mp/perkTable.csv" , 1 , localvarstring( "loadoutPerk1" ) , 3 ) ) } itemDef { rect -266 228 36 36 3 1 style 3 decoration visible 1 forecolor 1 1 1 1 textscale 0.55 visible when ( tablelookup( "mp/perkTable.csv" , 1 , localvarstring( "loadoutPerk1" ) , 8 ) != "specialty_null" && isitemunlocked( tablelookup( "mp/perkTable.csv" , 1 , localvarstring( "loadoutPerk1" ) , 8 ) ) && localvarstring( "loadoutPerk1" ) != "" ) exp material ( tablelookup( "mp/perkTable.csv" , 1 , localvarstring( "loadoutPerk1" ) , 3 ) + "_upgrade" ) } itemDef { rect -193.5 228 36 36 3 1 style 3 decoration visible 1 forecolor 1 1 1 1 textscale 0.55 visible when ( tablelookup( "mp/perkTable.csv" , 1 , localvarstring( "loadoutPerk2" ) , 8 ) == "specialty_null" || !isitemunlocked( tablelookup( "mp/perkTable.csv" , 1 , localvarstring( "loadoutPerk2" ) , 8 ) ) ) exp material ( tablelookup( "mp/perkTable.csv" , 1 , localvarstring( "loadoutPerk2" ) , 3 ) ) } itemDef { rect -193.5 228 36 36 3 1 style 3 decoration visible 1 forecolor 1 1 1 1 textscale 0.55 visible when ( tablelookup( "mp/perkTable.csv" , 1 , localvarstring( "loadoutPerk2" ) , 8 ) != "specialty_null" && isitemunlocked( tablelookup( "mp/perkTable.csv" , 1 , localvarstring( "loadoutPerk2" ) , 8 ) ) && localvarstring( "loadoutPerk2" ) != "" ) exp material ( tablelookup( "mp/perkTable.csv" , 1 , localvarstring( "loadoutPerk2" ) , 3 ) + "_upgrade" ) } itemDef { rect -126 228 36 36 3 1 style 3 decoration visible 1 forecolor 1 1 1 1 textscale 0.55 visible when ( tablelookup( "mp/perkTable.csv" , 1 , localvarstring( "loadoutPerk3" ) , 8 ) == "specialty_null" || !isitemunlocked( tablelookup( "mp/perkTable.csv" , 1 , localvarstring( "loadoutPerk3" ) , 8 ) ) ) exp material ( tablelookup( "mp/perkTable.csv" , 1 , localvarstring( "loadoutPerk3" ) , 3 ) ) } itemDef { rect -126 228 36 36 3 1 style 3 decoration visible 1 forecolor 1 1 1 1 textscale 0.55 visible when ( tablelookup( "mp/perkTable.csv" , 1 , localvarstring( "loadoutPerk3" ) , 8 ) != "specialty_null" && isitemunlocked( tablelookup( "mp/perkTable.csv" , 1 , localvarstring( "loadoutPerk3" ) , 8 ) ) && localvarstring( "loadoutPerk3" ) != "" ) exp material ( tablelookup( "mp/perkTable.csv" , 1 , localvarstring( "loadoutPerk3" ) , 3 ) + "_upgrade" ) } itemDef { rect -59 228 36 36 3 1 style 3 decoration visible 1 forecolor 1 1 1 1 textscale 0.55 exp material ( tablelookup( "mp/perkTable.csv" , 1 , localvarstring( "loadoutDeathStreak" ) , 3 ) ) } 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 0 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 0 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 } } }