public UIStaticButton(float xStart, float yStart, float xWidth, float yHeight, UIComponentGroup parentComponentGroup, UILayoutType layoutType, UIAnchorLocation anchorLocation, IUIButtonListener buttonListener) : this("", xStart, yStart, xWidth, yHeight, parentComponentGroup, layoutType, anchorLocation, buttonListener) { SetName(Id.ToString()); }
public UIStaticButton(string componentName, float xStart, float yStart, float xWidth, float yHeight, UIComponentGroup parentComponentGroup, UILayoutType layoutType, UIAnchorLocation anchorLocation, IUIButtonListener buttonListener) : base(componentName, xStart, yStart, xWidth, yHeight, parentComponentGroup, layoutType, anchorLocation, buttonListener) { m_hitBox = new UIButtonHitBox(xStart, yStart, xWidth, yHeight, this, layoutType, anchorLocation); }
public UIButton(string componentName, float xStart, float yStart, float xWidth, float yHeight, UIComponentGroup parentComponentGroup, UILayoutType layoutType, UIAnchorLocation anchorLocation, IUIButtonListener buttonListener) : base(componentName, xStart, yStart, xWidth, yHeight, parentComponentGroup, layoutType, anchorLocation) { m_componentType = UIComponentType.BUTTON; if (null == buttonListener) m_buttonListener = new UIButtonListenerDoNothing(); else m_buttonListener = buttonListener; }
public void AddButtonListener(IUIButtonListener buttonListener) { m_buttonListener = buttonListener; }