-- ui/stats.lua

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

CreateComp ("Label", "fader");
SetProperty ("inherit", "FaderLabel");

CreateComp ("Label", "panel");
SetProperty ("position", 33, 10);
SetProperty ("label.bitmap", "ui/gfx/panel-huge.png");

CreateComp ("Label", "talisman_desc");
SetProperty ("inherit", "SmallLabel");
SetProperty ("parent", "panel");
SetProperty ("position", 49, 356);
SetProperty ("label.text", "Total Time Played:");

CreateComp ("Button", "Ok");
SetProperty ("parent", "panel");
SetProperty ("position", 589, 478);
SetProperty ("align", "HCENTER");
SetProperty ("button.text", "OK");

CreateComp ("Label", "templeoftime");
SetProperty ("parent", "panel");
SetProperty ("position", 107, 51);
SetProperty ("label.bitmap", "story/storycardsmall-2-temple.png");

CreateComp ("Label", "subtitle");
SetProperty ("inherit", "BigLabel");
SetProperty ("parent", "panel");
SetProperty ("position", 385, 73);
SetProperty ("align", "HCENTER");
SetProperty ("label.text", "Achievements");

CreateComp ("Label", "StatTotalTimePlayed");
SetProperty ("inherit", "SmallLabel");
SetProperty ("localize", 0);
SetProperty ("parent", "panel");
SetProperty ("position", 294, 358);
SetProperty ("label.text", "00:03:58");

CreateComp ("Label", "talisman_des");
SetProperty ("inherit", "SmallLabel");
SetProperty ("parent", "panel");
SetProperty ("position", 49, 327);
SetProperty ("label.text", "Tiles matched:");

CreateComp ("Label", "StatTilesMatched");
SetProperty ("inherit", "SmallLabel");
SetProperty ("localize", 0);
SetProperty ("parent", "panel");
SetProperty ("position", 294, 327);
SetProperty ("label.text", "538");

CreateComp ("Label", "talisman_desc_clone");
SetProperty ("inherit", "SmallLabel");
SetProperty ("parent", "panel");
SetProperty ("position", 49, 388);
SetProperty ("label.text", "Total Levels Completed:");

CreateComp ("Label", "StatLevelsCompleted");
SetProperty ("inherit", "SmallLabel");
SetProperty ("localize", 0);
SetProperty ("parent", "panel");
SetProperty ("position", 294, 388);
SetProperty ("label.text", "9");

CreateComp ("Label", "talisman_desc_clone_clone");
SetProperty ("inherit", "SmallLabel");
SetProperty ("parent", "panel");
SetProperty ("position", 50, 420);
SetProperty ("label.text", "Talismans activated:");

CreateComp ("Label", "StatPowerupsActivated");
SetProperty ("inherit", "SmallLabel");
SetProperty ("localize", 0);
SetProperty ("parent", "panel");
SetProperty ("position", 294, 420);
SetProperty ("label.text", "0");

CreateComp ("Label", "trophies");
SetProperty ("parent", "panel");
SetProperty ("position", 555, 102);

CreateComp ("Button", "trophy1");
SetProperty ("inherit", "TrophyButton1");
SetProperty ("parent", "trophies");
SetProperty ("position", 17, 126);
SetProperty ("align", "CENTER");
SetProperty ("button.bm_icon", "board/trophies/t1-image.png");

CreateComp ("Button", "trophy2");
SetProperty ("inherit", "TrophyButton2");
SetProperty ("parent", "trophies");
SetProperty ("position", -333, 150);
SetProperty ("align", "CENTER");
SetProperty ("button.bm_icon", "!NONE");

CreateComp ("Button", "trophy3");
SetProperty ("inherit", "TrophyButton3");
SetProperty ("parent", "trophies");
SetProperty ("position", 85, 152);
SetProperty ("align", "CENTER");
SetProperty ("button.bm_icon", "!NONE");

CreateComp ("Button", "trophy4");
SetProperty ("inherit", "TrophyButton4");
SetProperty ("parent", "trophies");
SetProperty ("position", -436, 152);
SetProperty ("align", "CENTER");
SetProperty ("button.bm_icon", "!NONE");

CreateComp ("Button", "trophy5");
SetProperty ("inherit", "TrophyButton5");
SetProperty ("parent", "trophies");
SetProperty ("position", -246, 124);
SetProperty ("align", "CENTER");
SetProperty ("button.bm_icon", "!NONE");

CreateComp ("Button", "trophy6");
SetProperty ("inherit", "TrophyButton6");
SetProperty ("parent", "trophies");
SetProperty ("position", -152, 121);
SetProperty ("align", "CENTER");
SetProperty ("button.bm_icon", "!NONE");

CreateComp ("Button", "trophy7");
SetProperty ("inherit", "TrophyButton7");
SetProperty ("parent", "trophies");
SetProperty ("position", -69, 131);
SetProperty ("align", "CENTER");
SetProperty ("button.bm_icon", "!NONE");

CreateComp ("Label", "trophy_name");
SetProperty ("inherit", "BigLabel");
SetProperty ("localize", 0);
SetProperty ("parent", "panel");
SetProperty ("position", 555, 312);
SetProperty ("align", "HCENTER");
SetProperty ("label.text", "Talismaniac");

CreateComp ("Label", "trophy_desc");
SetProperty ("inherit", "SmallLabel");
SetProperty ("localize", 0);
SetProperty ("parent", "panel");
SetProperty ("position", 429, 377);
SetProperty ("label.textbox_width", "245");
SetProperty ("label.text", "You have unleashed the power of talismans over 200 times.");

CreateComp ("Label", "talisman_desc_clone_clone_clone");
SetProperty ("inherit", "SmallLabel");
SetProperty ("parent", "panel");
SetProperty ("position", 47, 453);
SetProperty ("label.text", "Expert Level Ranks:");

CreateComp ("Label", "StatExpertLevelRanks");
SetProperty ("inherit", "SmallLabel");
SetProperty ("localize", 0);
SetProperty ("parent", "panel");
SetProperty ("position", 294, 452);
SetProperty ("label.text", "11%");

CreateComp ("Label", "talisman_desc_clone_clone_clone_clone");
SetProperty ("inherit", "SmallLabel");
SetProperty ("parent", "panel");
SetProperty ("position", 50, 489);
SetProperty ("label.text", "Longest Chain:");

CreateComp ("Label", "StatLongestChain");
SetProperty ("inherit", "SmallLabel");
SetProperty ("localize", 0);
SetProperty ("parent", "panel");
SetProperty ("position", 294, 487);
SetProperty ("label.text", "19");

