screen

package
v0.0.0-...-18e7427 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LeftClick Button = iota
	RightClick
	LeftClickOutside  = -999
	RightClickOutside = -999
)

Mode 0

View Source
const (
	LeftClickDrag      Button = 0
	RightClickDrag            = 4
	MiddleClickDrag           = 8
	AddLeftClickDrag          = 1
	AddRightClickDrag         = 5
	AddMiddleClickDrag        = 9
)

Mode 5

Variables

This section is empty.

Functions

This section is empty.

Types

type Button

type Button int
const (
	ShiftLeftClick Button = iota
	ShiftRightClick
)

Mode 1

const (
	KeyOne Button = iota
	KeyTwo
	KeyThree
	KeyFour
	KeyFive
	KeySix
	KeySeven
	KeyEight
	KeyNine
	SwapHand Button = 40
)

Mode 2

const (
	Drop Button = iota
	ControlDrop
)

Mode 4

const (
	DoubleClick Button = iota
)

Mode 6

const (
	MiddleClick Button = iota + 2
)

Mode 3

type EventsListener

type EventsListener struct {
	Open    func(id int) error
	SetSlot func(id, index int) error
	Close   func(id int) error
}

type Manager

type Manager struct {
	CurrentScreen grids.Container
	HeldItem      item.Item
	Inventory     *grids.GenericInventory
	StateID       int32 // The last state received from the server
}

func NewManager

func NewManager() *Manager

func (*Manager) CloseScreen

func (m *Manager) CloseScreen()

func (*Manager) OpenScreen

func (m *Manager) OpenScreen(id int32)

type Mode

type Mode int

Jump to

Keyboard shortcuts

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