コード例 #1
0
        public void AppendColor(int brickColorId, Rectangle rect, byte layer = 0)
        {
            var composit = new CompositData(DrawFlags.Rect | DrawFlags.Color);

            composit.SetDrawColor(brickColorId);
            composit.Layer = layer;
            composit.Rect  = rect;

            layers.Add(composit);
        }
コード例 #2
0
ファイル: CompositData.cs プロジェクト: ddddeessse/Rbx2Source
        public int CompareTo(object other)
        {
            if (other is CompositData)
            {
                CompositData otherComp = other as CompositData;
                return(Layer - otherComp.Layer);
            }

            throw new NotImplementedException();
        }
コード例 #3
0
        public void AppendTexture(object img, string guide, Rectangle guideSize, byte layer = 0)
        {
            var composit = new CompositData(DrawFlags.Guide | DrawFlags.Texture);

            composit.SetGuide(guide, guideSize, avatarType);
            composit.Texture = img;
            composit.Layer   = layer;

            layers.Add(composit);
        }
コード例 #4
0
        public void AppendColor(int brickColorId, string guide, Rectangle guideSize, byte layer = 0)
        {
            var composit = new CompositData(DrawFlags.Guide | DrawFlags.Color);

            composit.SetGuide(guide, guideSize, avatarType);
            composit.SetDrawColor(brickColorId);
            composit.Layer = layer;

            layers.Add(composit);
        }
コード例 #5
0
        public void AppendColor(int brickColorId, Rectangle rect, byte layer = 0)
        {
            CompositData composit = new CompositData(DrawMode.Rect, DrawType.Color);

            composit.SetDrawColor(brickColorId);
            composit.Layer = layer;
            composit.Rect  = rect;

            layers.Add(composit);
        }
コード例 #6
0
        public void AppendTexture(object img, Rectangle rect, byte layer = 0, RotateFlipType flipMode = RotateFlipType.RotateNoneFlipNone)
        {
            CompositData composit = new CompositData(DrawMode.Rect, DrawType.Texture);

            composit.Texture  = img;
            composit.Layer    = layer;
            composit.Rect     = rect;
            composit.FlipMode = flipMode;

            layers.Add(composit);
        }
コード例 #7
0
        public void AppendTexture(object img, Rectangle rect, byte layer = 0, RotateFlipType flipMode = RotateFlipType.RotateNoneFlipNone)
        {
            var composit = new CompositData(DrawFlags.Rect | DrawFlags.Texture)
            {
                FlipMode = flipMode,
                Texture  = img,
                Layer    = layer,
                Rect     = rect
            };

            layers.Add(composit);
        }