-- 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 = 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.Left + cAlign.Middle)
	ctrl:SetText("UPGRADE")

	ctrl = cImageCtrl(wnd, "imgPreview")
	ctrl:SetPos(345, 139, cCtrl.e_None)
	ctrl:SetSize(246, 246, cCtrl.e_None)
	ctrl:SetUVPos(0.0000, 0.0000, cCtrl.e_None)
	ctrl:SetUVSize(1.0000, 1.0000, cCtrl.e_None)
	ctrl:SetTexture("rt_menu")

	ctrl = cImageListCtrl(wnd, "ctrlBats")
	ctrl:SetPos(340, 395, cCtrl.e_None)
	ctrl:SetSize(256, 64, cCtrl.e_None)
	ctrl:SetSize(64, 64, cCtrl.e_lstItems)
	ctrl:SetBlockTexture("ilist_levels", 0.75, 0, 0.25, 1)
	ctrl = cButtonHighlightCtrl(wnd, "btDone")
	ctrl:SetPos(310, 10, 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("OK")
	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 = cFrameCtrl(wnd, "noname")
	ctrl:SetPos(340, 132, cCtrl.e_None)
	ctrl:SetSize(256, 256, cCtrl.e_None)
	ctrl:SetUVPos(0.0000, 0.3450, cCtrl.e_None)
	ctrl:SetUVSize(0.2960, 0.1530, cCtrl.e_None)
	ctrl:SetTexture("gui_controls")
	ctrl:SetSize(16, 16, cCtrl.e_frmBorder)
	ctrl:SetUVSize(0.0620, 0.0620, cCtrl.e_frmBorder)
	ctrl:DrawInnerRect(true)

	ctrl = cLabelSysCtrl(wnd, "noname")
	ctrl:SetPos(440, 140, cCtrl.e_None)
	ctrl:SetSize(150, 30, cCtrl.e_None)
		ctrl:SetTexture("gui_font1")
		ctrl:SetFontPrt("game32x32a")
		ctrl:SetSizePrt(32, 32, -8)
	ctrl:SetColor(1.000, 1.000, 1.000)
	ctrl:SetAlign(cAlign.Center + cAlign.Middle)
	ctrl:SetText("PREVIEW")

	ctrl = cLabelSysCtrl(wnd, "noname")
	ctrl:SetPos(340, 460, cCtrl.e_None)
	ctrl:SetSize(130, 30, cCtrl.e_None)
		ctrl:SetTexture("gui_font1")
		ctrl:SetFontPrt("game32x32a")
		ctrl:SetSizePrt(32, 32, -8)
	ctrl:SetColor(1.000, 1.000, 1.000)
	ctrl:SetAlign(cAlign.Left + cAlign.Middle)
	ctrl:SetText("Paddles:")

	ctrl = cFrameCtrl(wnd, "noname")
	ctrl:SetPos(200, 395, cCtrl.e_None)
	ctrl:SetSize(130, 64, 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(200, 460, cCtrl.e_None)
	ctrl:SetSize(100, 30, cCtrl.e_None)
		ctrl:SetTexture("gui_font1")
		ctrl:SetFontPrt("game32x32a")
		ctrl:SetSizePrt(32, 32, -8)
	ctrl:SetColor(1.000, 1.000, 1.000)
	ctrl:SetAlign(cAlign.Left + cAlign.Middle)
	ctrl:SetText("Points:")

	ctrl = cLabelSysCtrl(wnd, "lbPoints")
	ctrl:SetPos(200, 395, cCtrl.e_None)
	ctrl:SetSize(130, 64, cCtrl.e_None)
		ctrl:SetTexture("gui_font1")
		ctrl:SetFontPrt("game32x32a")
		ctrl:SetSizePrt(32, 32, -8)
	ctrl:SetColor(1.000, 1.000, 0.502)
	ctrl:SetAlign(cAlign.Center + cAlign.Middle)
	ctrl:SetText("10")

	ctrl = cLabelSysCtrl(wnd, "noname")
	ctrl:SetPos(200, 350, cCtrl.e_None)
	ctrl:SetSize(130, 30, cCtrl.e_None)
		ctrl:SetTexture("gui_font1")
		ctrl:SetFontPrt("game32x32a")
		ctrl:SetSizePrt(32, 32, -8)
	ctrl:SetColor(1.000, 1.000, 1.000)
	ctrl:SetAlign(cAlign.Left + cAlign.Middle)
	ctrl:SetText("Size:")

	ctrl = cButtonHighlightCtrl(wnd, "btBatSizeMinus")
	ctrl:SetPos(200, 320, cCtrl.e_None)
	ctrl:SetSize(22, 30, cCtrl.e_None)
		ctrl:SetTexture("gui_font1", cCtrl.e_btnFont)
		ctrl:SetFontPrt("game16x16")
		ctrl:SetSizePrt(16, 16, -2)
	ctrl:SetColor(0.000, 0.000, 0.000)
	ctrl:SetText("")
	ctrl:SetSize(0, 0, cCtrl.e_frmBorder)
	ctrl:SetTexture("gui_controls", cCtrl.e_btnNormal)
	ctrl:SetUVPos(0.0000, 0.8440, cCtrl.e_btnNormal)
	ctrl:SetUVSize(0.0870, 0.1560, cCtrl.e_btnNormal)
	ctrl:SetUVSize(0.0000, 0.0000, cCtrl.e_btnNormal + cCtrl.e_frmBorder)
	ctrl:SetTexture("gui_controls", cCtrl.e_btnPush)
	ctrl:SetUVPos(-0.0020, 0.8460, cCtrl.e_btnPush)
	ctrl:SetUVSize(0.0870, 0.1560, cCtrl.e_btnPush)
	ctrl:SetUVSize(0.0000, 0.0000, cCtrl.e_btnPush + cCtrl.e_frmBorder)

	ctrl = cLabelSysCtrl(wnd, "noname")
	ctrl:SetPos(200, 290, cCtrl.e_None)
	ctrl:SetSize(130, 30, cCtrl.e_None)
		ctrl:SetTexture("gui_font1")
		ctrl:SetFontPrt("game32x32a")
		ctrl:SetSizePrt(32, 32, -8)
	ctrl:SetColor(1.000, 1.000, 1.000)
	ctrl:SetAlign(cAlign.Left + cAlign.Middle)
	ctrl:SetText("Ammo:")

	ctrl = cButtonHighlightCtrl(wnd, "btAmmoMinus")
	ctrl:SetPos(200, 260, cCtrl.e_None)
	ctrl:SetSize(22, 30, cCtrl.e_None)
		ctrl:SetTexture("gui_font1", cCtrl.e_btnFont)
		ctrl:SetFontPrt("game16x16")
		ctrl:SetSizePrt(16, 16, -2)
	ctrl:SetColor(0.000, 0.000, 0.000)
	ctrl:SetText("")
	ctrl:SetSize(0, 0, cCtrl.e_frmBorder)
	ctrl:SetTexture("gui_controls", cCtrl.e_btnNormal)
	ctrl:SetUVPos(0.0000, 0.8440, cCtrl.e_btnNormal)
	ctrl:SetUVSize(0.0870, 0.1560, cCtrl.e_btnNormal)
	ctrl:SetUVSize(0.0000, 0.0000, cCtrl.e_btnNormal + cCtrl.e_frmBorder)
	ctrl:SetTexture("gui_controls", cCtrl.e_btnPush)
	ctrl:SetUVPos(-0.0020, 0.8460, cCtrl.e_btnPush)
	ctrl:SetUVSize(0.0870, 0.1560, cCtrl.e_btnPush)
	ctrl:SetUVSize(0.0000, 0.0000, cCtrl.e_btnPush + cCtrl.e_frmBorder)

	ctrl = cLabelSysCtrl(wnd, "noname")
	ctrl:SetPos(200, 230, cCtrl.e_None)
	ctrl:SetSize(130, 30, cCtrl.e_None)
		ctrl:SetTexture("gui_font1")
		ctrl:SetFontPrt("game32x32a")
		ctrl:SetSizePrt(32, 32, -8)
	ctrl:SetColor(1.000, 1.000, 1.000)
	ctrl:SetAlign(cAlign.Left + cAlign.Middle)
	ctrl:SetText("Power:")

	ctrl = cButtonHighlightCtrl(wnd, "btPowerMinus")
	ctrl:SetPos(200, 200, cCtrl.e_None)
	ctrl:SetSize(22, 30, cCtrl.e_None)
		ctrl:SetTexture("gui_font1", cCtrl.e_btnFont)
		ctrl:SetFontPrt("game16x16")
		ctrl:SetSizePrt(16, 16, -2)
	ctrl:SetColor(0.000, 0.000, 0.000)
	ctrl:SetText("")
	ctrl:SetSize(0, 0, cCtrl.e_frmBorder)
	ctrl:SetTexture("gui_controls", cCtrl.e_btnNormal)
	ctrl:SetUVPos(0.0000, 0.8440, cCtrl.e_btnNormal)
	ctrl:SetUVSize(0.0870, 0.1560, cCtrl.e_btnNormal)
	ctrl:SetUVSize(0.0000, 0.0000, cCtrl.e_btnNormal + cCtrl.e_frmBorder)
	ctrl:SetTexture("gui_controls", cCtrl.e_btnPush)
	ctrl:SetUVPos(-0.0020, 0.8460, cCtrl.e_btnPush)
	ctrl:SetUVSize(0.0870, 0.1560, cCtrl.e_btnPush)
	ctrl:SetUVSize(0.0000, 0.0000, cCtrl.e_btnPush + cCtrl.e_frmBorder)

	ctrl = cLabelSysCtrl(wnd, "noname")
	ctrl:SetPos(200, 170, cCtrl.e_None)
	ctrl:SetSize(130, 30, cCtrl.e_None)
		ctrl:SetTexture("gui_font1")
		ctrl:SetFontPrt("game32x32a")
		ctrl:SetSizePrt(32, 32, -8)
	ctrl:SetColor(1.000, 1.000, 1.000)
	ctrl:SetAlign(cAlign.Left + cAlign.Middle)
	ctrl:SetText("Defense:")

	ctrl = cButtonHighlightCtrl(wnd, "btDefenceMinus")
	ctrl:SetPos(200, 140, cCtrl.e_None)
	ctrl:SetSize(22, 30, cCtrl.e_None)
		ctrl:SetTexture("gui_font1", cCtrl.e_btnFont)
		ctrl:SetFontPrt("game16x16")
		ctrl:SetSizePrt(16, 16, -2)
	ctrl:SetColor(0.000, 0.000, 0.000)
	ctrl:SetText("")
	ctrl:SetSize(0, 0, cCtrl.e_frmBorder)
	ctrl:SetTexture("gui_controls", cCtrl.e_btnNormal)
	ctrl:SetUVPos(0.0000, 0.8440, cCtrl.e_btnNormal)
	ctrl:SetUVSize(0.0870, 0.1560, cCtrl.e_btnNormal)
	ctrl:SetUVSize(0.0000, 0.0000, cCtrl.e_btnNormal + cCtrl.e_frmBorder)
	ctrl:SetTexture("gui_controls", cCtrl.e_btnPush)
	ctrl:SetUVPos(-0.0020, 0.8460, cCtrl.e_btnPush)
	ctrl:SetUVSize(0.0870, 0.1560, cCtrl.e_btnPush)
	ctrl:SetUVSize(0.0000, 0.0000, cCtrl.e_btnPush + cCtrl.e_frmBorder)

	ctrl = cButtonHighlightCtrl(wnd, "btDefencePlus")
	ctrl:SetPos(309, 140, cCtrl.e_None)
	ctrl:SetSize(22, 30, cCtrl.e_None)
		ctrl:SetTexture("gui_font1", cCtrl.e_btnFont)
		ctrl:SetFontPrt("game16x16")
		ctrl:SetSizePrt(16, 16, -2)
	ctrl:SetColor(0.000, 0.000, 0.000)
	ctrl:SetText("")
	ctrl:SetSize(0, 0, cCtrl.e_frmBorder)
	ctrl:SetTexture("gui_controls", cCtrl.e_btnNormal)
	ctrl:SetUVPos(0.0840, 0.8440, cCtrl.e_btnNormal)
	ctrl:SetUVSize(0.0870, 0.1560, cCtrl.e_btnNormal)
	ctrl:SetUVSize(0.0000, 0.0000, cCtrl.e_btnNormal + cCtrl.e_frmBorder)
	ctrl:SetTexture("gui_controls", cCtrl.e_btnPush)
	ctrl:SetUVPos(0.0820, 0.8480, cCtrl.e_btnPush)
	ctrl:SetUVSize(0.0870, 0.1560, cCtrl.e_btnPush)
	ctrl:SetUVSize(0.0000, 0.0000, cCtrl.e_btnPush + cCtrl.e_frmBorder)

	ctrl = cButtonHighlightCtrl(wnd, "btPowerPlus")
	ctrl:SetPos(309, 200, cCtrl.e_None)
	ctrl:SetSize(22, 30, cCtrl.e_None)
		ctrl:SetTexture("gui_font1", cCtrl.e_btnFont)
		ctrl:SetFontPrt("game16x16")
		ctrl:SetSizePrt(16, 16, -2)
	ctrl:SetColor(0.000, 0.000, 0.000)
	ctrl:SetText("")
	ctrl:SetSize(0, 0, cCtrl.e_frmBorder)
	ctrl:SetTexture("gui_controls", cCtrl.e_btnNormal)
	ctrl:SetUVPos(0.0840, 0.8440, cCtrl.e_btnNormal)
	ctrl:SetUVSize(0.0870, 0.1560, cCtrl.e_btnNormal)
	ctrl:SetUVSize(0.0000, 0.0000, cCtrl.e_btnNormal + cCtrl.e_frmBorder)
	ctrl:SetTexture("gui_controls", cCtrl.e_btnPush)
	ctrl:SetUVPos(0.0820, 0.8480, cCtrl.e_btnPush)
	ctrl:SetUVSize(0.0870, 0.1560, cCtrl.e_btnPush)
	ctrl:SetUVSize(0.0000, 0.0000, cCtrl.e_btnPush + cCtrl.e_frmBorder)

	ctrl = cButtonHighlightCtrl(wnd, "btAmmoPlus")
	ctrl:SetPos(309, 260, cCtrl.e_None)
	ctrl:SetSize(22, 30, cCtrl.e_None)
		ctrl:SetTexture("gui_font1", cCtrl.e_btnFont)
		ctrl:SetFontPrt("game16x16")
		ctrl:SetSizePrt(16, 16, -2)
	ctrl:SetColor(0.000, 0.000, 0.000)
	ctrl:SetText("")
	ctrl:SetSize(0, 0, cCtrl.e_frmBorder)
	ctrl:SetTexture("gui_controls", cCtrl.e_btnNormal)
	ctrl:SetUVPos(0.0840, 0.8440, cCtrl.e_btnNormal)
	ctrl:SetUVSize(0.0870, 0.1560, cCtrl.e_btnNormal)
	ctrl:SetUVSize(0.0000, 0.0000, cCtrl.e_btnNormal + cCtrl.e_frmBorder)
	ctrl:SetTexture("gui_controls", cCtrl.e_btnPush)
	ctrl:SetUVPos(0.0820, 0.8480, cCtrl.e_btnPush)
	ctrl:SetUVSize(0.0870, 0.1560, cCtrl.e_btnPush)
	ctrl:SetUVSize(0.0000, 0.0000, cCtrl.e_btnPush + cCtrl.e_frmBorder)

	ctrl = cButtonHighlightCtrl(wnd, "btBatSizePlus")
	ctrl:SetPos(309, 320, cCtrl.e_None)
	ctrl:SetSize(22, 30, cCtrl.e_None)
		ctrl:SetTexture("gui_font1", cCtrl.e_btnFont)
		ctrl:SetFontPrt("game16x16")
		ctrl:SetSizePrt(16, 16, -2)
	ctrl:SetColor(0.000, 0.000, 0.000)
	ctrl:SetText("")
	ctrl:SetSize(0, 0, cCtrl.e_frmBorder)
	ctrl:SetTexture("gui_controls", cCtrl.e_btnNormal)
	ctrl:SetUVPos(0.0840, 0.8440, cCtrl.e_btnNormal)
	ctrl:SetUVSize(0.0870, 0.1560, cCtrl.e_btnNormal)
	ctrl:SetUVSize(0.0000, 0.0000, cCtrl.e_btnNormal + cCtrl.e_frmBorder)
	ctrl:SetTexture("gui_controls", cCtrl.e_btnPush)
	ctrl:SetUVPos(0.0820, 0.8480, cCtrl.e_btnPush)
	ctrl:SetUVSize(0.0870, 0.1560, cCtrl.e_btnPush)
	ctrl:SetUVSize(0.0000, 0.0000, cCtrl.e_btnPush + cCtrl.e_frmBorder)

	ctrl = cImageCtrl(wnd, "noname")
	ctrl:SetPos(220, 140, cCtrl.e_None)
	ctrl:SetSize(90, 30, cCtrl.e_None)
	ctrl:SetUVPos(0.7850, 0.7170, cCtrl.e_None)
	ctrl:SetUVSize(0.1950, 0.0780, cCtrl.e_None)
	ctrl:SetTexture("gui_controls")

	ctrl = cImageCtrl(wnd, "noname")
	ctrl:SetPos(220, 320, cCtrl.e_None)
	ctrl:SetSize(90, 30, cCtrl.e_None)
	ctrl:SetUVPos(0.7850, 0.7170, cCtrl.e_None)
	ctrl:SetUVSize(0.1950, 0.0780, cCtrl.e_None)
	ctrl:SetTexture("gui_controls")

	ctrl = cImageCtrl(wnd, "noname")
	ctrl:SetPos(220, 260, cCtrl.e_None)
	ctrl:SetSize(90, 30, cCtrl.e_None)
	ctrl:SetUVPos(0.7850, 0.7170, cCtrl.e_None)
	ctrl:SetUVSize(0.1950, 0.0780, cCtrl.e_None)
	ctrl:SetTexture("gui_controls")

	ctrl = cImageCtrl(wnd, "noname")
	ctrl:SetPos(220, 200, cCtrl.e_None)
	ctrl:SetSize(90, 30, cCtrl.e_None)
	ctrl:SetUVPos(0.7850, 0.7170, cCtrl.e_None)
	ctrl:SetUVSize(0.1950, 0.0780, cCtrl.e_None)
	ctrl:SetTexture("gui_controls")

	ctrl = cProgressBarSysCtrl(wnd, "pbBatSize")
	ctrl:SetPos(220, 320, cCtrl.e_None)
	ctrl:SetSize(90, 30, cCtrl.e_None)
	ctrl:SetTexture("gui_controls")
	ctrl:SetUVPos(0.7850, 0.6380, cCtrl.e_None)
	ctrl:SetUVSize(0.1950, 0.0780, cCtrl.e_None)

	ctrl = cProgressBarSysCtrl(wnd, "pbAmmo")
	ctrl:SetPos(220, 260, cCtrl.e_None)
	ctrl:SetSize(90, 30, cCtrl.e_None)
	ctrl:SetTexture("gui_controls")
	ctrl:SetUVPos(0.7850, 0.6380, cCtrl.e_None)
	ctrl:SetUVSize(0.1950, 0.0780, cCtrl.e_None)

	ctrl = cProgressBarSysCtrl(wnd, "pbPower")
	ctrl:SetPos(220, 200, cCtrl.e_None)
	ctrl:SetSize(90, 30, cCtrl.e_None)
	ctrl:SetTexture("gui_controls")
	ctrl:SetUVPos(0.7850, 0.6380, cCtrl.e_None)
	ctrl:SetUVSize(0.1950, 0.0780, cCtrl.e_None)

	ctrl = cProgressBarSysCtrl(wnd, "pbDefence")
	ctrl:SetPos(220, 140, cCtrl.e_None)
	ctrl:SetSize(90, 30, cCtrl.e_None)
	ctrl:SetTexture("gui_controls")
	ctrl:SetUVPos(0.7850, 0.6380, cCtrl.e_None)
	ctrl:SetUVSize(0.1950, 0.0780, cCtrl.e_None)


end
