Wrapper class for SimAvatar with a default skeleton, "adult.skel".
Inheritance: SimAvatar
示例#1
0
        private void outfitLoadBtn_Click(object sender, EventArgs e)
        {
            var outfit = ((IContentReference<Outfit>)outfitList.SelectedItem).Get();
            if (outfit == null) { return; }

            if (Avatar == null)
            {
                Avatar = new AdultVitaboyModel();
            }
            var content = Content.Content.Get();
            if (outfit.Region == 0)
            {
                // Head
                Avatar.Head = outfit;
            }
            else
            {
                Avatar.Body = outfit;
            }
            SetPreview(Avatar);
        }
示例#2
0
 /// <summary>
 /// Constructs a new AdultVitaboyModel instance from an old one.
 /// </summary>
 /// <param name="old">The old instance.</param>
 public AdultVitaboyModel(AdultVitaboyModel old) : base(old)
 {
 }
示例#3
0
文件: UISim.cs 项目: Daribon/FreeSO
        private void UISimInit()
        {
            Camera = new BasicCamera(GameFacade.GraphicsDevice, new Vector3(0.0f, 7.0f, -17.0f), Vector3.Zero, Vector3.Up);
            Scene = new _3DScene(GameFacade.Game.GraphicsDevice, Camera);
            Scene.ID = "UISim";

            GameFacade.Game.GraphicsDevice.DeviceReset += new EventHandler<EventArgs>(GraphicsDevice_DeviceReset);

            Avatar = new AdultVitaboyModel();
            Avatar.Scene = Scene;
            Avatar.Scale = new Vector3(0.45f);
            Scene.Add(Avatar);
        }
示例#4
0
        private void UISimInit()
        {
            Camera = new WorldCamera(GameFacade.GraphicsDevice);
            Camera.Zoom = LotView.WorldZoom.Near;
            Camera.CenterTile = new Vector2(-1, -1)*FSOEnvironment.DPIScaleFactor;
            Scene = new _3DTargetScene(GameFacade.Game.GraphicsDevice, Camera,
                new Point(140 * FSOEnvironment.DPIScaleFactor, 200 * FSOEnvironment.DPIScaleFactor),
                (GlobalSettings.Default.AntiAlias)?8:0);
            Scene.ID = "UISim";

            GameFacade.Game.GraphicsDevice.DeviceReset += new EventHandler<EventArgs>(GraphicsDevice_DeviceReset);

            Avatar = new AdultVitaboyModel();
            Avatar.Scene = Scene;
            var scale = FSOEnvironment.DPIScaleFactor;
            Avatar.Scale = new Vector3(scale, scale, scale);

            Scene.Add(Avatar);
        }
示例#5
0
 /// <summary>
 /// Constructs a new AdultVitaboyModel instance from an old one.
 /// </summary>
 /// <param name="old">The old instance.</param>
 public AdultVitaboyModel(AdultVitaboyModel old)
     : base(old)
 {
 }