public UIButtonHitBox(float xStart,
		                      float yStart,
		                      float xWidth,
		                      float yHeight,
		                      UIButton parentComponentGroup,
		                      UILayoutType layoutType,
		                      UIAnchorLocation anchorLocation)
        {
            m_anchor = new UIAnchor(anchorLocation, xStart, yStart, xWidth, yHeight);

            m_parentComponentGroup = parentComponentGroup;
        }
Esempio n. 2
0
        protected UIComponent(string componentName,
		                      float xStart,
		                      float yStart,
		                      float xWidth,
		                      float yHeight,
		                      UIComponentGroup parentComponentGroup,
		                      UILayoutType layoutType,
		                      UIAnchorLocation anchorLocation)
        {
            m_componentId = UI.GenerateId();
            m_componentName = componentName;

            m_anchor = new UIAnchor(anchorLocation, xStart, yStart, xWidth, yHeight);
            m_layoutType = layoutType;
            m_parentComponentGroup = parentComponentGroup;
        }