Esempio n. 1
0
 public SeedRepresentation(Seed?seed, GCM gcm, bool drawBackdrop = true)
 {
     this.seed         = seed;
     this.gcm          = gcm;
     this.drawBackdrop = drawBackdrop;
     menuIcons         = (SpriteSheet)gcm.AsDynamic().Get("Sprites/Items/MenuIcons");
 }
Esempio n. 2
0
        public TrackerRenderer(GCM gcm, ContentManager contentManager)
        {
            menuIcons = (SpriteSheet)gcm.AsDynamic().Get("Sprites/Items/MenuIcons", contentManager);

            var numberOfFireSourcesCombined = 4;
            var numberOfPinkSourcesCombined = 3;

            numberOfItems = ItemTrackerState.NumberOfItems - (numberOfFireSourcesCombined - 1) - (numberOfPinkSourcesCombined - 1);
        }
        public BackgroundRenderer(GCM gcm, ContentManager contentManager)
        {
            var blank     = contentManager.Load <Texture2D>("Overlays/BlankSquare");
            var pauseMenu = (SpriteSheet)gcm.AsDynamic().Get("Overlays/Menu/PauseMenu", contentManager);

            backgrounds = new[]
            {
                new Background {
                    Texture = blank, Color = Color.WhiteSmoke
                },
                new Background {
                    Texture = blank, Color = Color.BlueViolet
                },
                new Background {
                    Texture = blank, Color = Color.Pink
                },
                new Background {
                    Texture = blank, Color = Color.IndianRed
                },
                new Background {
                    Texture = blank, Color = Color.DarkGray
                },
                new Background {
                    Texture = blank, Color = Color.Goldenrod
                },
                new Background {
                    Texture = blank, Color = Color.GreenYellow
                },
                new Background {
                    Texture = blank, Color = Color.DarkKhaki
                },
                new Background {
                    Texture = blank, Color = new Color(new Vector3(1, 0, 1))
                },
                new Background {
                    Texture = blank, Color = new Color(new Vector3(1, 1, 0))
                },
                new Background {
                    Texture = blank, Color = new Color(new Vector3(0, 1, 1))
                },

                new Background {
                    Texture = pauseMenu.Texture, Souce = new Rectangle(48, 112, 16, 16), Color = Color.White
                },
                new Background {
                    Texture = pauseMenu.Texture, Souce = new Rectangle(48, 96, 16, 16), Color = Color.White
                },
                new Background {
                    Texture = pauseMenu.Texture, Souce = new Rectangle(112, 96, 16, 16), Color = Color.White
                },
            };
        }