dialog "EditPlayer"
{
    extents       = { 0, 0, 1024, 768 };
    xalign        = Parent;
    yalign        = Parent;
    visible       = false;
    picture "Background"
    {
        extents       = { 0, 0, 1024, 768 };
        skinpack      = "mainmenu";
        skinframe     = 4;
    }
    panel "FadeBack"
    {
        visible           = true;
        extents           = { 0, 0, 1024, 768 };
        bgcolor           = 0x22000000;
        consumeevents     = true;
        xalign            = Parent;
        yalign            = Parent;
    }
    button
    {
        extents       = { 0, 0, 1024, 768 };
        cursor          = "default";
    }
    picture "dlg"
    {
        extents       = { 340, 286, 360, 152 };
        skinpack      = "panels";
        skinframe     = 5;
        label "DialogText"
        {
            textxalign      = Center;
            textyalign      = Top;
            shadowcolor     = 0xff000000;
            shadowshiftx    = 2;
            shadowshifty    = 2;
            wraptext        = true;
            text            = "#FWAU";
            extents         = { 19, 14, 321, 34 };
            font            = "menu_font";
            fontheight      = 30;
            fgcolor         = 0xffdbc595;
        }
        editbox "playerNameEdit"
        {
            shadowcolor     = 0xff000000;
            shadowshifty    = 2;
            text            = "#HQUA";
            extents         = { 49, 56, 261, 34 };
            font            = "menu_font";
            fontheight      = 35;
            fgcolor         = 0xffdbc595;
            bgcolor         = 0;
        }
        button "btnNewPlayer"
        {
            normalframe     = 2;
            pressedframe    = 2;
            shadowcolor     = 0xff000000;
            shadowshifty    = 2;
            text            = "#WCMG";
            extents         = { 210, 97, 100, 35 };
            font            = "menu_font18";
            fontheight      = -1;
            fgcolor         = 0xffdbc595;
            hoverfgcolor    = 0xffeecc95;
            cursor          = "ButtonHover";
            skinpack        = "mainmenu";
            unpress         = >>UIClick.Play;
            unpress         = >>uiscript.OnNewPlayer;
        }
        button "btnEditPlayerBack"
        {
            normalframe     = 2;
            pressedframe    = 2;
            shadowcolor     = 0xff000000;
            shadowshifty    = 2;
            text            = "#OEGX";
            extents         = { 49, 97, 100, 35 };
            font            = "menu_font18";
            fontheight      = -1;
            fgcolor         = 0xffdbc595;
            hoverfgcolor    = 0xffeecc95;
            cursor          = "ButtonHover";
            skinpack        = "mainmenu";
            visible         = false;
            unpress         = >>UIClick.Play;
            unpress         = >>editplayer.Close;
        }
    }
}
