Exemplo n.º 1
0
 private void DrawTab(ConfigTabId tabId)
 {
     GUI.enabled = _configTabSelected != tabId;
     if (GUILayout.Button(tabId.ToString(), GUILayout.Width(110f)))
     {
         GUI.FocusControl(null);
         _configTabSelected = tabId;
         DatabaseEditorPrefs.SetConfigTab((int)_configTabSelected);
     }
     GUI.enabled = true;
 }
Exemplo n.º 2
0
        private void Save()
        {
            var saveDateTime = System.DateTime.Now.ToShortDateString() + " " + System.DateTime.Now.ToShortTimeString();

            Debug.Log($"Database saved {saveDateTime}");
            DatabaseEditorPrefs.SetLastSaveDateTime(saveDateTime);

            EditorUtility.SetDirty(_actorDataList);
            EditorUtility.SetDirty(_classDataList);
            EditorUtility.SetDirty(_skillDataList);
            EditorUtility.SetDirty(_itemDataList);
            EditorUtility.SetDirty(_weaponDataList);
            EditorUtility.SetDirty(_weaponTypeDataList);

            AssetDatabase.SaveAssets();
            AssetDatabase.Refresh();
        }
Exemplo n.º 3
0
 public void ChangeCoreTab(object coreTabId)
 {
     _clearFocusThisFrame = true;
     _coreTabSelected     = (CoreTabId)coreTabId;
     DatabaseEditorPrefs.SetCoreTab((int)_coreTabSelected);
 }