Ejemplo n.º 1
0
        //public readonly Texture2D MainLogoTexture;

        public OpeningGameContent(ContentManager manager, GameParams _params)
        {
            this.Manager     = manager;
            this.SizeChooser = new ContentSizeChooser(_params.DPI);

            this.BackgroundColor = new Color(71, 85, 86);

            var prefix = SizeChooser.SizeMultiplierPrefix;
            //this.MainLogoTexture = this.Manager.Load<Texture2D>(prefix + "/main_logo");
        }
Ejemplo n.º 2
0
        public GameCommon(GraphicsDevice device, OpeningGameContent openingContent, GameParams _params)
        {
            this.OpeningContent = openingContent;
            this.Manager        = openingContent.Manager;
            this.SizeChooser    = new ContentSizeChooser(_params.DPI);

            this.ShowExitButton     = (_params.Exit != null);
            this.FieldPadding       = GetFieldPadding(device.Viewport.Width, device.Viewport.Height, _params.DPI);
            this.UseAdvancedEffects = _params.UseAdvancedEffects;
            this.FieldShadowLength  = GetSizeInDpi(16);
        }