/// <summary> /// Gets the options. /// </summary> /// <returns>the options for this VRObject</returns> public override VROptions GetMenu() { VROptions options = new VROptions(); options.AddIcon(ImageEnum.CarIcon.ToString()); options.Add(ImageEnum.MoveIcon.ToString(), this.Move); options = this.AddSiren(options); options.Margin = this.Model.Position.GetMargin(); return options; }
/// <summary> /// Gets the subOptions. /// </summary> /// <returns>the connected options</returns> public VROptions GetEmotionOptions() { VROptions options = new VROptions(); for (int i = 1; i < this.characterModel.GetAmountOfEmotions() + 1; i++) { int emotion = i; options.Add(ImageEnum.GetCharacterEmotion(emotion), new Action(() => this.SendEmotion(emotion))); } options.AddIcon(ImageEnum.CharacterIcon.ToString()); Thickness margin = options.Margin; VRPosition pos = this.Model.Position; margin.Left = pos.X - (options.Width / 2) + (SizeEnum.DefaultVRObjectSize / 2); margin.Top = pos.Y - (options.Height / 2) + (SizeEnum.DefaultVRObjectSize / 2); options.Margin = margin; return options; }
/// <summary> /// Gets the options. /// </summary> /// <returns>the connected options</returns> public VROptions GetActionOptions() { VROptions options = new VROptions(); for (int i = 1; i < this.characterModel.GetAmountOfActions() + 1; i++) { int action = i; options.Add(ImageEnum.GetCharacterAction(action), new Action(() => this.SendAction(action))); } options.Add(ImageEnum.MoveIcon.ToString(), this.Move); options.AddIcon(ImageEnum.CharacterIcon.ToString()); options.Margin = this.Model.Position.GetMargin(); return options; }
/// <summary> /// Gets the menu of this object. /// </summary> /// <returns>the options for this VRObject</returns> public VROptions GetOptions() { VROptions options = new VROptions(); options.Add(ImageEnum.TvIcon.ToString(), this.Action_1); options.Add(ImageEnum.TvIcon_1.ToString(), this.Action_2); options.Add(ImageEnum.TvIcon_2.ToString(), this.Action_3); options.AddIcon(ImageEnum.TvIcon.ToString()); options.Margin = this.Model.Position.GetMargin(); return options; }