text

package
v0.0.0-...-a07d551 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 4, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IntroChoices = []string{"Journey Onward", "Select Save Game", "Import from Legacy", "Set Data Directory", "Create Character", "Introduction", "Acknowledgments"}

Functions

func GetScaleFactorByWindowSize

func GetScaleFactorByWindowSize() float64

func GetScaledNumberToResolution

func GetScaledNumberToResolution(defaultFontPoint float64) float64

Types

type Output

type Output struct {
	Font *UltimaFont
	// contains filtered or unexported fields
}

func NewOutput

func NewOutput(font *UltimaFont, lineSpacing float64, maxLines int, maxCharsPerLine int) *Output

func (*Output) AddRowStr

func (o *Output) AddRowStr(outputStr string)

func (*Output) AppendToCurrentRowStr

func (o *Output) AppendToCurrentRowStr(outputStr string)

func (*Output) Clear

func (o *Output) Clear()

func (*Output) DrawContinuousOutputTexOnXy

func (o *Output) DrawContinuousOutputTexOnXy(screen *ebiten.Image, point image.Point, bShowEmptyNewLines bool, horizAlign text.Align, vertAlign text.Align)

func (*Output) DrawRightSideOutput

func (o *Output) DrawRightSideOutput(screen *ebiten.Image)

DrawRightSideOutput Draws to the correct x and y image position for the right side output panel

func (*Output) DrawText

func (o *Output) DrawText(screen *ebiten.Image, textStr string, op *ebiten.DrawImageOptions)

func (*Output) DrawTextCenter

func (o *Output) DrawTextCenter(screen *ebiten.Image, textStr string, op *ebiten.DrawImageOptions)

func (*Output) DrawTextRightToLeft

func (o *Output) DrawTextRightToLeft(screen *ebiten.Image, textStr string, op *ebiten.DrawImageOptions)

func (*Output) GetLengthOfCurrentRowStr

func (o *Output) GetLengthOfCurrentRowStr() int

func (*Output) GetOutputStr

func (o *Output) GetOutputStr(bShowEmptyNewLines bool) string

func (*Output) RemoveRightSideCharacter

func (o *Output) RemoveRightSideCharacter()

func (*Output) SetColor

func (o *Output) SetColor(color color.Color)

func (*Output) SetFont

func (o *Output) SetFont(font *UltimaFont, lineSpacing float64)

type UltimaFont

type UltimaFont struct {
	TextFace *text.GoTextFace
	// contains filtered or unexported fields
}

func NewUltimaFont

func NewUltimaFont(size float64) *UltimaFont

func (*UltimaFont) DrawIntroChoices

func (f *UltimaFont) DrawIntroChoices(screen *ebiten.Image, nSelection int)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL