Documentation
¶
Overview ¶
Package ui contains client UI composition, modal/menu/window state, and reusable skinning primitives. It may depend on shared client/session/network data, but it should not own map drawing, sprite rendering, or gameplay simulation.
Index ¶
- Constants
- Variables
- func CharacterCreateGraphDrawOrder() [CharacterCreateStatCount]int
- func CharacterCreateGraphPoints(cx, cy int, radius float64) [CharacterCreateStatCount][2]float64
- func CharacterCreateStatLabels() [CharacterCreateStatCount]string
- func CharacterSelectPage(slot int) int
- func Color(c color.RGBA) uiwidget.Color
- func DrawRoundedGradientSurface(screen imageDrawTarget, x, y, w, h int, top, bottom, border color.RGBA, ...)
- func DrawRoundedSurface(screen imageDrawTarget, x, y, w, h int, bg, border color.RGBA, radius float32)
- func HomunculusASPDDisplay(value int) int
- func HomunculusIntimacyText(value int) string
- func HungerBarFillColor(current, maxValue int) color.RGBA
- func IsLevelOneTeleportSkill(skill session.Skill) bool
- func ItemDisplayName(manager *res.Manager, item session.InventoryItem) string
- func LerpColor(a, b color.RGBA, t float64) color.RGBA
- func MinimapBounds(width, height int) (int, int, int, int)
- func PointInRect(px, py, x, y, w, h int) bool
- func TeleportWarpListBypassesModal(skill session.Skill, list network.WarpPointList) bool
- func TooltipsSuppressed(ctx Context) bool
- func UseInventoryItem(ctx Context, item session.InventoryItem) error
- func VisibleStatusIconIDs(active map[uint16]session.StatusEffect) []uint16
- func Win(options ...WindowOption) widget.Widget
- type Announcement
- type AnnouncementStyle
- type AssetProvider
- type AutoSpellWindow
- type BasicMenu
- func (m *BasicMenu) Collapsed() bool
- func (m *BasicMenu) FollowCharacterWindow(ctx client.Context, character *CharacterWindow)
- func (m *BasicMenu) Rebind(ctx client.Context, callbacks BasicMenuCallbacks)
- func (m *BasicMenu) SetCollapsed(collapsed bool)
- func (m *BasicMenu) Update(ctx client.Context, callbacks BasicMenuCallbacks) bool
- type BasicMenuCallbacks
- type BookWindow
- type CardCompositionWindow
- func (w *CardCompositionWindow) ApplyAck(ctx Context, ack network.ItemCompositionAck)
- func (w *CardCompositionWindow) ClampScroll(s *session.Session)
- func (w *CardCompositionWindow) OpenList(ctx Context, cardIndex uint16, list network.ItemCompositionList)
- func (w *CardCompositionWindow) Update(ctx Context) bool
- type CardIllustrationWindow
- type CartWindow
- func (w *CartWindow) AcceptInventoryDrop(ctx Context, item session.InventoryItem, mx, my int) bool
- func (w *CartWindow) AcceptStorageDrop(ctx Context, item session.InventoryItem, mx, my int) bool
- func (w *CartWindow) ClampScroll(s *session.Session)
- func (w *CartWindow) DrawDragGhost(screen *render.Frame, ctx Context, assets AssetProvider)
- func (w *CartWindow) DrawTooltip(ctx Context, screen *render.Frame)
- func (w *CartWindow) OpenWindow(ctx Context)
- func (w *CartWindow) Rebind(ctx Context, itemInfo *ItemWindows)
- func (w *CartWindow) Refresh(ctx Context, itemInfo *ItemWindows)
- func (w *CartWindow) SetOpen(open bool)
- func (w *CartWindow) Toggle(ctx Context)
- func (w *CartWindow) Update(ctx Context, inventory *InventoryBagWindow, storage *StorageWindow, ...) bool
- func (w *CartWindow) UpdateDrag(ctx Context, inventory *InventoryBagWindow, storage *StorageWindow) bool
- type ChangeCartWindow
- type CharacterCreateWindow
- type CharacterCreateWindowCallbacks
- type CharacterCreateWindowOptions
- type CharacterSelectWindow
- type CharacterSelectWindowCallbacks
- type CharacterSelectWindowOptions
- type CharacterWindow
- type ChatConsole
- func (c *ChatConsole) Active() bool
- func (c *ChatConsole) AddBlueMessage(format string, args ...any)
- func (c *ChatConsole) AddColoredMessage(messageColor color.RGBA, format string, args ...any)
- func (c *ChatConsole) AddErrorMessage(format string, args ...any)
- func (c *ChatConsole) AddGuildChatMessage(format string, args ...any)
- func (c *ChatConsole) AddGuildMessage(format string, args ...any)
- func (c *ChatConsole) AddMessage(format string, args ...any)
- func (c *ChatConsole) AddSystemMessage(format string, args ...any)
- func (c *ChatConsole) Dragging() bool
- func (c *ChatConsole) Messages() []ConsoleMessage
- func (c *ChatConsole) PrepareKeyInput(ctx client.Context, code input.KeyCode, mods gpucontext.Modifiers)
- func (c *ChatConsole) PrepareTextInput(ctx client.Context, code input.KeyCode) bool
- func (c *ChatConsole) Publish(ctx client.Context)
- func (c *ChatConsole) Rebind(ctx client.Context)
- func (c *ChatConsole) RestorePosition(ctx client.Context, position config.WindowPosition)
- func (c *ChatConsole) SavedPosition() config.WindowPosition
- func (c *ChatConsole) SendText(ctx client.Context, text string) bool
- func (c *ChatConsole) Unpublish(ctx client.Context)
- func (c *ChatConsole) Update(ctx client.Context) bool
- func (c *ChatConsole) UpdateInput(ctx client.Context) bool
- func (c *ChatConsole) UpdatePresentation(ctx client.Context)
- type ChatRoomCreateWindow
- func (w *ChatRoomCreateWindow) Editing() bool
- func (w *ChatRoomCreateWindow) Open(ctx Context)
- func (w *ChatRoomCreateWindow) OpenEdit(ctx Context, title string, limit uint16, public bool)
- func (w *ChatRoomCreateWindow) PopAction() ChatRoomCreateWindowAction
- func (w *ChatRoomCreateWindow) Rebind(ctx Context)
- func (w *ChatRoomCreateWindow) Update(ctx Context) bool
- type ChatRoomCreateWindowAction
- type ChatRoomWindow
- func (w *ChatRoomWindow) AddError(ctx Context, text string)
- func (w *ChatRoomWindow) AddMember(ctx Context, name string, count uint16)
- func (w *ChatRoomWindow) AddMessage(ctx Context, text string)
- func (w *ChatRoomWindow) AddSystem(ctx Context, text string)
- func (w *ChatRoomWindow) CanManageMember(name string) bool
- func (w *ChatRoomWindow) IsOwner() bool
- func (w *ChatRoomWindow) Open(ctx Context, title string, limit uint16, public bool, members []string)
- func (w *ChatRoomWindow) OpenSettings(ctx Context, form *ChatRoomCreateWindow)
- func (w *ChatRoomWindow) PopAction() ChatRoomWindowAction
- func (w *ChatRoomWindow) Rebind(ctx Context)
- func (w *ChatRoomWindow) RemoveMember(ctx Context, name string, count uint16)
- func (w *ChatRoomWindow) SetMembers(ctx Context, members []string, owner string)
- func (w *ChatRoomWindow) SetOwner(ctx Context, name string)
- func (w *ChatRoomWindow) Update(ctx Context) bool
- func (w *ChatRoomWindow) UpdateRoom(ctx Context, title string, limit uint16, count uint16, public bool)
- type ChatRoomWindowAction
- type ChatShortcutsWindow
- func (w *ChatShortcutsWindow) Command(ctx Context, slot int) string
- func (w *ChatShortcutsWindow) KeyboardShortcutsBlocked() bool
- func (w *ChatShortcutsWindow) Rebind(ctx Context, console *ChatConsole, onView func())
- func (w *ChatShortcutsWindow) SelectEmotion(command string) bool
- func (w *ChatShortcutsWindow) Toggle(ctx Context, console *ChatConsole, onView func())
- func (w *ChatShortcutsWindow) Update(ctx Context) bool
- func (w *ChatShortcutsWindow) UpdateKeyboardInput(ctx Context) bool
- type ConfirmModal
- func (m *ConfirmModal) Cancel(ctx client.Context)
- func (m *ConfirmModal) Close(ctx client.Context)
- func (m *ConfirmModal) Confirm(ctx client.Context)
- func (m *ConfirmModal) Control(ctx client.Context, action string)
- func (m *ConfirmModal) Open(ctx client.Context, title, message string, onOK, onCancel func())
- func (m *ConfirmModal) OpenAlert(ctx client.Context, title, message string, onOK func())
- func (m *ConfirmModal) Update(ctx client.Context) bool
- type ConsoleMessage
- type Context
- type EmoteWindow
- type EquipmentWindow
- func (w *EquipmentWindow) AcceptInventoryDrop(ctx Context, item session.InventoryItem, mx, my int) bool
- func (w *EquipmentWindow) DrawTooltip(ctx Context, screen *render.Frame)
- func (w *EquipmentWindow) Rebind(ctx Context, itemInfo *ItemWindows, cart *CartWindow, assets AssetProvider)
- func (w *EquipmentWindow) Toggle(ctx Context)
- func (w *EquipmentWindow) Update(ctx Context, itemInfo *ItemWindows, cart *CartWindow, assets AssetProvider) bool
- type EscapeMenu
- func (m *EscapeMenu) Action() EscapeMenuAction
- func (m *EscapeMenu) ApplyQuitGameAck(ack network.QuitGameAck) bool
- func (m *EscapeMenu) ApplyRestartAck(ack network.RestartAck) bool
- func (m *EscapeMenu) ConsumeAction() EscapeMenuAction
- func (m *EscapeMenu) DeathMode() bool
- func (m *EscapeMenu) OpenDeath(ctx client.Context)
- func (m *EscapeMenu) Pending() bool
- func (m *EscapeMenu) PendingAction() EscapeMenuAction
- func (m *EscapeMenu) RequestAutoRevive(ctx client.Context)
- func (m *EscapeMenu) RequestCharacterSelect(ctx client.Context)
- func (m *EscapeMenu) RequestQuitGame(ctx client.Context)
- func (m *EscapeMenu) ResetDeath(ctx client.Context)
- func (m *EscapeMenu) ReturnToSavePoint(ctx client.Context)
- func (m *EscapeMenu) Toggle(ctx client.Context)
- func (m *EscapeMenu) Update(ctx client.Context) bool
- type EscapeMenuAction
- type FriendContextMenu
- type FriendSettingsWindow
- type FriendsWindow
- func (w *FriendsWindow) Close()
- func (w *FriendsWindow) OpenWindow(ctx Context)
- func (w *FriendsWindow) PopAction() FriendsWindowAction
- func (w *FriendsWindow) Rebind(ctx Context)
- func (w *FriendsWindow) Toggle(ctx Context)
- func (w *FriendsWindow) ToggleFriends(ctx Context)
- func (w *FriendsWindow) ToggleParty(ctx Context)
- func (w *FriendsWindow) Update(ctx Context) bool
- type FriendsWindowAction
- type FriendsWindowActionKind
- type GameActions
- type GuildEmblemOption
- type GuildMemberAction
- type GuildMemberActionKind
- type GuildMemberContextMenu
- type GuildMemberPositionUpdate
- type GuildPositionUpdate
- type GuildRelationDelete
- type GuildWindow
- func (w *GuildWindow) Close()
- func (w *GuildWindow) DrawDragGhost(screen *render.Frame, ctx Context, assets AssetProvider)
- func (w *GuildWindow) DrawTooltip(ctx Context, screen *render.Frame)
- func (w *GuildWindow) KeyboardShortcutsBlocked() bool
- func (w *GuildWindow) OpenWindow(ctx Context)
- func (w *GuildWindow) PopAction() GuildWindowAction
- func (w *GuildWindow) Rebind(ctx Context)
- func (w *GuildWindow) Refresh(ctx Context)
- func (w *GuildWindow) SetEmblemOptions(ctx Context, options []GuildEmblemOption)
- func (w *GuildWindow) Toggle(ctx Context)
- func (w *GuildWindow) Update(ctx Context, shortcuts *ShortcutBar, actions GameActions) bool
- func (w *GuildWindow) UpdateDrag(ctx Context, shortcuts *ShortcutBar) bool
- func (w *GuildWindow) UpdateKeyboardInput(ctx Context) bool
- type GuildWindowAction
- type HomunculusContextAction
- type HomunculusContextActionKind
- type HomunculusContextMenu
- type HomunculusInfoAction
- type HomunculusInfoActionKind
- type HomunculusInfoWindow
- func (w *HomunculusInfoWindow) KeyboardShortcutsBlocked() bool
- func (w *HomunculusInfoWindow) OpenInfo(ctx Context, companion session.Companion)
- func (w *HomunculusInfoWindow) PopAction() HomunculusInfoAction
- func (w *HomunculusInfoWindow) Rebind(ctx Context)
- func (w *HomunculusInfoWindow) Update(ctx Context) bool
- type HomunculusSkillWindow
- func (w *HomunculusSkillWindow) Close()
- func (w *HomunculusSkillWindow) DrawDragGhost(screen *render.Frame, ctx Context, assets AssetProvider)
- func (w *HomunculusSkillWindow) DrawTooltip(ctx Context, screen *render.Frame)
- func (w *HomunculusSkillWindow) Open(ctx Context, actions GameActions)
- func (w *HomunculusSkillWindow) Publish(ctx Context)
- func (w *HomunculusSkillWindow) Rebind(ctx Context, actions GameActions)
- func (w *HomunculusSkillWindow) Toggle(ctx Context, actions GameActions)
- func (w *HomunculusSkillWindow) Update(ctx Context, shortcuts *ShortcutBar, actions GameActions) bool
- func (w *HomunculusSkillWindow) UpdateDrag(ctx Context, shortcuts *ShortcutBar) bool
- type IdentifyWindow
- type InstanceWindow
- func (w *InstanceWindow) Close()
- func (w *InstanceWindow) Rebind(ctx Context, onDestroy func())
- func (w *InstanceWindow) Sync(ctx Context)
- func (w *InstanceWindow) Toggle(ctx Context)
- func (w *InstanceWindow) Update(ctx Context) bool
- func (w *InstanceWindow) UpdatePresentation(ctx Context, now time.Time)
- type InventoryBagWindow
- func (w *InventoryBagWindow) AcceptStorageDrop(ctx Context, item session.InventoryItem, mx, my int) bool
- func (w *InventoryBagWindow) ClampScroll(s *session.Session)
- func (w *InventoryBagWindow) DrawDragGhost(screen *render.Frame, ctx Context, assets AssetProvider)
- func (w *InventoryBagWindow) DrawTooltip(ctx Context, screen *render.Frame)
- func (w *InventoryBagWindow) KeyboardShortcutsBlocked() bool
- func (w *InventoryBagWindow) PendingCardIndex() uint16
- func (w *InventoryBagWindow) Rebind(ctx Context, itemInfo *ItemWindows)
- func (w *InventoryBagWindow) Toggle(ctx Context)
- func (w *InventoryBagWindow) Update(ctx Context, shortcuts *ShortcutBar, storage *StorageWindow, cart *CartWindow, ...) bool
- func (w *InventoryBagWindow) UpdateDrag(ctx Context, shortcuts *ShortcutBar, storage *StorageWindow, cart *CartWindow, ...) bool
- func (w *InventoryBagWindow) UpdateDropPrompt(ctx Context) bool
- func (w *InventoryBagWindow) UpdatePresentation(ctx Context, itemInfo *ItemWindows)
- type InventoryDropTarget
- type ItemInfoCardIllustrationRequest
- type ItemInfoReadBookRequest
- type ItemInfoWindow
- func (w *ItemInfoWindow) DrawTooltip(ctx Context, screen *render.Frame)
- func (w *ItemInfoWindow) PopCardIllustrationRequest() ItemInfoCardIllustrationRequest
- func (w *ItemInfoWindow) PopReadBookRequest() ItemInfoReadBookRequest
- func (w *ItemInfoWindow) Rebind(ctx Context, assets AssetProvider)
- func (w *ItemInfoWindow) Update(ctx Context, assets AssetProvider) bool
- type ItemPickupNotification
- type ItemWindows
- type KeyboardShortcutBlocker
- type LevelUpNotificationAction
- type LevelUpNotifications
- func (n *LevelUpNotifications) BaseVisible() bool
- func (n *LevelUpNotifications) JobVisible() bool
- func (n *LevelUpNotifications) NotifyBase()
- func (n *LevelUpNotifications) NotifyJob()
- func (n *LevelUpNotifications) Rebind(ctx Context)
- func (n *LevelUpNotifications) Update(ctx Context) LevelUpNotificationAction
- type LoginWindow
- type LoginWindowCallbacks
- type MailAction
- type MailActionKind
- type MailWindow
- func (w *MailWindow) AcceptInventoryDrop(ctx Context, item session.InventoryItem, mx, my int) bool
- func (w *MailWindow) BeginCompose(recipient, title string)
- func (w *MailWindow) CloseFromServer(ctx Context)
- func (w *MailWindow) IsComposing() bool
- func (w *MailWindow) ModalOpen() bool
- func (w *MailWindow) Open(ctx Context, onError func(string))
- func (w *MailWindow) PopAction() MailAction
- func (w *MailWindow) ReadMessage() (network.MailMessage, bool)
- func (w *MailWindow) RemoveMail(id uint32)
- func (w *MailWindow) SetAttachment(item session.InventoryItem)
- func (w *MailWindow) SetBusy(busy bool)
- func (w *MailWindow) SetInbox(entries []network.MailEntry)
- func (w *MailWindow) ShowInbox()
- func (w *MailWindow) ShowMail(message network.MailMessage)
- func (w *MailWindow) Update(ctx Context, itemInfo *ItemWindows) bool
- func (w *MailWindow) UpdateKeyboardInput(ctx Context) bool
- func (w *MailWindow) UpdateModal(ctx Context) bool
- func (w *MailWindow) UpdateReadMessage(message network.MailMessage)
- type MakingArrowWindow
- type MakingItemWindow
- type Manager
- func (m *Manager) AddForegroundOverlay(root widget.Widget)
- func (m *Manager) AddOverlay(root widget.Widget)
- func (m *Manager) Clear()
- func (m *Manager) OverlayAt(x, y int) widget.Widget
- func (m *Manager) PointerBlocked(x, y int) bool
- func (m *Manager) RaiseOverlay(root widget.Widget)
- func (m *Manager) RemoveOverlay(root widget.Widget)
- func (m *Manager) SetUIApp(app client.UIApp)
- func (m *Manager) TopEscapeOverlay() widget.Widget
- type MercenaryContextAction
- type MercenaryContextActionKind
- type MercenaryContextMenu
- type MercenaryInfoAction
- type MercenaryInfoActionKind
- type MercenaryInfoWindow
- type MercenarySkillWindow
- func (w *MercenarySkillWindow) Open(ctx Context, actions GameActions)
- func (w *MercenarySkillWindow) Rebind(ctx Context, actions GameActions)
- func (w *MercenarySkillWindow) Toggle(ctx Context, actions GameActions)
- func (w *MercenarySkillWindow) Update(ctx Context, shortcuts *ShortcutBar, actions GameActions) bool
- func (w *MercenarySkillWindow) UpdateDrag(ctx Context, shortcuts *ShortcutBar) bool
- type Minimap
- func (m *Minimap) ApplyCompass(id uint8, typ, x, y int, rgb uint32, now time.Time)
- func (m *Minimap) ApplyGuildMemberPosition(accountID uint32, x, y int)
- func (m *Minimap) ClearBossMarker()
- func (m *Minimap) ClearGuildMemberPositions()
- func (m *Minimap) Dragging() bool
- func (m *Minimap) Hidden() bool
- func (m *Minimap) RestorePosition(ctx Context, position config.WindowPosition)
- func (m *Minimap) SavedPosition() config.WindowPosition
- func (m *Minimap) SetBossMarker(x, y int)
- func (m *Minimap) Toggle(ctx Context)
- func (m *Minimap) Update(ctx Context) bool
- type MonsterInfoView
- type MonsterInfoWindow
- type NPCCutinOverlay
- func (c *NPCCutinOverlay) Apply(cutin network.NPCCutin, texture *render.Image)
- func (c *NPCCutinOverlay) Clear()
- func (c *NPCCutinOverlay) Draw(screen *render.Frame)
- func (c *NPCCutinOverlay) PointerBlocked(screenWidth, screenHeight, x, y int) bool
- func (c *NPCCutinOverlay) Update(ctx Context) bool
- func (c *NPCCutinOverlay) Visible() bool
- type NPCDialog
- func (d *NPCDialog) Apply(packet network.NPCDialog)
- func (d *NPCDialog) Control(ctx Context, action string) bool
- func (d *NPCDialog) IsOpen() bool
- func (d *NPCDialog) Reset()
- func (d *NPCDialog) ResetPublished(ctx Context)
- func (d *NPCDialog) SetCloseHandler(handler func())
- func (d *NPCDialog) Update(ctx Context) bool
- type PartyContextMenu
- type PartyCreateWindow
- type PartyCreateWindowAction
- type PartyInviteWindow
- type PartySettingsWindow
- type PetContextAction
- type PetContextActionKind
- type PetContextMenu
- type PetEggWindow
- type PetInfoWindow
- type PlayerContextAction
- type PlayerContextActionKind
- type PlayerContextMenu
- type PlayerContextOptions
- type Poptips
- type PvPCounter
- type QuestWindow
- type RepairItemWindow
- func (w *RepairItemWindow) ApplyAck(ctx Context, ack network.RepairItemAck)
- func (w *RepairItemWindow) OpenChoices(ctx Context, title, emptyText string, items []equipmentChoice, ...)
- func (w *RepairItemWindow) OpenList(ctx Context, list network.RepairItemList)
- func (w *RepairItemWindow) Update(ctx Context) bool
- type ServiceWindow
- type ServiceWindowCallbacks
- type ServiceWindowOptions
- type SettingsWindow
- type ShopWindow
- func (w *ShopWindow) ApplyResult(ctx Context, result network.ShopResult)
- func (w *ShopWindow) DrawDragGhost(screen *render.Frame, ctx Context, assets AssetProvider)
- func (w *ShopWindow) KeyboardShortcutsBlocked() bool
- func (w *ShopWindow) OpenBuy(list []network.ShopBuyItem, ctx Context)
- func (w *ShopWindow) OpenDeal(selection network.ShopDealSelection, ctx Context)
- func (w *ShopWindow) OpenSell(list []network.ShopSellItem, ctx Context)
- func (w *ShopWindow) Publish(ctx Context)
- func (w *ShopWindow) Update(ctx Context, itemInfo *ItemWindows) bool
- type ShortcutBar
- func (b *ShortcutBar) AcceptItemDrop(ctx Context, item session.InventoryItem, mx, my int) bool
- func (b *ShortcutBar) AcceptSkillDrop(ctx Context, skill session.Skill, mx, my int) bool
- func (b *ShortcutBar) ActivateSlot(ctx Context, actions GameActions, slot int) (uint16, bool)
- func (b *ShortcutBar) ClearDepletedItem(ctx Context, index, itemID uint16) bool
- func (b *ShortcutBar) Dragging() bool
- func (b *ShortcutBar) DrawTooltip(ctx Context, screen *render.Frame)
- func (b *ShortcutBar) Publish(ctx Context, actions GameActions, assets AssetProvider)
- func (b *ShortcutBar) ResetOverlay(ctx Context)
- func (b *ShortcutBar) RestorePosition(ctx Context, position config.WindowPosition)
- func (b *ShortcutBar) SavedPosition() config.WindowPosition
- func (b *ShortcutBar) SetVisibleRows(ctx Context, rows int)
- func (b *ShortcutBar) SyncFromSession(ctx Context)
- func (b *ShortcutBar) Update(ctx Context, actions GameActions) bool
- func (b *ShortcutBar) UpdateKeyboardInput(ctx Context, actions GameActions, chatActive bool) bool
- func (b *ShortcutBar) VisibleRows() int
- type SkillWindow
- func (w *SkillWindow) ClampScroll(s *session.Session)
- func (w *SkillWindow) DrawDragGhost(screen *render.Frame, ctx Context, assets AssetProvider)
- func (w *SkillWindow) DrawTooltip(ctx Context, screen *render.Frame)
- func (w *SkillWindow) OpenWindow(ctx Context)
- func (w *SkillWindow) Publish(ctx Context)
- func (w *SkillWindow) Rebind(ctx Context, actions GameActions)
- func (w *SkillWindow) SetTreeMode(ctx Context, tree bool)
- func (w *SkillWindow) Toggle(ctx Context)
- func (w *SkillWindow) TreeMode() bool
- func (w *SkillWindow) Update(ctx Context, shortcuts *ShortcutBar, actions GameActions) bool
- func (w *SkillWindow) UpdateDrag(ctx Context, shortcuts *ShortcutBar) bool
- type StatsWindow
- func (w *StatsWindow) ApplyStatusChangeAck(ctx Context, ack network.StatusChangeAck)
- func (w *StatsWindow) OpenWindow(ctx Context)
- func (w *StatsWindow) Rebind(ctx Context)
- func (w *StatsWindow) Toggle(ctx Context)
- func (w *StatsWindow) Update(ctx Context) bool
- func (w *StatsWindow) UpdatePresentation(ctx Context)
- type StatusIcons
- type StoragePasswordAction
- type StoragePasswordActionKind
- type StoragePasswordMode
- type StoragePasswordWindow
- func (w *StoragePasswordWindow) CloseFromServer(ctx Context)
- func (w *StoragePasswordWindow) OpenPrompt(ctx Context, mode StoragePasswordMode, message string)
- func (w *StoragePasswordWindow) PopAction() StoragePasswordAction
- func (w *StoragePasswordWindow) ShowMessage(ctx Context, message string)
- func (w *StoragePasswordWindow) Update(ctx Context) bool
- type StorageWindow
- func (w *StorageWindow) AcceptCartDrop(ctx Context, item session.InventoryItem, mx, my int) bool
- func (w *StorageWindow) AcceptInventoryDrop(ctx Context, item session.InventoryItem, mx, my int) bool
- func (w *StorageWindow) ClampScroll(s *session.Session)
- func (w *StorageWindow) DrawDragGhost(screen *render.Frame, ctx Context, assets AssetProvider)
- func (w *StorageWindow) OpenWindow(ctx Context)
- func (w *StorageWindow) Refresh(ctx Context, itemInfo *ItemWindows)
- func (w *StorageWindow) SetOpen(open bool)
- func (w *StorageWindow) Update(ctx Context, inventory *InventoryBagWindow, cart *CartWindow, ...) bool
- func (w *StorageWindow) UpdateDrag(ctx Context, inventory *InventoryBagWindow, cart *CartWindow) bool
- type TeleportModal
- type TextPromptAction
- type TextPromptWindow
- func (w *TextPromptWindow) Control(ctx Context, action string)
- func (w *TextPromptWindow) Open(ctx Context, title, label, placeholder string, maxLength int)
- func (w *TextPromptWindow) OpenPassword(ctx Context, title, label string, maxLength int)
- func (w *TextPromptWindow) PopAction() TextPromptAction
- func (w *TextPromptWindow) Rebind(ctx Context)
- func (w *TextPromptWindow) Update(ctx Context) bool
- type TradeWindow
- func (w *TradeWindow) AcceptInventoryDrop(ctx Context, item session.InventoryItem, mx, my int) bool
- func (w *TradeWindow) AddOwnItemAck(ctx Context, ack network.TradeAddItemAck)
- func (w *TradeWindow) AddReceivedItem(ctx Context, item network.TradeItem)
- func (w *TradeWindow) Close(ctx Context)
- func (w *TradeWindow) Open(ctx Context, partnerName string)
- func (w *TradeWindow) SetConcluded(ctx Context, other bool)
- func (w *TradeWindow) Undo(ctx Context)
- func (w *TradeWindow) Update(ctx Context, itemInfo *ItemWindows) bool
- type VendingWindow
- func (w *VendingWindow) ApplyOwnList(ctx Context, list network.VendingItemList)
- func (w *VendingWindow) ApplyPurchaseResult(ctx Context, result network.VendingPurchaseResult)
- func (w *VendingWindow) ApplySoldItem(ctx Context, sold network.VendingSoldItem)
- func (w *VendingWindow) DrawDragGhost(screen *render.Frame, ctx Context, assets AssetProvider)
- func (w *VendingWindow) KeyboardShortcutsBlocked() bool
- func (w *VendingWindow) OpenBuy(ctx Context, list network.VendingItemList)
- func (w *VendingWindow) OpenSetup(ctx Context, req network.VendingOpenRequest)
- func (w *VendingWindow) Publish(ctx Context)
- func (w *VendingWindow) Update(ctx Context, itemInfo *ItemWindows) bool
- type ViewEquipmentWindow
- type WeaponRefineWindow
- func (w *WeaponRefineWindow) ApplyAck(ctx Context, ack network.WeaponRefineAck)
- func (w *WeaponRefineWindow) OpenChoices(ctx Context, title, emptyText string, items []equipmentChoice, ...)
- func (w *WeaponRefineWindow) OpenList(ctx Context, list network.WeaponRefineList)
- func (w *WeaponRefineWindow) Update(ctx Context) bool
- type WhisperWindow
- func (w *WhisperWindow) AddError(ctx Context, message string)
- func (w *WhisperWindow) AddIncoming(ctx Context, sender, message string)
- func (w *WhisperWindow) AddOutgoing(ctx Context, message string)
- func (w *WhisperWindow) Open(ctx Context, target string)
- func (w *WhisperWindow) PopAction() WhisperWindowAction
- func (w *WhisperWindow) Rebind(ctx Context)
- func (w *WhisperWindow) Update(ctx Context) bool
- type WhisperWindowAction
- type WhisperWindows
- func (w *WhisperWindows) AddIncoming(ctx Context, sender, message string)
- func (w *WhisperWindows) Find(target string) *WhisperWindow
- func (w *WhisperWindows) IsOpen() bool
- func (w *WhisperWindows) Open(ctx Context, target string) *WhisperWindow
- func (w *WhisperWindows) Rebind(ctx Context)
- func (w *WhisperWindows) Update(ctx Context) (bool, WhisperWindowAction)
- type Window
- func (w *Window) Close()
- func (w *Window) Dragging() bool
- func (w *Window) EnsureWindow(width, height int) bool
- func (w *Window) IsOpen() bool
- func (w *Window) Open(ctx client.Context, content widget.Widget)
- func (w *Window) OpenAt(x, y int, content widget.Widget)
- func (w *Window) Publish(ctx client.Context)
- func (w *Window) Raise(ctx client.Context)
- func (w *Window) RebindContent(ctx client.Context, content widget.Widget)
- func (w *Window) RestorePosition(ctx client.Context, position config.WindowPosition)
- func (w *Window) SavedPosition() config.WindowPosition
- func (w *Window) SetAutoPosition(x, y int) bool
- func (w *Window) SetBackground(color widget.Color)
- func (w *Window) SetContent(content widget.Widget)
- func (w *Window) SetFullRedraw(enabled bool)
- func (w *Window) SetSize(width, height int)
- func (w *Window) Unpublish(ctx client.Context)
- func (w *Window) Update(ctx client.Context) bool
- func (w *Window) Widget() widget.Widget
- type WindowOption
- func Background(color widget.Color) WindowOption
- func CloseButton(enabled bool) WindowOption
- func Content(content widget.Widget) WindowOption
- func Footer(children ...widget.Widget) WindowOption
- func OnClose(onClose func()) WindowOption
- func Radius(radius float32) WindowOption
- func Size(width, height float32) WindowOption
- func Title(title string) WindowOption
- func TitleBar(enabled bool) WindowOption
- func TitleButton(kind rotheme.IconButtonKind, onClick func()) WindowOption
- func TitleSignal(title state.ReadonlySignal[string]) WindowOption
- type WorldMapWindow
Constants ¶
const ( CharacterCreateStatStr = iota CharacterCreateStatAgi CharacterCreateStatVit CharacterCreateStatInt CharacterCreateStatDex CharacterCreateStatLuk )
const ( TeleportSkillID = teleportSkillID WarpPortalSkillID = warpPortalSkillID TeleportRandomMap = teleportRandomMap )
const ( ROWindowTitleHeight = 28 )
const CharacterCreateStatCount = 6
const HungerBarLowThreshold = 0.25
const ROScrollbarGutter = 12
Variables ¶
var ( WindowRadius = float32(6) WindowBorderColor = color.RGBA{R: 118, G: 160, B: 206, A: 255} PanelAltColor = color.RGBA{R: 236, G: 244, B: 252, A: 255} TextColor = color.RGBA{R: 38, G: 48, B: 58, A: 255} MutedTextColor = color.RGBA{R: 98, G: 112, B: 126, A: 255} TitleTextColor = color.RGBA{R: 22, G: 54, B: 88, A: 255} GoodTextColor = color.RGBA{R: 34, G: 142, B: 72, A: 255} ErrorTextColor = color.RGBA{R: 204, G: 48, B: 48, A: 255} PlayerHPBarColor = color.RGBA{R: 16, G: 239, B: 33, A: 255} PlayerSPBarColor = color.RGBA{R: 24, G: 99, B: 222, A: 255} HungerBarColor = color.RGBA{R: 255, G: 231, B: 231, A: 255} HungerBarLowColor = color.RGBA{R: 255, G: 255, B: 0, A: 255} )
Functions ¶
func CharacterCreateGraphDrawOrder ¶
func CharacterCreateGraphDrawOrder() [CharacterCreateStatCount]int
func CharacterCreateGraphPoints ¶
func CharacterCreateGraphPoints(cx, cy int, radius float64) [CharacterCreateStatCount][2]float64
func CharacterCreateStatLabels ¶
func CharacterCreateStatLabels() [CharacterCreateStatCount]string
func CharacterSelectPage ¶
func DrawRoundedSurface ¶
func HomunculusASPDDisplay ¶
func HomunculusIntimacyText ¶
func HungerBarFillColor ¶
func IsLevelOneTeleportSkill ¶
func ItemDisplayName ¶ added in v0.23.0
func ItemDisplayName(manager *res.Manager, item session.InventoryItem) string
ItemDisplayName includes refinement, cards, and slots for identified items.
func PointInRect ¶
func TeleportWarpListBypassesModal ¶
func TeleportWarpListBypassesModal(skill session.Skill, list network.WarpPointList) bool
func TooltipsSuppressed ¶ added in v0.6.0
TooltipsSuppressed reports whether transient hover UI should stay hidden. Window dragging uses a renderer-owned fast path, so that drag state is the authoritative signal shared by every window and tooltip.
func UseInventoryItem ¶ added in v0.7.0
func UseInventoryItem(ctx Context, item session.InventoryItem) error
UseInventoryItem requests use of a consumable inventory entry.
func VisibleStatusIconIDs ¶
func VisibleStatusIconIDs(active map[uint16]session.StatusEffect) []uint16
func Win ¶
func Win(options ...WindowOption) widget.Widget
Types ¶
type Announcement ¶ added in v0.8.0
type Announcement struct {
// contains filtered or unexported fields
}
func (*Announcement) Draw ¶ added in v0.8.0
func (a *Announcement) Draw(screen *render.Frame, now time.Time)
func (*Announcement) Show ¶ added in v0.8.0
func (a *Announcement) Show(text string, messageColor color.RGBA, style AnnouncementStyle, now time.Time)
type AnnouncementStyle ¶ added in v0.8.0
type AssetProvider ¶
type AssetProvider interface {
DrawInventoryItemIcon(screen *render.Frame, manager *res.Manager, item session.InventoryItem, x, y int)
DrawSkillIcon(screen *render.Frame, manager *res.Manager, skill session.Skill, x, y, size int)
SkillIconImage(manager *res.Manager, skill session.Skill) image.Image
ItemInfoIllustrationImage(manager *res.Manager, item session.InventoryItem, width, height int) image.Image
EquipmentPreviewImage(ctx client.Context, width, height int) image.Image
EquipmentPreviewImageForCharacter(ctx client.Context, character session.Character, sex byte, width, height int) image.Image
}
type AutoSpellWindow ¶ added in v0.9.0
type AutoSpellWindow struct {
Window
// contains filtered or unexported fields
}
func (*AutoSpellWindow) OpenList ¶ added in v0.9.0
func (w *AutoSpellWindow) OpenList(ctx Context, list network.AutoSpellList, assets AssetProvider)
func (*AutoSpellWindow) PopSelection ¶ added in v0.9.0
func (w *AutoSpellWindow) PopSelection() (uint16, bool)
func (*AutoSpellWindow) Reset ¶ added in v0.9.0
func (w *AutoSpellWindow) Reset(ctx Context)
func (*AutoSpellWindow) Update ¶ added in v0.9.0
func (w *AutoSpellWindow) Update(ctx Context) bool
type BasicMenu ¶
type BasicMenu struct {
Window
// contains filtered or unexported fields
}
func (*BasicMenu) FollowCharacterWindow ¶ added in v0.6.0
func (m *BasicMenu) FollowCharacterWindow(ctx client.Context, character *CharacterWindow)
FollowCharacterWindow keeps the menu attached below the character window while leaving both as independent overlays for input and redraw purposes.
func (*BasicMenu) Rebind ¶
func (m *BasicMenu) Rebind(ctx client.Context, callbacks BasicMenuCallbacks)
func (*BasicMenu) SetCollapsed ¶ added in v0.23.0
type BasicMenuCallbacks ¶
type BasicMenuCallbacks struct {
OnStatus func()
OnOption func()
OnItems func()
OnEquip func()
OnSkill func()
OnMap func()
OnComm func()
OnFriend func()
}
type BookWindow ¶ added in v0.10.0
type BookWindow struct {
Window
// contains filtered or unexported fields
}
func (*BookWindow) Open ¶ added in v0.10.0
func (w *BookWindow) Open(ctx Context, itemID uint16, title string) error
func (*BookWindow) Rebind ¶ added in v0.10.0
func (w *BookWindow) Rebind(ctx Context)
func (*BookWindow) Update ¶ added in v0.10.0
func (w *BookWindow) Update(ctx Context) bool
type CardCompositionWindow ¶
type CardCompositionWindow struct {
Window
// contains filtered or unexported fields
}
func (*CardCompositionWindow) ApplyAck ¶
func (w *CardCompositionWindow) ApplyAck(ctx Context, ack network.ItemCompositionAck)
func (*CardCompositionWindow) ClampScroll ¶
func (w *CardCompositionWindow) ClampScroll(s *session.Session)
func (*CardCompositionWindow) OpenList ¶
func (w *CardCompositionWindow) OpenList(ctx Context, cardIndex uint16, list network.ItemCompositionList)
func (*CardCompositionWindow) Update ¶
func (w *CardCompositionWindow) Update(ctx Context) bool
type CardIllustrationWindow ¶ added in v0.10.0
type CardIllustrationWindow struct {
Window
// contains filtered or unexported fields
}
func (*CardIllustrationWindow) Open ¶ added in v0.10.0
func (w *CardIllustrationWindow) Open(ctx Context, itemID uint16, title string) error
func (*CardIllustrationWindow) Rebind ¶ added in v0.10.0
func (w *CardIllustrationWindow) Rebind(ctx Context)
func (*CardIllustrationWindow) Update ¶ added in v0.10.0
func (w *CardIllustrationWindow) Update(ctx Context) bool
type CartWindow ¶
type CartWindow struct {
Window
// contains filtered or unexported fields
}
func (*CartWindow) AcceptInventoryDrop ¶
func (w *CartWindow) AcceptInventoryDrop(ctx Context, item session.InventoryItem, mx, my int) bool
func (*CartWindow) AcceptStorageDrop ¶
func (w *CartWindow) AcceptStorageDrop(ctx Context, item session.InventoryItem, mx, my int) bool
func (*CartWindow) ClampScroll ¶
func (w *CartWindow) ClampScroll(s *session.Session)
func (*CartWindow) DrawDragGhost ¶
func (w *CartWindow) DrawDragGhost(screen *render.Frame, ctx Context, assets AssetProvider)
func (*CartWindow) DrawTooltip ¶
func (w *CartWindow) DrawTooltip(ctx Context, screen *render.Frame)
func (*CartWindow) OpenWindow ¶
func (w *CartWindow) OpenWindow(ctx Context)
func (*CartWindow) Rebind ¶
func (w *CartWindow) Rebind(ctx Context, itemInfo *ItemWindows)
func (*CartWindow) Refresh ¶
func (w *CartWindow) Refresh(ctx Context, itemInfo *ItemWindows)
func (*CartWindow) SetOpen ¶
func (w *CartWindow) SetOpen(open bool)
func (*CartWindow) Toggle ¶
func (w *CartWindow) Toggle(ctx Context)
func (*CartWindow) Update ¶
func (w *CartWindow) Update(ctx Context, inventory *InventoryBagWindow, storage *StorageWindow, itemInfo *ItemWindows) bool
func (*CartWindow) UpdateDrag ¶
func (w *CartWindow) UpdateDrag(ctx Context, inventory *InventoryBagWindow, storage *StorageWindow) bool
type ChangeCartWindow ¶
type ChangeCartWindow struct {
Window
// contains filtered or unexported fields
}
func (*ChangeCartWindow) Open ¶
func (w *ChangeCartWindow) Open(ctx client.Context)
type CharacterCreateWindow ¶
type CharacterCreateWindow struct {
Window
// contains filtered or unexported fields
}
func NewCharacterCreateWindow ¶
func NewCharacterCreateWindow(ctx client.Context, opts CharacterCreateWindowOptions, callbacks CharacterCreateWindowCallbacks) *CharacterCreateWindow
func (*CharacterCreateWindow) SetOptions ¶
func (w *CharacterCreateWindow) SetOptions(ctx client.Context, opts CharacterCreateWindowOptions)
type CharacterCreateWindowOptions ¶
type CharacterCreateWindowOptions struct {
Name string
Stats [CharacterCreateStatCount]uint8
Preview image.Image
}
type CharacterSelectWindow ¶
type CharacterSelectWindow struct {
Window
// contains filtered or unexported fields
}
func NewCharacterSelectWindow ¶
func NewCharacterSelectWindow(ctx client.Context, opts CharacterSelectWindowOptions, callbacks CharacterSelectWindowCallbacks) *CharacterSelectWindow
func (*CharacterSelectWindow) SetOptions ¶
func (w *CharacterSelectWindow) SetOptions(ctx client.Context, opts CharacterSelectWindowOptions)
type CharacterWindow ¶
type CharacterWindow struct {
Window
// contains filtered or unexported fields
}
func (*CharacterWindow) Compact ¶ added in v0.23.0
func (w *CharacterWindow) Compact() bool
func (*CharacterWindow) Rebind ¶ added in v0.14.0
func (w *CharacterWindow) Rebind(ctx Context)
func (*CharacterWindow) SetCompact ¶ added in v0.23.0
func (w *CharacterWindow) SetCompact(compact bool)
func (*CharacterWindow) ToggleCompact ¶ added in v0.14.0
func (w *CharacterWindow) ToggleCompact()
func (*CharacterWindow) Update ¶
func (w *CharacterWindow) Update(ctx Context) bool
type ChatConsole ¶
type ChatConsole struct {
OnGuildWindow func()
OnInstanceWindow func()
// contains filtered or unexported fields
}
func (*ChatConsole) Active ¶
func (c *ChatConsole) Active() bool
func (*ChatConsole) AddBlueMessage ¶
func (c *ChatConsole) AddBlueMessage(format string, args ...any)
func (*ChatConsole) AddColoredMessage ¶
func (c *ChatConsole) AddColoredMessage(messageColor color.RGBA, format string, args ...any)
func (*ChatConsole) AddErrorMessage ¶
func (c *ChatConsole) AddErrorMessage(format string, args ...any)
func (*ChatConsole) AddGuildChatMessage ¶ added in v0.8.1
func (c *ChatConsole) AddGuildChatMessage(format string, args ...any)
func (*ChatConsole) AddGuildMessage ¶
func (c *ChatConsole) AddGuildMessage(format string, args ...any)
func (*ChatConsole) AddMessage ¶
func (c *ChatConsole) AddMessage(format string, args ...any)
func (*ChatConsole) AddSystemMessage ¶
func (c *ChatConsole) AddSystemMessage(format string, args ...any)
func (*ChatConsole) Dragging ¶ added in v0.23.0
func (c *ChatConsole) Dragging() bool
func (*ChatConsole) Messages ¶
func (c *ChatConsole) Messages() []ConsoleMessage
func (*ChatConsole) PrepareKeyInput ¶ added in v0.13.0
func (c *ChatConsole) PrepareKeyInput(ctx client.Context, code input.KeyCode, mods gpucontext.Modifiers)
PrepareKeyInput handles an unfocused Enter and restores classic chat for editing/navigation keys. The textfield still performs edits itself.
func (*ChatConsole) PrepareTextInput ¶ added in v0.13.0
PrepareTextInput runs before UI dispatch, so the first typed character goes through the normal textfield editor too (including selection and Unicode). The world calls it only when no other form or modal owns keyboard input.
func (*ChatConsole) Publish ¶
func (c *ChatConsole) Publish(ctx client.Context)
func (*ChatConsole) Rebind ¶ added in v0.13.0
func (c *ChatConsole) Rebind(ctx client.Context)
Rebind reconnects the editor callbacks after the console is copied to a new world mode, keeping the same field so its caret and selection survive.
func (*ChatConsole) RestorePosition ¶ added in v0.23.0
func (c *ChatConsole) RestorePosition(ctx client.Context, position config.WindowPosition)
func (*ChatConsole) SavedPosition ¶ added in v0.23.0
func (c *ChatConsole) SavedPosition() config.WindowPosition
func (*ChatConsole) SendText ¶ added in v0.13.0
func (c *ChatConsole) SendText(ctx client.Context, text string) bool
SendText executes a chat message or command without changing the editor's draft or history. Commands such as /bm may intentionally change input mode. Both console submissions and Alt+number use it.
func (*ChatConsole) Unpublish ¶
func (c *ChatConsole) Unpublish(ctx client.Context)
func (*ChatConsole) UpdateInput ¶ added in v0.6.0
func (c *ChatConsole) UpdateInput(ctx client.Context) bool
UpdateInput handles chat focus, typing, and pointer input after presentation maintenance has already run for the frame.
func (*ChatConsole) UpdatePresentation ¶ added in v0.6.0
func (c *ChatConsole) UpdatePresentation(ctx client.Context)
UpdatePresentation advances deferred message redraws independently of input. World mode calls this before modal input can return early for the frame.
type ChatRoomCreateWindow ¶
type ChatRoomCreateWindow struct {
Window
// contains filtered or unexported fields
}
func (*ChatRoomCreateWindow) Editing ¶ added in v0.23.0
func (w *ChatRoomCreateWindow) Editing() bool
func (*ChatRoomCreateWindow) Open ¶
func (w *ChatRoomCreateWindow) Open(ctx Context)
func (*ChatRoomCreateWindow) OpenEdit ¶ added in v0.23.0
func (w *ChatRoomCreateWindow) OpenEdit(ctx Context, title string, limit uint16, public bool)
func (*ChatRoomCreateWindow) PopAction ¶
func (w *ChatRoomCreateWindow) PopAction() ChatRoomCreateWindowAction
func (*ChatRoomCreateWindow) Rebind ¶
func (w *ChatRoomCreateWindow) Rebind(ctx Context)
func (*ChatRoomCreateWindow) Update ¶
func (w *ChatRoomCreateWindow) Update(ctx Context) bool
type ChatRoomWindow ¶
func (*ChatRoomWindow) AddError ¶
func (w *ChatRoomWindow) AddError(ctx Context, text string)
func (*ChatRoomWindow) AddMember ¶
func (w *ChatRoomWindow) AddMember(ctx Context, name string, count uint16)
func (*ChatRoomWindow) AddMessage ¶
func (w *ChatRoomWindow) AddMessage(ctx Context, text string)
func (*ChatRoomWindow) AddSystem ¶
func (w *ChatRoomWindow) AddSystem(ctx Context, text string)
func (*ChatRoomWindow) CanManageMember ¶ added in v0.23.0
func (w *ChatRoomWindow) CanManageMember(name string) bool
func (*ChatRoomWindow) IsOwner ¶ added in v0.23.0
func (w *ChatRoomWindow) IsOwner() bool
func (*ChatRoomWindow) OpenSettings ¶ added in v0.23.0
func (w *ChatRoomWindow) OpenSettings(ctx Context, form *ChatRoomCreateWindow)
func (*ChatRoomWindow) PopAction ¶
func (w *ChatRoomWindow) PopAction() ChatRoomWindowAction
func (*ChatRoomWindow) Rebind ¶
func (w *ChatRoomWindow) Rebind(ctx Context)
func (*ChatRoomWindow) RemoveMember ¶
func (w *ChatRoomWindow) RemoveMember(ctx Context, name string, count uint16)
func (*ChatRoomWindow) SetMembers ¶
func (w *ChatRoomWindow) SetMembers(ctx Context, members []string, owner string)
func (*ChatRoomWindow) SetOwner ¶
func (w *ChatRoomWindow) SetOwner(ctx Context, name string)
func (*ChatRoomWindow) Update ¶
func (w *ChatRoomWindow) Update(ctx Context) bool
func (*ChatRoomWindow) UpdateRoom ¶
type ChatRoomWindowAction ¶
type ChatShortcutsWindow ¶ added in v0.13.0
type ChatShortcutsWindow struct {
Window
// contains filtered or unexported fields
}
func (*ChatShortcutsWindow) Command ¶ added in v0.13.0
func (w *ChatShortcutsWindow) Command(ctx Context, slot int) string
func (*ChatShortcutsWindow) KeyboardShortcutsBlocked ¶ added in v0.13.0
func (w *ChatShortcutsWindow) KeyboardShortcutsBlocked() bool
func (*ChatShortcutsWindow) Rebind ¶ added in v0.13.0
func (w *ChatShortcutsWindow) Rebind(ctx Context, console *ChatConsole, onView func())
func (*ChatShortcutsWindow) SelectEmotion ¶ added in v0.13.0
func (w *ChatShortcutsWindow) SelectEmotion(command string) bool
SelectEmotion lets the existing emote picker edit the last focused slot. Returning false keeps the picker's ordinary console behavior when closed.
func (*ChatShortcutsWindow) Toggle ¶ added in v0.13.0
func (w *ChatShortcutsWindow) Toggle(ctx Context, console *ChatConsole, onView func())
func (*ChatShortcutsWindow) Update ¶ added in v0.13.0
func (w *ChatShortcutsWindow) Update(ctx Context) bool
func (*ChatShortcutsWindow) UpdateKeyboardInput ¶ added in v0.13.0
func (w *ChatShortcutsWindow) UpdateKeyboardInput(ctx Context) bool
type ConfirmModal ¶
type ConfirmModal struct {
Window
// contains filtered or unexported fields
}
func (*ConfirmModal) Cancel ¶
func (m *ConfirmModal) Cancel(ctx client.Context)
func (*ConfirmModal) Close ¶
func (m *ConfirmModal) Close(ctx client.Context)
func (*ConfirmModal) Confirm ¶
func (m *ConfirmModal) Confirm(ctx client.Context)
func (*ConfirmModal) Control ¶ added in v0.17.0
func (m *ConfirmModal) Control(ctx client.Context, action string)
Control shares modal actions with scripted controllers, including suppression of the input frame that opened the modal.
func (*ConfirmModal) Open ¶
func (m *ConfirmModal) Open(ctx client.Context, title, message string, onOK, onCancel func())
type ConsoleMessage ¶
type EmoteWindow ¶
type EmoteWindow struct {
Window
// OnSelect can handle a selection in another editor instead of the console.
OnSelect func(command string) bool
// contains filtered or unexported fields
}
func (*EmoteWindow) OpenWindow ¶
func (w *EmoteWindow) OpenWindow(ctx Context, console *ChatConsole)
func (*EmoteWindow) Rebind ¶
func (w *EmoteWindow) Rebind(ctx Context, console *ChatConsole)
func (*EmoteWindow) Toggle ¶
func (w *EmoteWindow) Toggle(ctx Context, console *ChatConsole)
func (*EmoteWindow) Update ¶
func (w *EmoteWindow) Update(ctx Context, console *ChatConsole) bool
type EquipmentWindow ¶
type EquipmentWindow struct {
Window
// contains filtered or unexported fields
}
func (*EquipmentWindow) AcceptInventoryDrop ¶
func (w *EquipmentWindow) AcceptInventoryDrop(ctx Context, item session.InventoryItem, mx, my int) bool
func (*EquipmentWindow) DrawTooltip ¶
func (w *EquipmentWindow) DrawTooltip(ctx Context, screen *render.Frame)
func (*EquipmentWindow) Rebind ¶
func (w *EquipmentWindow) Rebind(ctx Context, itemInfo *ItemWindows, cart *CartWindow, assets AssetProvider)
func (*EquipmentWindow) Toggle ¶
func (w *EquipmentWindow) Toggle(ctx Context)
func (*EquipmentWindow) Update ¶
func (w *EquipmentWindow) Update(ctx Context, itemInfo *ItemWindows, cart *CartWindow, assets AssetProvider) bool
type EscapeMenu ¶
type EscapeMenu struct {
Window
// contains filtered or unexported fields
}
func (*EscapeMenu) Action ¶
func (m *EscapeMenu) Action() EscapeMenuAction
func (*EscapeMenu) ApplyQuitGameAck ¶
func (m *EscapeMenu) ApplyQuitGameAck(ack network.QuitGameAck) bool
func (*EscapeMenu) ApplyRestartAck ¶
func (m *EscapeMenu) ApplyRestartAck(ack network.RestartAck) bool
func (*EscapeMenu) ConsumeAction ¶
func (m *EscapeMenu) ConsumeAction() EscapeMenuAction
func (*EscapeMenu) DeathMode ¶ added in v0.7.0
func (m *EscapeMenu) DeathMode() bool
func (*EscapeMenu) OpenDeath ¶ added in v0.7.0
func (m *EscapeMenu) OpenDeath(ctx client.Context)
OpenDeath switches the regular escape menu to its death variant and opens it. The death mode remains active if the player later hides the window with Escape.
func (*EscapeMenu) Pending ¶
func (m *EscapeMenu) Pending() bool
func (*EscapeMenu) PendingAction ¶ added in v0.6.0
func (m *EscapeMenu) PendingAction() EscapeMenuAction
func (*EscapeMenu) RequestAutoRevive ¶ added in v0.10.0
func (m *EscapeMenu) RequestAutoRevive(ctx client.Context)
func (*EscapeMenu) RequestCharacterSelect ¶
func (m *EscapeMenu) RequestCharacterSelect(ctx client.Context)
func (*EscapeMenu) RequestQuitGame ¶
func (m *EscapeMenu) RequestQuitGame(ctx client.Context)
func (*EscapeMenu) ResetDeath ¶ added in v0.7.0
func (m *EscapeMenu) ResetDeath(ctx client.Context)
ResetDeath returns the escape menu to its regular mode after resurrection or a map change. It also closes a death menu that the player left visible.
func (*EscapeMenu) ReturnToSavePoint ¶ added in v0.7.0
func (m *EscapeMenu) ReturnToSavePoint(ctx client.Context)
func (*EscapeMenu) Toggle ¶
func (m *EscapeMenu) Toggle(ctx client.Context)
type EscapeMenuAction ¶
type EscapeMenuAction int
const ( EscapeMenuActionNone EscapeMenuAction = iota EscapeMenuActionAutoRevive EscapeMenuActionSavePoint EscapeMenuActionCharacterSelect EscapeMenuActionSettings EscapeMenuActionCancel EscapeMenuActionExit )
type FriendContextMenu ¶
type FriendContextMenu struct {
Window
// contains filtered or unexported fields
}
func (*FriendContextMenu) Open ¶
func (m *FriendContextMenu) Open(ctx Context, x, y int, friend session.Friend)
func (*FriendContextMenu) PopAction ¶
func (m *FriendContextMenu) PopAction() FriendsWindowAction
func (*FriendContextMenu) Rebind ¶
func (m *FriendContextMenu) Rebind(ctx Context)
func (*FriendContextMenu) Update ¶
func (m *FriendContextMenu) Update(ctx Context) bool
type FriendSettingsWindow ¶
type FriendSettingsWindow struct {
Window
// contains filtered or unexported fields
}
func (*FriendSettingsWindow) Open ¶
func (w *FriendSettingsWindow) Open(ctx Context)
func (*FriendSettingsWindow) Rebind ¶
func (w *FriendSettingsWindow) Rebind(ctx Context)
func (*FriendSettingsWindow) Update ¶
func (w *FriendSettingsWindow) Update(ctx Context) bool
type FriendsWindow ¶
type FriendsWindow struct {
Window
// contains filtered or unexported fields
}
func (*FriendsWindow) Close ¶
func (w *FriendsWindow) Close()
func (*FriendsWindow) OpenWindow ¶
func (w *FriendsWindow) OpenWindow(ctx Context)
func (*FriendsWindow) PopAction ¶
func (w *FriendsWindow) PopAction() FriendsWindowAction
func (*FriendsWindow) Rebind ¶
func (w *FriendsWindow) Rebind(ctx Context)
func (*FriendsWindow) Toggle ¶
func (w *FriendsWindow) Toggle(ctx Context)
func (*FriendsWindow) ToggleFriends ¶ added in v0.14.0
func (w *FriendsWindow) ToggleFriends(ctx Context)
func (*FriendsWindow) ToggleParty ¶ added in v0.14.0
func (w *FriendsWindow) ToggleParty(ctx Context)
func (*FriendsWindow) Update ¶
func (w *FriendsWindow) Update(ctx Context) bool
type FriendsWindowAction ¶
type FriendsWindowAction struct {
Kind FriendsWindowActionKind
Friend session.Friend
PartyMember session.PartyMember
}
type FriendsWindowActionKind ¶
type FriendsWindowActionKind int
const ( FriendsWindowActionNone FriendsWindowActionKind = iota FriendsWindowActionPartySettings FriendsWindowActionPartyLeave FriendsWindowActionFriendWhisper FriendsWindowActionFriendDelete FriendsWindowActionFriendSettings FriendsWindowActionFriendBlockWhisper FriendsWindowActionPartyCreate FriendsWindowActionPartyInvite FriendsWindowActionPartyMemberInfo FriendsWindowActionPartyMemberWhisper FriendsWindowActionPartyMemberExpel )
type GameActions ¶
type GuildEmblemOption ¶
type GuildMemberAction ¶ added in v0.8.1
type GuildMemberAction struct {
Kind GuildMemberActionKind
Member session.GuildMember
}
type GuildMemberActionKind ¶ added in v0.8.1
type GuildMemberActionKind uint8
const ( GuildMemberActionNone GuildMemberActionKind = iota GuildMemberActionLeave GuildMemberActionExpel GuildMemberActionWhisper )
type GuildMemberContextMenu ¶ added in v0.8.1
type GuildMemberContextMenu struct {
Window
// contains filtered or unexported fields
}
func (*GuildMemberContextMenu) Open ¶ added in v0.8.1
func (m *GuildMemberContextMenu) Open(ctx Context, x, y int, member session.GuildMember, canExpel, isSelf, isMaster bool)
func (*GuildMemberContextMenu) PopAction ¶ added in v0.8.1
func (m *GuildMemberContextMenu) PopAction() GuildMemberAction
func (*GuildMemberContextMenu) Rebind ¶ added in v0.8.1
func (m *GuildMemberContextMenu) Rebind(ctx Context)
func (*GuildMemberContextMenu) Update ¶ added in v0.8.1
func (m *GuildMemberContextMenu) Update(ctx Context) bool
type GuildPositionUpdate ¶
type GuildRelationDelete ¶ added in v0.8.0
type GuildRelationDelete struct {
Relation session.GuildRelation
}
type GuildWindow ¶
type GuildWindow struct {
Window
EmblemImage func(Context) image.Image
MemberPortrait func(Context, session.GuildMember) image.Image
// contains filtered or unexported fields
}
func (*GuildWindow) Close ¶ added in v0.6.0
func (w *GuildWindow) Close()
func (*GuildWindow) DrawDragGhost ¶ added in v0.6.0
func (w *GuildWindow) DrawDragGhost(screen *render.Frame, ctx Context, assets AssetProvider)
func (*GuildWindow) DrawTooltip ¶
func (w *GuildWindow) DrawTooltip(ctx Context, screen *render.Frame)
func (*GuildWindow) KeyboardShortcutsBlocked ¶ added in v0.11.0
func (w *GuildWindow) KeyboardShortcutsBlocked() bool
func (*GuildWindow) OpenWindow ¶
func (w *GuildWindow) OpenWindow(ctx Context)
func (*GuildWindow) PopAction ¶
func (w *GuildWindow) PopAction() GuildWindowAction
func (*GuildWindow) Rebind ¶
func (w *GuildWindow) Rebind(ctx Context)
func (*GuildWindow) Refresh ¶
func (w *GuildWindow) Refresh(ctx Context)
func (*GuildWindow) SetEmblemOptions ¶
func (w *GuildWindow) SetEmblemOptions(ctx Context, options []GuildEmblemOption)
func (*GuildWindow) Toggle ¶
func (w *GuildWindow) Toggle(ctx Context)
func (*GuildWindow) Update ¶
func (w *GuildWindow) Update(ctx Context, shortcuts *ShortcutBar, actions GameActions) bool
func (*GuildWindow) UpdateDrag ¶ added in v0.6.0
func (w *GuildWindow) UpdateDrag(ctx Context, shortcuts *ShortcutBar) bool
func (*GuildWindow) UpdateKeyboardInput ¶ added in v0.11.0
func (w *GuildWindow) UpdateKeyboardInput(ctx Context) bool
type GuildWindowAction ¶
type GuildWindowAction struct {
RequestMenu bool
MenuTab uint32
SelectedEmblemPath string
MemberPositions []GuildMemberPositionUpdate
LevelUpSkillIDs []uint16
UpdatePositions bool
Positions []GuildPositionUpdate
UpdateNotice bool
NoticeSubject string
Notice string
DeleteRelation *GuildRelationDelete
MemberAction *GuildMemberAction
}
type HomunculusContextAction ¶
type HomunculusContextAction struct {
Kind HomunculusContextActionKind
}
type HomunculusContextActionKind ¶
type HomunculusContextActionKind uint8
const ( HomunculusContextActionNone HomunculusContextActionKind = iota HomunculusContextActionInfo HomunculusContextActionFeed HomunculusContextActionToggleAssist )
type HomunculusContextMenu ¶
type HomunculusContextMenu struct {
Window
// contains filtered or unexported fields
}
func (*HomunculusContextMenu) Open ¶
func (m *HomunculusContextMenu) Open(ctx Context, x, y int, aggressive bool)
func (*HomunculusContextMenu) PopAction ¶
func (m *HomunculusContextMenu) PopAction() HomunculusContextAction
func (*HomunculusContextMenu) Update ¶
func (m *HomunculusContextMenu) Update(ctx Context) bool
type HomunculusInfoAction ¶
type HomunculusInfoAction struct {
Kind HomunculusInfoActionKind
Name string
}
type HomunculusInfoActionKind ¶
type HomunculusInfoActionKind uint8
const ( HomunculusInfoActionNone HomunculusInfoActionKind = iota HomunculusInfoActionSkill HomunculusInfoActionFeed HomunculusInfoActionDelete HomunculusInfoActionRename )
type HomunculusInfoWindow ¶
type HomunculusInfoWindow struct {
Window
// contains filtered or unexported fields
}
func (*HomunculusInfoWindow) KeyboardShortcutsBlocked ¶ added in v0.20.1
func (w *HomunculusInfoWindow) KeyboardShortcutsBlocked() bool
func (*HomunculusInfoWindow) OpenInfo ¶
func (w *HomunculusInfoWindow) OpenInfo(ctx Context, companion session.Companion)
func (*HomunculusInfoWindow) PopAction ¶
func (w *HomunculusInfoWindow) PopAction() HomunculusInfoAction
func (*HomunculusInfoWindow) Rebind ¶
func (w *HomunculusInfoWindow) Rebind(ctx Context)
func (*HomunculusInfoWindow) Update ¶
func (w *HomunculusInfoWindow) Update(ctx Context) bool
type HomunculusSkillWindow ¶
type HomunculusSkillWindow struct {
Window
// contains filtered or unexported fields
}
func (*HomunculusSkillWindow) Close ¶
func (w *HomunculusSkillWindow) Close()
func (*HomunculusSkillWindow) DrawDragGhost ¶
func (w *HomunculusSkillWindow) DrawDragGhost(screen *render.Frame, ctx Context, assets AssetProvider)
func (*HomunculusSkillWindow) DrawTooltip ¶
func (w *HomunculusSkillWindow) DrawTooltip(ctx Context, screen *render.Frame)
func (*HomunculusSkillWindow) Open ¶
func (w *HomunculusSkillWindow) Open(ctx Context, actions GameActions)
func (*HomunculusSkillWindow) Publish ¶
func (w *HomunculusSkillWindow) Publish(ctx Context)
func (*HomunculusSkillWindow) Rebind ¶
func (w *HomunculusSkillWindow) Rebind(ctx Context, actions GameActions)
func (*HomunculusSkillWindow) Toggle ¶
func (w *HomunculusSkillWindow) Toggle(ctx Context, actions GameActions)
func (*HomunculusSkillWindow) Update ¶
func (w *HomunculusSkillWindow) Update(ctx Context, shortcuts *ShortcutBar, actions GameActions) bool
func (*HomunculusSkillWindow) UpdateDrag ¶
func (w *HomunculusSkillWindow) UpdateDrag(ctx Context, shortcuts *ShortcutBar) bool
type IdentifyWindow ¶
type IdentifyWindow struct {
Window
// contains filtered or unexported fields
}
func (*IdentifyWindow) ClampScroll ¶
func (w *IdentifyWindow) ClampScroll(s *session.Session)
func (*IdentifyWindow) OpenList ¶
func (w *IdentifyWindow) OpenList(ctx Context, list network.ItemIdentifyList)
func (*IdentifyWindow) Update ¶
func (w *IdentifyWindow) Update(ctx Context) bool
type InstanceWindow ¶ added in v0.24.0
type InstanceWindow struct {
Window
Confirm ConfirmModal
// contains filtered or unexported fields
}
func (*InstanceWindow) Close ¶ added in v0.24.0
func (w *InstanceWindow) Close()
func (*InstanceWindow) Rebind ¶ added in v0.24.0
func (w *InstanceWindow) Rebind(ctx Context, onDestroy func())
func (*InstanceWindow) Sync ¶ added in v0.24.0
func (w *InstanceWindow) Sync(ctx Context)
Apply every server transition, including destruction followed by another reservation in the same network read. A hidden window stays hidden on refresh.
func (*InstanceWindow) Toggle ¶ added in v0.24.0
func (w *InstanceWindow) Toggle(ctx Context)
func (*InstanceWindow) Update ¶ added in v0.24.0
func (w *InstanceWindow) Update(ctx Context) bool
func (*InstanceWindow) UpdatePresentation ¶ added in v0.24.0
func (w *InstanceWindow) UpdatePresentation(ctx Context, now time.Time)
type InventoryBagWindow ¶
type InventoryBagWindow struct {
Window
// contains filtered or unexported fields
}
func (*InventoryBagWindow) AcceptStorageDrop ¶
func (w *InventoryBagWindow) AcceptStorageDrop(ctx Context, item session.InventoryItem, mx, my int) bool
func (*InventoryBagWindow) ClampScroll ¶
func (w *InventoryBagWindow) ClampScroll(s *session.Session)
func (*InventoryBagWindow) DrawDragGhost ¶
func (w *InventoryBagWindow) DrawDragGhost(screen *render.Frame, ctx Context, assets AssetProvider)
func (*InventoryBagWindow) DrawTooltip ¶
func (w *InventoryBagWindow) DrawTooltip(ctx Context, screen *render.Frame)
func (*InventoryBagWindow) KeyboardShortcutsBlocked ¶ added in v0.10.0
func (w *InventoryBagWindow) KeyboardShortcutsBlocked() bool
func (*InventoryBagWindow) PendingCardIndex ¶
func (w *InventoryBagWindow) PendingCardIndex() uint16
func (*InventoryBagWindow) Rebind ¶
func (w *InventoryBagWindow) Rebind(ctx Context, itemInfo *ItemWindows)
func (*InventoryBagWindow) Toggle ¶
func (w *InventoryBagWindow) Toggle(ctx Context)
func (*InventoryBagWindow) Update ¶
func (w *InventoryBagWindow) Update(ctx Context, shortcuts *ShortcutBar, storage *StorageWindow, cart *CartWindow, trade *TradeWindow, equipment *EquipmentWindow, itemInfo *ItemWindows, dropTargets ...InventoryDropTarget) bool
func (*InventoryBagWindow) UpdateDrag ¶
func (w *InventoryBagWindow) UpdateDrag(ctx Context, shortcuts *ShortcutBar, storage *StorageWindow, cart *CartWindow, trade *TradeWindow, equipment *EquipmentWindow, dropTargets ...InventoryDropTarget) bool
func (*InventoryBagWindow) UpdateDropPrompt ¶ added in v0.10.0
func (w *InventoryBagWindow) UpdateDropPrompt(ctx Context) bool
func (*InventoryBagWindow) UpdatePresentation ¶ added in v0.15.0
func (w *InventoryBagWindow) UpdatePresentation(ctx Context, itemInfo *ItemWindows)
UpdatePresentation follows server changes even when another window consumes input.
type InventoryDropTarget ¶ added in v0.11.0
type ItemInfoCardIllustrationRequest ¶ added in v0.10.0
type ItemInfoReadBookRequest ¶ added in v0.10.0
type ItemInfoWindow ¶
type ItemInfoWindow struct {
Window
// contains filtered or unexported fields
}
func (*ItemInfoWindow) DrawTooltip ¶
func (w *ItemInfoWindow) DrawTooltip(ctx Context, screen *render.Frame)
func (*ItemInfoWindow) PopCardIllustrationRequest ¶ added in v0.10.0
func (w *ItemInfoWindow) PopCardIllustrationRequest() ItemInfoCardIllustrationRequest
func (*ItemInfoWindow) PopReadBookRequest ¶ added in v0.10.0
func (w *ItemInfoWindow) PopReadBookRequest() ItemInfoReadBookRequest
func (*ItemInfoWindow) Rebind ¶
func (w *ItemInfoWindow) Rebind(ctx Context, assets AssetProvider)
func (*ItemInfoWindow) Update ¶
func (w *ItemInfoWindow) Update(ctx Context, assets AssetProvider) bool
type ItemPickupNotification ¶
type ItemPickupNotification struct {
// contains filtered or unexported fields
}
func (*ItemPickupNotification) Draw ¶
func (n *ItemPickupNotification) Draw(screen *render.Frame, ctx Context, assets AssetProvider, now time.Time)
func (*ItemPickupNotification) Show ¶
func (n *ItemPickupNotification) Show(ctx Context, item session.InventoryItem, count int, now time.Time)
type ItemWindows ¶ added in v0.13.0
type ItemWindows struct {
// contains filtered or unexported fields
}
ItemWindows owns independently closable descriptions and card artwork. Each description is a snapshot, so inspecting another item cannot change it. The book reader remains a single window.
func (*ItemWindows) DrawTooltip ¶ added in v0.13.0
func (w *ItemWindows) DrawTooltip(ctx Context, screen *render.Frame)
func (*ItemWindows) KeyboardShortcutsBlocked ¶ added in v0.13.0
func (w *ItemWindows) KeyboardShortcutsBlocked() bool
func (*ItemWindows) Rebind ¶ added in v0.13.0
func (w *ItemWindows) Rebind(ctx Context, assets AssetProvider)
func (*ItemWindows) Update ¶ added in v0.13.0
func (w *ItemWindows) Update(ctx Context, assets AssetProvider) (bool, error)
type KeyboardShortcutBlocker ¶
type LevelUpNotificationAction ¶ added in v0.9.0
type LevelUpNotificationAction uint8
const ( LevelUpNotificationBase LevelUpNotificationAction = 1 << iota LevelUpNotificationJob )
const LevelUpNotificationNone LevelUpNotificationAction = 0
type LevelUpNotifications ¶ added in v0.9.0
type LevelUpNotifications struct {
// contains filtered or unexported fields
}
func (*LevelUpNotifications) BaseVisible ¶ added in v0.9.0
func (n *LevelUpNotifications) BaseVisible() bool
func (*LevelUpNotifications) JobVisible ¶ added in v0.9.0
func (n *LevelUpNotifications) JobVisible() bool
func (*LevelUpNotifications) NotifyBase ¶ added in v0.9.0
func (n *LevelUpNotifications) NotifyBase()
func (*LevelUpNotifications) NotifyJob ¶ added in v0.9.0
func (n *LevelUpNotifications) NotifyJob()
func (*LevelUpNotifications) Rebind ¶ added in v0.9.0
func (n *LevelUpNotifications) Rebind(ctx Context)
Rebind detaches callbacks captured by a previous WorldMode while preserving pending notifications across a map change.
func (*LevelUpNotifications) Update ¶ added in v0.9.0
func (n *LevelUpNotifications) Update(ctx Context) LevelUpNotificationAction
type LoginWindow ¶
type LoginWindow struct {
Username string
Password string
KeepID bool
Window
// contains filtered or unexported fields
}
func NewLoginWindow ¶
func NewLoginWindow(ctx client.Context, username, password string, keepID bool, callbacks LoginWindowCallbacks) *LoginWindow
func (*LoginWindow) Control ¶ added in v0.17.0
func (w *LoginWindow) Control(ctx client.Context, action string) bool
Credential entry still uses the platform keyboard. Directional navigation selects the field, and confirmation uses the same submission as Enter.
func (*LoginWindow) SetContext ¶
func (w *LoginWindow) SetContext(ctx client.Context)
type LoginWindowCallbacks ¶
type LoginWindowCallbacks struct {
OnSubmit func()
}
type MailAction ¶ added in v0.11.0
type MailAction struct {
Kind MailActionKind
ID uint32
Item session.InventoryItem
Recipient, Title, Body string
Zeny uint32
}
MailAction describes user intent only. The game owns packet sending and acknowledgement correlation; the window never changes inventory balances.
type MailActionKind ¶ added in v0.11.0
type MailActionKind uint8
const ( MailActionNone MailActionKind = iota MailActionRefresh MailActionCompose MailActionRead MailActionTake MailActionDelete MailActionReturn MailActionAttach MailActionRemoveAttachment MailActionSend MailActionClose )
type MailWindow ¶ added in v0.11.0
type MailWindow struct {
Window
// contains filtered or unexported fields
}
func (*MailWindow) AcceptInventoryDrop ¶ added in v0.11.0
func (w *MailWindow) AcceptInventoryDrop(ctx Context, item session.InventoryItem, mx, my int) bool
func (*MailWindow) BeginCompose ¶ added in v0.11.0
func (w *MailWindow) BeginCompose(recipient, title string)
func (*MailWindow) CloseFromServer ¶ added in v0.11.0
func (w *MailWindow) CloseFromServer(ctx Context)
func (*MailWindow) IsComposing ¶ added in v0.11.0
func (w *MailWindow) IsComposing() bool
func (*MailWindow) ModalOpen ¶ added in v0.11.0
func (w *MailWindow) ModalOpen() bool
func (*MailWindow) Open ¶ added in v0.11.0
func (w *MailWindow) Open(ctx Context, onError func(string))
func (*MailWindow) PopAction ¶ added in v0.11.0
func (w *MailWindow) PopAction() MailAction
func (*MailWindow) ReadMessage ¶ added in v0.11.0
func (w *MailWindow) ReadMessage() (network.MailMessage, bool)
func (*MailWindow) RemoveMail ¶ added in v0.11.0
func (w *MailWindow) RemoveMail(id uint32)
func (*MailWindow) SetAttachment ¶ added in v0.11.0
func (w *MailWindow) SetAttachment(item session.InventoryItem)
func (*MailWindow) SetBusy ¶ added in v0.11.0
func (w *MailWindow) SetBusy(busy bool)
func (*MailWindow) SetInbox ¶ added in v0.11.0
func (w *MailWindow) SetInbox(entries []network.MailEntry)
func (*MailWindow) ShowInbox ¶ added in v0.11.0
func (w *MailWindow) ShowInbox()
func (*MailWindow) ShowMail ¶ added in v0.11.0
func (w *MailWindow) ShowMail(message network.MailMessage)
func (*MailWindow) Update ¶ added in v0.11.0
func (w *MailWindow) Update(ctx Context, itemInfo *ItemWindows) bool
func (*MailWindow) UpdateKeyboardInput ¶ added in v0.11.0
func (w *MailWindow) UpdateKeyboardInput(ctx Context) bool
UI text events are dispatched before world input. Keep their Enter/arrows from also activating the console or navigating its history this frame.
func (*MailWindow) UpdateModal ¶ added in v0.11.0
func (w *MailWindow) UpdateModal(ctx Context) bool
func (*MailWindow) UpdateReadMessage ¶ added in v0.11.0
func (w *MailWindow) UpdateReadMessage(message network.MailMessage)
UpdateReadMessage refreshes attachments without reopening a dismissed reader.
type MakingArrowWindow ¶
type MakingArrowWindow struct {
Window
// contains filtered or unexported fields
}
func (*MakingArrowWindow) OpenList ¶
func (w *MakingArrowWindow) OpenList(ctx Context, list network.MakingArrowList)
func (*MakingArrowWindow) Update ¶
func (w *MakingArrowWindow) Update(ctx Context) bool
type MakingItemWindow ¶
type MakingItemWindow struct {
Window
// contains filtered or unexported fields
}
func (*MakingItemWindow) ApplyAck ¶
func (w *MakingItemWindow) ApplyAck(ctx Context, ack network.MakingItemAck)
func (*MakingItemWindow) OpenList ¶
func (w *MakingItemWindow) OpenList(ctx Context, list network.MakingItemList)
func (*MakingItemWindow) Update ¶
func (w *MakingItemWindow) Update(ctx Context) bool
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func NewManager() *Manager
func (*Manager) AddForegroundOverlay ¶ added in v0.9.0
AddForegroundOverlay publishes an overlay above ordinary windows. New and raised windows remain below it until the foreground overlay is removed.
func (*Manager) AddOverlay ¶
func (*Manager) OverlayAt ¶ added in v0.11.0
OverlayAt returns the same topmost hit target used for pointer dispatch. Drag-and-drop destinations use it to avoid accepting items through a window.
func (*Manager) PointerBlocked ¶
func (*Manager) RaiseOverlay ¶ added in v0.9.0
func (*Manager) RemoveOverlay ¶
func (*Manager) TopEscapeOverlay ¶ added in v0.13.0
TopEscapeOverlay uses the same stack as drawing and pointer dispatch. HUD overlays do not participate in closing windows with Escape.
type MercenaryContextAction ¶
type MercenaryContextAction struct {
Kind MercenaryContextActionKind
}
type MercenaryContextActionKind ¶
type MercenaryContextActionKind uint8
const ( MercenaryContextActionNone MercenaryContextActionKind = iota MercenaryContextActionInfo MercenaryContextActionToggleAssist )
type MercenaryContextMenu ¶
type MercenaryContextMenu struct {
Window
// contains filtered or unexported fields
}
func (*MercenaryContextMenu) Open ¶
func (m *MercenaryContextMenu) Open(ctx Context, x, y int, aggressive bool)
func (*MercenaryContextMenu) PopAction ¶
func (m *MercenaryContextMenu) PopAction() MercenaryContextAction
func (*MercenaryContextMenu) Update ¶
func (m *MercenaryContextMenu) Update(ctx Context) bool
type MercenaryInfoAction ¶
type MercenaryInfoAction struct {
Kind MercenaryInfoActionKind
}
type MercenaryInfoActionKind ¶
type MercenaryInfoActionKind uint8
const ( MercenaryInfoActionNone MercenaryInfoActionKind = iota MercenaryInfoActionSkill MercenaryInfoActionDelete )
type MercenaryInfoWindow ¶
type MercenaryInfoWindow struct {
Window
// contains filtered or unexported fields
}
func (*MercenaryInfoWindow) OpenInfo ¶
func (w *MercenaryInfoWindow) OpenInfo(ctx Context, companion session.Companion)
func (*MercenaryInfoWindow) PopAction ¶
func (w *MercenaryInfoWindow) PopAction() MercenaryInfoAction
func (*MercenaryInfoWindow) Rebind ¶
func (w *MercenaryInfoWindow) Rebind(ctx Context)
func (*MercenaryInfoWindow) Update ¶
func (w *MercenaryInfoWindow) Update(ctx Context) bool
type MercenarySkillWindow ¶
type MercenarySkillWindow struct {
HomunculusSkillWindow
}
func (*MercenarySkillWindow) Open ¶
func (w *MercenarySkillWindow) Open(ctx Context, actions GameActions)
func (*MercenarySkillWindow) Rebind ¶
func (w *MercenarySkillWindow) Rebind(ctx Context, actions GameActions)
func (*MercenarySkillWindow) Toggle ¶
func (w *MercenarySkillWindow) Toggle(ctx Context, actions GameActions)
func (*MercenarySkillWindow) Update ¶
func (w *MercenarySkillWindow) Update(ctx Context, shortcuts *ShortcutBar, actions GameActions) bool
func (*MercenarySkillWindow) UpdateDrag ¶
func (w *MercenarySkillWindow) UpdateDrag(ctx Context, shortcuts *ShortcutBar) bool
type Minimap ¶
type Minimap struct {
// contains filtered or unexported fields
}
func (*Minimap) ApplyCompass ¶
func (*Minimap) ApplyGuildMemberPosition ¶ added in v0.8.0
ApplyGuildMemberPosition updates one guild member marker. The server uses negative coordinates to remove a member who left the map or went offline.
func (*Minimap) ClearBossMarker ¶ added in v0.10.0
func (m *Minimap) ClearBossMarker()
func (*Minimap) ClearGuildMemberPositions ¶ added in v0.8.1
func (m *Minimap) ClearGuildMemberPositions()
ClearGuildMemberPositions removes every guild marker after the local player leaves, is expelled, or loses the guild through disbanding.
func (*Minimap) RestorePosition ¶ added in v0.23.0
func (m *Minimap) RestorePosition(ctx Context, position config.WindowPosition)
func (*Minimap) SavedPosition ¶ added in v0.23.0
func (m *Minimap) SavedPosition() config.WindowPosition
func (*Minimap) SetBossMarker ¶ added in v0.10.0
type MonsterInfoView ¶ added in v0.10.0
type MonsterInfoWindow ¶ added in v0.10.0
type MonsterInfoWindow struct {
Window
// contains filtered or unexported fields
}
func (*MonsterInfoWindow) OpenInfo ¶ added in v0.10.0
func (w *MonsterInfoWindow) OpenInfo(ctx Context, view MonsterInfoView)
func (*MonsterInfoWindow) Update ¶ added in v0.10.0
func (w *MonsterInfoWindow) Update(ctx Context) bool
type NPCCutinOverlay ¶ added in v0.9.0
type NPCCutinOverlay struct {
// contains filtered or unexported fields
}
NPCCutinOverlay owns the single illustration displayed by an NPC script. The position byte selects its placement; receiving another image replaces it. Static cut-ins draw below the UI, while movable variants reuse Window.
func (*NPCCutinOverlay) Apply ¶ added in v0.9.0
func (c *NPCCutinOverlay) Apply(cutin network.NPCCutin, texture *render.Image)
Apply first removes the previous illustration, matching the original client. A nil texture leaves it cleared, preventing stale artwork after a load error.
func (*NPCCutinOverlay) Clear ¶ added in v0.9.0
func (c *NPCCutinOverlay) Clear()
func (*NPCCutinOverlay) Draw ¶ added in v0.9.0
func (c *NPCCutinOverlay) Draw(screen *render.Frame)
func (*NPCCutinOverlay) PointerBlocked ¶ added in v0.9.0
func (c *NPCCutinOverlay) PointerBlocked(screenWidth, screenHeight, x, y int) bool
func (*NPCCutinOverlay) Update ¶ added in v0.9.0
func (c *NPCCutinOverlay) Update(ctx Context) bool
Update owns the two windowed cut-in variants. The ordinary left, center and right illustrations remain lightweight render overlays and need no update.
func (*NPCCutinOverlay) Visible ¶ added in v0.9.0
func (c *NPCCutinOverlay) Visible() bool
type NPCDialog ¶
type NPCDialog struct {
// contains filtered or unexported fields
}
func (*NPCDialog) Control ¶ added in v0.16.0
Control shares dialog actions between keyboard and scripted controllers.
func (*NPCDialog) ResetPublished ¶
func (*NPCDialog) SetCloseHandler ¶ added in v0.9.0
func (d *NPCDialog) SetCloseHandler(handler func())
type PartyContextMenu ¶
type PartyContextMenu struct {
Window
// contains filtered or unexported fields
}
func (*PartyContextMenu) Open ¶
func (m *PartyContextMenu) Open(ctx Context, x, y int, member session.PartyMember, canManage, isSelf bool)
func (*PartyContextMenu) PopAction ¶
func (m *PartyContextMenu) PopAction() FriendsWindowAction
func (*PartyContextMenu) Rebind ¶
func (m *PartyContextMenu) Rebind(ctx Context)
func (*PartyContextMenu) Update ¶
func (m *PartyContextMenu) Update(ctx Context) bool
type PartyCreateWindow ¶
type PartyCreateWindow struct {
Window
// contains filtered or unexported fields
}
func (*PartyCreateWindow) Open ¶
func (w *PartyCreateWindow) Open(ctx Context)
func (*PartyCreateWindow) PopAction ¶
func (w *PartyCreateWindow) PopAction() PartyCreateWindowAction
func (*PartyCreateWindow) Rebind ¶
func (w *PartyCreateWindow) Rebind(ctx Context)
func (*PartyCreateWindow) Update ¶
func (w *PartyCreateWindow) Update(ctx Context) bool
type PartyCreateWindowAction ¶
type PartyInviteWindow ¶
type PartyInviteWindow struct {
TextPromptWindow
}
func (*PartyInviteWindow) Open ¶
func (w *PartyInviteWindow) Open(ctx Context)
func (*PartyInviteWindow) PopAction ¶
func (w *PartyInviteWindow) PopAction() string
type PartySettingsWindow ¶
type PartySettingsWindow struct {
Window
// contains filtered or unexported fields
}
func (*PartySettingsWindow) Open ¶
func (w *PartySettingsWindow) Open(ctx Context)
func (*PartySettingsWindow) Rebind ¶
func (w *PartySettingsWindow) Rebind(ctx Context)
func (*PartySettingsWindow) Update ¶
func (w *PartySettingsWindow) Update(ctx Context) bool
type PetContextAction ¶
type PetContextAction struct {
Kind PetContextActionKind
}
type PetContextActionKind ¶
type PetContextActionKind uint8
const ( PetContextActionNone PetContextActionKind = iota PetContextActionInfo PetContextActionFeed PetContextActionPerformance PetContextActionBackToEgg PetContextActionUnequipAccessory )
type PetContextMenu ¶
type PetContextMenu struct {
Window
// contains filtered or unexported fields
}
func (*PetContextMenu) Open ¶
func (m *PetContextMenu) Open(ctx Context, x, y int)
func (*PetContextMenu) PopAction ¶
func (m *PetContextMenu) PopAction() PetContextAction
func (*PetContextMenu) Update ¶
func (m *PetContextMenu) Update(ctx Context) bool
type PetEggWindow ¶
type PetEggWindow struct {
Window
// contains filtered or unexported fields
}
func (*PetEggWindow) ClampScroll ¶
func (w *PetEggWindow) ClampScroll(s *session.Session)
func (*PetEggWindow) OpenList ¶
func (w *PetEggWindow) OpenList(ctx Context, list network.PetEggList)
func (*PetEggWindow) Update ¶
func (w *PetEggWindow) Update(ctx Context) bool
type PetInfoWindow ¶
type PetInfoWindow struct {
Window
// contains filtered or unexported fields
}
func (*PetInfoWindow) KeyboardShortcutsBlocked ¶ added in v0.20.1
func (w *PetInfoWindow) KeyboardShortcutsBlocked() bool
func (*PetInfoWindow) OpenInfo ¶
func (w *PetInfoWindow) OpenInfo(ctx Context, property network.PetProperty)
func (*PetInfoWindow) Update ¶
func (w *PetInfoWindow) Update(ctx Context) bool
type PlayerContextAction ¶
type PlayerContextAction struct {
Kind PlayerContextActionKind
ActorID uint32
Name string
Command string
}
type PlayerContextActionKind ¶
type PlayerContextActionKind uint8
const ( PlayerContextActionNone PlayerContextActionKind = iota PlayerContextActionAddFriend PlayerContextActionInviteParty PlayerContextActionInviteGuild PlayerContextActionTrade PlayerContextActionSeeEquipment PlayerContextActionAdopt PlayerContextActionGuildAlliance PlayerContextActionGuildHostility PlayerContextActionGMCommand )
type PlayerContextMenu ¶
type PlayerContextMenu struct {
Window
// contains filtered or unexported fields
}
func (*PlayerContextMenu) Open ¶
func (m *PlayerContextMenu) Open(ctx Context, x, y int, actorID uint32, name string, options PlayerContextOptions)
func (*PlayerContextMenu) PopAction ¶
func (m *PlayerContextMenu) PopAction() PlayerContextAction
func (*PlayerContextMenu) Update ¶
func (m *PlayerContextMenu) Update(ctx Context) bool
type PlayerContextOptions ¶ added in v0.8.0
type Poptips ¶ added in v0.10.0
type Poptips struct {
// contains filtered or unexported fields
}
Poptips is the short, server-driven message stack shown near the top of the game view. It is deliberately input-transparent.
type PvPCounter ¶ added in v0.7.0
type PvPCounter struct {
// contains filtered or unexported fields
}
func (*PvPCounter) Unpublish ¶ added in v0.7.0
func (c *PvPCounter) Unpublish(ctx Context)
func (*PvPCounter) Update ¶ added in v0.7.0
func (c *PvPCounter) Update(ctx Context)
type QuestWindow ¶ added in v0.14.0
type QuestWindow struct {
Window
// contains filtered or unexported fields
}
QuestWindow owns the legacy journal and its separate detail window. It displays session state; toggles only request a change from the server.
func (*QuestWindow) OpenWindow ¶ added in v0.14.0
func (w *QuestWindow) OpenWindow(ctx Context)
func (*QuestWindow) Rebind ¶ added in v0.14.0
func (w *QuestWindow) Rebind(ctx Context, onSetActive func(uint32, bool))
func (*QuestWindow) Toggle ¶ added in v0.14.0
func (w *QuestWindow) Toggle(ctx Context)
func (*QuestWindow) Update ¶ added in v0.14.0
func (w *QuestWindow) Update(ctx Context) bool
func (*QuestWindow) UpdatePresentation ¶ added in v0.14.0
func (w *QuestWindow) UpdatePresentation(ctx Context, now time.Time)
Called before pointer/modal dispatch, so hovering a different window cannot hold up quest updates. Idle and closed journals do no list/asset work.
type RepairItemWindow ¶
type RepairItemWindow struct {
// contains filtered or unexported fields
}
func (*RepairItemWindow) ApplyAck ¶
func (w *RepairItemWindow) ApplyAck(ctx Context, ack network.RepairItemAck)
func (*RepairItemWindow) OpenChoices ¶
func (*RepairItemWindow) OpenList ¶
func (w *RepairItemWindow) OpenList(ctx Context, list network.RepairItemList)
type ServiceWindow ¶ added in v0.8.1
type ServiceWindow struct {
Window
// contains filtered or unexported fields
}
func NewServiceWindow ¶ added in v0.8.1
func NewServiceWindow(ctx client.Context, services []string, options ServiceWindowOptions, callbacks ServiceWindowCallbacks) *ServiceWindow
func (*ServiceWindow) Control ¶ added in v0.17.0
func (w *ServiceWindow) Control(action string) bool
func (*ServiceWindow) SelectedIndex ¶ added in v0.8.1
func (w *ServiceWindow) SelectedIndex() int
func (*ServiceWindow) SetContext ¶ added in v0.8.1
func (w *ServiceWindow) SetContext(ctx client.Context)
type ServiceWindowCallbacks ¶ added in v0.8.1
type ServiceWindowCallbacks struct {
OnSelect func(int)
OnCancel func()
}
type ServiceWindowOptions ¶ added in v0.8.1
type SettingsWindow ¶
type SettingsWindow struct {
Window
// contains filtered or unexported fields
}
func (*SettingsWindow) OpenWindow ¶
func (w *SettingsWindow) OpenWindow(ctx client.Context)
func (*SettingsWindow) Rebind ¶
func (w *SettingsWindow) Rebind(ctx client.Context)
type ShopWindow ¶
type ShopWindow struct {
// contains filtered or unexported fields
}
func (*ShopWindow) ApplyResult ¶
func (w *ShopWindow) ApplyResult(ctx Context, result network.ShopResult)
func (*ShopWindow) DrawDragGhost ¶
func (w *ShopWindow) DrawDragGhost(screen *render.Frame, ctx Context, assets AssetProvider)
func (*ShopWindow) KeyboardShortcutsBlocked ¶
func (w *ShopWindow) KeyboardShortcutsBlocked() bool
func (*ShopWindow) OpenBuy ¶
func (w *ShopWindow) OpenBuy(list []network.ShopBuyItem, ctx Context)
func (*ShopWindow) OpenDeal ¶
func (w *ShopWindow) OpenDeal(selection network.ShopDealSelection, ctx Context)
func (*ShopWindow) OpenSell ¶
func (w *ShopWindow) OpenSell(list []network.ShopSellItem, ctx Context)
func (*ShopWindow) Publish ¶ added in v0.21.0
func (w *ShopWindow) Publish(ctx Context)
func (*ShopWindow) Update ¶
func (w *ShopWindow) Update(ctx Context, itemInfo *ItemWindows) bool
type ShortcutBar ¶
type ShortcutBar struct {
// contains filtered or unexported fields
}
func (*ShortcutBar) AcceptItemDrop ¶
func (b *ShortcutBar) AcceptItemDrop(ctx Context, item session.InventoryItem, mx, my int) bool
func (*ShortcutBar) AcceptSkillDrop ¶
func (*ShortcutBar) ActivateSlot ¶ added in v0.16.0
func (b *ShortcutBar) ActivateSlot(ctx Context, actions GameActions, slot int) (uint16, bool)
ActivateSlot uses a one-based slot from the active row, just like F1-F9. It returns the skill ID (zero for an item) and whether activation succeeded.
func (*ShortcutBar) ClearDepletedItem ¶
func (b *ShortcutBar) ClearDepletedItem(ctx Context, index, itemID uint16) bool
func (*ShortcutBar) Dragging ¶ added in v0.23.0
func (b *ShortcutBar) Dragging() bool
func (*ShortcutBar) DrawTooltip ¶
func (b *ShortcutBar) DrawTooltip(ctx Context, screen *render.Frame)
func (*ShortcutBar) Publish ¶
func (b *ShortcutBar) Publish(ctx Context, actions GameActions, assets AssetProvider)
func (*ShortcutBar) ResetOverlay ¶
func (b *ShortcutBar) ResetOverlay(ctx Context)
func (*ShortcutBar) RestorePosition ¶ added in v0.23.0
func (b *ShortcutBar) RestorePosition(ctx Context, position config.WindowPosition)
func (*ShortcutBar) SavedPosition ¶ added in v0.23.0
func (b *ShortcutBar) SavedPosition() config.WindowPosition
func (*ShortcutBar) SetVisibleRows ¶ added in v0.23.0
func (b *ShortcutBar) SetVisibleRows(ctx Context, rows int)
func (*ShortcutBar) SyncFromSession ¶
func (b *ShortcutBar) SyncFromSession(ctx Context)
func (*ShortcutBar) Update ¶
func (b *ShortcutBar) Update(ctx Context, actions GameActions) bool
func (*ShortcutBar) UpdateKeyboardInput ¶ added in v0.13.0
func (b *ShortcutBar) UpdateKeyboardInput(ctx Context, actions GameActions, chatActive bool) bool
UpdateKeyboardInput is separate from pointer dispatch: F1-F9 must still work while chat has focus, and hovering another window must not eat shortcuts. The world excludes modals and other forms before calling this method.
func (*ShortcutBar) VisibleRows ¶ added in v0.23.0
func (b *ShortcutBar) VisibleRows() int
type SkillWindow ¶
type SkillWindow struct {
Window
// contains filtered or unexported fields
}
func (*SkillWindow) ClampScroll ¶
func (w *SkillWindow) ClampScroll(s *session.Session)
func (*SkillWindow) DrawDragGhost ¶
func (w *SkillWindow) DrawDragGhost(screen *render.Frame, ctx Context, assets AssetProvider)
func (*SkillWindow) DrawTooltip ¶
func (w *SkillWindow) DrawTooltip(ctx Context, screen *render.Frame)
func (*SkillWindow) OpenWindow ¶ added in v0.9.0
func (w *SkillWindow) OpenWindow(ctx Context)
func (*SkillWindow) Publish ¶
func (w *SkillWindow) Publish(ctx Context)
func (*SkillWindow) Rebind ¶
func (w *SkillWindow) Rebind(ctx Context, actions GameActions)
func (*SkillWindow) SetTreeMode ¶ added in v0.23.0
func (w *SkillWindow) SetTreeMode(ctx Context, tree bool)
func (*SkillWindow) Toggle ¶
func (w *SkillWindow) Toggle(ctx Context)
func (*SkillWindow) TreeMode ¶ added in v0.23.0
func (w *SkillWindow) TreeMode() bool
func (*SkillWindow) Update ¶
func (w *SkillWindow) Update(ctx Context, shortcuts *ShortcutBar, actions GameActions) bool
func (*SkillWindow) UpdateDrag ¶
func (w *SkillWindow) UpdateDrag(ctx Context, shortcuts *ShortcutBar) bool
type StatsWindow ¶
type StatsWindow struct {
Window
// contains filtered or unexported fields
}
func (*StatsWindow) ApplyStatusChangeAck ¶
func (w *StatsWindow) ApplyStatusChangeAck(ctx Context, ack network.StatusChangeAck)
func (*StatsWindow) OpenWindow ¶ added in v0.9.0
func (w *StatsWindow) OpenWindow(ctx Context)
func (*StatsWindow) Rebind ¶
func (w *StatsWindow) Rebind(ctx Context)
func (*StatsWindow) Toggle ¶
func (w *StatsWindow) Toggle(ctx Context)
func (*StatsWindow) Update ¶
func (w *StatsWindow) Update(ctx Context) bool
func (*StatsWindow) UpdatePresentation ¶ added in v0.15.0
func (w *StatsWindow) UpdatePresentation(ctx Context)
UpdatePresentation follows server changes independently of input dispatch.
type StatusIcons ¶
type StatusIcons struct {
// contains filtered or unexported fields
}
func (*StatusIcons) Unpublish ¶
func (s *StatusIcons) Unpublish(ctx Context)
type StoragePasswordAction ¶ added in v0.10.0
type StoragePasswordAction struct {
Kind StoragePasswordActionKind
Password string
}
type StoragePasswordActionKind ¶ added in v0.10.0
type StoragePasswordActionKind uint8
const ( StoragePasswordActionNone StoragePasswordActionKind = iota StoragePasswordActionCheck StoragePasswordActionChange StoragePasswordActionCancel )
type StoragePasswordMode ¶ added in v0.10.0
type StoragePasswordMode uint8
const ( StoragePasswordModeEnter StoragePasswordMode = iota StoragePasswordModeSet StoragePasswordModeLocked )
type StoragePasswordWindow ¶ added in v0.10.0
type StoragePasswordWindow struct {
Window
// contains filtered or unexported fields
}
func (*StoragePasswordWindow) CloseFromServer ¶ added in v0.10.0
func (w *StoragePasswordWindow) CloseFromServer(ctx Context)
func (*StoragePasswordWindow) OpenPrompt ¶ added in v0.10.0
func (w *StoragePasswordWindow) OpenPrompt(ctx Context, mode StoragePasswordMode, message string)
func (*StoragePasswordWindow) PopAction ¶ added in v0.10.0
func (w *StoragePasswordWindow) PopAction() StoragePasswordAction
func (*StoragePasswordWindow) ShowMessage ¶ added in v0.10.0
func (w *StoragePasswordWindow) ShowMessage(ctx Context, message string)
func (*StoragePasswordWindow) Update ¶ added in v0.10.0
func (w *StoragePasswordWindow) Update(ctx Context) bool
type StorageWindow ¶
type StorageWindow struct {
Window
// contains filtered or unexported fields
}
func (*StorageWindow) AcceptCartDrop ¶
func (w *StorageWindow) AcceptCartDrop(ctx Context, item session.InventoryItem, mx, my int) bool
func (*StorageWindow) AcceptInventoryDrop ¶
func (w *StorageWindow) AcceptInventoryDrop(ctx Context, item session.InventoryItem, mx, my int) bool
func (*StorageWindow) ClampScroll ¶
func (w *StorageWindow) ClampScroll(s *session.Session)
func (*StorageWindow) DrawDragGhost ¶
func (w *StorageWindow) DrawDragGhost(screen *render.Frame, ctx Context, assets AssetProvider)
func (*StorageWindow) OpenWindow ¶
func (w *StorageWindow) OpenWindow(ctx Context)
func (*StorageWindow) Refresh ¶
func (w *StorageWindow) Refresh(ctx Context, itemInfo *ItemWindows)
func (*StorageWindow) SetOpen ¶
func (w *StorageWindow) SetOpen(open bool)
func (*StorageWindow) Update ¶
func (w *StorageWindow) Update(ctx Context, inventory *InventoryBagWindow, cart *CartWindow, itemInfo *ItemWindows) bool
func (*StorageWindow) UpdateDrag ¶
func (w *StorageWindow) UpdateDrag(ctx Context, inventory *InventoryBagWindow, cart *CartWindow) bool
type TeleportModal ¶
type TeleportModal struct {
Window
// contains filtered or unexported fields
}
func (*TeleportModal) OpenWarpPointList ¶
func (m *TeleportModal) OpenWarpPointList(list network.WarpPointList, skill session.Skill)
func (*TeleportModal) Reset ¶
func (m *TeleportModal) Reset()
func (TeleportModal) Title ¶
func (m TeleportModal) Title() string
func (*TeleportModal) Update ¶
func (m *TeleportModal) Update(ctx Context) bool
type TextPromptAction ¶
type TextPromptWindow ¶
type TextPromptWindow struct {
Window
// contains filtered or unexported fields
}
func (*TextPromptWindow) Control ¶ added in v0.17.0
func (w *TextPromptWindow) Control(ctx Context, action string)
func (*TextPromptWindow) Open ¶
func (w *TextPromptWindow) Open(ctx Context, title, label, placeholder string, maxLength int)
func (*TextPromptWindow) OpenPassword ¶ added in v0.23.0
func (w *TextPromptWindow) OpenPassword(ctx Context, title, label string, maxLength int)
func (*TextPromptWindow) PopAction ¶
func (w *TextPromptWindow) PopAction() TextPromptAction
func (*TextPromptWindow) Rebind ¶
func (w *TextPromptWindow) Rebind(ctx Context)
func (*TextPromptWindow) Update ¶
func (w *TextPromptWindow) Update(ctx Context) bool
type TradeWindow ¶
type TradeWindow struct {
Window
// contains filtered or unexported fields
}
func (*TradeWindow) AcceptInventoryDrop ¶
func (w *TradeWindow) AcceptInventoryDrop(ctx Context, item session.InventoryItem, mx, my int) bool
func (*TradeWindow) AddOwnItemAck ¶
func (w *TradeWindow) AddOwnItemAck(ctx Context, ack network.TradeAddItemAck)
func (*TradeWindow) AddReceivedItem ¶
func (w *TradeWindow) AddReceivedItem(ctx Context, item network.TradeItem)
func (*TradeWindow) Close ¶
func (w *TradeWindow) Close(ctx Context)
func (*TradeWindow) Open ¶
func (w *TradeWindow) Open(ctx Context, partnerName string)
func (*TradeWindow) SetConcluded ¶
func (w *TradeWindow) SetConcluded(ctx Context, other bool)
func (*TradeWindow) Undo ¶
func (w *TradeWindow) Undo(ctx Context)
func (*TradeWindow) Update ¶
func (w *TradeWindow) Update(ctx Context, itemInfo *ItemWindows) bool
type VendingWindow ¶
type VendingWindow struct {
// contains filtered or unexported fields
}
func (*VendingWindow) ApplyOwnList ¶
func (w *VendingWindow) ApplyOwnList(ctx Context, list network.VendingItemList)
func (*VendingWindow) ApplyPurchaseResult ¶
func (w *VendingWindow) ApplyPurchaseResult(ctx Context, result network.VendingPurchaseResult)
func (*VendingWindow) ApplySoldItem ¶
func (w *VendingWindow) ApplySoldItem(ctx Context, sold network.VendingSoldItem)
func (*VendingWindow) DrawDragGhost ¶
func (w *VendingWindow) DrawDragGhost(screen *render.Frame, ctx Context, assets AssetProvider)
func (*VendingWindow) KeyboardShortcutsBlocked ¶
func (w *VendingWindow) KeyboardShortcutsBlocked() bool
func (*VendingWindow) OpenBuy ¶
func (w *VendingWindow) OpenBuy(ctx Context, list network.VendingItemList)
func (*VendingWindow) OpenSetup ¶
func (w *VendingWindow) OpenSetup(ctx Context, req network.VendingOpenRequest)
func (*VendingWindow) Publish ¶ added in v0.21.0
func (w *VendingWindow) Publish(ctx Context)
func (*VendingWindow) Update ¶
func (w *VendingWindow) Update(ctx Context, itemInfo *ItemWindows) bool
type ViewEquipmentWindow ¶
type ViewEquipmentWindow struct {
Window
// contains filtered or unexported fields
}
func (*ViewEquipmentWindow) Open ¶
func (w *ViewEquipmentWindow) Open(ctx Context, view network.ViewedEquipment, assets AssetProvider)
func (*ViewEquipmentWindow) Update ¶
func (w *ViewEquipmentWindow) Update(ctx Context, itemInfo *ItemWindows) bool
type WeaponRefineWindow ¶
type WeaponRefineWindow struct {
// contains filtered or unexported fields
}
func (*WeaponRefineWindow) ApplyAck ¶
func (w *WeaponRefineWindow) ApplyAck(ctx Context, ack network.WeaponRefineAck)
func (*WeaponRefineWindow) OpenChoices ¶
func (*WeaponRefineWindow) OpenList ¶
func (w *WeaponRefineWindow) OpenList(ctx Context, list network.WeaponRefineList)
type WhisperWindow ¶
type WhisperWindow struct {
Window
// contains filtered or unexported fields
}
func (*WhisperWindow) AddError ¶
func (w *WhisperWindow) AddError(ctx Context, message string)
func (*WhisperWindow) AddIncoming ¶
func (w *WhisperWindow) AddIncoming(ctx Context, sender, message string)
func (*WhisperWindow) AddOutgoing ¶
func (w *WhisperWindow) AddOutgoing(ctx Context, message string)
func (*WhisperWindow) Open ¶
func (w *WhisperWindow) Open(ctx Context, target string)
func (*WhisperWindow) PopAction ¶
func (w *WhisperWindow) PopAction() WhisperWindowAction
func (*WhisperWindow) Rebind ¶
func (w *WhisperWindow) Rebind(ctx Context)
func (*WhisperWindow) Update ¶
func (w *WhisperWindow) Update(ctx Context) bool
type WhisperWindowAction ¶
type WhisperWindows ¶ added in v0.13.0
type WhisperWindows struct {
// contains filtered or unexported fields
}
WhisperWindows keeps a conversation and draft per recipient for the session. Closing a window hides the conversation; opening it again restores it.
func (*WhisperWindows) AddIncoming ¶ added in v0.13.0
func (w *WhisperWindows) AddIncoming(ctx Context, sender, message string)
func (*WhisperWindows) Find ¶ added in v0.13.0
func (w *WhisperWindows) Find(target string) *WhisperWindow
func (*WhisperWindows) IsOpen ¶ added in v0.13.0
func (w *WhisperWindows) IsOpen() bool
func (*WhisperWindows) Open ¶ added in v0.13.0
func (w *WhisperWindows) Open(ctx Context, target string) *WhisperWindow
func (*WhisperWindows) Rebind ¶ added in v0.13.0
func (w *WhisperWindows) Rebind(ctx Context)
func (*WhisperWindows) Update ¶ added in v0.13.0
func (w *WhisperWindows) Update(ctx Context) (bool, WhisperWindowAction)
type Window ¶
type Window struct {
CloseOnEsc bool
// contains filtered or unexported fields
}
func (*Window) EnsureWindow ¶
func (*Window) RebindContent ¶
func (*Window) RestorePosition ¶ added in v0.23.0
func (w *Window) RestorePosition(ctx client.Context, position config.WindowPosition)
RestorePosition also works before a closed window has been initialized. Open clamps the saved coordinates once the window's dimensions are known.
func (*Window) SavedPosition ¶ added in v0.23.0
func (w *Window) SavedPosition() config.WindowPosition
func (*Window) SetAutoPosition ¶
func (*Window) SetBackground ¶
func (*Window) SetContent ¶
func (*Window) SetFullRedraw ¶
type WindowOption ¶
type WindowOption func(*windowConfig)
func Background ¶
func Background(color widget.Color) WindowOption
func CloseButton ¶
func CloseButton(enabled bool) WindowOption
func Content ¶
func Content(content widget.Widget) WindowOption
func Footer ¶
func Footer(children ...widget.Widget) WindowOption
func OnClose ¶
func OnClose(onClose func()) WindowOption
func Radius ¶
func Radius(radius float32) WindowOption
func Size ¶
func Size(width, height float32) WindowOption
func Title ¶
func Title(title string) WindowOption
func TitleBar ¶
func TitleBar(enabled bool) WindowOption
func TitleButton ¶ added in v0.10.0
func TitleButton(kind rotheme.IconButtonKind, onClick func()) WindowOption
func TitleSignal ¶ added in v0.14.0
func TitleSignal(title state.ReadonlySignal[string]) WindowOption
TitleSignal updates the title without rebuilding the header's controls.
type WorldMapWindow ¶ added in v0.14.0
type WorldMapWindow struct {
Window
// contains filtered or unexported fields
}
WorldMapWindow is the legacy illustrated atlas, not a navigation service. Artwork and previews are cached; the closed window does no presentation work.
func (*WorldMapWindow) OpenWindow ¶ added in v0.14.0
func (w *WorldMapWindow) OpenWindow(ctx Context) error
func (*WorldMapWindow) Rebind ¶ added in v0.14.0
func (w *WorldMapWindow) Rebind(ctx Context)
func (*WorldMapWindow) Toggle ¶ added in v0.14.0
func (w *WorldMapWindow) Toggle(ctx Context) error
func (*WorldMapWindow) Update ¶ added in v0.14.0
func (w *WorldMapWindow) Update(ctx Context) bool
func (*WorldMapWindow) UpdatePresentation ¶ added in v0.14.0
func (w *WorldMapWindow) UpdatePresentation(ctx Context)
Capture only data the atlas uses, never live session/world pointers in Draw. Walking only invalidates the atlas while its current-map preview is visible.
Source Files
¶
- announcement.go
- auto_spell_window.go
- basic_menu.go
- book_window.go
- card_composition_window.go
- card_illustration_window.go
- cart_window.go
- change_cart_window.go
- character_create_window.go
- character_select_window.go
- character_window.go
- chat_room_create_window.go
- chat_room_window.go
- chat_shortcuts_window.go
- chat_text_wrap.go
- confirm_modal.go
- console.go
- context_menu.go
- doc.go
- emote_window.go
- equipment_choice_window.go
- equipment_window.go
- escape_menu.go
- friend_context_menu.go
- friend_settings_window.go
- friends_window.go
- guild_member_context_menu.go
- guild_window.go
- homunculus_context_menu.go
- homunculus_info_window.go
- homunculus_skill_window.go
- identified_item_icon.go
- identify_window.go
- instance_window.go
- inventory_actions.go
- inventory_bag_window.go
- inventory_common.go
- item_dialog_list.go
- item_info_window.go
- item_pickup_notification.go
- item_table_view.go
- item_window_group.go
- level_up_notifications.go
- login_window.go
- mail_window.go
- making_arrow_window.go
- making_item_window.go
- manager.go
- mercenary_context_menu.go
- mercenary_info_window.go
- minimap.go
- monster_info_window.go
- npc_cutins.go
- npc_dialog.go
- party_context_menu.go
- party_create_window.go
- party_invite_window.go
- party_settings_window.go
- pet_context_menu.go
- pet_egg_window.go
- pet_info_window.go
- player_context_menu.go
- poptips.go
- pvp_counter.go
- pvp_counter_assets.go
- quest_window.go
- ro_footer.go
- ro_titlebar.go
- scrollbar.go
- selection_keyboard.go
- service_window.go
- settings_window.go
- shop_amount_prompt.go
- shop_window.go
- shortcut_bar.go
- skill_grid.go
- skill_window.go
- sprite_layer.go
- stats_window.go
- status_icons.go
- storage_categories.go
- storage_password_window.go
- storage_window.go
- surface.go
- tab_widget.go
- teleport_modal.go
- text_prompt_window.go
- tooltip.go
- trade_window.go
- util.go
- vending_window.go
- view_equipment_window.go
- vitals.go
- whisper_window.go
- whisper_window_group.go
- window.go
- world_map_window.go