-- ui/loading.lua

UIEvents ("ui/loading-Events.lua");

CreateComp ("Label", "bg");
SetProperty ("label.bitmap", "worldmap/backgrounds/bg-0009.jpg");

CreateComp ("Label", "frames");

CreateComp ("Label", "top");
SetProperty ("parent", "frames");
SetProperty ("label.bitmap", "ui/gfx/screenborder-top.png");

CreateComp ("Label", "left");
SetProperty ("parent", "frames");
SetProperty ("label.bitmap", "ui/gfx/screenborder-left.png");

CreateComp ("Label", "right");
SetProperty ("parent", "frames");
SetProperty ("position", 768, 0);
SetProperty ("label.bitmap", "ui/gfx/screenborder-right.png");

CreateComp ("Label", "bottom");
SetProperty ("parent", "frames");
SetProperty ("position", 0, 566);
SetProperty ("label.bitmap", "ui/gfx/screenborder-bottom.png");

CreateComp ("Label", "note");
SetProperty ("position", 37, 433);
SetProperty ("label.bitmap", "ui/gfx/shamantalk.png");

CreateComp ("Label", "progress");
SetProperty ("position", 611, 446);

CreateComp ("Label", "story_clone");
SetProperty ("inherit", "SmallLabel");
SetProperty ("position", 409, -200);
SetProperty ("align", "HCENTER");
SetProperty ("label.textbox_width", "700");
SetProperty ("label.textbox_align", "HCENTER");
SetProperty ("label.text", "You knew you needed to get back there as soon as possible. Your friends' lives depended on it.");

CreateComp ("Label", "loading_text");
SetProperty ("inherit", "SmallLabel");
SetProperty ("position", -95, 579);
SetProperty ("align", "HCENTER");
SetProperty ("label.textbox_align", "HCENTER");
SetProperty ("label.text", "Loading, please wait...");

CreateComp ("Label", "story_clone_clone");
SetProperty ("inherit", "SmallLabel");
SetProperty ("position", 409, -100);
SetProperty ("align", "HCENTER");
SetProperty ("label.textbox_width", "700");
SetProperty ("label.textbox_align", "HCENTER");
SetProperty ("label.text", "Toinen versio, epämääräisempi:");

CreateComp ("Button", "Start");
SetProperty ("inherit", "BigButtonBigText");
SetProperty ("position", 671, 456);
SetProperty ("align", "HCENTER");
SetProperty ("button.text", "Start");

CreateComp ("Label", "story_clone");
SetProperty ("inherit", "SmallDarkLabel");
SetProperty ("parent", "note");
SetProperty ("position", 252, 21);
SetProperty ("align", "HCENTER");
SetProperty ("label.textbox_width", "472");
SetProperty ("label.text", "What we found in those ruins in Far Asia was not merely a relic. I wish I had considered the consequences...");

CreateComp ("Path", "testpath");
SetProperty ("position", 750, 252);
SetProperty ("path.point", -19, -114);
SetProperty ("path.point", 32, 46);
SetProperty ("path.point", 181, 126);
SetProperty ("path.point", 340, 27);
SetProperty ("path.point", 449, 82);
SetProperty ("path.point", 541, 390);
SetProperty ("path.point", 691, 387);

CreateComp ("Label", "title");
SetProperty ("position", 285, 28);
SetProperty ("align", "HCENTER");
SetProperty ("label.bitmap", "ui/gfx/azkend-logo-loading.png");

CreateComp ("Label", "title_clone");
SetProperty ("position", 297, 170);
SetProperty ("align", "HCENTER");
SetProperty ("label.bitmap", "ui/gfx/sundial.png");

