Skip to Content
The Alchemy Project

struct WINDOW

A window: a bordered rectangle of the tilemap with its sprite outputs, its opening or closing animation and the rectangle it last drew.

Declared in window.h.

Fields

NameDescription
WINDOW_SPR_LISTspritesthe sprites the window carries
Uint16widthtiles
Uint16heighttiles
Sint16xtiles
Sint16ytiles
Uint16opened1 once opened, 0 once freed; nothing reads it
Uint16animationanimation while typing, set by the TEXT_WINDOW_ANIMATION code
Uint16state0 while typing; nonzero once done (frees message for next text)
Uint16flags0 once closing or free
Sint16zoomStagezoom stage: counts down opening, up to duration while closing
Sint16durationticks of the zoom under way; 0 when none
Sint16prevXtiles
Sint16prevYtiles
Sint16prevWidthtiles
Sint16prevHeighttiles

Description

A window: a bordered rectangle of the tilemap with its sprite outputs, its opening or closing animation and the rectangle it last drew.

struct WINDOW

Referenced by btMessageWaitForAdvance(), btPlaybackRun(), dbIncreaseItemAndLevelRunLevelEditor(), dbPsynergyTestBrowseMessageRange(), fdLuckyDiceRun(), fdLuckyWheelsRun(), fdLuckyWheelsSetUpBetting(), fdLuckyWheelsUpdate(), fdMessageShowAtActor(), fdScriptAskYesNoWithActorAnimation(), fdScriptShowMessageAtPos(), fdScriptShowTwoMessagesAndWait(), fdSuperLuckyDiceRun(), mnAreaNameWindowHide(), mnAreaNameWindowShow(), mnBattleCollectPartyCommands(), mnBattleDjinnMenuRun(), mnBattleDjinnMenuShowChangePreview(), mnBattleItemMenuRun(), mnBattleMenuUpdateEachTick(), mnBattleMessageContinue(), mnBattleMessageOpen(), mnBattlePsynergyMenuRun(), mnBattleStatusScreenRun(), mnBattleSummonMenuRun(), mnBattleTargetRunSelection(), mnCommandIconCreate(), mnCursorCreate(), mnCursorPlace(), mnDebugBrowserIcons(), mnDebugBrowserPortraits(), mnDebugFlagEditorRun(), mnDebugMenuOpen(), mnDebugMenuRun(), mnDebugSceneSelectRun(), mnDebugShortcutDrawAbility(), mnDebugShortcutOpen(), mnDebugShortcutRun(), mnDebugSoundTestOpen(), mnDebugSoundTestRun(), mnDebugWarpOpen(), mnDebugWarpRun(), mnDjinnMenuShowHelp(), mnDjinnShowJoinedMessage(), mnFieldMessageShow(), mnFieldMessageShowCentered(), mnFileListDrawDjinnCounts(), mnFileListDrawSummary(), mnFileListFillHighlight(), mnFileListSelectFile() and 130 more.

Definition at line 17 of file window.h.

Fields in detail

sprites

WINDOW_SPR_LIST sprites

the sprites the window carries

width

Uint16 width

tiles

height

Uint16 height

tiles

x

Sint16 x

tiles

y

Sint16 y

tiles

opened

Uint16 opened

1 once opened, 0 once freed; nothing reads it

animation

Uint16 animation

animation while typing, set by the TEXT_WINDOW_ANIMATION code

state

Uint16 state

0 while typing; nonzero once done (frees message for next text)

flags

Uint16 flags

0 once closing or free

zoomStage

Sint16 zoomStage

zoom stage: counts down opening, up to duration while closing

duration

Sint16 duration

ticks of the zoom under way; 0 when none

prevX

Sint16 prevX

tiles

prevY

Sint16 prevY

tiles

prevWidth

Sint16 prevWidth

tiles

prevHeight

Sint16 prevHeight

tiles