Ejemplo n.º 1
0
        public void PlayerInfoHide()
        {
            if (_UIPlayerNameSetting == null)
            {
                return;
            }

            _UIPlayerNameSetting.Kill(null, ObjectDeadType.Clear);
            _UIPlayerNameSetting = null;
            UnlockScene(6);
        }
Ejemplo n.º 2
0
        public void PlayerInfoShow()
        {
            if (_UIPlayerNameSetting != null)
            {
                return;
            }

            LockScene(Color.FromArgb(100, 0, 0, 0), 3);
            _UIPlayerNameSetting        = new ObjectUINameSetting(DirectionType.Center, 5, 5, new MoveStraight(null, 1, 800, 1, 100, 1F));
            _UIPlayerNameSetting.Close += (x, e) =>
            {
                PlayerInfoHide();
            };
            _UIPlayerNameSetting.Layout.X = Width / 2;
            _UIPlayerNameSetting.Layout.Y = Height / 2 - 100;
            _UIPlayerNameSetting.MoveObject.Target.SetObject(new PointObject(_UIPlayerNameSetting.Layout.X, Height / 2));
            UIObjects.Add(_UIPlayerNameSetting);
        }