window
games/tbs/include/unit/window on GitHub
articles.h
games/tbs/include/unit/window/articles.h
Globals, without a comment: gUiText_ArticleEmpty, gUiText_NumberWord0, gUiText_NumberWord1, gUiText_NumberWord2, gUiText_NumberWord3, gUiText_NumberWord4, gUiText_NumberWord5, gUiText_NumberWord6, gUiText_NumberWord7, gUiText_NumberWord8, gUiText_NumberWord9, gUiText_MarkGlyphCodes, gUiSprite_CursorBobOffsets, gUiSprite_WobbleTail.
battle_command.h
games/tbs/include/unit/window/battle_command.h
Declarations, without a comment: UiWindow_DrawStatusBarTiles, PartyStatusDraw, PartyStatus_Close, UiWindow_SetTileAttributeBitRect, Menu_BuildLocalizedPatternTiles, UiWindow_DrawThreeTileColumn, Graphics_MergeShiftedTileRows, Link_DrawShiftedTilePair, Graphics_ExpandVramTilesByColorTable, Resource_LoadTableEntryToBuffer, ItemIcon_LoadIntoSlot, Resource_LoadIndexedEntryToBuffer, UiGlyph_LoadPortrait, Ui_GetTableWordZero, UiIcon_Decompress, Link_CreateCountdownLabelWindow, Resource_LoadIndexedIntoBuffer, UiText_LoadRemappedGlyph, UiText_DrawCharacter, Graphics_SetBg1Priority3, Graphics_SetBg1Priority0, Graphics_InstallBg1VCountHandler, UiText_FormatNumberToHalfwords, DjinnMenu_ListChangedDjinn, Ui_CreateOutputFromResourceSlot, DjinnMenu_ShowChangePreview, Menu_RunSelection, Menu_HandleSelectionRowInput, Menu_RunSelectionWithCursorObject, Text_FormatHex, Menu_DrawFlagBitTable, Menu_HandleFlagGridInput, Menu_ReservedNoOp, Djinn_SetFoundFlagAndAdd, Menu_RunWorkspaceResultLoop, DebugMenu_BrowseIcons, DebugMenu_BrowseEntryGlyphs.
glyph_arm.h
games/tbs/include/unit/window/glyph_arm.h
scales.h
games/tbs/include/unit/window/scales.h
Globals, without a comment: gUi_BounceScales, gUi_BounceScalesTail, gMenu_CursorBobOffsets, gPaletteGlow_WaveTable, gOptionMenu_HuePresets, gOptionMenu_BrightnessPresets, gMenu_WorkspaceIconFrames, gPortrait_CharacterMap, gPortrait_SpriteMap.
text_speed.h
games/tbs/include/unit/window/text_speed.h
Globals, without a comment: gUiText_SpeedDelays, gUiText_SpeedSteps, gUiText_SpeedCueGaps.
window.h
games/tbs/include/unit/window/window.h
Macros
UI_TILEMAP_VRAM
#define UI_TILEMAP_VRAM ((u8 *)0x06002000)
The UI tilemap in VRAM (BG screen block 4), which UiWork_UploadDirtyBlocks copies the work block's tilemap to.
Used by UiText_DrawCharacterAtOffset, UiText_DrawPrefixedNumberAtOffset, UiText_DrawStringAtOffset, UiWindow_CopyTilemapRegion, UiWindow_FillScreenBlockRect, UiWork_UploadDirtyBlocks.
UI_TILE
#define UI_TILE(tile) (0xf000 | (tile))
A tilemap entry of palette 15, the UI palette.
Used by Menu_RunCommandRow, UiWindow_EraseBorderRect, UiWindow_MapTextCanvasTiles, UiWindow_PutGlyph.
UI_TILE_PAIR
#define UI_TILE_PAIR(entry) ((u32)(entry) << 16 | (entry))
Two copies of a tilemap entry, for filling a run of entries a word at a time.
Used by UiWindow_DrawFrame, UiWork_Initialize, UiWork_InitializeWithResourceCounters.
TILE_HFLIP
#define TILE_HFLIP 0x400
The tilemap entry flip bits.
Used by UiWindow_DrawFrame.
DMA_FILL32
#define DMA_FILL32(count)
The DMA control word that fills count words from one fixed source word.
Used by UiWork_Initialize, UiWork_InitializeWithResourceCounters.
DMA_COPY32
#define DMA_COPY32(count) ((DMA_ENABLE | DMA_32BIT) << 16 | (count))
The DMA control word that copies count words.
Used by NameEntry_EditOwnerName, PartyTalkMenu_Choose, UiText_DrawGlyph, UiText_ScrollCanvasUp, UiWindow_OverlayTilePattern, UiWork_UploadDirtyBlocks, Vram_CopyTile.
DMA_COPY16
#define DMA_COPY16(count) ((DMA_ENABLE << 16) | (count))
The DMA control word that copies count halfwords.
Used by OptionMenu_Open, UiGlyph_LoadEntryWithPalette, UiWork_Initialize.
DEFINE_GET_RESOURCE_DIMENSIONS
#define DEFINE_GET_RESOURCE_DIMENSIONS(name, flags)
Defines name(no, x, y, width, height): decodes message no and fits a window for it on the screen near tile (x, y) (UiWindow_FitOnScreen with flags), returning its place and size in tiles. Returns 0 for an empty message.
Also, macros without a comment: UI_CANVAS_VRAM, UI_CANVAS_SIZE, UI_CANVAS_FIRST_TILE, UI_PAGE_ARROW_TILE, UI_PAGE_ARROW_VRAM, UI_PAGE_ARROW_LEFT, UI_PAGE_ARROW_RIGHT, TILE_VFLIP, UI_WORK, ACTION_ID_MASK.
Declarations, without a comment: UiText_RenderGlyphPair, UiText_GetWideStringWidth, UiText_RenderWideStringAtOffset, UiText_RenderGlyphTileAtWorkOffset, UiText_FormatNumber, UiText_AppendArticleName, UiText_BuildRenderEntries, UiText_GetResourceDimensions, UiText_GetResourceDimensionsAlt.