public void onNewPictureOpen(SheetObject sheetObject) { string text= "Colorus | "+sheetObject.nameKey.Localized(); string eval="document.title=\"TEXT\";".Replace("TEXT",text); Debug2.LogDebug(" onNewPictureOpen evaluation eval=\n"+eval); Application.ExternalEval(eval); }
void sendEventNeedToOpenPicture(SheetObject so) { if (WorkspaceEventManager.instance.onPicIconeClick != null) { WorkspaceEventManager.instance.onPicIconeClick(so); } }
IEnumerator waitInitializationAndSetPicture(SheetObject sheet) { while (!canvasInitialized) { yield return(null); } canvas.setNewPicture(sheet.persistentFrontOutline, sheet.persistentBorderLayer); }
public void onNewPictureOpen(SheetObject sheetObject) { string text = "Colorus | " + sheetObject.nameKey.Localized(); string eval = "document.title=\"TEXT\";".Replace("TEXT", text); Debug2.LogDebug(" onNewPictureOpen evaluation eval=\n" + eval); Application.ExternalEval(eval); }
IEnumerator changeSheetObjectThenReady(SheetObject obj) { while (!ready || activeStrategy == null || !activeStrategy.isReady()) { yield return(new WaitForSeconds(0.1f)); } activeStrategy.onNewPictureOpen(obj); }
public void setSheet(SheetObject sheetObject) { if (_activeSheet != null) { _activeSheet.releaseTextures(); } _activeSheet = sheetObject; if (WorkspaceEventManager.instance.onSheetChange != null) { WorkspaceEventManager.instance.onSheetChange(sheetObject); } }
void onSheetChangeListener(SheetObject sheet) { if (canvasInitialized) { canvas.setNewPicture(sheet.persistentFrontOutline, sheet.persistentBorderLayer); canvas.canvasCamera.zoom(10000); } else { StartCoroutine(waitInitializationAndSetPicture(sheet)); } }
void OnWizardCreate() { string[] dirs = Directory.GetDirectories(texturePath); SheetList sl =ScriptableObjectUtility.CreateAssetAtPath<SheetList>("Songs",listDestination); SheetObject[] sheetArray = new SheetObject[dirs.Length]; for (int i = 0; i < dirs.Length; i++) { string name = new DirectoryInfo(dirs[i]).Name; Debug.Log("name = "+name); SheetObject so = ScriptableObjectUtility.CreateAssetAtPath<SheetObject> (name,objDestination); so.persistentBorderLayerPath = name+".border"; so.persistentFrontOutlinePath = name+".outline"; sheetArray[i]=so; EditorUtility.SetDirty(so); } sl.sheetList = sheetArray; EditorUtility.SetDirty(sl); AssetDatabase.SaveAssets(); }
void OnWizardCreate() { string[] dirs = Directory.GetDirectories(texturePath); SheetList sl = ScriptableObjectUtility.CreateAssetAtPath <SheetList>("Songs", listDestination); SheetObject[] sheetArray = new SheetObject[dirs.Length]; for (int i = 0; i < dirs.Length; i++) { string name = new DirectoryInfo(dirs[i]).Name; Debug.Log("name = " + name); SheetObject so = ScriptableObjectUtility.CreateAssetAtPath <SheetObject> (name, objDestination); so.persistentBorderLayerPath = name + ".border"; so.persistentFrontOutlinePath = name + ".outline"; sheetArray[i] = so; EditorUtility.SetDirty(so); } sl.sheetList = sheetArray; EditorUtility.SetDirty(sl); AssetDatabase.SaveAssets(); }
void onPictureIconClickListener(SheetObject sheetObject) { PropertiesSingleton.instance.setSheet( sheetObject); }
IEnumerator waitInitializationAndSetPicture(SheetObject sheet) { while (!canvasInitialized) yield return null; canvas.setNewPicture(sheet.persistentFrontOutline, sheet.persistentBorderLayer); }
void onSheetChangeListener(SheetObject sheet) { if (canvasInitialized){ canvas.setNewPicture(sheet.persistentFrontOutline, sheet.persistentBorderLayer); canvas.canvasCamera.zoom(10000); } else StartCoroutine(waitInitializationAndSetPicture(sheet)); }
public void onNewPictureOpen(SheetObject sheetObject) { string text= sheetObject.nameKey.Localized() + " | Colorus"; vkc.callMethod("setTitle",text); }
void onSheetChangeListener(SheetObject obj) { StartCoroutine(changeSheetObjectThenReady(obj)); }
void sendEventNeedToOpenPicture(SheetObject so) { if (WorkspaceEventManager.instance.onPicIconeClick!=null) WorkspaceEventManager.instance.onPicIconeClick(so); }
void onPictureIconClickListener(SheetObject sheetObject) { PropertiesSingleton.instance.setSheet(sheetObject); }
public void onNewPictureOpen(SheetObject sheetObject) { string text = "Colorus | " + sheetObject.nameKey.Localized(); MRUController.instance.callMailruByParams("mailru.app.utils.setTitle", text); }
public void onNewPictureOpen(SheetObject sheetObject) { string text = sheetObject.nameKey.Localized() + " | Colorus"; vkc.callMethod("setTitle", text); }