private void SetTiming(Animation.Timing timing) { this.numericUpDownFrame.Value = timing.frame.Clamp(1, 999); this.numericUpDownDuration.Value = timing.flash_duration; this.trackBarStrength.Value = (int)timing.flash_color.alpha; this.panelColor.BackColor = Color.FromArgb(255, (int)timing.flash_color.red, (int)timing.flash_color.green, (int)timing.flash_color.blue); this.comboBoxCondition.SelectedIndex = timing.condition; this.textBoxSE.Tag = timing.se; this.textBoxSE.Text = timing.se.ToString(); switch (timing.flash_scope) { case 1: this.radioTarget.Checked = true; break; case 2: this.radioScreen.Checked = true; break; case 3: this.radioHide.Checked = true; break; default: this.radioNone.Checked = true; break; } }
public MenuScreen(ref SpriteBatch sb) { int height = Constants.graphics.PreferredBackBufferHeight; int width = Constants.graphics.PreferredBackBufferWidth; SB = sb; Backgrounds = new List<TextureMap>(); fish = new List<TextureMap>(); fishPos = new List<Vector2>(); fishPos.Add(new Vector2((width / 2), height / 2)); fishPos.Add(new Vector2((width / 2) + 122, (height / 2) + 122)); fishPos.Add(new Vector2((width / 2) - 122, (height / 2) - 45)); fishVel = new List<Vector2>(); fishVel.Add(new Vector2(-1.2f, 0.0f)); fishVel.Add(new Vector2(2.6f, 0.0f)); fishVel.Add(new Vector2(-1.8f, 0.0f)); Backgrounds.Add(new TextureMap(Constants.content.Load<Texture2D>(".\\art\\menuscreenbackground_layer3"), 1, 1)); Backgrounds.Add(new TextureMap(Constants.content.Load<Texture2D>(".\\art\\menuscreenbackground_layer2"), 1, 1)); Backgrounds.Add(new TextureMap(Constants.content.Load<Texture2D>(".\\art\\menuscreenbackground_layer1"), 1, 1)); fish.Add(new TextureMap(Constants.content.Load<Texture2D>(".\\art\\fish1"), 1, 1, true)); fish.Add(new TextureMap(Constants.content.Load<Texture2D>(".\\art\\fish2"), 1, 1, false)); fish.Add(new TextureMap(Constants.content.Load<Texture2D>(".\\art\\fish3"), 1, 1, true)); clouds = new List<TextureMap>(); cloudPos = new List<Vector2>(); cloudPos.Add(new Vector2((width / 2) - 320, height - (height - 32))); cloudPos.Add(new Vector2((width / 2) + 40, height - (height - 39))); cloudPos.Add(new Vector2((width / 2) + 340, height - (height - 28))); clouds.Add(new TextureMap(Constants.content.Load<Texture2D>(".\\art\\cloud1"), 1, 1, true)); clouds.Add(new TextureMap(Constants.content.Load<Texture2D>(".\\art\\cloud2"), 1, 1, false)); clouds.Add(new TextureMap(Constants.content.Load<Texture2D>(".\\art\\cloud3"), 1, 1, true)); radioPos = new Vector2(370.0f, 47.0f); radio = new Animation(new AnimatedSprite(Constants.content.Load<Texture2D>(".\\art\\music_anim"), 1, 5, 600), radioPos); Constants.mAnimationManager.addAnimation(radio); DrawableEntities = new List<GameEntity>(); }
private void RefreshImages() { // TEST //////////////////////////////////////////// this._animation = new Animation { animation_hue = this._animation.animation_hue, animation_name = this._animation.animation_name }; this.animeSrcXnaPanel.Animation = this._animation; //////////////////////////////////////////////////// }
private void dataObjectList_OnListBoxIndexChanged(object sender, EventArgs e) { int index = this.dataObjectList.SelectedIndex; if (index >= 0) { this._animation = this.Data[index + 1]; this.RefreshCurrentObject(); } }
public void removeAnimation(Animation animation) { Animations.Remove(animation); --mCount; }
public void addAnimation(Animation animation) { Animations.Add(animation); ++mCount; }