Documentation ¶
Index ¶
- type Collider
- type Controller
- type SmoothFollow
- type UIButton
- type UIText
- func (ui *UIText) Align() engine.Align
- func (ui *UIText) Draw()
- func (ui *UIText) GetPixelSize(text string) (width float32, height float32)
- func (ui *UIText) Height() float32
- func (ui *UIText) LateUpdate()
- func (ui *UIText) OnComponentAdd()
- func (ui *UIText) SetAlign(align engine.Align)
- func (ui *UIText) SetFocus(b bool)
- func (ui *UIText) SetString(text string)
- func (ui *UIText) SetWritable(b bool)
- func (ui *UIText) Start()
- func (ui *UIText) String() string
- func (ui *UIText) Update()
- func (ui *UIText) UpdateCollider()
- func (ui *UIText) Width() float32
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collider ¶
type Collider struct { engine.BaseComponent Rect *image.Rectangle }
func NewCollider ¶
func NewCollider() *Collider
type Controller ¶
type Controller struct { engine.BaseComponent Speed float32 }
func NewController ¶
func NewController() *Controller
func (*Controller) Update ¶
func (sp *Controller) Update()
type SmoothFollow ¶
type SmoothFollow struct { engine.BaseComponent Target *engine.GameObject Speed float32 MaxDis float32 }
func NewSmoothFollow ¶
func NewSmoothFollow(target *engine.GameObject, speed float32, maxdis float32) *SmoothFollow
func (*SmoothFollow) LateUpdate ¶
func (sp *SmoothFollow) LateUpdate()
func (*SmoothFollow) Start ¶
func (sp *SmoothFollow) Start()
type UIButton ¶
type UIButton struct { engine.BaseComponent // contains filtered or unexported fields }
func NewUIButton ¶
func (*UIButton) OnMouseExit ¶
type UIText ¶
type UIText struct { engine.BaseComponent Font *engine.Font Color engine.Color // contains filtered or unexported fields }
func (*UIText) GetPixelSize ¶
func (*UIText) LateUpdate ¶
func (ui *UIText) LateUpdate()
func (*UIText) OnComponentAdd ¶
func (ui *UIText) OnComponentAdd()
func (*UIText) SetWritable ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.