Skip to Content
The Alchemy Project

struct WINDOW

A window: a bordered rectangle of the tilemap with its window sprites, 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
Uint16xtiles
Uint16ytiles
Uint16opened1 once opened, 0 once freed; nothing reads it
Uint16animationanimation set by a message's TEXT_WINDOW_ANIMATION code
Uint16state0 while typing; 1 once the text has ended and the window closes
Uint16flagsWINDOW_FLAG_ flags; 0 once closing or free
Sint16zoomStage7 down to 0 while opening, 0 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 window sprites, its opening or closing animation and the rectangle it last drew.

struct WINDOW

Referenced by btDebugBattleViewMessages(), btMessageWaitForAdvance(), btPlaybackRun(), btRun(), dbIncreaseItemAndLevelRunLevelEditor(), dbIncreaseItemAndLevelSelectAbility(), dbIncreaseItemAndLevelSelectItem(), dbIncreaseItemAndLevelShowGlyphCaptions(), dbMenuTestBrowseMessageRange(), dbMenuTestSelectItem(), fdLuckyDiceRun(), fdLuckyWheelsRun(), fdLuckyWheelsSetUpBetting(), fdLuckyWheelsUpdate(), fdMessageShowAtActor(), fdScriptAskYesNoWithActorAnimation(), fdScriptShowMessageAndWait(), fdScriptShowMessageAtPos(), fdScriptShowSpeakerMessage(), fdScriptShowTwoMessagesAndWait(), mnAreaNameWindowHide(), mnAreaNameWindowShow(), mnBattleCollectPartyCommands(), mnBattleCommandRowRun(), mnBattleDjinnMenuRun(), mnBattleDjinnMenuShowChangePreview(), mnBattleItemMenuRun(), mnBattleMessageClose(), mnBattleMessageContinue(), mnBattleMessageOpen(), mnBattlePsynergyMenuRun(), mnBattleRefuseFlee(), mnBattleStatusScreenRun(), mnBattleSummonMenuRun(), mnBattleTargetRunSelection(), mnColossoMenuChoose(), mnCommandIconCreate(), mnCreatePartyFigures(), mnCursorCreate(), mnCursorPlace(), mnDebugBrowserIcons(), mnDebugBrowserPortraits(), mnDebugFlagEditorDrawTable(), mnDebugFlagEditorHandleInput(), mnDebugFlagEditorRun(), mnDebugSceneSelectDrawRow(), mnDebugSceneSelectHandleRowInput(), mnDebugSceneSelectRun(), mnDebugSelectShortcuts(), mnDjinnMenuDrawStatPreview() and 173 more.

Definition at line 29 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

Uint16 x

tiles

y

Uint16 y

tiles

opened

Uint16 opened

1 once opened, 0 once freed; nothing reads it

animation

Uint16 animation

animation set by a message's TEXT_WINDOW_ANIMATION code

state

Uint16 state

0 while typing; 1 once the text has ended and the window closes

flags

Uint16 flags

WINDOW_FLAG_ flags; 0 once closing or free

zoomStage

Sint16 zoomStage

7 down to 0 while opening, 0 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