-- ui/level-completed.lua

UIEvents ("ui/level-completed-Events.lua");

CreateComp ("LABEL", "bgpicture");
SetProperty ("label.bitmap", "worldmap/backgrounds/bg-0001.jpg");

CreateComp ("LABEL", "heading");
SetProperty ("position", 194, 5);
SetProperty ("label.bitmap", "ui/gfx/panel-heading.png");

CreateComp ("LABEL", "panel");
SetProperty ("parent", "heading");
SetProperty ("position", -36, 52);
SetProperty ("label.bitmap", "ui/gfx/panel-medium.png");

CreateComp ("LABEL", "title");
SetProperty ("parent", "panel");
SetProperty ("position", 258, -35);
SetProperty ("align", "HCENTER");
SetProperty ("label.font", "fonts/big.mft");
SetProperty ("label.text", "Congratulations!");

CreateComp ("LABEL", "title");
SetProperty ("parent", "panel");
SetProperty ("position", 254, 40);
SetProperty ("align", "HCENTER");
SetProperty ("label.font", "fonts/big.mft");
SetProperty ("label.text", "Time");

CreateComp ("LABEL", "title");
SetProperty ("parent", "panel");
SetProperty ("position", 253, 207);
SetProperty ("align", "HCENTER");
SetProperty ("label.font", "fonts/big.mft");
SetProperty ("label.text", "Stats");

CreateComp ("LABEL", "yourtimelabel");
SetProperty ("inherit", "SmallLabel");
SetProperty ("parent", "panel");
SetProperty ("position", 249, 86);
SetProperty ("align", "RIGHT");
SetProperty ("label.text", "Your time:");

CreateComp ("LABEL", "yourtime");
SetProperty ("inherit", "SmallLabel");
SetProperty ("localize", 0);
SetProperty ("parent", "panel");
SetProperty ("position", 255, 86);
SetProperty ("label.text", "|ffc600|61 sec.");

CreateComp ("LABEL", "besttimelabel");
SetProperty ("inherit", "SmallLabel");
SetProperty ("parent", "panel");
SetProperty ("position", 245, 114);
SetProperty ("align", "RIGHT");
SetProperty ("label.text", "Best time by ");

CreateComp ("LABEL", "besttime");
SetProperty ("inherit", "SmallLabel");
SetProperty ("localize", 0);
SetProperty ("parent", "panel");
SetProperty ("position", 249, 114);
SetProperty ("label.text", "|00d8ff|Pertti: |ffc600|61 sec.");

CreateComp ("LABEL", "timeleftlabel");
SetProperty ("inherit", "SmallLabel");
SetProperty ("parent", "panel");
SetProperty ("position", 250, 141);
SetProperty ("align", "RIGHT");
SetProperty ("label.text", "Time left:");

CreateComp ("LABEL", "timeleft");
SetProperty ("inherit", "SmallLabel");
SetProperty ("localize", 0);
SetProperty ("parent", "panel");
SetProperty ("position", 254, 141);
SetProperty ("label.text", "|ffc600|61 sec.");

CreateComp ("LABEL", "timebonuslabel");
SetProperty ("inherit", "SmallLabel");
SetProperty ("parent", "panel");
SetProperty ("position", 266, 176);
SetProperty ("align", "RIGHT");
SetProperty ("label.text", "TIME BONUS:");

CreateComp ("LABEL", "timebonus");
SetProperty ("inherit", "SmallLabel");
SetProperty ("localize", 0);
SetProperty ("parent", "panel");
SetProperty ("position", 278, 177);
SetProperty ("label.text", "|ffc600|4");

CreateComp ("LABEL", "r1");
SetProperty ("parent", "panel");
SetProperty ("position", 61, 204);
SetProperty ("label.bitmap", "ui/gfx/ruler.png");

CreateComp ("LABEL", "karmacollectedlabel");
SetProperty ("inherit", "SmallLabel");
SetProperty ("parent", "panel");
SetProperty ("position", 328, 251);
SetProperty ("align", "RIGHT");
SetProperty ("label.text", "Karma collected:");

CreateComp ("LABEL", "karmacollected");
SetProperty ("inherit", "SmallLabel");
SetProperty ("localize", 0);
SetProperty ("parent", "panel");
SetProperty ("position", 337, 250);
SetProperty ("label.text", "|ffc600|12");

CreateComp ("LABEL", "bonusesactivatedlabel");
SetProperty ("inherit", "SmallLabel");
SetProperty ("parent", "panel");
SetProperty ("position", 329, 280);
SetProperty ("align", "RIGHT");
SetProperty ("label.text", "Bonuses activated:");

CreateComp ("LABEL", "bonusesactivated");
SetProperty ("inherit", "SmallLabel");
SetProperty ("localize", 0);
SetProperty ("parent", "panel");
SetProperty ("position", 340, 282);
SetProperty ("label.text", "|ffc600|1");

CreateComp ("LABEL", "progressitemslabel");
SetProperty ("inherit", "SmallLabel");
SetProperty ("parent", "panel");
SetProperty ("position", 321, 312);
SetProperty ("align", "RIGHT");
SetProperty ("label.text", "Progress items:");

CreateComp ("LABEL", "progressitems");
SetProperty ("inherit", "SmallLabel");
SetProperty ("localize", 0);
SetProperty ("parent", "panel");
SetProperty ("position", 327, 312);
SetProperty ("label.text", "|ffc600|1");

CreateComp ("LABEL", "karmathislevellabel");
SetProperty ("inherit", "SmallLabel");
SetProperty ("parent", "panel");
SetProperty ("position", 381, 384);
SetProperty ("align", "RIGHT");
SetProperty ("label.text", "Karma earned in this level:");

CreateComp ("LABEL", "karmathislevel");
SetProperty ("inherit", "SmallLabel");
SetProperty ("localize", 0);
SetProperty ("parent", "panel");
SetProperty ("position", 394, 384);
SetProperty ("label.text", "|ffc600|16");

CreateComp ("LABEL", "karmatotallabel");
SetProperty ("inherit", "SmallLabel");
SetProperty ("parent", "panel");
SetProperty ("position", 349, 424);
SetProperty ("align", "RIGHT");
SetProperty ("label.text", "Total Karma earned:");

CreateComp ("LABEL", "karmatotal");
SetProperty ("inherit", "SmallLabel");
SetProperty ("localize", 0);
SetProperty ("parent", "panel");
SetProperty ("position", 352, 414);
SetProperty ("label.font", "fonts/big.mft");
SetProperty ("label.text", "|ffc600|19");

CreateComp ("LABEL", "level_short_name");
SetProperty ("inherit", "SmallLabel");
SetProperty ("position", -100, -100);
SetProperty ("label.text", "1-2");

CreateComp ("LABEL", "level_long_name");
SetProperty ("inherit", "SmallLabel");
SetProperty ("position", -100, -100);
SetProperty ("label.text", "Path to Enlightenment");

CreateComp ("LABEL", "karmaicon1");
SetProperty ("parent", "panel");
SetProperty ("position", 403, 427);
SetProperty ("label.bitmap", "board/karma-token-0001.png");

CreateComp ("LABEL", "karmaicon2");
SetProperty ("parent", "panel");
SetProperty ("position", 303, 178);
SetProperty ("label.bitmap", "board/karma-token-0001.png");

CreateComp ("LABEL", "karmaicon3");
SetProperty ("parent", "panel");
SetProperty ("position", 362, 253);
SetProperty ("label.bitmap", "board/karma-token-0001.png");

CreateComp ("LABEL", "karmaicon4");
SetProperty ("parent", "panel");
SetProperty ("position", 422, 386);
SetProperty ("label.bitmap", "board/karma-token-0001.png");

CreateComp ("BUTTON", "Ok");
SetProperty ("parent", "panel");
SetProperty ("position", 249, 493);
SetProperty ("align", "CENTER");
SetProperty ("button.text", "OK");

CreateComp ("BUTTON", "reset");
SetProperty ("parent", "panel");
SetProperty ("position", 738, 102);
SetProperty ("align", "CENTER");
SetProperty ("button.text", "reset");

