Documentation ¶
Index ¶
- Variables
- func DrawCenteredText(screen *ebiten.Image, font font.Face, s string, px, py int, clr color.Color)
- func DrawTopCenterText(screen *ebiten.Image, font font.Face, s string, px, py int, clr color.Color)
- func DrawTopLeftText(screen *ebiten.Image, font font.Face, s string, px, py int, clr color.Color)
- type Button
- type Label
- type LabelAlignment
Constants ¶
This section is empty.
Variables ¶
View Source
var BorderColor = color.White
View Source
var EmptyColor = color.White
View Source
var HighlightColor = color.RGBA{
R: 236,
G: 168,
B: 105,
A: 255,
}
View Source
var MissColor = color.RGBA{
R: 60,
G: 64,
B: 72,
A: 255,
}
View Source
var MutedColor = color.Gray16{Y: 0xaaff}
View Source
var ShipColor = color.RGBA{
R: 83,
G: 127,
B: 231,
A: 255,
}
View Source
var ShipHitColor = color.RGBA{
R: 245,
G: 80,
B: 80,
A: 255,
}
View Source
var TextDarkColor = color.Black
View Source
var TextLightColor = color.White
Functions ¶
func DrawCenteredText ¶
func DrawTopCenterText ¶
Types ¶
type Button ¶
type Button struct { core.BaseGameObject // contains filtered or unexported fields }
func (*Button) CursorPointer ¶
type Label ¶
type Label struct { core.BaseGameObject // contains filtered or unexported fields }
func (*Label) SetAlignment ¶
func (l *Label) SetAlignment(alignment LabelAlignment)
type LabelAlignment ¶
type LabelAlignment int
const ( LabelAlignmentCenter LabelAlignment LabelAlignmentTopLeft LabelAlignmentTopCenter )
Click to show internal directories.
Click to hide internal directories.