Documentation
¶
Index ¶
- Constants
- func InstallScripts(scriptsInstallDir string, verbose bool) error
- func UninstallScripts(scriptsInstallDir string, verbose bool) error
- type FontFace
- func (h *FontFace) DrawText(rt *ebiten.Image, str string, x, y int, clr color.Color)
- func (h *FontFace) DrawTextWithShadow(rt *ebiten.Image, str string, x, y int, clr color.Color)
- func (h *FontFace) DrawTextWithShadowCenter(rt *ebiten.Image, str string, x, y int, clr color.Color, width int)
- func (h *FontFace) DrawTextWithShadowRight(rt *ebiten.Image, str string, x, y int, clr color.Color, width int)
- func (h *FontFace) TextWidth(str string) int
- type HUD
- func (h *HUD) Close() error
- func (h *HUD) Draw(screen *ebiten.Image)
- func (h *HUD) Layout(outsideWidth, outsideHeight int) (screenWidth, screenHeight int)
- func (h *HUD) SetRotorPitch(val float64)
- func (h *HUD) SetRotorRPM(val float64)
- func (h *HUD) SetVerticalVelocity(val float64)
- func (h *HUD) Update() error
Constants ¶
View Source
const ( ScreenWidth = 800 ScreenHeight = 600 )
Variables ¶
This section is empty.
Functions ¶
func InstallScripts ¶ added in v0.1.0
InstallScripts installs the scripts in the specified target directory. If verbose is true, the function prints detailed log messages to stdout.
func UninstallScripts ¶ added in v0.1.0
UninstallScripts uninstalls the scripts from the specified target directory. If verbose is true, the function prints detailed log messages to stdout.
Types ¶
type FontFace ¶
func NewFontFace ¶
func (*FontFace) DrawTextWithShadow ¶
func (*FontFace) DrawTextWithShadowCenter ¶
func (*FontFace) DrawTextWithShadowRight ¶
type HUD ¶
type HUD struct {
// contains filtered or unexported fields
}
func (*HUD) SetRotorPitch ¶
SetRotorPitch is thread-safe to update rotor pitch.
func (*HUD) SetRotorRPM ¶
SetRotorRPM is thread-safe to update rotor RPM.
func (*HUD) SetVerticalVelocity ¶ added in v0.1.0
SetVerticalVelocity is thread-safe to update vertical velocity.
Directories
¶
Path | Synopsis |
---|---|
aircraft
|
|
gui
|
|
internal
|
|
Package utils provides utility functions and types
|
Package utils provides utility functions and types |
Click to show internal directories.
Click to hide internal directories.