コード例 #1
0
 public static void EditorAssetBundleNameMenuItem_QueryAssetBundleAssetDiskMapingDataWindow()
 {
     if (Selection.activeObject != null)
     {
         EditorSelectionAssetDiskMaping asset = new EditorSelectionAssetDiskMaping(AssetDatabase.GetAssetPath(Selection.activeObject));
         asset.Resolve();
         string log = string.Format("{0}=>fileId:{1} folderId:{2}", Selection.activeObject, asset.fileId, asset.folderId);
         EditorStrayFogApplication.CopyToClipboard(log);
         EditorStrayFogApplication.MenuItemQuickDisplayDialogSucceed(mcQueryAssetBundleAssetDiskMapingData);
         UnityEngine.Debug.Log(log);
     }
 }
コード例 #2
0
 /// <summary>
 /// DrawBrower
 /// </summary>
 void DrawBrower()
 {
     EditorGUILayout.LabelField("XlsSchemaToSqlite Folders:");
     mConfig.DrawGUI();
     EditorGUILayout.Separator();
     EditorGUILayout.HelpBox(EditorStrayFogXLS.msrSeparateDescription, MessageType.None);
     if (GUILayout.Button("SQLiteDataType Code Sequence"))
     {
         EditorStrayFogApplication.CopyToClipboard(EditorStrayFogXLS.msrSQLiteDataTypeCodeSequence);
         Debug.Log(EditorStrayFogXLS.msrSQLiteDataTypeCodeSequence);
     }
     EditorGUILayout.Separator();
     if (GUILayout.Button("Load XLS"))
     {
         mXlsTableSchemas = EditorStrayFogXLS.ReadXlsSchema();
     }
     EditorGUILayout.Separator();
 }
コード例 #3
0
 /// <summary>
 /// 绘制脚本宏定义符
 /// </summary>
 /// <param name="_macroDefineSymbol">宏定义符</param>
 public void EditorGUILayout_DrawMacroDefineSymbol(Dictionary <int, EditorMacroDefineSymbol> _macroDefineSymbol)
 {
     foreach (KeyValuePair <int, EditorMacroDefineSymbol> macro in _macroDefineSymbol)
     {
         EditorGUILayout.LabelField(string.Format("【{0}】{1}", macro.Value.type.Name, macro.Value.alias.alias, GUILayout.ExpandWidth(false)));
         foreach (EditorMacroDefineSymbol_Item define in macro.Value.defineMaping.Values)
         {
             EditorGUILayout.BeginHorizontal();
             define.isChecked = EditorGUILayout.ToggleLeft(
                 string.Format("{0}【{1}】", define.name, define.alias.alias), define.isChecked);
             if (GUILayout.Button(string.Format("Copy 【{0}】Define", define.alias.alias, GUILayout.ExpandWidth(false))))
             {
                 EditorStrayFogApplication.CopyToClipboard(define.name);
                 EditorUtility.DisplayDialog("Copy Define", "Copy Define " + define.name, "OK");
             }
             EditorGUILayout.EndHorizontal();
         }
         EditorStrayFogUtility.guiLayout.DrawSeparator();
     }
 }
コード例 #4
0
 static void AutoGUID(MenuCommand menuCommand)
 {
     EditorStrayFogApplication.CopyToClipboard(Guid.NewGuid().ToString().UniqueHashCode().ToString());
     EditorUtility.DisplayDialog("Auto GUID", "New GUID CopyToClipboard.", "OK");
 }