public static void launch3DLibraryItem(string itemName) { if (ArchimatixEngine.currentModel == null) { AXEditorUtilities.createNewModel(itemName + " (AX)"); } ArchimatixEngine.establishPaths(); // AXParametricObject po = null; // po = ArchimatixEngine.library.getFirstItemByName(Regex.Replace(itemName, @"\s+", "")); // if (po != null) // { // po = Library.instantiateParametricObject (po.readIntoLibraryFromRelativeAXOBJPath); // SceneView.FrameLastActiveSceneView(); // } LibraryItem li = ArchimatixEngine.library.getLibraryItem(itemName); if (li != null) { Library.instantiateParametricObject(li.readIntoLibraryFromRelativeAXOBJPath); } }
void OnEnable() { if (ArchimatixEngine.library == null) { ArchimatixEngine.library = Library.loadLibraryMetadata(); } showFilters = new AnimBool(false, Repaint); showDetailItem = new AnimBool(false, Repaint); libraryScrollPosition = Vector2.zero; if (ArchimatixEngine.ArchimatixAssetPath == null) { ArchimatixEngine.establishPaths(); } bgTex = (Texture2D)AssetDatabase.LoadAssetAtPath(ArchimatixEngine.ArchimatixAssetPath + "/ui/GeneralIcons/zz_AXIcons-Shadow.png", typeof(Texture2D)); bgTexUp = (Texture2D)AssetDatabase.LoadAssetAtPath(ArchimatixEngine.ArchimatixAssetPath + "/ui/GeneralIcons/zz_AXIcons-ShadowUp.png", typeof(Texture2D)); //richLeftLabelStyle.wordWrap = true; }
public void OnEnable() { ArchimatixEngine.establishPaths(); AXEditorUtilities.loadNodeIcons(); infoIconTexture = (Texture2D)AssetDatabase.LoadAssetAtPath(ArchimatixEngine.ArchimatixAssetPath + "/ui/GeneralIcons/zz-AXMenuIcons-InfoIcon.png", typeof(Texture2D)); }
void OnEnable() { ArchimatixEngine.establishPaths(); // Is all in order with the Archimatix install? if (string.IsNullOrEmpty(ArchimatixEngine.pathChangelog)) { return; } pathImages = ArchimatixEngine.ArchimatixAssetPath + "/ui/StartupImages/"; string StartupImagesPrefix = "zz_AXStartup_"; //Debug.Log("AXStartupWindowProcessor SCREEN"); string versionColor = EditorGUIUtility.isProSkin ? "#ffffffee" : "#000000ee"; TextAsset changelogAsset = LoadAssetAt <TextAsset>(ArchimatixEngine.pathChangelog); if (changelogAsset == null) { return; } changelogText = changelogAsset.text; changelogText = Regex.Replace(changelogText, @"^[0-9].*", "<color=" + versionColor + "><size=13><b>Version $0</b></size></color>", RegexOptions.Multiline); changelogText = Regex.Replace(changelogText, @"^- (\w+:)", " <color=" + versionColor + ">$0</color>", RegexOptions.Multiline); headerPic = AssetDatabase.LoadAssetAtPath <Texture2D>(pathImages + StartupImagesPrefix + "EditorWindowBanner.jpg"); icon3DLibrary = LoadAssetAt <Texture2D>(pathImages + StartupImagesPrefix + "icon3DLibrary.jpg"); icon2DLibrary = LoadAssetAt <Texture2D>(pathImages + StartupImagesPrefix + "icon2DLibrary.jpg"); iconAXEditor = LoadAssetAt <Texture2D>(pathImages + StartupImagesPrefix + "iconEditor.jpg"); }
public static string getLibraryPath() { ArchimatixEngine.establishPaths(); return(Application.dataPath + "/" + ArchimatixEngine.ArchimatixAssetPath.Replace("Assets/", "") + "/Library/"); }