public override void gaxb_load(TBXMLElement element, object _parent, Hashtable args)
    {
        base.gaxb_load(element, _parent, args);

        if (element == null && _parent == null)
        {
            return;
        }

        parent = _parent;

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

        //xmlns = element.GetAttribute("xmlns");

        raw_systemName    = element.GetAttribute("systemName");
        raw_limitToInside = element.GetAttribute("limitToInside");
        raw_emitMode      = element.GetAttribute("emitMode");
        raw_adjustToFPS   = element.GetAttribute("adjustToFPS");
        raw_customScale   = element.GetAttribute("customScale");
        raw_imageMaskPath = element.GetAttribute("imageMaskPath");
        gaxb_loadattrs();
    }
示例#2
0
    public override void gaxb_load(TBXMLElement element, object _parent, Hashtable args)
    {
        if (stringToAnchorLookup == null)
        {
            stringToAnchorLookup = new Dictionary <string, Vector4> ();

            stringToAnchorLookup.Add("top,left", new Vector4(0, 1, 0, 1));
            stringToAnchorLookup.Add("top,center", new Vector4(0.5f, 1, 0.5f, 1));
            stringToAnchorLookup.Add("top,right", new Vector4(1, 1, 1, 1));
            stringToAnchorLookup.Add("top,stretch", new Vector4(0, 1, 1, 1));

            stringToAnchorLookup.Add("middle,left", new Vector4(0, 0.5f, 0, 0.5f));
            stringToAnchorLookup.Add("middle,center", new Vector4(0.5f, 0.5f, 0.5f, 0.5f));
            stringToAnchorLookup.Add("middle,right", new Vector4(1, 0.5f, 1, 0.5f));
            stringToAnchorLookup.Add("middle,stretch", new Vector4(0, 0.5f, 1, 0.5f));

            stringToAnchorLookup.Add("bottom,left", new Vector4(0, 0, 0, 0));
            stringToAnchorLookup.Add("bottom,center", new Vector4(0.5f, 0, 0.5f, 0));
            stringToAnchorLookup.Add("bottom,right", new Vector4(1, 0, 1, 0));
            stringToAnchorLookup.Add("bottom,stretch", new Vector4(0, 0, 1, 0));

            stringToAnchorLookup.Add("stretch,left", new Vector4(0, 0, 0, 1));
            stringToAnchorLookup.Add("stretch,center", new Vector4(0.5f, 0, 0.5f, 1));
            stringToAnchorLookup.Add("stretch,right", new Vector4(1, 0, 1, 1));
            stringToAnchorLookup.Add("stretch,stretch", new Vector4(0, 0, 1, 1));
        }

        base.gaxb_load(element, _parent, args);
    }
    public override void gaxb_load(TBXMLElement element, object _parent, Hashtable args)
    {
        base.gaxb_load(element, _parent, args);

        if (element == null && _parent == null)
        {
            return;
        }

        parent = _parent;

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

        //xmlns = element.GetAttribute("xmlns");

        raw_pressedResourcePath     = element.GetAttribute("pressedResourcePath");
        raw_highlightedResourcePath = element.GetAttribute("highlightedResourcePath");
        raw_disabledResourcePath    = element.GetAttribute("disabledResourcePath");
        raw_onTouchUp   = element.GetAttribute("onTouchUp");
        raw_onTouchDown = element.GetAttribute("onTouchDown");
        gaxb_loadattrs();
    }
    public override void gaxb_load(TBXMLElement element, object _parent, Hashtable args)
    {
        base.gaxb_load(element, _parent, args);

        if (element == null && _parent == null)
        {
            return;
        }

        parent = _parent;

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

        //xmlns = element.GetAttribute("xmlns");

        raw_cellSize       = element.GetAttribute("cellSize");
        raw_spacing        = element.GetAttribute("spacing");
        raw_startCorner    = element.GetAttribute("startCorner");
        raw_startAxis      = element.GetAttribute("startAxis");
        raw_childAlignment = element.GetAttribute("childAlignment");
        raw_fixedRows      = element.GetAttribute("fixedRows");
        raw_fixedColumns   = element.GetAttribute("fixedColumns");
        gaxb_loadattrs();
    }
示例#5
0
    public virtual void gaxb_load(TBXMLElement element, object _parent, Hashtable args)
    {
        if (element == null && _parent == null)
        {
            return;
        }

        parent = _parent;

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

        //xmlns = element.GetAttribute("xmlns");

        raw_title = element.GetAttribute("title");
        raw_tag   = element.GetAttribute("tag");
        raw_tag1  = element.GetAttribute("tag1");
        raw_tag2  = element.GetAttribute("tag2");
        raw_tag3  = element.GetAttribute("tag3");
        raw_tag4  = element.GetAttribute("tag4");
        raw_tag5  = element.GetAttribute("tag5");
        raw_tag6  = element.GetAttribute("tag6");
        gaxb_loadattrs();
    }
示例#6
0
    public override void gaxb_load(TBXMLElement element, object _parent, Hashtable args)
    {
        base.gaxb_load(element, _parent, args);

        if (element == null && _parent == null)
        {
            return;
        }

        parent = _parent;

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

        //xmlns = element.GetAttribute("xmlns");

        raw_font        = element.GetAttribute("font");
        raw_fontSize    = element.GetAttribute("fontSize");
        raw_fontStyle   = element.GetAttribute("fontStyle");
        raw_fontColor   = element.GetAttribute("fontColor");
        raw_lineSpacing = element.GetAttribute("lineSpacing");
        raw_alignment   = element.GetAttribute("alignment");
        raw_value       = element.GetAttribute("value");
        raw_sizeToFit   = element.GetAttribute("sizeToFit");
        raw_maxFontSize = element.GetAttribute("maxFontSize");
        raw_minFontSize = element.GetAttribute("minFontSize");
        raw_vOverflow   = element.GetAttribute("vOverflow");
        raw_hOverflow   = element.GetAttribute("hOverflow");
        raw_onLinkClick = element.GetAttribute("onLinkClick");
        gaxb_loadattrs();
    }
    public override void gaxb_load(TBXMLElement element, object _parent, Hashtable args)
    {
        base.gaxb_load(element, _parent, args);

        if (element == null && _parent == null)
        {
            return;
        }

        parent = _parent;

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

        //xmlns = element.GetAttribute("xmlns");


        string attr;

        attr = element.GetAttribute("currentIndex");
        if (attr != null)
        {
            attr = PlanetUnityOverride.processString(_parent, attr);
        }
        if (attr == null)
        {
            attr = "0";
        }
        if (attr != null)
        {
            currentIndex = (int)float.Parse(attr);
        }
    }
示例#8
0
    public override void gaxb_load(TBXMLElement element, object _parent, Hashtable args)
    {
        base.gaxb_load(element, _parent, args);

        if (element == null && _parent == null)
        {
            return;
        }

        parent = _parent;

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

        //xmlns = element.GetAttribute("xmlns");


        string attr;

        attr = element.GetAttribute("color");
        if (attr != null)
        {
            attr = PlanetUnityOverride.processString(_parent, attr);
        }
        if (attr != null)
        {
            color = new Color().PUParse(attr);
        }
    }
示例#9
0
    public override void gaxb_load(TBXMLElement element, object _parent, Hashtable args)
    {
        base.gaxb_load(element, _parent, args);

        if (element == null && _parent == null)
        {
            return;
        }

        parent = _parent;

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

        //xmlns = element.GetAttribute("xmlns");

        raw_onValueChanged = element.GetAttribute("onValueChanged");
        raw_placeholder    = element.GetAttribute("placeholder");
        raw_limit          = element.GetAttribute("limit");
        raw_contentType    = element.GetAttribute("contentType");
        raw_lineType       = element.GetAttribute("lineType");
        raw_selectionColor = element.GetAttribute("selectionColor");
        gaxb_loadattrs();
    }
    public override void gaxb_load(TBXMLElement element, object _parent, Hashtable args)
    {
        base.gaxb_load(element, _parent, args);

        if (element == null && _parent == null)
        {
            return;
        }

        parent = _parent;

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

        //xmlns = element.GetAttribute("xmlns");


        string attr;

        attr = element.GetAttribute("onTouchUp");
        if (attr != null)
        {
            attr = PlanetUnityOverride.processString(_parent, attr);
        }
        if (attr != null)
        {
            onTouchUp = unescape(attr);
        }
    }
示例#11
0
    public override void gaxb_load(TBXMLElement element, object _parent, Hashtable args)
    {
        base.gaxb_load(element, _parent, args);

        if (element == null && _parent == null)
        {
            return;
        }

        parent = _parent;

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

        //xmlns = element.GetAttribute("xmlns");

        raw_handleResourcePath = element.GetAttribute("handleResourcePath");
        raw_handleSize         = element.GetAttribute("handleSize");
        raw_fillResourcePath   = element.GetAttribute("fillResourcePath");
        raw_onValueChanged     = element.GetAttribute("onValueChanged");
        raw_minValue           = element.GetAttribute("minValue");
        raw_maxValue           = element.GetAttribute("maxValue");
        raw_direction          = element.GetAttribute("direction");
        gaxb_loadattrs();
    }
    public override void gaxb_load(TBXMLElement element, object _parent, Hashtable args)
    {
        base.gaxb_load(element, _parent, args);

        if (element == null && _parent == null)
        {
            return;
        }

        parent = _parent;

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

        //xmlns = element.GetAttribute("xmlns");


        string attr;

        attr = element.GetAttribute("spacing");
        if (attr != null)
        {
            attr = PlanetUnityOverride.processString(_parent, attr);
        }
        if (attr == null)
        {
            attr = "0";
        }
        if (attr != null)
        {
            spacing = float.Parse(attr);
        }

        attr = element.GetAttribute("padding");
        if (attr != null)
        {
            attr = PlanetUnityOverride.processString(_parent, attr);
        }
        if (attr == null)
        {
            attr = "0,0,0,0";
        }
        if (attr != null)
        {
            padding = new Vector4().PUParse(attr);
        }

        attr = element.GetAttribute("childAlignment");
        if (attr != null)
        {
            attr = PlanetUnityOverride.processString(_parent, attr);
        }
        if (attr != null)
        {
            childAlignment = (PlanetUnity2.GridLayoutChildAlignment)Enum.Parse(typeof(PlanetUnity2.GridLayoutChildAlignment), attr);
        }
    }
示例#13
0
 public override void gaxb_load(TBXMLElement element, object _parent, Hashtable args)
 {
     base.gaxb_load(element, _parent, args);
     foreach (TBXMLAttribute attribute in element.attributes)
     {
         attributes [attribute.GetName(element.tbxml)] = attribute.GetValue(element.tbxml);
     }
 }
    public override void gaxb_load(TBXMLElement element, object _parent, Hashtable args)
    {
        base.gaxb_load(element, _parent, args);

        if (element == null && _parent == null)
        {
            return;
        }

        parent = _parent;

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

        //xmlns = element.GetAttribute("xmlns");


        string attr;

        attr = element.GetAttribute("heuristic");
        if (attr != null)
        {
            attr = PlanetUnityOverride.processString(_parent, attr);
        }
        if (attr == null)
        {
            attr = "RectBottomLeftRule";
        }
        if (attr != null)
        {
            heuristic = (PlanetUnity2.GridTableHeuristic)Enum.Parse(typeof(PlanetUnity2.GridTableHeuristic), attr);
        }

        attr = element.GetAttribute("expandToFill");
        if (attr != null)
        {
            attr = PlanetUnityOverride.processString(_parent, attr);
        }
        if (attr == null)
        {
            attr = "true";
        }
        if (attr != null)
        {
            expandToFill = bool.Parse(attr);
        }
    }
示例#15
0
    public override void gaxb_load(TBXMLElement element, object _parent, Hashtable args)
    {
        base.gaxb_load(element, _parent, args);

        if (element == null && _parent == null)
        {
            return;
        }

        parent = _parent;

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

        //xmlns = element.GetAttribute("xmlns");


        string attr;

        attr = element.GetAttribute("contentSize");
        if (attr != null)
        {
            attr = PlanetUnityOverride.processString(_parent, attr);
        }
        if (attr == null)
        {
            attr = "0,0";
        }
        if (attr != null)
        {
            contentSize = new Vector2().PUParse(attr);
        }

        attr = element.GetAttribute("mode");
        if (attr != null)
        {
            attr = PlanetUnityOverride.processString(_parent, attr);
        }
        if (attr == null)
        {
            attr = "FitInParent";
        }
        if (attr != null)
        {
            mode = (PlanetUnity2.AspectFitMode)Enum.Parse(typeof(PlanetUnity2.AspectFitMode), attr);
        }
    }
示例#16
0
    public virtual void gaxb_load(TBXMLElement element, object _parent, Hashtable args)
    {
        if (element == null && _parent == null)
        {
            return;
        }

        parent = _parent;

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

        //xmlns = element.GetAttribute("xmlns");
    }
示例#17
0
    public override void gaxb_load(TBXMLElement element, object _parent, Hashtable args)
    {
        base.gaxb_load(element, _parent, args);

        if (element == null && _parent == null)
        {
            return;
        }

        parent = _parent;

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

        //xmlns = element.GetAttribute("xmlns");


        string attr;

        attr = element.GetAttribute("class");
        if (attr != null)
        {
            attr = PlanetUnityOverride.processString(_parent, attr);
        }
        if (attr != null)
        {
            _class = unescape(attr);
        }

        attr = element.GetAttribute("singleton");
        if (attr != null)
        {
            attr = PlanetUnityOverride.processString(_parent, attr);
        }
        if (attr == null)
        {
            attr = "false";
        }
        if (attr != null)
        {
            singleton = bool.Parse(attr);
        }
    }
示例#18
0
    public override void gaxb_load(TBXMLElement element, object _parent, Hashtable args)
    {
        base.gaxb_load(element, _parent, args);

        if (element == null && _parent == null)
        {
            return;
        }

        parent = _parent;

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

        //xmlns = element.GetAttribute("xmlns");
    }
示例#19
0
    public override void gaxb_final(TBXMLElement element, object _parent, Hashtable args)
    {
        base.gaxb_final(element, _parent, args);

        string attrib;

        if (element != null)
        {
            attrib = element.GetAttribute("regexValidation");
            if (attrib != null)
            {
                regexValidation = attrib;
            }
        }

        ScheduleForStart();
        ScheduleForUpdate();
    }
示例#20
0
    public override void gaxb_load(TBXMLElement element, object _parent, Hashtable args)
    {
        base.gaxb_load(element, _parent, args);

        if (element == null && _parent == null)
        {
            return;
        }

        parent = _parent;

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

        //xmlns = element.GetAttribute("xmlns");

        raw_onTouchUp = element.GetAttribute("onTouchUp");
        gaxb_loadattrs();
    }
示例#21
0
    public override void gaxb_load(TBXMLElement element, object _parent, Hashtable args)
    {
        base.gaxb_load(element, _parent, args);

        if (element == null && _parent == null)
        {
            return;
        }

        parent = _parent;

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

        //xmlns = element.GetAttribute("xmlns");

        raw_currentIndex = element.GetAttribute("currentIndex");
        gaxb_loadattrs();
    }
示例#22
0
    public override void gaxb_load(TBXMLElement element, object _parent, Hashtable args)
    {
        base.gaxb_load(element, _parent, args);

        if (element == null && _parent == null)
        {
            return;
        }

        parent = _parent;

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

        //xmlns = element.GetAttribute("xmlns");

        raw_contentSize = element.GetAttribute("contentSize");
        raw_mode        = element.GetAttribute("mode");
        gaxb_loadattrs();
    }
示例#23
0
    public override void gaxb_load(TBXMLElement element, object _parent, Hashtable args)
    {
        base.gaxb_load(element, _parent, args);

        if (element == null && _parent == null)
        {
            return;
        }

        parent = _parent;

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

        //xmlns = element.GetAttribute("xmlns");

        raw_heuristic    = element.GetAttribute("heuristic");
        raw_expandToFill = element.GetAttribute("expandToFill");
        gaxb_loadattrs();
    }
示例#24
0
    public override void gaxb_load(TBXMLElement element, object _parent, Hashtable args)
    {
        base.gaxb_load(element, _parent, args);

        if (element == null && _parent == null)
        {
            return;
        }

        parent = _parent;

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

        //xmlns = element.GetAttribute("xmlns");

        raw__class    = element.GetAttribute("class");
        raw_singleton = element.GetAttribute("singleton");
        gaxb_loadattrs();
    }
示例#25
0
    public override void gaxb_load(TBXMLElement element, object _parent, Hashtable args)
    {
        base.gaxb_load(element, _parent, args);

        if (element == null && _parent == null)
        {
            return;
        }

        parent = _parent;

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

        //xmlns = element.GetAttribute("xmlns");

        raw_key   = element.GetAttribute("key");
        raw_value = element.GetAttribute("value");
        gaxb_loadattrs();
    }
示例#26
0
    public override void gaxb_load(TBXMLElement element, object _parent, Hashtable args)
    {
        base.gaxb_load(element, _parent, args);

        if (element == null && _parent == null)
        {
            return;
        }

        parent = _parent;

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

        //xmlns = element.GetAttribute("xmlns");

        raw_bounds          = element.GetAttribute("bounds");
        raw_position        = element.GetAttribute("position");
        raw_size            = element.GetAttribute("size");
        raw_rotation        = element.GetAttribute("rotation");
        raw_scale           = element.GetAttribute("scale");
        raw_pivot           = element.GetAttribute("pivot");
        raw_anchor          = element.GetAttribute("anchor");
        raw_active          = element.GetAttribute("active");
        raw_rectMask2D      = element.GetAttribute("rectMask2D");
        raw_mask            = element.GetAttribute("mask");
        raw_showMaskGraphic = element.GetAttribute("showMaskGraphic");
        raw_maskInset       = element.GetAttribute("maskInset");
        raw_outline         = element.GetAttribute("outline");
        raw_lastY           = element.GetAttribute("lastY");
        raw_lastX           = element.GetAttribute("lastX");
        raw_shader          = element.GetAttribute("shader");
        raw_ignoreMouse     = element.GetAttribute("ignoreMouse");
        raw_components      = element.GetAttribute("components");
        gaxb_loadattrs();
    }
示例#27
0
    public override void gaxb_load(TBXMLElement element, object _parent, Hashtable args)
    {
        base.gaxb_load(element, _parent, args);

        if (element == null && _parent == null)
        {
            return;
        }

        parent = _parent;

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

        //xmlns = element.GetAttribute("xmlns");

        raw_renderMode    = element.GetAttribute("renderMode");
        raw_pixelPerfect  = element.GetAttribute("pixelPerfect");
        raw_planeDistance = element.GetAttribute("planeDistance");
        gaxb_loadattrs();
    }
示例#28
0
    public override void gaxb_load(TBXMLElement element, object _parent, Hashtable args)
    {
        base.gaxb_load(element, _parent, args);

        if (element == null && _parent == null)
        {
            return;
        }

        parent = _parent;

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

        //xmlns = element.GetAttribute("xmlns");

        raw_resourcePath = element.GetAttribute("resourcePath");
        raw_color        = element.GetAttribute("color");
        raw_type         = element.GetAttribute("type");
        gaxb_loadattrs();
    }
示例#29
0
    public override void gaxb_load(TBXMLElement element, object _parent, Hashtable args)
    {
        base.gaxb_load(element, _parent, args);

        if (element == null && _parent == null)
        {
            return;
        }

        parent = _parent;

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

        //xmlns = element.GetAttribute("xmlns");

        raw_spacing        = element.GetAttribute("spacing");
        raw_padding        = element.GetAttribute("padding");
        raw_childAlignment = element.GetAttribute("childAlignment");
        gaxb_loadattrs();
    }
示例#30
0
    public override void gaxb_load(TBXMLElement element, object _parent, Hashtable args)
    {
        base.gaxb_load(element, _parent, args);

        if (element == null && _parent == null)
        {
            return;
        }

        parent = _parent;

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

        //xmlns = element.GetAttribute("xmlns");

        raw_inertia                = element.GetAttribute("inertia");
        raw_horizontal             = element.GetAttribute("horizontal");
        raw_vertical               = element.GetAttribute("vertical");
        raw_scrollWheelSensitivity = element.GetAttribute("scrollWheelSensitivity");
        gaxb_loadattrs();
    }