FairyGUI.Utils.HtmlElement.GetString C# (CSharp) Method

GetString() public method

public GetString ( string attrName ) : string
attrName string
return string
        public string GetString(string attrName)
        {
            return GetString(attrName, null);
        }

Same methods

HtmlElement::GetString ( string attrName, string defValue ) : string

Usage Example

Beispiel #1
0
        public HtmlLink()
        {
            _shape = new SelectionShape();
            _shape.gameObject.name = "HtmlLink";

            _clickHandler = (EventContext context) =>
            {
                _owner.onClickLink.BubbleCall(_element.GetString("href"));
            };
            _rolloverHandler = (EventContext context) =>
            {
                context.CaptureTouch();
                if (_owner.htmlParseOptions.linkHoverBgColor.a > 0)
                {
                    _shape.color = _owner.htmlParseOptions.linkHoverBgColor;
                }
            };
            _rolloutHandler = () =>
            {
                if (_owner.htmlParseOptions.linkHoverBgColor.a > 0)
                {
                    _shape.color = _owner.htmlParseOptions.linkBgColor;
                }
            };
        }
All Usage Examples Of FairyGUI.Utils.HtmlElement::GetString