utils

package
v0.0.0-...-947f72b Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2025 License: GPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddNavGuide

func AddNavGuide(shortcut string, name string) (*tview.TextView, int)

func BoldText

func BoldText(text string) string

func CreateGuide

func CreateGuide(hotkeys []*types.UnusableHotkey, displayPretext bool) *tview.Flex

func CreateModal

func CreateModal(title string, message string, c *types.SpelltextClient, onClose func()) *tview.Modal

func GenerateErrorPage

func GenerateErrorPage(c *types.SpelltextClient, errorText string) tview.Primitive

func GetDisplayStatsNpc

func GetDisplayStatsNpc(npc *pbRepo.Npc) *[]uint64

func GetDisplayStatsPlayer

func GetDisplayStatsPlayer(c *types.SpelltextClient) *[]uint64

func GetFullItemName

func GetFullItemName(item *pbRepo.Item) string

func GetFullNpcName

func GetFullNpcName(npc *pbRepo.Npc) string

func GetItemName

func GetItemName(item *pbRepo.Item) string

func GetItemStats

func GetItemStats(item *pbRepo.Item) string

func PaintText

func PaintText(color string, text string) string

func PrintNpcDetails

func PrintNpcDetails(npc *pbRepo.Npc) string

func STNewFlex

func STNewFlex() *tview.Flex

func ToColorTag

func ToColorTag(color string) string

func UpdateCharacter

func UpdateCharacter(old *pbRepo.Character, new *pbRepo.Character, c *types.SpelltextClient)

func UpdateCharacterFunc

func UpdateCharacterFunc(char *pbRepo.Character, c *types.SpelltextClient, f func(*pbRepo.Character) *pbRepo.Character)

func UpdateGold

func UpdateGold(tv *tview.TextView, format string, delta int64, c *types.SpelltextClient) *tview.TextView

Types

This section is empty.

Jump to

Keyboard shortcuts

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