-- this is automatic generated file! do not modify it!
-- script for nls15 window loader. version 1.50.
-- copyright (c) 2005-2007 rionix. all rights reserved.

function FillWindow(wnd)

	wnd:SetActive(true)
	wnd:SetModal(true)

	local ctrl

	ctrl = cImageCtrl(wnd, "noname")
	ctrl:SetPos(0, 0, cCtrl.e_None)
	ctrl:SetSize(200, 600, cCtrl.e_None)
	ctrl:SetUVPos(0.4700, 0.3500, cCtrl.e_None)
	ctrl:SetUVSize(0.1400, 0.6500, cCtrl.e_None)
	ctrl:SetTexture("gui_controls")

	ctrl = cImageCtrl(wnd, "noname")
	ctrl:SetPos(600, 0, cCtrl.e_None)
	ctrl:SetSize(200, 600, cCtrl.e_None)
	ctrl:SetUVPos(0.6190, 0.3500, cCtrl.e_None)
	ctrl:SetUVSize(0.1400, 0.6500, cCtrl.e_None)
	ctrl:SetTexture("gui_controls")

	ctrl = cFrameCtrl(wnd, "noname")
	ctrl:SetPos(180, -7, cCtrl.e_None)
	ctrl:SetSize(440, 610, cCtrl.e_None)
	ctrl:SetUVPos(0.3000, 0.3450, cCtrl.e_None)
	ctrl:SetUVSize(0.1620, 0.5000, cCtrl.e_None)
	ctrl:SetTexture("gui_controls")
	ctrl:SetSize(32, 32, cCtrl.e_frmBorder)
	ctrl:SetUVSize(0.0630, 0.0630, cCtrl.e_frmBorder)
	ctrl:DrawInnerRect(true)

	ctrl = cFrameCtrl(wnd, "noname")
	ctrl:SetPos(210, 210, cCtrl.e_None)
	ctrl:SetSize(380, 100, cCtrl.e_None)
	ctrl:SetUVPos(0.8300, 0.0170, cCtrl.e_None)
	ctrl:SetUVSize(0.0880, 0.1570, cCtrl.e_None)
	ctrl:SetTexture("gui_controls")
	ctrl:SetSize(16, 16, cCtrl.e_frmBorder)
	ctrl:SetUVSize(0.0313, 0.0310, cCtrl.e_frmBorder)
	ctrl:DrawInnerRect(true)

	ctrl = cLabelSysCtrl(wnd, "noname")
	ctrl:SetPos(290, 540, cCtrl.e_None)
	ctrl:SetSize(220, 40, cCtrl.e_None)
		ctrl:SetTexture("gui_font1")
		ctrl:SetFontPrt("game48x48")
		ctrl:SetSizePrt(48, 48, -10)
	ctrl:SetColor(1.000, 0.753, 1.000)
	ctrl:SetAlign(cAlign.Center + cAlign.Middle)
	ctrl:SetText("OPTIONS")

	ctrl = cButtonHighlightCtrl(wnd, "btBack")
	ctrl:SetPos(310, 20, cCtrl.e_None)
	ctrl:SetSize(180, 80, cCtrl.e_None)
		ctrl:SetTexture("gui_font1", cCtrl.e_btnFont)
		ctrl:SetFontPrt("game32x32a")
		ctrl:SetSizePrt(32, 32, -8)
	ctrl:SetColor(1.000, 1.000, 1.000)
	ctrl:SetText("BACK")
	ctrl:SetSize(32, 32, cCtrl.e_frmBorder)
	ctrl:SetTexture("gui_controls", cCtrl.e_btnNormal)
	ctrl:SetUVPos(-0.0010, 0.6720, cCtrl.e_btnNormal)
	ctrl:SetUVSize(0.3000, 0.1700, cCtrl.e_btnNormal)
	ctrl:SetUVSize(0.0630, 0.0630, cCtrl.e_btnNormal + cCtrl.e_frmBorder)
	ctrl:SetTexture("gui_controls", cCtrl.e_btnPush)
	ctrl:SetUVPos(-0.0010, 0.5000, cCtrl.e_btnPush)
	ctrl:SetUVSize(0.3000, 0.1700, cCtrl.e_btnPush)
	ctrl:SetUVSize(0.0630, 0.0630, cCtrl.e_btnPush + cCtrl.e_frmBorder)

	ctrl = cLabelSysCtrl(wnd, "noname")
	ctrl:SetPos(230, 260, cCtrl.e_None)
	ctrl:SetSize(120, 40, cCtrl.e_None)
		ctrl:SetTexture("gui_font1")
		ctrl:SetFontPrt("game24x24")
		ctrl:SetSizePrt(24, 24, -6)
	ctrl:SetColor(1.000, 1.000, 1.000)
	ctrl:SetAlign(cAlign.Left + cAlign.Middle)
	ctrl:SetText("Sound")

	ctrl = cLabelSysCtrl(wnd, "noname")
	ctrl:SetPos(230, 220, cCtrl.e_None)
	ctrl:SetSize(120, 40, cCtrl.e_None)
		ctrl:SetTexture("gui_font1")
		ctrl:SetFontPrt("game24x24")
		ctrl:SetSizePrt(24, 24, -6)
	ctrl:SetColor(1.000, 1.000, 1.000)
	ctrl:SetAlign(cAlign.Left + cAlign.Middle)
	ctrl:SetText("Music")

	ctrl = cLabelSysCtrl(wnd, "noname")
	ctrl:SetPos(290, 160, cCtrl.e_None)
	ctrl:SetSize(220, 30, cCtrl.e_None)
		ctrl:SetTexture("gui_font1")
		ctrl:SetFontPrt("game24x24")
		ctrl:SetSizePrt(24, 24, -6)
	ctrl:SetColor(1.000, 1.000, 1.000)
	ctrl:SetAlign(cAlign.Center + cAlign.Middle)
	ctrl:SetText("Mouse speed")

	ctrl = cSliderHighlightCtrl(wnd, "slSound")
	ctrl:SetPos(310, 268, cCtrl.e_None)
	ctrl:SetSize(270, 24, cCtrl.e_None)
	ctrl:SetTexture("gui_controls", cCtrl.e_sldImage)
	ctrl:SetSize(32, 44, cCtrl.e_sldImage)
	ctrl:SetUVPos(0.1740, 0.9120, cCtrl.e_sldImage)
	ctrl:SetUVSize(0.0600, 0.0880, cCtrl.e_sldImage)
	ctrl:SetTexture("gui_controls", cCtrl.e_None)
	ctrl:SetUVPos(0.1720, 0.8450, cCtrl.e_None)
	ctrl:SetUVSize(0.1000, 0.0480, cCtrl.e_None)
	ctrl:SetSize(32, 0, cCtrl.e_frmBorder)
	ctrl:SetUVSize(0.0625, 0.0000, cCtrl.e_frmBorder)
	ctrl:SetMinMax(0.0000, 1.0000)
	ctrl:SetVertical(false)

	ctrl = cSliderHighlightCtrl(wnd, "slMusic")
	ctrl:SetPos(310, 228, cCtrl.e_None)
	ctrl:SetSize(270, 24, cCtrl.e_None)
	ctrl:SetTexture("gui_controls", cCtrl.e_sldImage)
	ctrl:SetSize(32, 44, cCtrl.e_sldImage)
	ctrl:SetUVPos(0.1740, 0.9120, cCtrl.e_sldImage)
	ctrl:SetUVSize(0.0600, 0.0880, cCtrl.e_sldImage)
	ctrl:SetTexture("gui_controls", cCtrl.e_None)
	ctrl:SetUVPos(0.1720, 0.8450, cCtrl.e_None)
	ctrl:SetUVSize(0.1000, 0.0480, cCtrl.e_None)
	ctrl:SetSize(32, 0, cCtrl.e_frmBorder)
	ctrl:SetUVSize(0.0625, 0.0000, cCtrl.e_frmBorder)
	ctrl:SetMinMax(0.0000, 1.0000)
	ctrl:SetVertical(false)

	ctrl = cSliderHighlightCtrl(wnd, "slMouseSpeed")
	ctrl:SetPos(230, 133, cCtrl.e_None)
	ctrl:SetSize(340, 24, cCtrl.e_None)
	ctrl:SetTexture("gui_controls", cCtrl.e_sldImage)
	ctrl:SetSize(32, 44, cCtrl.e_sldImage)
	ctrl:SetUVPos(0.1740, 0.9120, cCtrl.e_sldImage)
	ctrl:SetUVSize(0.0600, 0.0880, cCtrl.e_sldImage)
	ctrl:SetTexture("gui_controls", cCtrl.e_None)
	ctrl:SetUVPos(0.1720, 0.8450, cCtrl.e_None)
	ctrl:SetUVSize(0.1000, 0.0480, cCtrl.e_None)
	ctrl:SetSize(32, 0, cCtrl.e_frmBorder)
	ctrl:SetUVSize(0.0625, 0.0000, cCtrl.e_frmBorder)
	ctrl:SetMinMax(0.1000, 1.0000)
	ctrl:SetVertical(false)

	ctrl = cFrameCtrl(wnd, "noname")
	ctrl:SetPos(210, 330, cCtrl.e_None)
	ctrl:SetSize(380, 160, cCtrl.e_None)
	ctrl:SetUVPos(0.8300, 0.0170, cCtrl.e_None)
	ctrl:SetUVSize(0.0880, 0.1570, cCtrl.e_None)
	ctrl:SetTexture("gui_controls")
	ctrl:SetSize(16, 16, cCtrl.e_frmBorder)
	ctrl:SetUVSize(0.0313, 0.0310, cCtrl.e_frmBorder)
	ctrl:DrawInnerRect(true)

	ctrl = cLabelSysCtrl(wnd, "noname")
	ctrl:SetPos(220, 450, cCtrl.e_None)
	ctrl:SetSize(190, 30, cCtrl.e_None)
		ctrl:SetTexture("gui_font1")
		ctrl:SetFontPrt("game24x24")
		ctrl:SetSizePrt(24, 24, -6)
	ctrl:SetColor(1.000, 1.000, 1.000)
	ctrl:SetAlign(cAlign.Center + cAlign.Middle)
	ctrl:SetText("Resolution")

	ctrl = cCheckBoxHighlightCtrl(wnd, "cbWindowed")
	ctrl:SetPos(420, 415, cCtrl.e_None)
	ctrl:SetSize(160, 30, cCtrl.e_None)
		ctrl:SetTexture("gui_font1", cCtrl.e_cbFont)
		ctrl:SetFontPrt("game24x24")
		ctrl:SetSizePrt(24, 24, -6)
	ctrl:SetColor(1.000, 1.000, 1.000)
	ctrl:SetAlign(cAlign.Left + cAlign.Middle)
	ctrl:SetText(" Windowed")
	ctrl:SetTexture("gui_controls", cCtrl.e_cbNormal)
	ctrl:SetUVPos(0.3750, 0.9200, cCtrl.e_cbNormal)
	ctrl:SetUVSize(0.0740, 0.0800, cCtrl.e_cbNormal)
	ctrl:SetTexture("gui_controls", cCtrl.e_cbPush)
	ctrl:SetUVPos(0.2970, 0.9200, cCtrl.e_cbPush)
	ctrl:SetUVSize(0.0740, 0.0800, cCtrl.e_cbPush)

	ctrl = cLabelSysCtrl(wnd, "noname")
	ctrl:SetPos(420, 380, cCtrl.e_None)
	ctrl:SetSize(120, 20, cCtrl.e_None)
		ctrl:SetTexture("gui_font1")
		ctrl:SetFontPrt("game24x24")
		ctrl:SetSizePrt(24, 24, -6)
	ctrl:SetColor(1.000, 1.000, 1.000)
	ctrl:SetAlign(cAlign.Left + cAlign.Middle)
	ctrl:SetText("Brightness")

	ctrl = cSliderHighlightCtrl(wnd, "slGamma")
	ctrl:SetPos(420, 348, cCtrl.e_None)
	ctrl:SetSize(160, 24, cCtrl.e_None)
	ctrl:SetTexture("gui_controls", cCtrl.e_sldImage)
	ctrl:SetSize(32, 44, cCtrl.e_sldImage)
	ctrl:SetUVPos(0.1740, 0.9120, cCtrl.e_sldImage)
	ctrl:SetUVSize(0.0600, 0.0880, cCtrl.e_sldImage)
	ctrl:SetTexture("gui_controls", cCtrl.e_None)
	ctrl:SetUVPos(0.1720, 0.8450, cCtrl.e_None)
	ctrl:SetUVSize(0.1000, 0.0480, cCtrl.e_None)
	ctrl:SetSize(32, 0, cCtrl.e_frmBorder)
	ctrl:SetUVSize(0.0625, 0.0000, cCtrl.e_frmBorder)
	ctrl:SetMinMax(0.0000, 4.0000)
	ctrl:SetVertical(false)

	ctrl = cFrameCtrl(wnd, "noname")
	ctrl:SetPos(220, 340, cCtrl.e_None)
	ctrl:SetSize(190, 115, cCtrl.e_None)
	ctrl:SetUVPos(0.3000, 0.3450, cCtrl.e_None)
	ctrl:SetUVSize(0.1620, 0.5000, cCtrl.e_None)
	ctrl:SetTexture("gui_controls")
	ctrl:SetSize(16, 16, cCtrl.e_frmBorder)
	ctrl:SetUVSize(0.0670, 0.0670, cCtrl.e_frmBorder)
	ctrl:DrawInnerRect(true)

	ctrl = cListSysCtrl(wnd, "lstResolution")
	ctrl:SetPos(230, 355, cCtrl.e_None)
	ctrl:SetSize(170, 85, cCtrl.e_None)
		ctrl:SetTexture("gui_font1", cCtrl.e_lstItems)
		ctrl:SetFontPrt("game16x16")
		ctrl:SetSizePrt(16, 16, -2)
	ctrl:SetSize(0, 16.0000, cCtrl.e_lstItems)
	ctrl:SetAlign(cAlign.Center + cAlign.Middle)
	ctrl:SetTexture("gui_controls", cCtrl.e_lstSelection)
	ctrl:SetUVPos(0.2970, 0.8540, cCtrl.e_lstSelection)
	ctrl:SetUVSize(0.1580, 0.0370, cCtrl.e_lstSelection)
	ctrl:SetSize(0, 0, cCtrl.e_lstSelection + cCtrl.e_frmBorder)
	ctrl:SetUVSize(0.0000, 0.0000, cCtrl.e_lstSelection + cCtrl.e_frmBorder)
	ctrl:SetColor(1.000, 1.000, 1.000, cCtrl.e_lstNormal)
	ctrl:SetColor(1.000, 1.000, 0.502, cCtrl.e_lstHighlight)
	ctrl:SetMultiselect(false)


end
