Пример #1
0
 public MSCircularPicker(Texture2D background, Rectangle boundingRectangle, float topPadding, float bottomPadding, float leftPadding, float rightPadding, MSBuilding selected, Color highlight, Shape shape, SpriteBatch spriteBatch, Game game)
     : base(background, boundingRectangle, topPadding, bottomPadding, leftPadding, rightPadding, null, shape, spriteBatch, game)
 {
     this.selected = selected;
     selectedEffect = selected.Effect;
     selected.Effect = Game.Content.Load<Effect>("highlight");
     bucksIcon = new MSImageHolder(new Rectangle(0, 0, 40, 24), Game.Content.Load<Texture2D>("BuyDialog/bucks"), SpriteBatch, Game);
     gingerBreadManIcon = new MSImageHolder(new Rectangle(0, 0, 20, 26), Game.Content.Load<Texture2D>("BuyDialog/gingerBreadMan"), SpriteBatch, Game);
     MSPanel outerRing = new MSPanel(Game.Content.Load<Texture2D>("BuyDialog/OuterRing"), new Rectangle(0, 0, 270, 270), 0, 0, 0, 0, null, Shape.CIRCULAR, spriteBatch, Game);
     AddComponent(outerRing, Alignment.MIDDLE_CENTER);
 }
Пример #2
0
 public MSCircularPicker(Texture2D background, Rectangle boundingRectangle, float topPadding, float bottomPadding, float leftPadding, float rightPadding, MSBuilding selected, Shape shape, SpriteBatch spriteBatch, Game game)
     : this(background, boundingRectangle, topPadding, bottomPadding, leftPadding, rightPadding, selected, Color.White, shape, spriteBatch, game)
 {
 }
Пример #3
0
 public MSCircularPicker(Texture2D background, Rectangle boundingRectangle, MSBuilding selected, Color highlight, Shape shape, SpriteBatch spriteBatch, Game game)
     : this(background, boundingRectangle, 0, 0, 0, 0, selected, shape, spriteBatch, game)
 {
 }