Ejemplo n.º 1
0
    public PUColorButton(
			cVector2 touchSize,
			cColor touchColor,
			string onTouchUp,
			string onTouchDown,
			cColor color,
			cRect bounds )
        : this()
    {
        this.touchSize = touchSize;
        this.touchSizeExists = true;

        this.touchColor = touchColor;
        this.touchColorExists = true;

        this.onTouchUp = onTouchUp;
        this.onTouchUpExists = true;

        this.onTouchDown = onTouchDown;
        this.onTouchDownExists = true;

        this.color = color;
        this.colorExists = true;

        this.bounds = bounds;
        this.boundsExists = true;
    }
Ejemplo n.º 2
0
    public PUMovie(
			bool hasAlpha,
			bool looping,
			string resourcePath,
			string shader,
			cVector2 anchor,
			cColor color,
			cRect bounds )
        : this()
    {
        this.hasAlpha = hasAlpha;
        this.hasAlphaExists = true;

        this.looping = looping;
        this.loopingExists = true;

        this.resourcePath = resourcePath;
        this.resourcePathExists = true;

        this.shader = shader;
        this.shaderExists = true;

        this.anchor = anchor;
        this.anchorExists = true;

        this.color = color;
        this.colorExists = true;

        this.bounds = bounds;
        this.boundsExists = true;
    }
Ejemplo n.º 3
0
    public PUImageButton(
			string normalResourcePath,
			string highlightedResourcePath,
			cColor touchColor,
			cVector2 touchSize,
			string onTouchUp,
			string onTouchDown,
			string resourcePath,
			cRect bounds )
        : this()
    {
        this.normalResourcePath = normalResourcePath;
        this.normalResourcePathExists = true;

        this.highlightedResourcePath = highlightedResourcePath;
        this.highlightedResourcePathExists = true;

        this.touchColor = touchColor;
        this.touchColorExists = true;

        this.touchSize = touchSize;
        this.touchSizeExists = true;

        this.onTouchUp = onTouchUp;
        this.onTouchUpExists = true;

        this.onTouchDown = onTouchDown;
        this.onTouchDownExists = true;

        this.resourcePath = resourcePath;
        this.resourcePathExists = true;

        this.bounds = bounds;
        this.boundsExists = true;
    }
Ejemplo n.º 4
0
        public static List <cColor> GetColors(List <cStyleFlat> FlatData, string StyleNumber)
        {
            var           stylecolor = FlatData.Where(x => x.Style_Number == StyleNumber);
            List <cColor> colors     = new List <cColor>();

            foreach (var grp in stylecolor.GroupBy(x => x.Color_Description))
            {
                var    clr   = grp.FirstOrDefault();
                cColor color = new cColor
                {
                    shirt_style_number = clr.Style_Number,
                    Color_Description  = clr.Color_Description,
                    Color_Type         = clr.Color_Type,
                    Hue = clr.Hue,
                    Underbase_NO_Override = clr.Underbase_NO_Override,
                    Hex = (Globals.ColorHexDictionary.ContainsKey(clr.Color_Description) ? Globals.ColorHexDictionary[clr.Color_Description] : "#000000")
                };
                colors.Add(color);
            }
            return(colors.OrderBy(x => x.Color_Description).ToList());
        }
Ejemplo n.º 5
0
    public PULabel(
			string shader,
			string font,
			int fontSize,
			PlanetUnity.LabelAlignment alignment,
			cColor textColor,
			string value,
			cVector2 shadowOffset,
			cColor shadowColor,
			cRect bounds )
        : this()
    {
        this.shader = shader;
        this.shaderExists = true;

        this.font = font;
        this.fontExists = true;

        this.fontSize = fontSize;
        this.fontSizeExists = true;

        this.alignment = alignment;
        this.alignmentExists = true;

        this.textColor = textColor;
        this.textColorExists = true;

        this.value = value;
        this.valueExists = true;

        this.shadowOffset = shadowOffset;
        this.shadowOffsetExists = true;

        this.shadowColor = shadowColor;
        this.shadowColorExists = true;

        this.bounds = bounds;
        this.boundsExists = true;
    }
Ejemplo n.º 6
0
    public PUColor(
			string shader,
			cColor color,
			string mesh,
			cVector2 anchor,
			cRect bounds )
        : this()
    {
        this.shader = shader;
        this.shaderExists = true;

        this.color = color;
        this.colorExists = true;

        this.mesh = mesh;
        this.meshExists = true;

        this.anchor = anchor;
        this.anchorExists = true;

        this.bounds = bounds;
        this.boundsExists = true;
    }
Ejemplo n.º 7
0
    public PUImage(
			string resourcePath,
			string shader,
			cVector2 anchor,
			cColor color,
			cRect bounds )
        : this()
    {
        this.resourcePath = resourcePath;
        this.resourcePathExists = true;

        this.shader = shader;
        this.shaderExists = true;

        this.anchor = anchor;
        this.anchorExists = true;

        this.color = color;
        this.colorExists = true;

        this.bounds = bounds;
        this.boundsExists = true;
    }
Ejemplo n.º 8
0
    public PUImageButton(
			string normalResourcePath,
			string highlightedResourcePath,
			cColor touchColor,
			cVector2 touchSize,
			string onTouchUp,
			string onTouchDown,
			string resourcePath,
			string shader,
			cVector2 anchor,
			cColor color,
			cRect bounds,
			cVector3 rotation,
			bool hidden,
			float lastY,
			float lastX,
			int renderQueueOffset,
			bool clipDepth,
			bool clipStencil,
			string title,
			string tag,
			string tag1,
			string tag2,
			string tag3,
			string tag4,
			string tag5,
			string tag6 )
        : this()
    {
        this.normalResourcePath = normalResourcePath;
        this.normalResourcePathExists = true;

        this.highlightedResourcePath = highlightedResourcePath;
        this.highlightedResourcePathExists = true;

        this.touchColor = touchColor;
        this.touchColorExists = true;

        this.touchSize = touchSize;
        this.touchSizeExists = true;

        this.onTouchUp = onTouchUp;
        this.onTouchUpExists = true;

        this.onTouchDown = onTouchDown;
        this.onTouchDownExists = true;

        this.resourcePath = resourcePath;
        this.resourcePathExists = true;

        this.shader = shader;
        this.shaderExists = true;

        this.anchor = anchor;
        this.anchorExists = true;

        this.color = color;
        this.colorExists = true;

        this.bounds = bounds;
        this.boundsExists = true;

        this.rotation = rotation;
        this.rotationExists = true;

        this.hidden = hidden;
        this.hiddenExists = true;

        this.lastY = lastY;
        this.lastYExists = true;

        this.lastX = lastX;
        this.lastXExists = true;

        this.renderQueueOffset = renderQueueOffset;
        this.renderQueueOffsetExists = true;

        this.clipDepth = clipDepth;
        this.clipDepthExists = true;

        this.clipStencil = clipStencil;
        this.clipStencilExists = true;

        this.title = title;
        this.titleExists = true;

        this.tag = tag;
        this.tagExists = true;

        this.tag1 = tag1;
        this.tag1Exists = true;

        this.tag2 = tag2;
        this.tag2Exists = true;

        this.tag3 = tag3;
        this.tag3Exists = true;

        this.tag4 = tag4;
        this.tag4Exists = true;

        this.tag5 = tag5;
        this.tag5Exists = true;

        this.tag6 = tag6;
        this.tag6Exists = true;
    }
Ejemplo n.º 9
0
 public void SetTouchColor(cColor v)
 {
     touchColor = v; touchColorExists = true;
 }
Ejemplo n.º 10
0
    public override void gaxb_load(XmlReader reader, object _parent, Hashtable args)
    {
        base.gaxb_load(reader, _parent, args);

        if(reader == null && _parent == null)
            return;

        parent = _parent;

        if(this.GetType() == typeof( PUImageButton ))
        {
            gaxb_addToParent();
        }

        xmlns = reader.GetAttribute("xmlns");

        string attr;
        attr = reader.GetAttribute("normalResourcePath");
        if(attr != null && planetOverride != null) { attr = processStringMethod.Invoke(null, new [] {_parent, attr}).ToString(); }
        if(attr != null) { normalResourcePath = attr; normalResourcePathExists = true; }

        attr = reader.GetAttribute("highlightedResourcePath");
        if(attr != null && planetOverride != null) { attr = processStringMethod.Invoke(null, new [] {_parent, attr}).ToString(); }
        if(attr != null) { highlightedResourcePath = attr; highlightedResourcePathExists = true; }

        attr = reader.GetAttribute("touchColor");
        if(attr != null && planetOverride != null) { attr = processStringMethod.Invoke(null, new [] {_parent, attr}).ToString(); }
        if(attr != null) { touchColor = attr; touchColorExists = true; }

        attr = reader.GetAttribute("touchSize");
        if(attr != null && planetOverride != null) { attr = processStringMethod.Invoke(null, new [] {_parent, attr}).ToString(); }
        if(attr != null) { touchSize = attr; touchSizeExists = true; }

        attr = reader.GetAttribute("onTouchUp");
        if(attr != null && planetOverride != null) { attr = processStringMethod.Invoke(null, new [] {_parent, attr}).ToString(); }
        if(attr != null) { onTouchUp = attr; onTouchUpExists = true; }

        attr = reader.GetAttribute("onTouchDown");
        if(attr != null && planetOverride != null) { attr = processStringMethod.Invoke(null, new [] {_parent, attr}).ToString(); }
        if(attr != null) { onTouchDown = attr; onTouchDownExists = true; }
    }
Ejemplo n.º 11
0
    public override void gaxb_load(XmlReader reader, object _parent, Hashtable args)
    {
        base.gaxb_load(reader, _parent, args);

        if(reader == null && _parent == null)
            return;

        parent = _parent;

        if(this.GetType() == typeof( PUColor ))
        {
            gaxb_addToParent();
        }

        xmlns = reader.GetAttribute("xmlns");

        string attr;
        attr = reader.GetAttribute("shader");
        if(attr != null && planetOverride != null) { attr = processStringMethod.Invoke(null, new [] {_parent, attr}).ToString(); }
        if(attr != null) { shader = attr; shaderExists = true; }

        attr = reader.GetAttribute("color");
        if(attr != null && planetOverride != null) { attr = processStringMethod.Invoke(null, new [] {_parent, attr}).ToString(); }
        if(attr != null) { color = attr; colorExists = true; }

        attr = reader.GetAttribute("mesh");
        if(attr != null && planetOverride != null) { attr = processStringMethod.Invoke(null, new [] {_parent, attr}).ToString(); }
        if(attr != null) { mesh = attr; meshExists = true; }

        attr = reader.GetAttribute("anchor");
        if(attr != null && planetOverride != null) { attr = processStringMethod.Invoke(null, new [] {_parent, attr}).ToString(); }
        if(attr == null) { attr = "0,0"; }
        if(attr != null) { anchor = attr; anchorExists = true; }
    }
Ejemplo n.º 12
0
    public PUMovie(
			bool hasAlpha,
			bool looping,
			string resourcePath,
			string shader,
			cVector2 anchor,
			cColor color,
			cRect bounds,
			cVector3 rotation,
			bool hidden,
			float lastY,
			float lastX,
			int renderQueueOffset,
			bool clipDepth,
			bool clipStencil,
			string title,
			string tag,
			string tag1,
			string tag2,
			string tag3,
			string tag4,
			string tag5,
			string tag6 )
        : this()
    {
        this.hasAlpha = hasAlpha;
        this.hasAlphaExists = true;

        this.looping = looping;
        this.loopingExists = true;

        this.resourcePath = resourcePath;
        this.resourcePathExists = true;

        this.shader = shader;
        this.shaderExists = true;

        this.anchor = anchor;
        this.anchorExists = true;

        this.color = color;
        this.colorExists = true;

        this.bounds = bounds;
        this.boundsExists = true;

        this.rotation = rotation;
        this.rotationExists = true;

        this.hidden = hidden;
        this.hiddenExists = true;

        this.lastY = lastY;
        this.lastYExists = true;

        this.lastX = lastX;
        this.lastXExists = true;

        this.renderQueueOffset = renderQueueOffset;
        this.renderQueueOffsetExists = true;

        this.clipDepth = clipDepth;
        this.clipDepthExists = true;

        this.clipStencil = clipStencil;
        this.clipStencilExists = true;

        this.title = title;
        this.titleExists = true;

        this.tag = tag;
        this.tagExists = true;

        this.tag1 = tag1;
        this.tag1Exists = true;

        this.tag2 = tag2;
        this.tag2Exists = true;

        this.tag3 = tag3;
        this.tag3Exists = true;

        this.tag4 = tag4;
        this.tag4Exists = true;

        this.tag5 = tag5;
        this.tag5Exists = true;

        this.tag6 = tag6;
        this.tag6Exists = true;
    }
Ejemplo n.º 13
0
 public void SetShadowColor(cColor v)
 {
     shadowColor = v; shadowColorExists = true;
 }
Ejemplo n.º 14
0
    public override void gaxb_load(XmlReader reader, object _parent, Hashtable args)
    {
        base.gaxb_load(reader, _parent, args);

        if(reader == null && _parent == null)
            return;

        parent = _parent;

        if(this.GetType() == typeof( PULabel ))
        {
            gaxb_addToParent();
        }

        xmlns = reader.GetAttribute("xmlns");

        string attr;
        attr = reader.GetAttribute("shader");
        if(attr != null && planetOverride != null) { attr = processStringMethod.Invoke(null, new [] {_parent, attr}).ToString(); }
        if(attr != null) { shader = attr; shaderExists = true; }

        attr = reader.GetAttribute("font");
        if(attr != null && planetOverride != null) { attr = processStringMethod.Invoke(null, new [] {_parent, attr}).ToString(); }
        if(attr != null) { font = attr; fontExists = true; }

        attr = reader.GetAttribute("fontSize");
        if(attr != null && planetOverride != null) { attr = processStringMethod.Invoke(null, new [] {_parent, attr}).ToString(); }
        if(attr == null) { attr = "12"; }
        if(attr != null) { fontSize = int.Parse(attr); fontSizeExists = true; }

        attr = reader.GetAttribute("alignment");
        if(attr != null && planetOverride != null) { attr = processStringMethod.Invoke(null, new [] {_parent, attr}).ToString(); }
        if(attr == null) { attr = "center"; }
        if(attr != null) { alignment = (PlanetUnity.LabelAlignment)System.Enum.Parse(typeof(PlanetUnity.LabelAlignment), attr); alignmentExists = true; }

        attr = reader.GetAttribute("textColor");
        if(attr != null && planetOverride != null) { attr = processStringMethod.Invoke(null, new [] {_parent, attr}).ToString(); }
        if(attr == null) { attr = "0,0,0,1"; }
        if(attr != null) { textColor = attr; textColorExists = true; }

        attr = reader.GetAttribute("value");
        if(attr != null && planetOverride != null) { attr = processStringMethod.Invoke(null, new [] {_parent, attr}).ToString(); }
        if(attr != null) { value = attr; valueExists = true; }

        attr = reader.GetAttribute("shadowOffset");
        if(attr != null && planetOverride != null) { attr = processStringMethod.Invoke(null, new [] {_parent, attr}).ToString(); }
        if(attr != null) { shadowOffset = attr; shadowOffsetExists = true; }

        attr = reader.GetAttribute("shadowColor");
        if(attr != null && planetOverride != null) { attr = processStringMethod.Invoke(null, new [] {_parent, attr}).ToString(); }
        if(attr != null) { shadowColor = attr; shadowColorExists = true; }
    }
Ejemplo n.º 15
0
    public override void gaxb_load(XmlReader reader, object _parent, Hashtable args)
    {
        base.gaxb_load(reader, _parent, args);

        if(reader == null && _parent == null)
            return;

        parent = _parent;

        if(this.GetType() == typeof( PUMovie ))
        {
            gaxb_addToParent();
        }

        xmlns = reader.GetAttribute("xmlns");

        string attr;
        attr = reader.GetAttribute("hasAlpha");
        if(attr != null && planetOverride != null) { attr = processStringMethod.Invoke(null, new [] {_parent, attr}).ToString(); }
        if(attr != null) { hasAlpha = bool.Parse(attr); hasAlphaExists = true; }

        attr = reader.GetAttribute("looping");
        if(attr != null && planetOverride != null) { attr = processStringMethod.Invoke(null, new [] {_parent, attr}).ToString(); }
        if(attr != null) { looping = bool.Parse(attr); loopingExists = true; }

        attr = reader.GetAttribute("resourcePath");
        if(attr != null && planetOverride != null) { attr = processStringMethod.Invoke(null, new [] {_parent, attr}).ToString(); }
        if(attr != null) { resourcePath = attr; resourcePathExists = true; }

        attr = reader.GetAttribute("shader");
        if(attr != null && planetOverride != null) { attr = processStringMethod.Invoke(null, new [] {_parent, attr}).ToString(); }
        if(attr != null) { shader = attr; shaderExists = true; }

        attr = reader.GetAttribute("anchor");
        if(attr != null && planetOverride != null) { attr = processStringMethod.Invoke(null, new [] {_parent, attr}).ToString(); }
        if(attr == null) { attr = "0,0"; }
        if(attr != null) { anchor = attr; anchorExists = true; }

        attr = reader.GetAttribute("color");
        if(attr != null && planetOverride != null) { attr = processStringMethod.Invoke(null, new [] {_parent, attr}).ToString(); }
        if(attr != null) { color = attr; colorExists = true; }
    }
Ejemplo n.º 16
0
 public void SetColor(cColor v)
 {
     color = v; colorExists = true;
 }
Ejemplo n.º 17
0
 public void SetTextColor(cColor v)
 {
     textColor = v; textColorExists = true;
 }
Ejemplo n.º 18
0
 public void SetSavedColor(cColor c)
 {
     savedColor = new Color (c.r, c.g, c.b, c.a);
 }
Ejemplo n.º 19
0
    public PULabel(
			string shader,
			string font,
			int fontSize,
			PlanetUnity.LabelAlignment alignment,
			cColor textColor,
			string value,
			cVector2 shadowOffset,
			cColor shadowColor,
			cRect bounds,
			cVector3 rotation,
			bool hidden,
			float lastY,
			float lastX,
			int renderQueueOffset,
			bool clipDepth,
			bool clipStencil,
			string title,
			string tag,
			string tag1,
			string tag2,
			string tag3,
			string tag4,
			string tag5,
			string tag6 )
        : this()
    {
        this.shader = shader;
        this.shaderExists = true;

        this.font = font;
        this.fontExists = true;

        this.fontSize = fontSize;
        this.fontSizeExists = true;

        this.alignment = alignment;
        this.alignmentExists = true;

        this.textColor = textColor;
        this.textColorExists = true;

        this.value = value;
        this.valueExists = true;

        this.shadowOffset = shadowOffset;
        this.shadowOffsetExists = true;

        this.shadowColor = shadowColor;
        this.shadowColorExists = true;

        this.bounds = bounds;
        this.boundsExists = true;

        this.rotation = rotation;
        this.rotationExists = true;

        this.hidden = hidden;
        this.hiddenExists = true;

        this.lastY = lastY;
        this.lastYExists = true;

        this.lastX = lastX;
        this.lastXExists = true;

        this.renderQueueOffset = renderQueueOffset;
        this.renderQueueOffsetExists = true;

        this.clipDepth = clipDepth;
        this.clipDepthExists = true;

        this.clipStencil = clipStencil;
        this.clipStencilExists = true;

        this.title = title;
        this.titleExists = true;

        this.tag = tag;
        this.tagExists = true;

        this.tag1 = tag1;
        this.tag1Exists = true;

        this.tag2 = tag2;
        this.tag2Exists = true;

        this.tag3 = tag3;
        this.tag3Exists = true;

        this.tag4 = tag4;
        this.tag4Exists = true;

        this.tag5 = tag5;
        this.tag5Exists = true;

        this.tag6 = tag6;
        this.tag6Exists = true;
    }