Example #1
0
        private void DecodeStroke(string tg, CfgData data)
        {
            switch (tg)
            {
            case "trg": currentlyDecodedPainter.UpdateOrSetTexTarget(data.Equals("C") ? TexTarget.Texture2D : TexTarget.RenderTexture); break;

            case "brush":
                GlobalBrush.DecodeFull(data);
                GlobalBrush.brush2DRadius *= parentMeta?.width ?? 256; break;

            case "s":
                currentlyDecodedPainter.stroke.DecodeFull(data);
                GlobalBrush.Paint(currentlyDecodedPainter.PaintCommand);
                break;
            }
        }