Versions in this module Expand all Collapse all v1 v1.0.0 Jan 29, 2025 Changes in this version + type Button interface + MarshalJSON func() ([]byte, error) + WithImage func(image string) Button + func NewButton(text string) Button + type Custom interface + WithCallback func(callback func(p *player.Player, response CustomResponse)) Custom + WithCloseCallback func(callback func(p *player.Player)) Custom + WithElement func(key string, element Element) Custom + func NewCustom(title string) Custom + type CustomResponse interface + Bind func(v any) error + Bool func(key string) bool + Float func(key string) float64 + Int func(key string) int + String func(key string) string + type Dropdown interface + WithDefaultIndex func(index int) Dropdown + WithOptions func(options ...string) Dropdown + func NewDropdown(text string) Dropdown + func NewStepSlider(text string) Dropdown + type Element interface + func NewLabel(text string) Element + func NewToggle(text string, enabled bool) Element + type Input interface + WithDefault func(value string) Input + WithPlaceholder func(placeholder string) Input + func NewInput(text string) Input + type Menu interface + WithButton func(text string, image ...string) Menu + WithCallback func(callback func(p *player.Player, result int)) Menu + WithCloseCallback func(callback func(p *player.Player)) Menu + WithContent func(content string) Menu + func NewMenu(title string) Menu + type Modal interface + WithButton1 func(text string) Modal + WithButton2 func(text string) Modal + WithCallback func(callback func(p *player.Player, button1 bool)) Modal + WithCloseCallback func(callback func(p *player.Player)) Modal + WithContent func(content string) Modal + func NewModal(title string) Modal + type Slider interface + WithDefault func(value float64) Slider + WithStepSize func(stepSize float64) Slider + func NewSlider(text string, min, max float64) Slider v1.0.0-beta Jan 8, 2025