Exemple #1
0
    private void ThemeDefaultHolder(BoxContainer holder)
    {
        holder.Alignment = BoxContainer.AlignMode.Center;
        holder.AddConstantOverride("separation", 20);

        holder.GetNode <TextureRect>("logo").Texture             = GD.Load <Texture>("res://assets/default/icon.png");
        holder.GetNode <TextureRect>("logo").SizeFlagsHorizontal = (int)Control.SizeFlags.ShrinkCenter;

        var title = holder.GetNode <Label>("title");

        title.Align    = Label.AlignEnum.Center;
        title.Text     = ProjectSettings.GetSetting("application/config/name").ToString().Replace("Leacme ", "Leacme\n");
        title.Autowrap = true;
        title.AddFontOverride("font", new DynamicFont()
        {
            FontData = GD.Load <DynamicFontData>("res://assets/default/Tuffy_Bold.ttf"), Size = 70
        });
    }