예제 #1
0
 public void SetScrollDirection(PlanetUnity.ScrollDirection v)
 {
     scrollDirection = v; scrollDirectionExists = true;
 }
예제 #2
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( PUScroll ))
        {
            gaxb_addToParent();
        }

        xmlns = reader.GetAttribute("xmlns");

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

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

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

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

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

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