Alchemy
Loading...
Searching...
No Matches

UiWindow Struct Reference

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

#include <graphics/uiwindow.h>

Data Fields

struct RenderOutputList output
 the sprites the window carries
u16 width
 tiles
u16 height
 tiles
u16 x
 tiles
u16 y
 tiles
u16 unk10
 1 once opened, 0 once freed; not read by name in TBS
u16 effect
 The effect a message's TEXT_WINDOW_STATE code sets.
u16 state
 0 while a message channel is typing into the window; 1 once its text has ended or closed the window, which frees the channel for the next text.
u16 flags
 UI_WINDOW_ flags; 0 once closing or free.
u16 frame
 The zoom's step: counts down from 7 to 0 while opening, and up from 0 to duration while closing.
s16 duration
 frames of the zoom under way; 0 when none
u16 previousX
 tiles
u16 previousY
 tiles
u16 previousWidth
 tiles
u16 previousHeight
 tiles

Detailed Description

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

Definition at line 11 of file uiwindow.h.

Field Documentation

◆ output

◆ width

◆ height

◆ x

u16 UiWindow::x

tiles

Definition at line 15 of file uiwindow.h.

Referenced by Battle_CollectPartyCommands(), Battle_SelectAbility(), BattleEvent_Playback(), BattleMenu_RunActionSelection(), BattlePresentation_WaitForAdvance(), DebugMenu_BrowseIcons(), DjinnMenu_ShowChangePreview(), InventoryMenu_ShowModalMessage(), ItemList_SelectEntry(), ItemMenu_SelectTarget(), LuckyDice_Run(), Menu_RunConfirmSelectionAt(), Menu_RunWorkspaceOptions(), Menu_RunWorkspaceSelectionLoop(), NameEntry_EditOwnerName(), OptionMenu_Open(), PartyStatusDraw(), PartyTalkMenu_Choose(), PsynergyMenu_InitializeEntryObjects(), ReelGame_Run(), Render_SetTilemapFlagRect(), RenderOutput_Create(), RenderOutput_RedrawSavedRect(), Sanctum_ChooseRestartOption(), SaveMenu_FillTileBlock(), SaveMenu_FillTileGrid(), SaveMenu_SelectSlot(), SaveMenu_ShowDjinnSprites(), SaveMenu_ShowPartySprites(), Shop_PlaceCursor(), Shop_SelectRepair(), Shop_SelectSell(), Shop_SelectUse(), SummonMenu_SelectSummon(), SystemMenu_Open(), Ui_RunOwnerStatusScreen(), UiIcon_CreateStatChangeArrow(), UiIcon_DrawVariantWithTileOffset(), UiText_DrawCharacterAtOffset(), UiText_DrawGlyph(), UiText_DrawPrefixedNumberAtOffset(), UiText_DrawStringAtOffset(), UiText_RenderGlyphTileAtWorkOffset(), UiText_ShowCenteredMessage(), UiText_ShowMessageAndWaitComplete(), UiText_ShowPositionedMessageAndWait(), UiWindow_ClearInteriorTiles(), UiWindow_CopyTilemapRegion(), UiWindow_Create(), UiWindow_CreateWithSideObject(), UiWindow_DrawColumnBorders(), UiWindow_DrawDividerLine(), UiWindow_DrawOpened(), UiWindow_DrawStatusBarTiles(), UiWindow_DrawZoomFrame(), UiWindow_FillTilemapRect(), UiWindow_PutGlyph(), UiWindow_SetBounds(), UiWindow_SetInteriorPaletteBitRect(), UiWindow_SetTileAttributeBitRect(), UiWindow_SetTileAttributeRect(), UiWindow_SetTilemapEntry(), UiWindow_StepSwellEffect(), UiWindow_UpdateOrCreate(), UiWork_Finalize(), UiWork_ProcessDirectWork(), and UiWork_StepChannelScript().

◆ y

u16 UiWindow::y

tiles

Definition at line 16 of file uiwindow.h.

Referenced by Battle_CollectPartyCommands(), Battle_SelectAbility(), BattleEvent_Playback(), BattleMenu_RunActionSelection(), BattlePresentation_WaitForAdvance(), BattleTarget_RunSelection(), Debug_SelectAbilityPair(), DebugMenu_BrowseIcons(), DjinnMenu_ShowChangePreview(), DjinnMenu_ShowHelp(), DjinnMenu_ShowOwnerStatus(), Event_AskYesNoWithActorAnimation(), InventoryMenu_ShowModalMessage(), ItemList_SelectEntry(), LuckyDice_Run(), Menu_DrawFlagBitTable(), Menu_RunConfirmSelectionAt(), Menu_RunWorkspaceOptions(), Menu_RunWorkspaceSelectionLoop(), NameEntry_EditOwnerName(), OptionMenu_Open(), OwnerAction_RunCompareLoop(), PartyTalkMenu_Choose(), PsynergyMenu_InitializeEntryObjects(), ReelGame_Run(), Render_SetTilemapFlagRect(), RenderOutput_Create(), RenderOutput_RedrawSavedRect(), SaveMenu_FillTileBlock(), SaveMenu_FillTileGrid(), SaveMenu_Run(), SaveMenu_SelectSlot(), SaveMenu_ShowDjinnSprites(), SaveMenu_ShowPartySprites(), Shop_PlaceCursor(), Shop_SelectRepair(), Shop_SelectUse(), SummonMenu_SelectSummon(), SystemMenu_Open(), Ui_RunOwnerStatusScreen(), UiText_DrawCharacterAtOffset(), UiText_DrawGlyph(), UiText_DrawPrefixedNumberAtOffset(), UiText_DrawStringAtOffset(), UiText_RenderGlyphTileAtWorkOffset(), UiText_ShowCenteredMessage(), UiText_ShowMessageAndWaitComplete(), UiText_ShowPositionedMessageAndWait(), UiWindow_ClearInteriorTiles(), UiWindow_CopyTilemapRegion(), UiWindow_Create(), UiWindow_CreateWithSideObject(), UiWindow_DrawColumnBorders(), UiWindow_DrawDividerLine(), UiWindow_DrawOpened(), UiWindow_DrawStatusBarTiles(), UiWindow_DrawZoomFrame(), UiWindow_PutGlyph(), UiWindow_SetBounds(), UiWindow_SetInteriorPaletteBitRect(), UiWindow_SetTileAttributeBitRect(), UiWindow_SetTileAttributeRect(), UiWindow_SetTilemapEntry(), UiWindow_StepSwellEffect(), UiWindow_UpdateOrCreate(), UiWork_Finalize(), UiWork_ProcessDirectWork(), and UiWork_StepChannelScript().

◆ unk10

u16 UiWindow::unk10

1 once opened, 0 once freed; not read by name in TBS

Definition at line 17 of file uiwindow.h.

Referenced by UiWindow_Create(), UiWork_Finalize(), and UiWork_ProcessDirectWork().

◆ effect

u16 UiWindow::effect

The effect a message's TEXT_WINDOW_STATE code sets.

Only UI_WINDOW_EFFECT_SWELL (4) is acted on; its channel types nothing more until the swell ends and clears it.

Definition at line 21 of file uiwindow.h.

Referenced by UiWindow_StepSwellEffect(), UiWork_AnimateSpriteSlots(), UiWork_Finalize(), UiWork_ProcessDirectWork(), UiWork_ProcessRenderChannels(), and UiWork_StepChannelScript().

◆ state

◆ flags

◆ frame

◆ duration

◆ previousX

u16 UiWindow::previousX

tiles

Definition at line 30 of file uiwindow.h.

Referenced by UiWindow_DrawZoomFrame(), UiWork_Finalize(), and UiWork_ProcessDirectWork().

◆ previousY

u16 UiWindow::previousY

tiles

Definition at line 31 of file uiwindow.h.

Referenced by UiWindow_DrawZoomFrame(), UiWork_Finalize(), and UiWork_ProcessDirectWork().

◆ previousWidth

u16 UiWindow::previousWidth

tiles

Definition at line 32 of file uiwindow.h.

Referenced by UiWindow_DrawZoomFrame(), UiWork_Finalize(), and UiWork_ProcessDirectWork().

◆ previousHeight

u16 UiWindow::previousHeight

tiles

Definition at line 33 of file uiwindow.h.

Referenced by UiWindow_DrawZoomFrame(), UiWork_Finalize(), and UiWork_ProcessDirectWork().