Exemple #1
0
    public PUSlider(
        string handleResourcePath,
        Vector2 handleSize,
        string fillResourcePath,
        string onValueChanged,
        float minValue,
        float maxValue,
        PlanetUnity2.SliderDirection direction,
        string resourcePath) : this()
    {
        this.handleResourcePath = handleResourcePath;

        this.handleSize = handleSize;

        this.fillResourcePath = fillResourcePath;

        this.onValueChanged = onValueChanged;

        this.minValue = minValue;

        this.maxValue = maxValue;

        this.direction = direction;

        this.resourcePath = resourcePath;
    }
Exemple #2
0
    public PUSlider(
        string handleResourcePath,
        Vector2 handleSize,
        string fillResourcePath,
        string onValueChanged,
        float minValue,
        float maxValue,
        PlanetUnity2.SliderDirection direction,
        string resourcePath,
        Color color,
        PlanetUnity2.ImageType type,
        Vector4 bounds,
        Vector3 position,
        Vector2 size,
        Vector3 rotation,
        Vector3 scale,
        Vector2 pivot,
        string anchor,
        bool active,
        bool rectMask2D,
        bool mask,
        bool showMaskGraphic,
        Vector4 maskInset,
        bool outline,
        float lastY,
        float lastX,
        string shader,
        bool ignoreMouse,
        string components,
        string title,
        string tag,
        string tag1,
        string tag2,
        string tag3,
        string tag4,
        string tag5,
        string tag6) : this()
    {
        this.handleResourcePath = handleResourcePath;

        this.handleSize = handleSize;

        this.fillResourcePath = fillResourcePath;

        this.onValueChanged = onValueChanged;

        this.minValue = minValue;

        this.maxValue = maxValue;

        this.direction = direction;

        this.resourcePath = resourcePath;

        this.color = color;

        this.type = type;

        this.bounds = bounds;

        this.position = position;

        this.size = size;

        this.rotation = rotation;

        this.scale = scale;

        this.pivot = pivot;

        this.anchor = anchor;

        this.active = active;

        this.rectMask2D = rectMask2D;

        this.mask = mask;

        this.showMaskGraphic = showMaskGraphic;

        this.maskInset = maskInset;

        this.outline = outline;

        this.lastY = lastY;

        this.lastX = lastX;

        this.shader = shader;

        this.ignoreMouse = ignoreMouse;

        this.components = components;

        this.title = title;

        this.tag = tag;

        this.tag1 = tag1;

        this.tag2 = tag2;

        this.tag3 = tag3;

        this.tag4 = tag4;

        this.tag5 = tag5;

        this.tag6 = tag6;
    }