-- ui/new-profile.lua

UIEvents ("ui/new-profile-Events.lua");

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

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

CreateComp ("LABEL", "title");
SetProperty ("parent", "panel");
SetProperty ("position", 209, 37);
SetProperty ("align", "HCENTER");
SetProperty ("label.font", "fonts/big.mft");
SetProperty ("label.text", "New Profile");

CreateComp ("LABEL", "subtitle");
SetProperty ("inherit", "SmallLabel");
SetProperty ("parent", "panel");
SetProperty ("position", 203, 94);
SetProperty ("align", "HCENTER");
SetProperty ("label.text", "Please enter your name");

CreateComp ("EDITBOX", "Name");
SetProperty ("localize", 0);
SetProperty ("parent", "panel");
SetProperty ("position", 28, 148);
SetProperty ("editbox.max_chars", 12);

CreateComp ("BUTTON", "Cancel");
SetProperty ("parent", "panel");
SetProperty ("position", 211, 230);
SetProperty ("button.text", "Cancel");

CreateComp ("BUTTON", "Ok");
SetProperty ("parent", "panel");
SetProperty ("position", 26, 228);
SetProperty ("button.text", "Ok");

