//osphud1
windowDef Desktop
{
	#include "guis/hudcore.gui"

	definefloat "overlayX" 379
	definefloat "overlayY" (425 - "gui::overlay_players" * 13)
	#include "guis/overlay.gui"

	definefloat	"weaponSV"	22	// vertical weapon spacing, including separator
	definefloat	"weaponSH"	60	// horizontal weapon spacing, including separator
	definefloat	"weaponW"	56	// weapon field width (icon and ammo)
	definefloat	"weaponH"	20	// weapon field height
	definefloat	"weaponIX"	2
	definefloat	"weaponIY"	2
	definefloat	"weaponIW"	16
	definefloat	"weaponIH"	16
	definefloat	"weaponAX"	("desktop::weaponIX" + "desktop::weaponIW" + 2)
	definefloat	"weaponAW"	("desktop::weaponW" - "desktop::weaponAX")

	windowDef p_weapswitch
	{
		rect 0, 400 - (4 * "desktop::weaponSV"), 640, 2 * "desktop::weaponSH"
		visible 1

		windowDef ws_weapon1
		{
			rect 0, 0, "desktop::weaponW", "desktop::weaponH"
			windowDef ws_weapon1_glow
			{ rect 0, 0, "desktop::weaponW", "desktop::weaponH"   background "gfx/guis/hud/wsbar" }
			windowDef ws_weapon1_ammo
			{
				rect "desktop::weaponAX", 2, "desktop::weaponAW", 16
				textscale 0.25   textstyle 1
				text "gui::weapon1_ammo"
			}
			windowDef ws_weapon1_icon
			{
				rect "desktop::weaponIX", "desktop::weaponIY", "desktop::weaponIW", "desktop::weaponIH"
				background	"gui::weapon1_icon"
			}
			windowDef ws_weapon1_noammo
			{
				rect "desktop::weaponIX", "desktop::weaponIY", "desktop::weaponIW", "desktop::weaponIH"
				background	"gfx/guis/hud/noammo"
				matcolor	1,1,1,1
				visible	0
			}
		}

		windowDef ws_weapon2
		{
			rect 0, 1 * "desktop::weaponSV", "desktop::weaponW", "desktop::weaponH"
			windowDef ws_weapon2_glow
			{ rect 0, 0, "desktop::weaponW", "desktop::weaponH"   background "gfx/guis/hud/wsbar" }
			windowDef ws_weapon2_ammo
			{
				rect "desktop::weaponAX", 2, "desktop::weaponAW", 16
				textscale 0.25   textstyle 1
				text "gui::weapon2_ammo"
			}
			windowDef ws_weapon2_icon
			{
				rect "desktop::weaponIX", "desktop::weaponIY", "desktop::weaponIW", "desktop::weaponIH"
				background	"gui::weapon2_icon"
			}
			windowDef ws_weapon2_noammo
			{
				rect "desktop::weaponIX", "desktop::weaponIY", "desktop::weaponIW", "desktop::weaponIH"
				background	"gfx/guis/hud/noammo"
				matcolor	1,1,1,1
				visible	0
			}
		}

		windowDef ws_weapon3
		{
			rect 0, 2 * "desktop::weaponSV", "desktop::weaponW", "desktop::weaponH"
			windowDef ws_weapon3_glow
			{ rect 0, 0, "desktop::weaponW", "desktop::weaponH"   background "gfx/guis/hud/wsbar" }
			windowDef ws_weapon3_ammo
			{
				rect "desktop::weaponAX", 2, "desktop::weaponAW", 16
				textscale 0.25   textstyle 1
				text "gui::weapon3_ammo"
			}
			windowDef ws_weapon3_icon
			{
				rect "desktop::weaponIX", "desktop::weaponIY", "desktop::weaponIW", "desktop::weaponIH"
				background	"gui::weapon3_icon"
			}
			windowDef ws_weapon3_noammo
			{
				rect "desktop::weaponIX", "desktop::weaponIY", "desktop::weaponIW", "desktop::weaponIH"
				background	"gfx/guis/hud/noammo"
				matcolor	1,1,1,1
				visible	0
			}
		}

		windowDef ws_weapon4
		{
			rect 0, 3 * "desktop::weaponSV", "desktop::weaponW", "desktop::weaponH"
			windowDef ws_weapon4_glow
			{ rect 0, 0, "desktop::weaponW", "desktop::weaponH"   background "gfx/guis/hud/wsbar" }
			windowDef ws_weapon4_ammo
			{
				rect "desktop::weaponAX", 2, "desktop::weaponAW", 16
				textscale 0.25   textstyle 1
				text "gui::weapon4_ammo"
			}
			windowDef ws_weapon4_icon
			{
				rect "desktop::weaponIX", "desktop::weaponIY", "desktop::weaponIW", "desktop::weaponIH"
				background	"gui::weapon4_icon"
			}
			windowDef ws_weapon4_noammo
			{
				rect "desktop::weaponIX", "desktop::weaponIY", "desktop::weaponIW", "desktop::weaponIH"
				background	"gfx/guis/hud/noammo"
				matcolor	1,1,1,1
				visible	0
			}
		}

		windowDef ws_weapon5
		{
			rect 0, 4 * "desktop::weaponSV", "desktop::weaponW", "desktop::weaponH"
			windowDef ws_weapon5_glow
			{ rect 0, 0, "desktop::weaponW", "desktop::weaponH"   background "gfx/guis/hud/wsbar" }
			windowDef ws_weapon5_ammo
			{
				rect "desktop::weaponAX", 2, "desktop::weaponAW", 16
				textscale 0.25   textstyle 1
				text "gui::weapon5_ammo"
			}
			windowDef ws_weapon5_icon
			{
				rect "desktop::weaponIX", "desktop::weaponIY", "desktop::weaponIW", "desktop::weaponIH"
				background	"gui::weapon5_icon"
			}
			windowDef ws_weapon5_noammo
			{
				rect "desktop::weaponIX", "desktop::weaponIY", "desktop::weaponIW", "desktop::weaponIH"
				background	"gfx/guis/hud/noammo"
				matcolor	1,1,1,1
				visible	0
			}
		}

		windowDef ws_weapon6
		{
			rect "desktop::weaponSH", 0, "desktop::weaponW", "desktop::weaponH"
			windowDef ws_weapon6_glow
			{ rect 0, 0, "desktop::weaponW", "desktop::weaponH"   background "gfx/guis/hud/wsbar" }
			windowDef ws_weapon6_ammo
			{
				rect "desktop::weaponAX", 2, "desktop::weaponAW", 16
				textscale 0.25   textstyle 1
				text "gui::weapon6_ammo"
			}
			windowDef ws_weapon6_icon
			{
				rect "desktop::weaponIX", "desktop::weaponIY", "desktop::weaponIW", "desktop::weaponIH"
				background	"gui::weapon6_icon"
			}
			windowDef ws_weapon6_noammo
			{
				rect "desktop::weaponIX", "desktop::weaponIY", "desktop::weaponIW", "desktop::weaponIH"
				background	"gfx/guis/hud/noammo"
				matcolor	1,1,1,1
				visible	0
			}
		}

		windowDef ws_weapon7
		{
			rect "desktop::weaponSH", 1 * "desktop::weaponSV", "desktop::weaponW", "desktop::weaponH"
			windowDef ws_weapon7_glow
			{ rect 0, 0, "desktop::weaponW", "desktop::weaponH"   background "gfx/guis/hud/wsbar" }
			windowDef ws_weapon7_ammo
			{
				rect "desktop::weaponAX", 2, "desktop::weaponAW", 16
				textscale 0.25   textstyle 1
				text "gui::weapon7_ammo"
			}
			windowDef ws_weapon7_icon
			{
				rect "desktop::weaponIX", "desktop::weaponIY", "desktop::weaponIW", "desktop::weaponIH"
				background	"gui::weapon7_icon"
			}
			windowDef ws_weapon7_noammo
			{
				rect "desktop::weaponIX", "desktop::weaponIY", "desktop::weaponIW", "desktop::weaponIH"
				background	"gfx/guis/hud/noammo"
				matcolor	1,1,1,1
				visible	0
			}
		}

		windowDef ws_weapon8
		{
			rect "desktop::weaponSH", 2 * "desktop::weaponSV", "desktop::weaponW", "desktop::weaponH"
			windowDef ws_weapon8_glow
			{ rect 0, 0, "desktop::weaponW", "desktop::weaponH"   background "gfx/guis/hud/wsbar" }
			windowDef ws_weapon8_ammo
			{
				rect "desktop::weaponAX", 2, "desktop::weaponAW", 16
				textscale 0.25   textstyle 1
				text "gui::weapon8_ammo"
			}
			windowDef ws_weapon8_icon
			{
				rect "desktop::weaponIX", "desktop::weaponIY", "desktop::weaponIW", "desktop::weaponIH"
				background	"gui::weapon8_icon"
			}
			windowDef ws_weapon8_noammo
			{
				rect "desktop::weaponIX", "desktop::weaponIY", "desktop::weaponIW", "desktop::weaponIH"
				background	"gfx/guis/hud/noammo"
				matcolor	1,1,1,1
				visible	0
			}
		}

		windowDef ws_weapon9
		{
			rect "desktop::weaponSH", 3 * "desktop::weaponSV", "desktop::weaponW", "desktop::weaponH"
			windowDef ws_weapon9_glow
			{ rect 0, 0, "desktop::weaponW", "desktop::weaponH"   background "gfx/guis/hud/wsbar" }
			windowDef ws_weapon9_ammo
			{
				rect "desktop::weaponAX", 2, "desktop::weaponAW", 16
				textscale 0.25   textstyle 1
				text "gui::weapon9_ammo"
			}
			windowDef ws_weapon9_icon
			{
				rect "desktop::weaponIX", "desktop::weaponIY", "desktop::weaponIW", "desktop::weaponIH"
				background	"gui::weapon9_icon"
			}
			windowDef ws_weapon9_noammo
			{
				rect "desktop::weaponIX", "desktop::weaponIY", "desktop::weaponIW", "desktop::weaponIH"
				background	"gfx/guis/hud/noammo"
				matcolor	1,1,1,1
				visible	0
			}
		}

		windowDef ws_weapon10
		{
			rect "desktop::weaponSH", 4 * "desktop::weaponSV", "desktop::weaponW", "desktop::weaponH"
			windowDef ws_weapon10_glow
			{ rect 0, 0, "desktop::weaponW", "desktop::weaponH"   background "gfx/guis/hud/wsbar" }
			windowDef ws_weapon10_ammo
			{
				rect "desktop::weaponAX", 2, "desktop::weaponAW", 16
				textscale 0.25   textstyle 1
				text "gui::weapon10_ammo"
			}
			windowDef ws_weapon10_icon
			{
				rect "desktop::weaponIX", "desktop::weaponIY", "desktop::weaponIW", "desktop::weaponIH"
				background	"gui::weapon10_icon"
			}
			windowDef ws_weapon10_noammo
			{
				rect "desktop::weaponIX", "desktop::weaponIY", "desktop::weaponIW", "desktop::weaponIH"
				background	"gfx/guis/hud/noammo"
				matcolor	1,1,1,1
				visible	0
			}
		}
	}
}