gui

package
v0.0.0-...-8a42bd8 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MAX_TOP_MENU_SLOTS  = 4
	MAX_INVENTORY_SLOTS = 8
	RESERVED_ITEM_SLOT  = 10
)

Variables

This section is empty.

Functions

This section is empty.

Types

type InventoryMenu

type InventoryMenu struct {
	Status_Function0           int
	Status_Function1           int
	Status_MenuCursor0         int
	Status_InventoryMainCursor int
	Status_BlinkSwitch0        bool
	Status_BlinkTimer0         int
}

func NewInventoryMenu

func NewInventoryMenu() *InventoryMenu

func (*InventoryMenu) GetCursorBlinkBrightnessFactor

func (inventoryMenu *InventoryMenu) GetCursorBlinkBrightnessFactor() float64

func (*InventoryMenu) GetMainCursorColumn

func (inventoryMenu *InventoryMenu) GetMainCursorColumn() int

func (*InventoryMenu) GetMainCursorRow

func (inventoryMenu *InventoryMenu) GetMainCursorRow() int

func (*InventoryMenu) GetTopMenuSelectedOption

func (inventoryMenu *InventoryMenu) GetTopMenuSelectedOption() int

func (*InventoryMenu) HandleSwitchMenuOption

func (inventoryMenu *InventoryMenu) HandleSwitchMenuOption(windowHandler *client.WindowHandler)

func (*InventoryMenu) IsCursorOnReservedItem

func (inventoryMenu *InventoryMenu) IsCursorOnReservedItem() bool

func (*InventoryMenu) IsCursorOnTopMenu

func (inventoryMenu *InventoryMenu) IsCursorOnTopMenu() bool

func (*InventoryMenu) IsEditingItemScreen

func (inventoryMenu *InventoryMenu) IsEditingItemScreen() bool

func (*InventoryMenu) IsTopMenuCursorOnItems

func (inventoryMenu *InventoryMenu) IsTopMenuCursorOnItems() bool

func (*InventoryMenu) IsTopMenuExit

func (inventoryMenu *InventoryMenu) IsTopMenuExit() bool

func (*InventoryMenu) NextItemInList

func (inventoryMenu *InventoryMenu) NextItemInList()

func (*InventoryMenu) NextRowInItemList

func (inventoryMenu *InventoryMenu) NextRowInItemList()

func (*InventoryMenu) NextTopMenuOption

func (inventoryMenu *InventoryMenu) NextTopMenuOption()

func (*InventoryMenu) PrevItemInList

func (inventoryMenu *InventoryMenu) PrevItemInList()

func (*InventoryMenu) PrevRowInItemList

func (inventoryMenu *InventoryMenu) PrevRowInItemList()

func (*InventoryMenu) PrevTopMenuOption

func (inventoryMenu *InventoryMenu) PrevTopMenuOption()

func (*InventoryMenu) Reset

func (inventoryMenu *InventoryMenu) Reset()

func (*InventoryMenu) SetCursorTopMenu

func (inventoryMenu *InventoryMenu) SetCursorTopMenu()

func (*InventoryMenu) SetEditItemScreen

func (inventoryMenu *InventoryMenu) SetEditItemScreen()
func (inventoryMenu *InventoryMenu) UpdateCursorBlink()
type Menu struct {
	CurrentOption    int
	MaxOptions       int
	IsNewOption      bool // switches current option to a different option
	IsOptionSelected bool
}

func NewMenu

func NewMenu(maxOptions int) *Menu
func (menu *Menu) HandleMenuEvent(windowHandler *client.WindowHandler)

Jump to

Keyboard shortcuts

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