()
| 4873 | } |
| 4874 | |
| 4875 | func (tc *TableContents) Draw() { |
| 4876 | tc.DefaultContents.Draw() |
| 4877 | tc.TableData.Draw() |
| 4878 | |
| 4879 | if tc.TableData.Changed { |
| 4880 | |
| 4881 | contents := tc.Card.Properties.Get("contents") |
| 4882 | contents.SetRaw(tc.TableData.Serialize()) |
| 4883 | tc.Card.SyncProperty(contents, false) |
| 4884 | tc.Card.CreateUndoState = true // Since we're setting the property raw, we have to manually create an undo state, though |
| 4885 | } |
| 4886 | |
| 4887 | if tc.Card.selected { |
| 4888 | tc.SettingsButton.Draw() |
| 4889 | } |
| 4890 | |
| 4891 | } |
| 4892 | |
| 4893 | func (tc *TableContents) Color() Color { |
| 4894 | color := getThemeColor(GUITableColor) |
nothing calls this directly
no test coverage detected