| 921 | } |
| 922 | |
| 923 | type Dropdown struct { |
| 924 | Options []string |
| 925 | Open bool |
| 926 | ClickableButton *Button |
| 927 | Choices []*Button |
| 928 | ChosenIndex int |
| 929 | Button *Button |
| 930 | OnOpen func() |
| 931 | OnChoose func(index int) |
| 932 | WorldSpace bool |
| 933 | Property *Property |
| 934 | |
| 935 | LeftButton *IconButton |
| 936 | RightButton *IconButton |
| 937 | } |
| 938 | |
| 939 | func NewDropdown(rect *sdl.FRect, worldSpace bool, onChoose func(index int), property *Property, options ...string) *Dropdown { |
| 940 |
nothing calls this directly
no outgoing calls
no test coverage detected