public bool PEGI()
        {
            bool changed = false;

            "Bullets:".edit(ref shoots, 1, 50).nl();
            "Spread:".edit(ref spread, 0f, 1f).nl();

            if ("Fire!".Click().nl())
            {
                Paint();
            }

            if ("HINT".foldout(ref hint).nl())
            {
                "I can paint on Painting Recivers with:".nl();
                "Mesh Collider + any Texture".nl();
                "Skinned Mesh + any Collider + Render Texture".nl();
                "Also its better to use textures without mipmaps".nl();
                "Render Texture Painting will fail if material has tiling or offset".nl();
                "Editing will be symmetrical if mesh is symmetrical".nl();
            }

            changed |= brush.Targets_PEGI().nl();
            changed |= brush.Mode_Type_PEGI().nl();
            changed |= brush.ColorSliders_PEGI();

            if (brush.PaintingRGB == false)
            {
                pegi.writeHint("Enable RGB, disable A to use faster Brush Shader (if painting to RenderTexture).");
            }
            return(changed);
        }
        public bool PEGI()
        {
            bool changed = false;

            ("Painting on " + paintingOn.Count + " objects").nl();

            changed |= brush.Targets_PEGI().nl();
            changed |= brush.Mode_Type_PEGI().nl();
            changed |= brush.ColorSliders_PEGI();
            return(changed);
        }
Beispiel #3
0
        public bool PEGI()
        {
            bool changed = false;

            if ("Fire!".Click().nl())
            {
                Paint();
            }

            changed |= brush.Targets_PEGI().nl();
            changed |= brush.Mode_Type_PEGI().nl();
            changed |= brush.ColorSliders_PEGI();
            return(changed);
        }
Beispiel #4
0
        public bool PEGI()
        {
            ("Painting on " + paintingOn.Count + " objects").nl();

            if ((_collider.isTrigger) && ("Make phisical".Click().nl()))
            {
                _collider.isTrigger = false;
                rigid.isKinematic   = false;
                rigid.useGravity    = true;
            }

            if ((!_collider.isTrigger) && ("Make Trigger".Click().nl()))
            {
                _collider.isTrigger = true;
                rigid.isKinematic   = true;
                rigid.useGravity    = false;
            }



            float size = transform.localScale.x;

            if ("Size:".edit("Size of the ball", 50, ref size, 0.1f, 10).nl())
            {
                transform.localScale = Vector3.one * size;
            }



            pegi.writeOneTimeHint("Painter ball made for World Space Brushes only", "PaintBall_brushHint");

            if ((brush.Targets_PEGI().nl()) || (brush.Mode_Type_PEGI().nl()))
            {
                if ((brush.TargetIsTex2D) || (!brush.IsA3Dbrush(null)))
                {
                    brush.TargetIsTex2D = false;
                    brush.TypeSet(false, BrushTypeSphere.Inst);

                    pegi.resetOneTimeHint("PaintBall_brushHint");
                }
            }

            if (brush.ColorSliders_PEGI())
            {
                rendy.sharedMaterial.color = brush.colorLinear.ToGamma();
            }

            return(false);
        }