-- {GameFolder}\level.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, false)

	local ctrl

	ctrl = createImageCtrl(wnd, "noname")
	setCtrlRect(ctrl, { x=59, y=719, w=366, h=15 }, 0)
	setCtrlUVRect(ctrl, { x=0.0000, y=0.9414, w=0.7148, h=0.0293 }, 0)
	setCtrlTexture(ctrl, "gui_main", 0)
	enableCtrl(ctrl, false)

	ctrl = createProgressBarSysCtrl(wnd, "time")
	setCtrlRect(ctrl, { x=61, y=720, w=361, h=12 }, 0)
	setCtrlTexture(ctrl, "gui_main", 0)
	setCtrlUVRect(ctrl, { x=0.0000, y=0.9766, w=0.7070, h=0.0234 }, 0)

	ctrl = createImageCtrl(wnd, "noname")
	setCtrlRect(ctrl, { x=0, y=698, w=431, h=72 }, 0)
	setCtrlUVRect(ctrl, { x=0.0000, y=0.5000, w=0.8418, h=0.1426 }, 0)
	setCtrlTexture(ctrl, "gui_main", 0)
	enableCtrl(ctrl, false)

	ctrl = createFrameCtrl(wnd, "task_frame00")
	setCtrlFrame(ctrl, { x=628, y=679, w=400, h=92 }, { x=20, y=20 }, 0)
	setCtrlUVFrame(ctrl, { x=0.0098, y=0.6484, w=0.5723, h=0.1406 }, { x=0.0391, y=0.0391 }, 0)
	setCtrlTexture(ctrl, "gui_main")
	drawFrameCtrlInnerRect(ctrl, true)

	ctrl = createImageCtrl(wnd, "noname")
	setCtrlRect(ctrl, { x=240, y=730, w=42, h=34 }, 0)
	setCtrlUVRect(ctrl, { x=0.7012, y=0.7559, w=0.0840, h=0.0684 }, 0)
	setCtrlTexture(ctrl, "gui_main", 0)
	enableCtrl(ctrl, false)

	ctrl = createImageCtrl(wnd, "noname")
	setCtrlRect(ctrl, { x=152, y=730, w=34, h=30 }, 0)
	setCtrlUVRect(ctrl, { x=0.5859, y=0.7148, w=0.0684, h=0.0586 }, 0)
	setCtrlTexture(ctrl, "gui_main", 0)
	enableCtrl(ctrl, false)

	ctrl = createImageCtrl(wnd, "noname")
	setCtrlRect(ctrl, { x=77, y=729, w=33, h=32 }, 0)
	setCtrlUVRect(ctrl, { x=0.5840, y=0.6484, w=0.0664, h=0.0645 }, 0)
	setCtrlTexture(ctrl, "gui_main", 0)
	enableCtrl(ctrl, false)

	ctrl = createLabelCtrl(wnd, "gold")
	setCtrlRect(ctrl, { x=277, y=736, w=40, h=20 }, 0)
	setCtrlFont(ctrl, "tmpCalibriBold20", 0)
	setCtrlColor(ctrl, 1.000, 1.000, 1.000, 0)
	setCtrlAlign(ctrl, align.Center + align.Middle, 0)
	setCtrlText(ctrl, "1000", 0)
	enableCtrl(ctrl, false)

	ctrl = createLabelCtrl(wnd, "wood")
	setCtrlRect(ctrl, { x=180, y=735, w=40, h=20 }, 0)
	setCtrlFont(ctrl, "tmpCalibriBold20", 0)
	setCtrlColor(ctrl, 1.000, 1.000, 1.000, 0)
	setCtrlAlign(ctrl, align.Center + align.Middle, 0)
	setCtrlText(ctrl, "100", 0)
	enableCtrl(ctrl, false)

	ctrl = createLabelCtrl(wnd, "food")
	setCtrlRect(ctrl, { x=100, y=735, w=40, h=20 }, 0)
	setCtrlFont(ctrl, "tmpCalibriBold20", 0)
	setCtrlColor(ctrl, 1.000, 1.000, 1.000, 0)
	setCtrlAlign(ctrl, align.Center + align.Middle, 0)
	setCtrlText(ctrl, "100", 0)
	enableCtrl(ctrl, false)

	ctrl = createTextBoxSysCtrl(wnd, "task")
	setCtrlRect(ctrl, { x=645, y=613, w=373, h=147 }, 0)
	setCtrlFont(ctrl, "tmpCalibriRegular18")
	setCtrlColor(ctrl, 1.000, 1.000, 1.000)
	setCtrlText(ctrl, "line 1\nline 2\nline 3\nline 4\nline 5\nline 6")
	setCtrlAlign(ctrl, align.Left + align.Top)
	enableCtrl(ctrl, false)
	ignoreCtrl(ctrl, true)

	ctrl = createSectorCtrl(wnd, "minute")
	setCtrlRect(ctrl, { x=6, y=708, w=52, h=52 }, 0)
	setCtrlUVRect(ctrl, { x=0.9648, y=0.8555, w=0.0313, h=0.0293 }, 0)
	setCtrlTexture(ctrl, "gui_main", 0)
	enableCtrl(ctrl, false)

	ctrl = createImageCtrl(wnd, "noname")
	setCtrlRect(ctrl, { x=1, y=705, w=60, h=59 }, 0)
	setCtrlUVRect(ctrl, { x=0.8711, y=0.5254, w=0.1172, h=0.1152 }, 0)
	setCtrlTexture(ctrl, "gui_main", 0)
	enableCtrl(ctrl, false)

	ctrl = createAchieveCtrl(wnd, "achieve0")
	setCtrlRect(ctrl, { x=357, y=10, w=310, h=90 }, 0)

	ctrl = createAchieveCtrl(wnd, "achieve1")
	setCtrlRect(ctrl, { x=357, y=110, w=310, h=90 }, 0)

	ctrl = createAchieveCtrl(wnd, "achieve2")
	setCtrlRect(ctrl, { x=357, y=210, w=310, h=90 }, 0)

	ctrl = createButtonSysCtrl(wnd, "menu")
	setCtrlFrame(ctrl, { x=10, y=10, w=128, h=54 }, { x=22, y=8 }, 0)
	setCtrlFont(ctrl, "tmpCalibriBold30")
	setCtrlColor(ctrl, 1.000, 1.000, 1.000)
	setCtrlText(ctrl, "[Menu]")
	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 = createBonusCtrl(wnd, "bonus0")
	setCtrlRect(ctrl, { x=0, y=630, w=64, h=64 }, 0)

	ctrl = createBonusCtrl(wnd, "bonus1")
	setCtrlRect(ctrl, { x=0, y=560, w=64, h=64 }, 0)

	ctrl = createBonusCtrl(wnd, "bonus2")
	setCtrlRect(ctrl, { x=0, y=490, w=64, h=64 }, 0)

	ctrl = createImageCtrl(wnd, "noname")
	setCtrlRect(ctrl, { x=340, y=731, w=23, h=29 }, 0)
	setCtrlUVRect(ctrl, { x=0.6543, y=0.7598, w=0.0449, h=0.0566 }, 0)
	setCtrlTexture(ctrl, "gui_main", 0)
	enableCtrl(ctrl, false)

	ctrl = createLabelCtrl(wnd, "gas")
	setCtrlRect(ctrl, { x=367, y=736, w=40, h=20 }, 0)
	setCtrlFont(ctrl, "tmpCalibriBold20", 0)
	setCtrlColor(ctrl, 1.000, 1.000, 1.000, 0)
	setCtrlAlign(ctrl, align.Center + align.Middle, 0)
	setCtrlText(ctrl, "1000", 0)
	enableCtrl(ctrl, false)


end
