Exemple #1
0
    private FileBrowserDataRow InstantiateFileRow(FileInfo fname)
    {
        GameObject         go   = NGUITools.AddChild(gridPanel.gameObject, data_row_prefab.gameObject);
        FileBrowserDataRow data = go.GetComponent <FileBrowserDataRow>();

        data.current_file = fname;
        data.browser      = this;
        data.Initialize();
        data_rows.Add(data);
        return(data);
    }
Exemple #2
0
    private FileBrowserDataRow InstantiateDirectoryRow(DirectoryInfo directory)
    {
        GameObject         go   = NGUITools.AddChild(gridPanel.gameObject, data_row_prefab.gameObject);
        FileBrowserDataRow data = go.GetComponent <FileBrowserDataRow>();

        data.current_directory = directory;
        data.browser           = this;
        data.Initialize();
        data_rows.Add(data);
        return(data);
    }