MCPcopy Create free account
hub / github.com/SolarLune/masterplan / Draw

Method Draw

contents.go:4875–4891  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4873}
4874
4875func (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
4893func (tc *TableContents) Color() Color {
4894 color := getThemeColor(GUITableColor)

Callers

nothing calls this directly

Calls 5

SetRawMethod · 0.80
SyncPropertyMethod · 0.80
DrawMethod · 0.65
GetMethod · 0.45
SerializeMethod · 0.45

Tested by

no test coverage detected