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

Method Draw

gui.go:1102–1118  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1100}
1101
1102func (dropdown *Dropdown) Draw() {
1103
1104 dropdown.Button.Draw()
1105
1106 dropdown.LeftButton.Draw()
1107 dropdown.RightButton.Draw()
1108
1109 if dropdown.Open {
1110 for i, b := range dropdown.Choices {
1111 if i == dropdown.ChosenIndex {
1112 continue
1113 }
1114 b.Draw()
1115 }
1116 }
1117
1118}
1119
1120func (dropdown *Dropdown) Rectangle() *sdl.FRect {
1121 var rect *sdl.FRect

Callers

nothing calls this directly

Calls 1

DrawMethod · 0.65

Tested by

no test coverage detected