Exemplo n.º 1
0
    // Event Function -------------------------------------------------------------------

    // -----------------------------------------------------------------------------------
    GUIContent[] GetGizmoContents()
    {
        if (m_HcGizmoContents == null)
        {
            m_HcGizmoContents = FXMakerTooltip.GetHcGizmo();

            m_HcGizmoContents[0].image = (m_nGizmoTypeIndex == 0) ? m_iconHandActive   : m_iconHandNormal;
            m_HcGizmoContents[1].image = (m_nGizmoTypeIndex == 1) ? m_iconPosActive    : m_iconPosNormal;
            m_HcGizmoContents[2].image = (m_nGizmoTypeIndex == 2) ? m_iconRotActive    : m_iconRotNormal;
            m_HcGizmoContents[3].image = (m_nGizmoTypeIndex == 3) ? m_iconScaleActive  : m_iconScaleNormal;
            m_HcGizmoContents[4].image = (m_nGizmoTypeIndex == 4) ? m_iconNoneActive   : m_iconNoneNormal;
        }
        return(m_HcGizmoContents);
    }