frame

package module
v0.0.0-...-4532caf Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

README

ebitengine-message-frame

ebitengine's message frame library like Dragon Quest.

example

Usage

import "github.com/raa0121/ebitengine-message-frame"

frame.DrawFrame(screen, frameImage, []string{"aaaaaa", "bbbbbbbbbbb", "cccccccccc"}, fontFace, 0, 0)

Requirements

go 1.23.2

Installation

go get github.com/raa0121/ebitengine-message-frame@latest

License

Apache License 2.0

Author

raa0121 [email protected]

Documentation

Overview

https://gist.github.com/tmathews/42f663e85c333791d720d7911347eb77

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DrawChoiceFrame

func DrawChoiceFrame(screen, frameImage *ebiten.Image, strs []string, choice int, face *text.GoTextFace, x, y float64)

func DrawChoiceMultiColumnFrame

func DrawChoiceMultiColumnFrame(screen, frameImage *ebiten.Image, strss [][]string, choicePoint ChoicePoint, face *text.GoTextFace, x, y float64)

func DrawFrame

func DrawFrame(screen, frameImage *ebiten.Image, strs []string, face *text.GoTextFace, x, y float64)

func NewSubImageAt

func NewSubImageAt(src *ebiten.Image, x1, y1, x2, y2 int) *ebiten.Image

Types

type ChoicePoint

type ChoicePoint struct {
	X, Y int
}

type NinePatch

type NinePatch struct {
	// contains filtered or unexported fields
}

func NewNinePatch

func NewNinePatch(src *ebiten.Image, out, in image.Rectangle) *NinePatch

func NewNinePatchOfSize

func NewNinePatchOfSize(src *ebiten.Image, size, x, y, w, h int) *NinePatch

func (*NinePatch) Draw

func (n *NinePatch) Draw(dst *ebiten.Image, x, y, w, h int)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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