also set the color

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2019-05-12 21:44:05 -07:00
parent e5158c4ade
commit 12e37b4d1f
1 changed files with 3 additions and 0 deletions

View File

@ -28,6 +28,9 @@ func (mh *TableData) CellValue(m *ui.TableModel, row, column int) ui.TableValue
if (column == mh.Rows[row].Human[humanID].TextID) {
return mh.Rows[row].Human[humanID].Text
}
if (column == mh.Rows[row].Human[humanID].ColorID) {
return mh.Rows[row].Human[humanID].Color
}
return mh.Rows[row].Cells[column].Value
}