public HtmlLink() { _shape = new SelectionShape(); _shape.gameObject.name = "HtmlLink"; _clickHandler = (EventContext context) => { _owner.BubbleEvent("onClickLink", _element.GetString("href")); }; _rolloverHandler = (EventContext context) => { if (_owner.htmlParseOptions.linkHoverBgColor.a > 0 && _shape != null) { _shape.color = _owner.htmlParseOptions.linkHoverBgColor; _shape.alpha = _shape.color.a; } }; _rolloutHandler = () => { if (_owner.htmlParseOptions.linkHoverBgColor.a > 0 && _shape != null) { _shape.color = _owner.htmlParseOptions.linkBgColor; _shape.alpha = _shape.color.a; } }; }
public HtmlLink() { _shape = new SelectionShape(); _clickHandler = (EventContext context) => { _owner.BubbleEvent("onClickLink", _element.GetString("href")); }; _rolloverHandler = (EventContext context) => { if (_owner.htmlParseOptions.linkHoverBgColor.A > 0) { _shape.color = _owner.htmlParseOptions.linkHoverBgColor; } }; _rolloutHandler = () => { if (_owner.htmlParseOptions.linkHoverBgColor.A > 0) { _shape.color = _owner.htmlParseOptions.linkBgColor; } }; }