ui

package
v0.0.0-...-c30d63a Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadImage

func LoadImage(filepath string) *ebiten.Image

Types

type EquippableSlot

type EquippableSlot struct {
	X                     float64
	Y                     float64
	Width                 float64
	Height                float64
	OpenKeyItemListButton basics.FloatRectUI
	ItemName              string
	KeyItem               inventory.KeyItem
}

func (*EquippableSlot) InitEquibbaleSlot

func (e *EquippableSlot) InitEquibbaleSlot(invX, invY, invW, invH float64, itemName string)

type InventorySlotUi

type InventorySlotUi struct {
	X                 float64
	Y                 float64
	Width             float64
	Height            float64
	SalvageOneButton  basics.FloatRectUI
	SalvageAllButton  basics.FloatRectUI
	SalvageOnePressed bool
	SalvageAllPressed bool
	ItemCount         int
	ItemName          string
	SlotNumber        int
}

func (*InventorySlotUi) InitSlot

func (i *InventorySlotUi) InitSlot(invX, invY, invW, invH, titleOffset, salvageButtonOffsetX, salvageButtonOffsetY float64, slotNo, itemCount int, itemName string)

type Ui

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

func (*Ui) Draw

func (u *Ui) Draw(screen *ebiten.Image)

func (*Ui) Init

func (u *Ui) Init()

func (*Ui) IsOpen

func (u *Ui) IsOpen() bool

func (*Ui) LoadImages

func (u *Ui) LoadImages()

func (*Ui) ReadInput

func (u *Ui) ReadInput()

func (*Ui) Update

func (u *Ui) Update(deltaTime float64) error

Jump to

Keyboard shortcuts

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