private void SetupInheritedRelationshipList()
 {
     serializedObject.ApplyModifiedProperties();
     m_inheritedRelationships     = InheritedRelationship.GetInheritedRelationships(m_member.factionDatabase, m_member.factionID);
     m_inheritedRelationshipsList = new ReorderableList(m_inheritedRelationships, typeof(Relationship), false, true, false, false);
     m_inheritedRelationshipsList.drawHeaderCallback  = OnDrawInheritedRelationshipsListHeader;
     m_inheritedRelationshipsList.drawElementCallback = OnDrawInheritedRelationshipsListElement;
 }
Пример #2
0
        private void SetupInheritedRelationshipList()
        {
            serializedObject.ApplyModifiedProperties();
            var factionID = m_factionList.serializedProperty.GetArrayElementAtIndex(m_factionList.index).FindPropertyRelative("id").intValue;

            m_inheritedRelationships            = InheritedRelationship.GetInheritedRelationships(target as FactionDatabase, factionID);
            m_factionInheritedRelationshipsList = new ReorderableList(m_inheritedRelationships, typeof(Relationship), false, true, false, false);
            m_factionInheritedRelationshipsList.drawHeaderCallback  = OnDrawInheritedRelationshipsListHeader;
            m_factionInheritedRelationshipsList.drawElementCallback = OnDrawInheritedRelationshipsListElement;
        }