示例#1
0
 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);
     }
 }
示例#3
0
 IEnumerator waitInitializationAndSetPicture(SheetObject sheet)
 {
     while (!canvasInitialized)
     {
         yield return(null);
     }
     canvas.setNewPicture(sheet.persistentFrontOutline, sheet.persistentBorderLayer);
 }
示例#4
0
    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);
    }
示例#5
0
 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);
     }
 }
示例#7
0
 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();
    }
示例#9
0
    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));
 }
示例#13
0
 public void onNewPictureOpen(SheetObject sheetObject)
 {
     string text= sheetObject.nameKey.Localized() + " | Colorus";
     vkc.callMethod("setTitle",text);
 }
示例#14
0
 void onSheetChangeListener(SheetObject obj)
 {
     StartCoroutine(changeSheetObjectThenReady(obj));
 }
 void sendEventNeedToOpenPicture(SheetObject so)
 {
     if (WorkspaceEventManager.instance.onPicIconeClick!=null)
         WorkspaceEventManager.instance.onPicIconeClick(so);
 }
示例#16
0
 void onPictureIconClickListener(SheetObject sheetObject)
 {
     PropertiesSingleton.instance.setSheet(sheetObject);
 }
示例#17
0
    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);
    }