Esempio n. 1
0
        public static InfoLogGroup Create(string tag = "")
        {
            InfoLogGroup created = ScriptableObject.CreateInstance <InfoLogGroup>();

            created.groupTag = tag;
            created.additionalDescription = "";
            created.entries = new List <InfoLogEntry>();
            return(created);
        }
Esempio n. 2
0
        void OnAddNewGroupButtonClicked()
        {
            InfoLogGroup newGroup = InfoLogGroup.Create("New Group");

            AddSubAsset(newGroup, databaseCache);
            databaseCache.entryGroupList.Add(newGroup);
            CacheGroupTags();

            selectedGroupIndex = databaseCache.entryGroupList.Count - 1;
            LoadInfoGroup(newGroup);

            DrawSideBar_Group = DrawSideBar_Groups_Normal;
            DrawEditor        = DrawEditor_Normal;

            SaveDatabase();
        }
Esempio n. 3
0
 ///Load entry content into Editor block, does not thing to do with (int) selected.
 void LoadInfoGroup(InfoLogGroup group)
 {
     infoGroupCache    = group;
     _listAdaptor      = new GenericListAdaptor <InfoLogEntry>(infoGroupCache.entries, DrawListEntry, 16f);
     DrawSideBar_Entry = DrawSideBar_Entries_Normal;
 }