Exemplo n.º 1
0
    void Rename(int index)
    {
        var entry = levelData[index];

        FileRenamer.Show(entry.File, entry.Dialogue);
        FileRenamer.NormalCallback = delegate(FileInfo old, FileInfo newFile) {
            //Debug.Log("N");
            entry.File = newFile;
            entry.Name = Path.GetFileNameWithoutExtension(newFile.FullName);
        };
        FileRenamer.DialogueCallback = delegate(FileInfo old, FileInfo newFile) {
            //Debug.Log("N2");
            entry.Dialogue = newFile;
        };
        FileRenamer.FinalCallback = Save;
        this.Repaint();
        //	GUILayout.Window(index, new Rect(0, 0, 100, 100).Centered(), DoRename, "Rename");
        //}
    }