Documentation
¶
Index ¶
- Variables
- func GetScaleFactorByWindowSize() float64
- func GetScaledNumberToResolution(defaultFontPoint float64) float64
- type Output
- func (o *Output) AddRowStr(outputStr string)
- func (o *Output) AppendToCurrentRowStr(outputStr string)
- func (o *Output) Clear()
- func (o *Output) DrawContinuousOutputTexOnXy(screen *ebiten.Image, point image.Point, bShowEmptyNewLines bool, ...)
- func (o *Output) DrawRightSideOutput(screen *ebiten.Image)
- func (o *Output) DrawText(screen *ebiten.Image, textStr string, op *ebiten.DrawImageOptions)
- func (o *Output) DrawTextCenter(screen *ebiten.Image, textStr string, op *ebiten.DrawImageOptions)
- func (o *Output) DrawTextRightToLeft(screen *ebiten.Image, textStr string, op *ebiten.DrawImageOptions)
- func (o *Output) GetLengthOfCurrentRowStr() int
- func (o *Output) GetOutputStr(bShowEmptyNewLines bool) string
- func (o *Output) RemoveRightSideCharacter()
- func (o *Output) SetColor(color color.Color)
- func (o *Output) SetFont(font *UltimaFont, lineSpacing float64)
- type UltimaFont
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
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) AppendToCurrentRowStr ¶
func (*Output) DrawContinuousOutputTexOnXy ¶
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) DrawTextCenter ¶
func (*Output) DrawTextRightToLeft ¶
func (*Output) GetLengthOfCurrentRowStr ¶
func (*Output) GetOutputStr ¶
func (*Output) RemoveRightSideCharacter ¶
func (o *Output) RemoveRightSideCharacter()
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)
Click to show internal directories.
Click to hide internal directories.