require( "scripts/style.lua" )

TableInfoFont = {
  standardFont,
  18,
  BlackColor
};

MakeDialog
{
    HiscoreMoreInfoWnd
    { 
        x=0,y=0,h=kMax,w=kMax,
        alpha_shadow = 0.4;
        Bitmap
        {
            name="grayimage",
            image="backgrounds/shadow.png",
            alpha=true,
            x=0,
            y=0,
        },
        Bitmap
        {
            image="backgrounds/large_dialog.png",   
            x=101,--kCenter,
            y=32,--kCenter,

            Text
            {
                font = TableInfoFont,
                name = "info",
                x=117,y=105,w=380, h=306,
                flags = kHAlignLeft+ kVAlignTop,
                label = "highscorecompleteinfo"
            };
                
            Button{
                x=203,
                y=392,
                --font = StandardButtonFont,
                --graphics = StandardButtonGraphics,
                font = MenuButtonFont;
                graphics = StButtonGraphicsMidBig,
                name="hiscoreinfook",
                label="ok",
                type = kPush,
                close=true
            };
            
            Button
            {
                x=0,
                y=0,
                w=0,
                h=0,
                graphics={},
                name="privacypolicy",
                command = 
                    function()
                        if (IsEnabled(kHiscoreAnonymous)) then
                            DisplayDialog { 
                                "scripts/ok.lua", 
                                body ="privacy_anon",
                                title = ""
                            };
                        else
                            LaunchPrivacyPolicy();
                        end
                    end
            };
            
            
        };
    };
}



