Documentation
¶
Index ¶
- Variables
- func ActivatePOI(entry *donburi.Entry)
- func AddLogParagraph(w donburi.World, paragraph domain.Paragraph, options ParagraphOptions)
- func AdjustTextWidth(entry *donburi.Entry, width int) string
- func CanInteractWithPOI(entry *donburi.Entry) bool
- func ChangeLevel(w donburi.World, level domain.TargetLevel)
- func CheckNextPOI(w donburi.World)
- func CreateScrollMask(w donburi.World, width, height int) *ebiten.Image
- func DeactivatePOIs(w donburi.World)
- func FontFromSize(size component.TextSize) *text.GoTextFace
- func HorizontalCenterPosition(entry *donburi.Entry) float64
- func MeasureTextHeight(entry *donburi.Entry) float64
- func MeasureTextWidth(entry *donburi.Entry) float64
- func NewCamera(w donburi.World, startPosition math.Vec2, dimensions engine.Size, index int, ...) *donburi.Entry
- func NewCharacter(parent *donburi.Entry, scale float64, ...) *donburi.Entry
- func NewDialog(w donburi.World) *donburi.Entry
- func NewLevel(w donburi.World, targetLevel domain.TargetLevel)
- func NewObject(parent *donburi.Entry, obj domain.Object) *donburi.Entry
- func NewPOI(parent *donburi.Entry, poi domain.POI) *donburi.Entry
- func NextPassage(w donburi.World)
- func POIConditionsMet(w donburi.World, poi domain.POI) bool
- func RotateCharacterTowards(target *donburi.Entry)
- func SelectPOI(entry *donburi.Entry) bool
- func ShowPassage(w donburi.World, domainPassage *domain.Passage, source *donburi.Entry)
- type EntryBuilder
- func (b EntryBuilder) Entry() *donburi.Entry
- func (b EntryBuilder) With(c donburicomponent.IComponentType) EntryBuilder
- func (b EntryBuilder) WithBounds(size engine.Size) EntryBuilder
- func (b EntryBuilder) WithBoundsAsCollider(layer domain.ColliderLayer) EntryBuilder
- func (b EntryBuilder) WithLayer(layer domain.LayerID) EntryBuilder
- func (b EntryBuilder) WithLayerInherit() EntryBuilder
- func (b EntryBuilder) WithParent(parent *donburi.Entry) EntryBuilder
- func (b EntryBuilder) WithPosition(pos math.Vec2) EntryBuilder
- func (b EntryBuilder) WithScale(scale math.Vec2) EntryBuilder
- func (b EntryBuilder) WithSprite(sprite component.SpriteData) EntryBuilder
- func (b EntryBuilder) WithSpriteBounds() EntryBuilder
- func (b EntryBuilder) WithTag(tag string) EntryBuilder
- func (b EntryBuilder) WithText(text component.TextData) EntryBuilder
- type ParagraphOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var PoiVisibleDistance = engine.FloatRange{Min: 200, Max: 500}
Functions ¶
func ActivatePOI ¶
func AddLogParagraph ¶
func AddLogParagraph(w donburi.World, paragraph domain.Paragraph, options ParagraphOptions)
func CanInteractWithPOI ¶
func ChangeLevel ¶
func ChangeLevel(w donburi.World, level domain.TargetLevel)
func CheckNextPOI ¶
func CreateScrollMask ¶
func DeactivatePOIs ¶
func FontFromSize ¶
func MeasureTextHeight ¶
func MeasureTextWidth ¶
func NewCharacter ¶
func NextPassage ¶
func RotateCharacterTowards ¶
Types ¶
type EntryBuilder ¶
type EntryBuilder struct {
// contains filtered or unexported fields
}
func (EntryBuilder) Entry ¶
func (b EntryBuilder) Entry() *donburi.Entry
func (EntryBuilder) With ¶
func (b EntryBuilder) With(c donburicomponent.IComponentType) EntryBuilder
func (EntryBuilder) WithBounds ¶
func (b EntryBuilder) WithBounds(size engine.Size) EntryBuilder
func (EntryBuilder) WithBoundsAsCollider ¶
func (b EntryBuilder) WithBoundsAsCollider(layer domain.ColliderLayer) EntryBuilder
func (EntryBuilder) WithLayer ¶
func (b EntryBuilder) WithLayer(layer domain.LayerID) EntryBuilder
func (EntryBuilder) WithLayerInherit ¶
func (b EntryBuilder) WithLayerInherit() EntryBuilder
func (EntryBuilder) WithParent ¶
func (b EntryBuilder) WithParent(parent *donburi.Entry) EntryBuilder
func (EntryBuilder) WithPosition ¶
func (b EntryBuilder) WithPosition(pos math.Vec2) EntryBuilder
func (EntryBuilder) WithScale ¶
func (b EntryBuilder) WithScale(scale math.Vec2) EntryBuilder
func (EntryBuilder) WithSprite ¶
func (b EntryBuilder) WithSprite(sprite component.SpriteData) EntryBuilder
func (EntryBuilder) WithSpriteBounds ¶
func (b EntryBuilder) WithSpriteBounds() EntryBuilder
func (EntryBuilder) WithTag ¶
func (b EntryBuilder) WithTag(tag string) EntryBuilder
func (EntryBuilder) WithText ¶
func (b EntryBuilder) WithText(text component.TextData) EntryBuilder
type ParagraphOptions ¶
type ParagraphOptions struct { Delay time.Duration OnShow func() SkipScroll bool EffectOverride *domain.ParagraphEffect }
Source Files
¶
Click to show internal directories.
Click to hide internal directories.