diff options
| -rw-r--r-- | table.go | 3 | ||||
| -rw-r--r-- | tableCallbacks.go | 2 |
2 files changed, 3 insertions, 2 deletions
@@ -29,7 +29,8 @@ type RowData struct { // hmm. will this stand the test of time? type HumanCellData struct { Name string // what kind of row is this? - Text ui.TableString + // Text ui.TableString + Text string TextID int Color ui.TableColor ColorID int diff --git a/tableCallbacks.go b/tableCallbacks.go index 94d174a..59fb8f6 100644 --- a/tableCallbacks.go +++ b/tableCallbacks.go @@ -28,7 +28,7 @@ func (mh *TableData) ColumnTypes(m *ui.TableModel) []ui.TableValue { func (mh *TableData) CellValue(m *ui.TableModel, row, column int) ui.TableValue { humanID := mh.Cells[column].HumanID if (column == mh.Human[humanID].TextID) { - return mh.Rows[row].HumanData[humanID].Text + return ui.TableString(mh.Rows[row].HumanData[humanID].Text) } if (column == mh.Human[humanID].ColorID) { return mh.Rows[row].HumanData[humanID].Color |
