Get() публичный Метод

public Get ( string attrName ) : object
attrName string
Результат object
Пример #1
0
        public void Create(RichTextField owner, HtmlElement element)
        {
            _owner   = owner;
            _element = element;

            if (comboBox == null)
            {
                return;
            }

            int width  = element.GetInt("width", 0);
            int height = element.GetInt("height", 0);

            if (width == 0)
            {
                width = comboBox.sourceWidth;
            }
            if (height == 0)
            {
                height = comboBox.sourceHeight;
            }

            comboBox.SetSize(width, height);
            comboBox.items  = (string[])element.Get("items");
            comboBox.values = (string[])element.Get("values");
            comboBox.value  = element.GetString("value");
        }
Пример #2
0
        public void Create(RichTextField owner, HtmlElement element)
        {
            _owner   = owner;
            _element = element;

            if (comboBox == null)
            {
                return;
            }

            comboBox.onChanged.Add(_changeHandler);

            int width  = element.GetInt("width", comboBox.sourceWidth);
            int height = element.GetInt("height", comboBox.sourceHeight);

            comboBox.SetSize(width, height);
            comboBox.items  = (string[])element.Get("items");
            comboBox.values = (string[])element.Get("values");
            comboBox.value  = element.GetString("value");
        }
Пример #3
0
 static public int Get(IntPtr l)
 {
     try {
         FairyGUI.Utils.HtmlElement self = (FairyGUI.Utils.HtmlElement)checkSelf(l);
         System.String a1;
         checkType(l, 2, out a1);
         var ret = self.Get(a1);
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
        public void Create(RichTextField owner, HtmlElement element)
        {
            _owner = owner;
            _element = element;

            if (comboBox == null)
                return;

            comboBox.onChanged.Add(_changeHandler);

            int width = element.GetInt("width", 0);
            int height = element.GetInt("height", 0);

            if (width == 0)
                width = comboBox.sourceWidth;
            if (height == 0)
                height = comboBox.sourceHeight;

            comboBox.SetSize(width, height);
            comboBox.items = (string[])element.Get("items");
            comboBox.values = (string[])element.Get("values");
            comboBox.value = element.GetString("value");
        }