From 12e37b4d1faf3f19a4a5149a94b9fb613d7f9793 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 12 May 2019 21:44:05 -0700 Subject: [PATCH] also set the color Signed-off-by: Jeff Carr --- tableCallbacks.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tableCallbacks.go b/tableCallbacks.go index 6e6d14c..194aab0 100644 --- a/tableCallbacks.go +++ b/tableCallbacks.go @@ -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 }