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

Method Draw

gui.go:1395–1406  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1393}
1394
1395func (bg *IconButtonGroup) Draw() {
1396
1397 if bg.Property != nil {
1398 bg.ChosenIndex = bg.Property.AsInt()
1399 }
1400
1401 for i, b := range bg.Buttons {
1402 b.AlwaysHighlight = bg.ChosenIndex == i
1403 b.Draw()
1404 }
1405
1406}
1407
1408func (bg *IconButtonGroup) Rectangle() *sdl.FRect {
1409 rect := *bg.Rect

Callers

nothing calls this directly

Calls 2

AsIntMethod · 0.80
DrawMethod · 0.65

Tested by

no test coverage detected