public DBC_EmotesTextData(DBCFile file) : base(file) { columns = new string[2]; columns[0] = "ID"; columns[1] = "Text"; }
public DBC_EmotesText(DBCFile file) : base(file) { columns = new string[19]; columns[0] = "ID"; columns[1] = "Name"; columns[2] = "EmoteID"; for (int i = 0; i < 16; i++) columns[3 + i] = "EmoteText" + (i + 1); }
private void ShowDBCFile(string path) { selectedDbcFile = new DBCFile(path); DataGridView view = UI_DBCTable; DBCFile file = selectedDbcFile; DBCTable table = file.Table; // Reset view.Columns.Clear(); for (int i = 0; i < table.getColumnCount(); i++) view.Columns.Add(table.getColumnName(i), table.getColumnName(i)); foreach (DBCRecord record in table.getRecords()) view.Rows.Add(record.getValues()); }
private void UI_FileList_AfterSelect(object sender, TreeViewEventArgs e) { if (UI_FileList.SelectedNode != null && UI_FileList.SelectedNode.Tag is CASCFile) { selectedFile = null; selectedDbcFile = null; CASCFile cascFile = (CASCFile)UI_FileList.SelectedNode.Tag; string tempPath = Path.Combine(Constants.TEMP_DIRECTORY, cascFile.FullName); selectedFile = cascFile; if (!File.Exists(tempPath)) { extractRunner = new RunnerExtractItem(cascFile); runnerID = extractRunner.runnerID; extractRunner.Begin(); loadingWindow = new LoadingWindow("Loading DBC file: " + cascFile.Name, "Life advice: Avoid dragon's breath.", true, cancelCallback); loadingWindow.ShowDialog(); } else { ShowDBCFile(tempPath); } } }