FairyGUI.GSlider.Setup_AfterAdd C# (CSharp) Method

Setup_AfterAdd() public method

public Setup_AfterAdd ( XML cxml ) : void
cxml FairyGUI.Utils.XML
return void
        public override void Setup_AfterAdd(XML cxml)
        {
            base.Setup_AfterAdd(cxml);

            XML xml = cxml.GetNode("Slider");
            if (xml != null)
            {
                _value = xml.GetAttributeInt("value");
                _max = xml.GetAttributeInt("max");
            }
            Update();
        }

Usage Example

 static public int Setup_AfterAdd(IntPtr l)
 {
     try {
         FairyGUI.GSlider   self = (FairyGUI.GSlider)checkSelf(l);
         FairyGUI.Utils.XML a1;
         checkType(l, 2, out a1);
         self.Setup_AfterAdd(a1);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
All Usage Examples Of FairyGUI.GSlider::Setup_AfterAdd