Documentation ¶
Index ¶
- type AudioOption
- type BasicOption
- type EffectOption
- type EffectOptionWithHighlight
- func (self *EffectOptionWithHighlight) Confirm(ctx *context.Context) (Key, *scene.Change, error)
- func (self *EffectOptionWithHighlight) HoverUpdate(ctx *context.Context)
- func (self *EffectOptionWithHighlight) Name() string
- func (self *EffectOptionWithHighlight) SoftHighlight(ctx *context.Context) bool
- type Key
- type Menu
- func (self *Menu) DrawLogical(canvas *ebiten.Image, ctx *context.Context)
- func (self *Menu) JumpTo(key Key)
- func (self *Menu) Key() Key
- func (self *Menu) NewGameOptionsOptionList(ctx *context.Context)
- func (self *Menu) NewOptionList(key Key) *OptionList
- func (self *Menu) Update(ctx *context.Context) (*scene.Change, error)
- type NavOption
- type Option
- type OptionList
- type OptionWithMaxName
- type PercentOption
- type SceneChangeEffectOption
- type SceneChangeOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AudioOption ¶
type AudioOption struct { BaseLabel string GetLevel func() float32 // in [0, 1] range SetLevel func(ctx *context.Context, value float32) error OnClick func(*context.Context) // contains filtered or unexported fields }
func (*AudioOption) HoverUpdate ¶
func (self *AudioOption) HoverUpdate(ctx *context.Context)
func (*AudioOption) MaxName ¶
func (self *AudioOption) MaxName() string
func (*AudioOption) Name ¶
func (self *AudioOption) Name() string
func (*AudioOption) SoftHighlight ¶
func (self *AudioOption) SoftHighlight(ctx *context.Context) bool
type BasicOption ¶
func (*BasicOption) HoverUpdate ¶
func (self *BasicOption) HoverUpdate(ctx *context.Context)
func (*BasicOption) Name ¶
func (self *BasicOption) Name() string
func (*BasicOption) SoftHighlight ¶
func (self *BasicOption) SoftHighlight(ctx *context.Context) bool
type EffectOption ¶
func (*EffectOption) HoverUpdate ¶
func (self *EffectOption) HoverUpdate(ctx *context.Context)
func (*EffectOption) Name ¶
func (self *EffectOption) Name() string
func (*EffectOption) SoftHighlight ¶
func (self *EffectOption) SoftHighlight(ctx *context.Context) bool
type EffectOptionWithHighlight ¶
type EffectOptionWithHighlight struct { Label string OnConfirm func(*context.Context) error HighlightFunc func(*context.Context) bool }
func (*EffectOptionWithHighlight) HoverUpdate ¶
func (self *EffectOptionWithHighlight) HoverUpdate(ctx *context.Context)
func (*EffectOptionWithHighlight) Name ¶
func (self *EffectOptionWithHighlight) Name() string
func (*EffectOptionWithHighlight) SoftHighlight ¶
func (self *EffectOptionWithHighlight) SoftHighlight(ctx *context.Context) bool
type Menu ¶
type Menu struct { Title string // contains filtered or unexported fields }
func (*Menu) DrawLogical ¶
func (*Menu) NewGameOptionsOptionList ¶
func (*Menu) NewOptionList ¶
func (self *Menu) NewOptionList(key Key) *OptionList
type NavOption ¶
type NavOption struct {}
func (*NavOption) HoverUpdate ¶
type OptionList ¶
type OptionList struct {
// contains filtered or unexported fields
}
func (*OptionList) Add ¶
func (self *OptionList) Add(opt Option)
func (*OptionList) AddBackOption ¶
func (self *OptionList) AddBackOption(opt Option)
func (*OptionList) Draw ¶
func (self *OptionList) Draw(canvas *ebiten.Image, ctx *context.Context)
type OptionWithMaxName ¶
type PercentOption ¶
func (*PercentOption) HoverUpdate ¶
func (self *PercentOption) HoverUpdate(ctx *context.Context)
func (*PercentOption) MaxName ¶
func (self *PercentOption) MaxName() string
func (*PercentOption) Name ¶
func (self *PercentOption) Name() string
func (*PercentOption) SoftHighlight ¶
func (self *PercentOption) SoftHighlight(ctx *context.Context) bool
type SceneChangeEffectOption ¶
type SceneChangeEffectOption struct { Label string Change scene.Change OnConfirm func(*context.Context) error }
func (*SceneChangeEffectOption) HoverUpdate ¶
func (self *SceneChangeEffectOption) HoverUpdate(ctx *context.Context)
func (*SceneChangeEffectOption) Name ¶
func (self *SceneChangeEffectOption) Name() string
func (*SceneChangeEffectOption) SoftHighlight ¶
func (self *SceneChangeEffectOption) SoftHighlight(ctx *context.Context) bool
type SceneChangeOption ¶
func (*SceneChangeOption) HoverUpdate ¶
func (self *SceneChangeOption) HoverUpdate(ctx *context.Context)
func (*SceneChangeOption) Name ¶
func (self *SceneChangeOption) Name() string
func (*SceneChangeOption) SoftHighlight ¶
func (self *SceneChangeOption) SoftHighlight(ctx *context.Context) bool
Click to show internal directories.
Click to hide internal directories.