-- {GameFolder}\finish.lua
-- this is automatic generated file! do not modify it!
-- script for nls16 window loader. version 1.60.
-- copyright (c) 2005-2010 rionix. all rights reserved.

function FillWindow(wnd)

	setWndActive(wnd, true)
	setWndModal(wnd, true)

	local ctrl

	ctrl = createFrameCtrl(wnd, "noname")
	setCtrlFrame(ctrl, { x=256, y=166, w=512, h=436 }, { x=60, y=55 }, 0)
	setCtrlUVFrame(ctrl, { x=0.0000, y=0.0000, w=1.0000, h=0.8516 }, { x=0.1172, y=0.1074 }, 0)
	setCtrlTexture(ctrl, "gui_frame00")
	drawFrameCtrlInnerRect(ctrl, true)

	ctrl = createFrameCtrl(wnd, "noname")
	setCtrlFrame(ctrl, { x=356, y=554, w=313, h=76 }, { x=0, y=0 }, 0)
	setCtrlUVFrame(ctrl, { x=0.0000, y=0.8516, w=0.6133, h=0.1484 }, { x=0.0000, y=0.0000 }, 0)
	setCtrlTexture(ctrl, "gui_frame00")
	drawFrameCtrlInnerRect(ctrl, true)

	ctrl = createLabelCtrl(wnd, "noname")
	setCtrlRect(ctrl, { x=432, y=574, w=160, h=40 }, 0)
	setCtrlFont(ctrl, "tmpCalibriBold36", 0)
	setCtrlColor(ctrl, 1.000, 1.000, 1.000, 0)
	setCtrlAlign(ctrl, align.Center + align.Middle, 0)
	setCtrlText(ctrl, "[FinishGame]", 0)
	enableCtrl(ctrl, false)

	ctrl = createButtonSysCtrl(wnd, "close")
	setCtrlFrame(ctrl, { x=428, y=200, w=168, h=54 }, { x=22, y=8 }, 0)
	setCtrlFont(ctrl, "tmpCalibriBold30")
	setCtrlColor(ctrl, 1.000, 1.000, 1.000)
	setCtrlText(ctrl, "[Close]")
	setCtrlTexture(ctrl, "gui_main", 0)
	setCtrlUVFrame(ctrl, { x=0.0020, y=0.3945, w=0.2480, h=0.1055 }, { x=0.0430, y=0.0156 }, 0)

	ctrl = createFrameCtrl(wnd, "noname")
	setCtrlFrame(ctrl, { x=290, y=280, w=446, h=62 }, { x=10, y=10 }, 0)
	setCtrlUVFrame(ctrl, { x=0.0000, y=0.0313, w=1.0000, h=0.4766 }, { x=0.0391, y=0.0391 }, 0)
	setCtrlTexture(ctrl, "gui_frame01")
	drawFrameCtrlInnerRect(ctrl, true)

	ctrl = createLabelCtrl(wnd, "score")
	setCtrlRect(ctrl, { x=300, y=290, w=420, h=40 }, 0)
	setCtrlFont(ctrl, "tmpCalibriBold36", 0)
	setCtrlColor(ctrl, 1.000, 1.000, 1.000, 0)
	setCtrlAlign(ctrl, align.Center + align.Middle, 0)
	setCtrlText(ctrl, "Score: 1000", 0)
	enableCtrl(ctrl, false)

	ctrl = createFrameCtrl(wnd, "noname")
	setCtrlFrame(ctrl, { x=290, y=350, w=282, h=192 }, { x=9, y=10 }, 0)
	setCtrlUVFrame(ctrl, { x=0.0000, y=0.5234, w=0.4375, h=0.4766 }, { x=0.0371, y=0.0391 }, 0)
	setCtrlTexture(ctrl, "gui_frame01")
	drawFrameCtrlInnerRect(ctrl, true)

	ctrl = createFrameCtrl(wnd, "noname")
	setCtrlFrame(ctrl, { x=572, y=350, w=164, h=192 }, { x=6, y=12 }, 0)
	setCtrlUVFrame(ctrl, { x=0.4375, y=0.5234, w=0.5625, h=0.4766 }, { x=0.0234, y=0.0469 }, 0)
	setCtrlTexture(ctrl, "gui_frame01")
	drawFrameCtrlInnerRect(ctrl, true)

	ctrl = createTextBoxSysCtrl(wnd, "vars")
	setCtrlRect(ctrl, { x=300, y=360, w=260, h=170 }, 0)
	setCtrlFont(ctrl, "tmpCalibriBold25")
	setCtrlColor(ctrl, 1.000, 1.000, 1.000)
	setCtrlText(ctrl, "Time:\nResources:\nBuilds:")
	setCtrlAlign(ctrl, align.Right + align.Middle)
	enableCtrl(ctrl, false)

	ctrl = createTextBoxSysCtrl(wnd, "vals")
	setCtrlRect(ctrl, { x=580, y=360, w=140, h=170 }, 0)
	setCtrlFont(ctrl, "tmpCalibriBold25")
	setCtrlColor(ctrl, 1.000, 1.000, 1.000)
	setCtrlText(ctrl, "1:00\n250\n10")
	setCtrlAlign(ctrl, align.Left + align.Middle)
	enableCtrl(ctrl, false)

	ctrl = createCupCtrl(wnd, "cup")
	setCtrlRect(ctrl, { x=610, y=130, w=116, h=150 }, 0)


end
