LabelUtilityLabelUtilityWindow.cs 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. //using System;
  2. //using System.Collections;
  3. //using System.Collections.Generic;
  4. //using System.IO;
  5. //using System.Linq;
  6. //using System.Text.RegularExpressions;
  7. //using AtlasUtility;
  8. //using UnityEditor;
  9. //using UnityEngine;
  10. //
  11. //public class LabelUtilityWindow : EditorWindow
  12. //{
  13. // #region Config
  14. //
  15. // protected LabelUtility Instance;
  16. //
  17. // protected SerializedProperty Script;
  18. // protected SerializedProperty Languages;
  19. // protected SerializedProperty Prefabs;
  20. //
  21. // protected SerializedObject SerializedObject;
  22. //
  23. // #endregion
  24. //
  25. // [MenuItem("DashGame/LabelUtility")]
  26. // protected static void ShowWindow()
  27. // {
  28. // Type inspectorType = Type.GetType("UnityEditor.InspectorWindow,UnityEditor.dll");
  29. //
  30. // LabelUtilityWindow window = GetWindow<LabelUtilityWindow>(inspectorType);
  31. //
  32. // window.titleContent = new GUIContent("LabelUtility");
  33. // window.Show();
  34. // }
  35. //
  36. // private void OnEnable()
  37. // {
  38. // Instance = InstanceManager.SearchInstance<LabelUtility>();
  39. // SerializedObject = new SerializedObject(Instance);
  40. //
  41. // Script = SerializedObject.FindProperty("Script");
  42. // Languages = SerializedObject.FindProperty("Languages");
  43. // Prefabs = SerializedObject.FindProperty("Prefabs");
  44. // }
  45. //
  46. // private void OnGUI()
  47. // {
  48. // SerializedObject.Update();
  49. //
  50. // EditorGUILayout.PropertyField(Script, new GUIContent("Script"));
  51. // EditorGUILayout.PropertyField(Prefabs, new GUIContent("Prefabs"), true);
  52. // EditorGUILayout.PropertyField(Languages, new GUIContent("Languages"), true);
  53. //
  54. // if (GUILayout.Button("ClearLabels"))
  55. // {
  56. // Instance.ClearLabels(true);
  57. // }
  58. //
  59. // if (GUILayout.Button("CreateLabelFromPrefabs"))
  60. // {
  61. // Instance.CreateLabelFromPrefabs();
  62. // }
  63. //
  64. // if (GUILayout.Button("ClearAndCreateLabelFromPrefabs"))
  65. // {
  66. // Instance.CreateLabelFromPrefabs();
  67. // }
  68. //
  69. // if (GUILayout.Button("CreateLabelFromLanguage"))
  70. // {
  71. // Instance.CreateLabelFromLanguage();
  72. // }
  73. //
  74. // if (GUILayout.Button("ClearAndCreateLabelFromLanguage"))
  75. // {
  76. // Instance.CreateLabelFromLanguage();
  77. // }
  78. //
  79. // //if (GUILayout.Button("ReplaceLanguageLabels"))
  80. // //{
  81. // // Instance.ReplaceLanguageLabels();
  82. // //}
  83. //
  84. // SerializedObject.ApplyModifiedProperties();
  85. // }
  86. //}