src/window/window.c
The window object: the windows drawn into a shared BG tilemap, the messages typed into them and the decoder behind them, the sprites windows carry, icons, the selection screen, the settings and Pause menus, the debug menus and text drawn as tiles. More…
#include "window_internal.h"#include "window_windows.c"#include "window_typing.c"#include "window_borders.c"#include "window_glyphs.c"#include "window_decode.c"#include "window_measure.c"#include "window_sprites.c"#include "window_messages.c"#include "window_icons.c"#include "window_selection.c"#include "window_shortcuts.c"#include "window_settings_menu.c"#include "window_debug.c"#include "window_text_tiles.c"
Description
The window object: the windows drawn into a shared BG tilemap, the messages
typed into them and the decoder behind them, the sprites windows carry,
icons, the selection screen, the settings and Pause menus, the debug menus
and text drawn as tiles. The screens built on them are the next object,
screens.c, as in The Broken Seal.
window_internal.h holds what every part shares (its includes and the
declarations the parts disagreed on); the code is in the window_*.c files
beside this one, included here in the order it has in the ROM, cut where The
Broken Seal's parts are. window_debug.c holds the debug menus, which The Lost
Age keeps after the settings and Pause menus, where The Broken Seal keeps
them in its screens object. Where to start:
- windows:
mnWindowCreateandmnWindowClose(window_windows.c),mnWindowDrawBorderandmnWindowUpdateZooms(window_borders.c); - messages:
mnMessageOpenWindowandmnFieldMessageShow(window_borders.c),mnMessageUpdateAll(window_typing.c),mnMessageDecode(window_decode.c); - text drawing:
mnWindowSpriteUpdateAll(window_sprites.c),mnTextDrawStringAsTilesandmnTextDrawString(window_text_tiles.c); - screens:
mnFieldMenuRun(window_selection.c),mnDebugWarpRun(window_debug.c).