FairyGUI.GTextInput.Setup_BeforeAdd C# (CSharp) Method

Setup_BeforeAdd() public method

public Setup_BeforeAdd ( Utils xml ) : void
xml Utils
return void
        public override void Setup_BeforeAdd(Utils.XML xml)
        {
            base.Setup_BeforeAdd(xml);

            string str = xml.GetAttribute("prompt");
            if (str != null)
                inputTextField.promptText = str;
            inputTextField.displayAsPassword = xml.GetAttributeBool("password", false);
            inputTextField.restrict = xml.GetAttribute("restrict");
            inputTextField.maxLength = xml.GetAttributeInt("maxLength", int.MaxValue);
            inputTextField.keyboardType = xml.GetAttributeInt("keyboardType");
        }

Usage Example

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