@name Screen Switch
@inputs S:wirelink
@outputs 
@persist BG:array X
@trigger 
interval(100)
if(first()){
    S:egpClear()
    X=170
}
BG = array("hud/leaderboard_dead",
"console/background_2fort",
"console/background_gravelpit",
"console/background_mvm",
"console/background_upward",
"console/background_xmas2011",
"console/characters/fwk_demoman",
"console/characters/fwk_engineer",
"console/characters/fwk_sniper",
"console/characters/hwn_soldier",
"console/characters/mvm_sniper_bot",
"console/characters/xms2011_heavy",
"console/portal2_product_1",
"console/portal2_product_2",
"console/title_blue",
"console/title_fullmoon",
"console/title_red",
"console/title_team",
"console/title_team_halloween",
"console/title_team_halloween2011",
"console/title_team_halloween2012",
"console/title_war",
"console/title_war_widescreen",
"de_tides/tiddecclosed",
"decals/eye",
"effects/bloodstream",
"effects/combinemuzzle2",
"effects/energyball",
"effects/fire_cloud1",
"effects/splashwake3",
"effects/tool_tracer",
"entities/airboat.png",
"entities/chair_office1.png",
"entities/chair_office2.png",
"entities/chair_plastic.png",
"entities/chair_wood.png",
"entities/combine_mine.png",
"entities/combineelite.png",
"entities/combineprison.png",
"entities/edit_fog.png",
"entities/edit_sky.png",
"entities/edit_sun.png",
"entities/flechette_gun.png",
"entities/gmod_camera.png",
"entities/gmod_tool.png",
"entities/grenade_helicopter.png",
"entities/item_ammo_357.png",
"entities/item_ammo_ar2_altfire.png",
"entities/item_ammo_ar2.png",
"entities/item_ammo_crossbow.png",
"entities/item_ammo_pistol.png",
"entities/item_ammo_smg1_grenade.png",
"entities/item_ammo_smg1.png",
"entities/item_battery.png",
"entities/item_box_buckshot.png",
"entities/item_healthcharger.png",
"entities/item_healthkit.png",
"entities/item_healthvial.png",
"entities/item_rpg_round.png",
"entities/item_suit.png",
"entities/item_suitcharger.png",
"entities/jalopy.png",
"entities/jeep.png",
"entities/manhack_welder.png",
"entities/medic.png",
"entities/monster_alien_controller.png",
"entities/monster_alien_grunt.png",
"entities/monster_alien_slave.png",
"entities/monster_babycrab.png",
"entities/monster_barney.png",
"entities/monster_bigmomma.png",
"entities/monster_bullchicken.png",
"entities/monster_cockroach.png",
"entities/monster_gargantua.png",
"entities/monster_headcrab.png",
"entities/monster_houndeye.png",
"entities/monster_human_assassin.png",
"entities/monster_human_grunt.png",
"entities/monster_nihilanth.png",
"entities/monster_scientist.png",
"entities/monster_snark.png",
"entities/monster_tentacle.png",
"entities/monster_zombie.png",
"entities/npc_alyx.png",
"entities/npc_antlion_grub.png",
"entities/npc_antlion_worker.png",
"entities/npc_antlion.png",
"entities/npc_antlionguard.png",
"entities/npc_antlionguardian.png",
"entities/npc_barnacle.png",
"entities/npc_barney.png",
"entities/npc_breen.png",
"entities/npc_citizen.png",
"entities/npc_clawscanner.png",
"entities/npc_combine_camera.png",
"entities/npc_combine_s.png",
"entities/npc_combinedropship.png",
"entities/npc_combinegunship.png",
"entities/npc_crow.png",
"entities/npc_cscanner.png",
"entities/npc_dog.png",
"entities/npc_eli.png",
"entities/npc_fastzombie_torso.png",
"entities/npc_fastzombie.png",
"entities/npc_fisherman.png",
"entities/npc_gman.png",
"entities/npc_grenade_frag.png",
"entities/npc_headcrab_black.png",
"entities/npc_headcrab_fast.png",
"entities/npc_headcrab.png",
"entities/npc_helicopter.png",
"entities/npc_hunter.png",
"entities/npc_kleiner.png",
"entities/npc_manhack.png",
"entities/npc_metropolice.png",
"entities/npc_monk.png",
"entities/npc_mossman.png",
"entities/npc_odessa.png",
"entities/npc_pigeon.png",
"entities/npc_poisonzombie.png",
"entities/npc_rollermine.png",
"entities/npc_seagull.png",
"entities/npc_stalker.png",
"entities/npc_strider.png",
"entities/npc_turret_ceiling.png",
"entities/npc_turret_floor.png",
"entities/npc_vortigaunt.png",
"entities/npc_zombie_torso.png",
"entities/npc_zombie.png",
"entities/npc_zombine.png",
"entities/phx_seat.png",
"entities/phx_seat2.png",
"entities/pod.png",
"entities/prisonshotgunner.png",
"entities/prop_thumper.png",
"entities/rebel.png",
"entities/refugee.png",
"entities/seat_airboat.png",
"entities/seat_jalopy.png",
"entities/seat_jeep.png",
"entities/sent_ball.png",
"entities/shotgunsoldier.png",
"entities/vortigauntslave.png",
"entities/vortigaunturiah.png",
"entities/weapon_357.png",
"entities/weapon_annabelle.png",
"entities/weapon_ar2.png",
"glass/offlightcover",
"gui/arrow",
"gui/center_gradient",
"gui/close_32",
"gui/corner16",
"gui/corner8",
"gui/faceposer_indicator",
"gui/gfx/vgui/arctic",
"gui/gmod_logo",
"gui/gradient",
"gui/gradient_down",
"gui/gradient_up",
"gui/html/back",
"gui/html/forward",
"gui/html/home",
"gui/html/refresh",
"gui/html/stop",
"gui/icorner8",
"gui/info",
"gui/inv_corner16",
"gui/inv_corner8",
"gui/legs",
"gui/legs1",
"gui/legs2",
"gui/spawnmenu_toggle",
"gui/spawnmenu_toggle_back",
"gui/speech_lid",
"icon16/page.png",
"models/props_combine/combine_fenceglow",
"models/props_combine/combine_interface_disp",
"models/props_lab/eyescanner_disp",
"models/props_lab/generatorconsole_disp",
"models/props_lab/server_wires",
"models/props/cs_assault/dollar",
"models/props/cs_office/coffee_mug",
"models/props/cs_office/offcertificatea",
"models/props/cs_office/screenb",
"models/rendertarget",
"models/shadertest/shader5",
"models/weapons/v_toolgun/screen_bg",
"models/xqm/lightlinesred",
"phoenix_storms/lag_sign",
"skybox/militia_hdrup",
"skybox/sky_halloweendn",
"sprites/w_icons1",
"sprites/w_icons2",
"sprites/w_icons3",
"sprites/w_icons4",
"vgui/arrow",
"vgui/avatar_default",
"vgui/bg-lines",
"vgui/button_central_disabled",
"vgui/button_central_hover",
"vgui/button_motd",
"vgui/col-alpha",
"vgui/col-blue",
"vgui/col-brightness",
"vgui/col-green",
"vgui/col-red",
"vgui/cursors/arrow",
"vgui/cursors/hand",
"vgui/cursors/waitarrow",
"vgui/face/angry",
"vgui/face/eye",
"vgui/face/eye_brown",
"vgui/face/grin",
"vgui/gfx/vgui/ak47",
"vgui/gfx/vgui/arctic",
"vgui/gfx/vgui/aug",
"vgui/gfx/vgui/avatar_default_64",
"vgui/gfx/vgui/awp",
"vgui/gfx/vgui/bullet",
"vgui/gfx/vgui/cartridge",
"vgui/gfx/vgui/crosshair",
"vgui/gfx/vgui/cs_logo",
"vgui/gfx/vgui/ct_random",
"vgui/gfx/vgui/guerilla",
"vgui/gfx/vgui/icon_info",
"vgui/gfx/vgui/leet",
"vgui/gfx/vgui/market_bargain",
"vgui/gfx/vgui/market_sticker",
"vgui/gfx/vgui/market_sticker_category",
"vgui/gfx/vgui/not_available",
"vgui/gfx/vgui/round_corner_ne",
"vgui/gfx/vgui/round_corner_nw",
"vgui/gfx/vgui/round_corner_se",
"vgui/gfx/vgui/round_corner_sw",
"vgui/gfx/vgui/sas",
"vgui/gfx/vgui/scout",
"vgui/gfx/vgui/sg550",
"vgui/gfx/vgui/sg552",
"vgui/gfx/vgui/shell",
"vgui/gfx/vgui/shield",
"vgui/gfx/vgui/smokegrenade",
"vgui/gfx/vgui/solid_background",
"vgui/gfx/vgui/t_random",
"vgui/gfx/vgui/terror",
"vgui/gfx/vgui/tmp",
"vgui/gfx/vgui/trans_background",
"vgui/gfx/vgui/ump",
"vgui/gfx/vgui/ump45",
"vgui/gfx/vgui/urban",
"vgui/gfx/vgui/usp45",
"vgui/gfx/vgui/vip",
"vgui/gfx/vgui/xm1014",
"vgui/gmod_camera",
"vgui/gradient_down",
"vgui/gradient_up",
"vgui/gradient-bl",
"vgui/gradient-br",
"vgui/gradient-d",
"vgui/gradient-l",
"vgui/gradient-r",
"vgui/gradient-u",
"vgui/hand",
"vgui/hsv",
"vgui/hsv-bar",
"vgui/hsv-brightness",
"vgui/icon",
"vgui/illustrations/gamemode_merasmus",
"vgui/importtool_goldstar",
"vgui/loading-rotate",
"vgui/main_menu/meta_cityonfire512",
"vgui/main_menu/motd_mechaupdate",
"vgui/main_menu/motd_robo_2013",
"vgui/main_menu/screamfortress",
"vgui/minixhair",
"vgui/modicon",
"vgui/new",
"vgui/notices/cleanup",
"vgui/notices/error",
"vgui/notices/generic",
"vgui/notices/hint",
"vgui/notices/undo",
"vgui/null",
"vgui/pipboy_overlay",
"vgui/psn_logo",
"vgui/slider",
"vgui/spawnmenu/generating",
"vgui/spawnmenu/hover",
"vgui/spawnmenu/npc",
"vgui/spawnmenu/rttexture",
"vgui/steam_trading",
"vgui/store_cart",
"vgui/titlebardisabledicon",
"vgui/titlebaricon",
"vgui/v-indicator",
"vgui/workshop_blue_top",
"voice/icntlk_pl")

if(owner():keyUse()){
    X = X-1
    print(X+","+BG[X,string])
}
if(owner():keyReload()){
    X = X+1
    print(X+","+BG[X,string])
}

S:egpBox(1,vec2(256,256),vec2(512,512))
S:egpMaterial(1,BG[X,string])

