예제 #1
0
        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());
        }
예제 #2
0
        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);
        }
예제 #3
0
        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;
        }
예제 #4
0
 public void AddButtonListener(IUIButtonListener buttonListener)
 {
     m_buttonListener = buttonListener;
 }