예제 #1
0
        private void ExecutePasteCommand(object _obj)
        {
            var b = Manager.Instance.TileBuffer;

            var d = new XTileInfoVM();

            foreach (var vm in Parent.Children)
            {
                if (vm.Order > Order)
                {
                    vm.Order++;
                }
            }
            Parent.Children.Add(d);
            d.X                  = b.X;
            d.Y                  = b.Y;
            d.Opacity            = b.Opacity;
            d.RemoveTransparency = b.RemoveTransparency;
            d.GrayScale          = b.GrayScale;
            d.Color.Set(b.Color.GetFColor());
            d.Texture           = b.Texture;
            d.Order             = Order + 1;
            Parent.SelectedItem = d;
            Parent.RefreshChildren();
        }
예제 #2
0
        private void ExecuteDublicateCommand(object _obj)
        {
            var d = new XTileInfoVM();

            foreach (var vm in Parent.Children)
            {
                if (vm.Order > Order)
                {
                    vm.Order++;
                }
            }
            Parent.Children.Add(d);
            d.X                  = X;
            d.Y                  = Y;
            d.Opacity            = 1;
            d.RemoveTransparency = RemoveTransparency;
            d.GrayScale          = GrayScale;
            d.Color.Set(Color.GetFColor());
            d.Texture           = Texture;
            d.Order             = Order + 1;
            Parent.SelectedItem = d;
            Parent.RefreshChildren();
        }