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

Method DrawContents

card.go:1451–1474  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1449}
1450
1451func (card *Card) DrawContents() {
1452
1453 card.Highlighter.Highlighting = card.selected
1454
1455 currentTheme := globals.Settings.Get(SettingsTheme).AsString()
1456
1457 var ogColor Color
1458
1459 if card.FontColor != nil {
1460 ogColor = getThemeColor(GUIFontColor)
1461 guiColors[currentTheme][GUIFontColor] = card.FontColor
1462 }
1463
1464 if card.Contents != nil {
1465 card.Contents.Draw()
1466 }
1467
1468 if card.FontColor != nil {
1469 guiColors[currentTheme][GUIFontColor] = ogColor
1470 }
1471
1472 card.Highlighter.Draw()
1473
1474}
1475
1476func (card *Card) SyncProperty(property *Property, syncSize bool) {
1477

Callers 1

DrawCardMethod · 0.95

Calls 4

getThemeColorFunction · 0.85
AsStringMethod · 0.80
DrawMethod · 0.65
GetMethod · 0.45

Tested by

no test coverage detected