// ------------------------------------------------------------------------------------------- void winMenuChange(int id) { int nVirticlaCount = 0; if ((FXMakerLayout.m_bMinimizeAll || FXMakerLayout.m_bMinimizeTopMenu) == false) { // change button if (GUI.Button(FXMakerLayout.GetChildVerticalRect(FXMakerLayout.GetMenuChangeRect(), 0, 3, 0, 1), FXMakerTooltip.GetHcToolMain("go " + (m_nToolIndex == 0 ? "PrefabTool" : "Background")))) { SetActiveTool(m_nToolIndex == 0 ? 1 : 0); } // Capture if (GUI.Button(FXMakerLayout.GetChildVerticalRect(FXMakerLayout.GetMenuChangeRect(), 0, 3, 1, 1), FXMakerTooltip.GetHcToolMain("FullCapture", FXMakerCapture.GetCaptureScreenShotDir()))) { if (Input.GetMouseButtonUp(1)) { Debug.Log(FXMakerCapture.GetCaptureScreenShotDir()); EditorUtility.OpenWithDefaultApp(FXMakerCapture.GetCaptureScreenShotDir()); } else { FXMakerCapture.CaptureScreenShot(); } } nVirticlaCount = 2; } else { nVirticlaCount = 0; } // Reload Project Data if (GUI.Button(FXMakerLayout.GetInnerHorizontalRect(FXMakerLayout.GetChildVerticalRect(FXMakerLayout.GetMenuChangeRect(), 0, 1 + nVirticlaCount, nVirticlaCount, 1), 2, 0, 1), FXMakerTooltip.GetHcToolMain("LoadPrj"))) { LoadTool("Loaded Project"); } // Save Project Data FXMakerEffect fxMakerEffect = GetComponent <FXMakerEffect>(); bool bEnable = (fxMakerEffect != null && GetComponent <FXMakerEffect>().IsReadOnlyFolder() == 0); if (FXMakerLayout.GUIButton(FXMakerLayout.GetInnerHorizontalRect(FXMakerLayout.GetChildVerticalRect(FXMakerLayout.GetMenuChangeRect(), 0, 1 + nVirticlaCount, nVirticlaCount, 1), 2, 1, 1), FXMakerTooltip.GetHcToolMain("SavePrj"), bEnable)) { SaveTool("Saved Prjoect"); } SaveTooltip(); }