include/window/stubs.h
The stub calls into the window module, as the other modules' code calls them.
Included by battle_internal.h, field_engine_internal.h, field_psynergy_internal.h, lucky_dice.c, lucky_wheels.c, script_commands_messages.c, super_lucky_dice.c, game_units.c, main_routine.c, menu_internal.h and shop_internal.h.
Functions
| Name | Description | |
|---|---|---|
void | mnWindowSystemInitBattleStub (Sint32 kind) | Sets up the window system for battle. |
void | mnPartyStatusCreateWindowStub (Sint32 flags) | Opens the party status window, sized by mnPartyStatusBuildLayoutBounds, and draws it, holding the tilemap upload meanwhile. |
Sint32 | mnMessageAllTypedStub (void) | Returns 1 once no message window is still typing its text, else 0. |
Sint32 | mnWindowSpriteGetPointerTilesStub (Sint32 index) | Returns the pointing hand's tiles, whatever index is asked for. |
void | mnWindowSystemInitFieldStub (void) | Sets up the window system for the field and the other screens outside battle. |
struct WINDOW * | mnWindowCreateStub ( Sint32 x, Sint32 y, Sint32 width, Sint32 height, Sint32 attributes) | Opens a window at tile (x, y) of width by height tiles in the first free window slot, and returns it, or NULL when all slots are in use. attributes takes the WINDOW_FLAG_ flags. |
void | mnWindowCloseStub (struct WINDOW *window, Sint32 release) | Closes a window; with release it also erases the window's border from the screen and forgets its place. |
void | mnTextDrawMessageAsTilesStub (Sint32 msg, struct WINDOW *window, Sint32 offsetX, Sint32 offsetY) | Decodes a message and draws it as tiles in a window at pixel (offsetX, offsetY) of its interior. |
void | mnMessageCloseFinishedWindowsStub (void) | Closes each message's window whose text has ended, then waits ten ticks. |
Sint32 | mnYesNoMenuRunStub (Sint32 bottom, Sint32 msg, Sint32 labelWidth, Sint32 selection) | Selects Yes or No, starting on selection; cancelling answers No. |
Sint32 | mnPointingHandLoadIntoFreeSlotStub (void) | Loads the pointing hand cursor's tiles into a free VRAM slot and returns the slot. |
void | mnWindowSpritePrepareForRedrawStub (void *window) | Clears a window's contents: redraws it empty and releases its sprites. |
void | mnFieldMessageShowStub (Sint32 msg, Sint32 flags) | Shows a message in a window centred on the screen, waits until it is typed out and closes it, as its flags say. |
void | mnDebugFlagEditorRunStub (void) | The debug flag editor: shows 16 rows of 16 flags a page and takes input until closed, starting on page 8. |
void | mnFieldMenuRunStub (void) | Runs the field menu until the player picks something that leaves it. |
void | mnDebugSceneSelectRunStub (void) | The debug scene selector: picks a scene and entrance and travels there. |
void | mnPartyStatusCloseStub (void) | Closes the party status window and frees its heap block. |
void | mnMessageSetDecodeFlagsStub (Sint32 flags) | Sets the decode flags the next message is decoded with (mnMessageDecode). |
void | mnScanlineWindowFillSpansStub (Uint16 *spans) | Fills spans, a page of the screen transition's window edges, with the windows' horizontal extent on each of the 160 scan lines. |
void | mnTextGetMessageSizeAllPagesStub ( Sint32 msg, Sint32 *left, Sint32 *top, Uint32 *width, Uint32 *height) | As mnTextGetMessageSizeStub, but measuring every page of the message. |
void | mnTextGetMessageSizeStub ( Sint32 msg, Sint32 *left, Sint32 *top, Uint32 *width, Uint32 *height) | Decodes a message and fits a window for its first page on the screen near tile (*left, *top), returning its place and size in tiles. |
Sint32 | mnPortraitGetForSpeakerStub (Sint32 speaker) | Returns the portrait of a speaker, a character or a sprite, or -1 when it has none. |
void | mnMessageDecodeRawStub (Sint32 msg, Uint16 *text, Sint32 capacity) | Decodes message into text as a zero-terminated string of 16-bit codes, with at most capacity entries, keeping style codes with their operands. |
struct WINDOW_SPR * | mnWindowSpriteCreateLoadedStub ( Sint32 icon, Sint32 layers, struct WINDOW *window, Sint32 x, Sint32 y) | Copies icon icon into a free VRAM slot and shows it as a 16x16 sprite at (x, y) in window. |
Sint32 | mnSelectShopCommandStub (Sint32 selection) | Selects a shop command (Buy, Sell, Artifacts, Repair) on the bottom row, starting on selection, and returns the one chosen. |
Sint32 | mnSelectSanctumServiceStub (Sint32 selection) | Selects a Sanctum service (Revive, Cure Poison, Repel Evil, Remove Curse) on the bottom row, starting on selection. |
void | mnTextMeasureMessageStub (Sint32 msg, Sint32 *width, Sint32 *height) | Decodes message and returns its text's width and height in pixels. |
void | mnWindowColorApplyStub (Sint32 color, Sint32 brightness) | Sets the window colours for a window colour (0 to 23) and brightness (0 to 14, 7 neutral). |
Sint32 | mnBattleCollectPartyCommandsStub (struct BATTLE_ACTION_RECORD *commands, void *actors, Sint32 commandCount) | Collects the party's commands for a turn into commands, one for each of the commandCount units in actors. |
void | mnAreaNameWindowShowStub (Sint32 scene) | Opens the area-name window, which closes after ninety ticks. |
void | mnPauseMenuRunStub (Sint32 unused) | Handles Save your quest, Sleep and Change settings from the Pause menu. |
void | mnSummonShowLearnedMessageStub (Sint32 summon) | Announces a summon the party can now use. |
void | mnMessageResetIdleStub (void) | Resets the pen and text style of the first idle message. |
Sint32 | mnYesNoMenuRunAtStub (Sint32 x, Sint32 y, Sint32 selection) | Selects Yes or No at (x, y). |
Sint32 | mnTextDrawMessageToCanvasStub (Sint32 msg, Uint8 *canvas, Sint32 unused) | Draws message centred in a 192-pixel canvas of one byte a pixel, as the credits draw their scrolling lines; they pass an alignment it does not read. |
struct WINDOW * | mnPortraitOpenWindowStub (Sint32 speaker, Sint32 portraitOption, Sint32 x, Sint32 y) | Opens a portrait window at tile (x, y) showing the speaker's portrait. |
void | mnTextDrawStringAtOffsetStub (const Uint8 *text, Sint32 window, Sint32 offsetX, Sint32 offsetY) | Draws a byte string as tiles in a window at pixel (offsetX, offsetY) of its interior. |
void | mnTextDrawStringInWindowStub (Uint8 *text, Sint32 window, Uint32 x, Uint32 y) | Draws a byte string into a window's tilemap at pixel (x, y) of its interior, rounded down to tiles. |
void | mnTextDrawNumberAtOffsetStub ( Sint32 value, Sint32 width, Sint32 window, Sint32 x, Sint32 y) | Draws a number, width digits as mnStringFormatNumber takes it, as tiles in a window at pixel (x, y) of its interior. |
void | mnTextDrawNumberInWindowStub ( Sint32 value, Sint32 width, Sint32 window, Sint32 x, Sint32 y) | As mnTextDrawNumberAtOffsetStub, into the window's tilemap. |
Sint32 | mnTextSetColorStub (Sint32 color) | Sets the text colour (0 to 15) of drawn text. |
void | mnAbilityBuildIconTilesStub ( Sint32 action, Sint32 withBase, Sint32 *slot, Sint32 *tile, Sint32 reuse) | mnAbilityBuildIconTiles, for an overlay. |
void | mnWindowDrawDividerLineStub ( Sint32 window, Sint32 x1, Sint32 y1, Sint32 x2, Sint32 y2) | Draws a divider from (x1, y1) to (x2, y2), one of which must agree, joining it to the tick and divider tiles already on the tilemap. |
void | mnPortraitReloadStub (Sint32 slot, Sint32 key, Sint32 unused) | Reloads the portrait picture for the key into a portrait slot with that slot's palette (PORTRAIT_PALETTE + slot), reusing the slot's VRAM cache entry. |
struct WINDOW_SPR * | mnWindowSpriteCreateStub (Sint32 slot, Sint32 oamFlags, struct WINDOW *window, Sint32 offsetX, Sint32 offsetY) | Takes a free window sprite showing VRAM cache slot slot, places it (offsetX, offsetY) pixels from the window's inner corner and appends it to the window's list. |
struct WINDOW_SPR * | mnWindowSpriteCreateFromResourceStub ( Sint32 mode, Sint32 resource, struct WINDOW *window, Sint32 x, Sint32 y) | Loads resource resource in loading mode mode into a VRAM slot and shows it as a 16x16 sprite at (x, y) in window. |
void | mnTextDrawMessageStub (Sint32 msg, Sint32 window, Sint32 x, Sint32 y) | Decodes a message and draws it into a text canvas window at pixel (x, y), all at once. |
void | mnWindowHighlightRectStub ( Sint32 x, Sint32 y, Sint32 width, Sint32 height, Sint32 style) | Switches the UI tilemap entries of the width x height tile rectangle at screen tile (x, y) to WINDOW_PALETTE or HIGHLIGHT_PALETTE by bit 12. |
void | mnWindowSetTilemapEntryStub ( Sint32 window, Sint32 value, Sint32 x, Sint32 y, Uint32 mode) | Writes value into a window's tilemap at tile (x, y) of its interior, in the palette mode given (TILEMAP_ENTRY_). |
void | mnItemIconLoadLayersIntoSlotStub (Sint32 item, Sint32 mode, Sint32 resource) | Draws an item's icon with layers mode and loads it into VRAM cache entry resource. |
void | mnWindowDrawBorderStub (Sint32 x, Sint32 y, Sint32 width, Sint32 height) | Draws an empty window at tile (x, y), width by height tiles, and frees the text tiles the rectangle showed. |
void | mnWindowEraseBorderRectStub (Sint32 x, Sint32 y, Sint32 width, Sint32 height) | Erases a rectangle of the windows' tilemap, in tiles, and frees the text tiles it showed. |
void | mnTextUseExtraTilesStub (Sint32 flag) | Frees the second range of text tiles and, with flag set, lets text take them too. |
void | mnWindowMarkVisibleTextTilesStub (void) | Marks the text tiles the tilemap shows and frees those it no longer shows. |
void | mnSelectionIconLoadIntoSlotStub (Sint32 mode, Sint32 id, Sint32 slot, Sint32 flags) | Loads entry id's icon of kind mode into sprite tile slot slot (a free one when -1). |
void | mnPageArrowsDrawStub (Sint32 offset) | Animates the page arrows on a window's top border, from tile offset. |
void | mnWindowSpriteRedrawSavedRectStub (void *window) | Redraws a window empty, its border and fill, at its current rectangle. |
void | mnWindowClearInteriorTilesStub (struct WINDOW *window, Sint32 left, Sint32 top, Sint32 right, Sint32 bottom) | Clears an area of a window's interior to the window fill. |
void | mnWindowSpriteClearListStub (void *window) | Releases every window sprite in a window's list and empties it. |
void * | mnPortraitCreateStub (Sint32 owner, Sint32 pos, Sint32 side, struct WINDOW *window, Sint32 x, Sint32 y) | Creates party member owner's portrait in window at pixel (x, y), with side's palette. |
void | mnGraphicsExpandVRAMTilesByColorTableStub (void *tiles) | Copies the UI's ten digit tiles twice into tiles, mapped through GraphicsExpandNibbleTable. |
struct MESSAGE * | mnMessageOpenDecodedStub (void *window, Sint32 msg) | Decodes message and starts it typing in window, which is already open. |
void | mnMessageCopyExpandedStub (Sint32 msgId, void *buf, Sint32 length) | Decodes message into buf, at most length halfwords with the terminator. |
void | mnTextDrawWideStringAtOffsetStub (void *text, void *window, Sint32 x, Sint32 y) | Draws a zero-terminated string of 16-bit character codes into a text canvas window at pixel (x, y). |
Description
The stub calls into the window module, as the other modules' code calls them.
Functions in detail
mnWindowSystemInitBattleStub
void mnWindowSystemInitBattleStub(Sint32 kind)
Sets up the window system for battle.
Referenced by btRun().
Definition at line 13 of file stubs.h.
mnPartyStatusCreateWindowStub
void mnPartyStatusCreateWindowStub(Sint32 flags)
Opens the party status window, sized by mnPartyStatusBuildLayoutBounds, and
draws it, holding the tilemap upload meanwhile.
Referenced by btRun(), btTransitionRun() and fdTalkToActor().
Definition at line 16 of file stubs.h.
mnMessageAllTypedStub
Sint32 mnMessageAllTypedStub(void)
Returns 1 once no message window is still typing its text, else 0.
Referenced by btMessageWaitForAdvance(), btMessageWaitForAdvanceAt(), btMessageWaitForTyping(), btPlaybackRun(), btRun(), fdMessageShowAtActor(), fdScriptAskYesNoWithActorAnimation(), fdScriptShowTwoMessagesAndWait(), mnDjinnMenuRunPreview(), mnDjinnMenuSelectDjinn(), mnDjinnMenuShowHelp(), mnItemPickerSelectItem(), mnSanctumShowKeeperMessage(), mnSanctumShowKeeperMessageHidingCursor(), mnShopConfirmEquip(), mnShopShowKeeperMessage() and mnShopShowKeeperMessageHidingCursor().
Definition at line 18 of file stubs.h.
mnWindowSpriteGetPointerTilesStub
Sint32 mnWindowSpriteGetPointerTilesStub(Sint32 index)
Returns the pointing hand's tiles, whatever index is asked for.
Referenced by btMessageWaitForAdvanceAt().
Definition at line 20 of file stubs.h.
mnWindowSystemInitFieldStub
void mnWindowSystemInitFieldStub(void)
Sets up the window system for the field and the other screens outside battle.
Referenced by fdEngineRun(), fdLuckyDiceRun(), fdLuckyWheelsRun(), fdMapScreenShow() and fdSuperLuckyDiceRun().
Definition at line 22 of file stubs.h.
mnWindowCreateStub
struct WINDOW *mnWindowCreateStub( Sint32 x, Sint32 y, Sint32 width, Sint32 height, Sint32 attributes)
Opens a window at tile (x, y) of width by height tiles in the first free
window slot, and returns it, or NULL when all slots are in use. attributes
takes the WINDOW_FLAG_ flags.
Referenced by fdLuckyDiceRun(), fdLuckyWheelsRun(), fdLuckyWheelsSetUpBetting(), fdLuckyWheelsUpdate(), fdMapScreenInit(), fdSuperLuckyDiceRun(), mnDjinnMenuRun(), mnDjinnMenuShowHelp(), mnInnCheckIn(), mnItemMenuConfirmDrop(), mnItemMenuInit(), mnItemMenuRun(), mnItemMenuShowDetails(), mnItemPickerRun(), mnItemPickerSelectItem(), mnPartyMemberChooserOpen(), mnPsynergyMenuRun(), mnSanctumRun(), mnSanctumRunPartyService(), mnShopChooseMember(), mnShopRun(), mnShopSelectBuy(), mnShopSelectQuantity(), mnShopSelectSell(), mnStatusScreenRun() and mnWindowUpdateOrCreate().
Definition at line 26 of file stubs.h.
mnWindowCloseStub
void mnWindowCloseStub(struct WINDOW *window, Sint32 release)
Closes a window; with release it also erases the window's border from the screen and forgets its place.
Referenced by btRun(), fdLuckyDiceRun(), fdLuckyWheelsUpdate(), fdMapScreenRelease(), fdSuperLuckyDiceRun(), mnDjinnMenuRunPreview(), mnDjinnMenuSelectDjinn(), mnDjinnMenuShowHelp(), mnForgeRun(), mnInnCheckIn(), mnItemMenuConfirmDrop(), mnItemMenuShowDetails(), mnItemPickerRun(), mnItemPickerSelectItem(), mnSanctumRun(), mnSanctumRunPartyService(), mnShopChooseMember(), mnShopRun(), mnShopSelectBuy(), mnShopSelectQuantity(), mnShopSelectSell() and mnWindowCloseIfOpen().
Definition at line 30 of file stubs.h.
mnTextDrawMessageAsTilesStub
void mnTextDrawMessageAsTilesStub(Sint32 msg, struct WINDOW *window, Sint32 offsetX, Sint32 offsetY)
Decodes a message and draws it as tiles in a window at pixel (offsetX, offsetY) of its interior.
Referenced by fdLuckyDiceRun(), fdLuckyWheelsRun(), fdLuckyWheelsSetUpBetting(), fdLuckyWheelsUpdate(), fdSuperLuckyDiceRun(), mnDjinnMenuDrawEntry(), mnDjinnMenuDrawPage(), mnDjinnMenuDrawStatPreview(), mnDjinnMenuRunPreview(), mnDjinnMenuSelectDjinn(), mnDjinnMenuShowHelp(), mnDjinnMenuShowMemberStatus(), mnDrawCoins(), mnItemMenuConfirmDrop(), mnItemMenuConfirmEquip(), mnItemMenuDrawCommands(), mnItemMenuDrawEquipment(), mnItemMenuDrawEquippedItemNames(), mnItemMenuDrawItemDetailsWithCount(), mnItemMenuDrawItemHead(), mnItemMenuDrawListPage(), mnItemMenuDrawMessage(), mnItemMenuRefreshMember(), mnItemMenuRunCommands(), mnItemMenuRunList(), mnItemMenuRunMemberSelection(), mnItemMenuSelectGiveQuantity(), mnItemMenuSelectTarget(), mnItemPickerDrawItem(), mnPanelDrawEntryList(), mnPartyMemberChooserChooseMember(), mnPsynergyMenuDrawPage(), mnPsynergyMenuDrawShortcuts(), mnPsynergyMenuRefreshMemberPsynergy(), mnPsynergyMenuRunList(), mnShopDrawCarriedItem(), mnShopDrawEquipComparison(), mnShopDrawItemPrice(), mnShopDrawMessage(), mnShopDrawMoney(), mnShopSelectQuantity(), mnStatusPanelDraw(), mnStatusScreenDrawEquipmentPage(), mnStatusScreenDrawPsynergyPage(), mnStatusScreenDrawStatusPage(), mnStatusScreenDrawTopRows(), mnStatusScreenRunEquipmentPage(), mnStatusScreenRunPartyRow(), mnStatusScreenRunPsynergyPage(), mnStatusScreenRunStatusPage() and 3 more.
Definition at line 33 of file stubs.h.
mnMessageCloseFinishedWindowsStub
void mnMessageCloseFinishedWindowsStub(void)
Closes each message's window whose text has ended, then waits ten ticks.
Referenced by fdMessageShowAtActorAndWait(), fdPartyInventoryGiveItem(), fdScriptAskYesNoWithActorAnimation(), fdScriptShowTwoMessagesAndWait(), fdUseItem(), fdUsePsynergy(), mnItemPickerSelectItem(), mnSanctumRunPartyService(), mnSanctumShowKeeperMessage(), mnSanctumShowKeeperMessageHidingCursor(), mnShopConfirmEquip(), mnShopReleaseState(), mnShopRepairItem(), mnShopShowKeeperMessage() and mnShopShowKeeperMessageHidingCursor().
Definition at line 38 of file stubs.h.
mnYesNoMenuRunStub
Sint32 mnYesNoMenuRunStub(Sint32 bottom, Sint32 msg, Sint32 labelWidth, Sint32 selection)
Selects Yes or No, starting on selection; cancelling answers No. The icons
stand on the bottom row when bottom is set; msg is the first label
message, or 0 for the command names, and labelWidth the label window's
width.
Referenced by fdScriptAskYesNoWithActorAnimation() and fdYesNoAsk().
Definition at line 43 of file stubs.h.
mnPointingHandLoadIntoFreeSlotStub
Sint32 mnPointingHandLoadIntoFreeSlotStub(void)
Loads the pointing hand cursor's tiles into a free VRAM slot and returns the
slot.
Referenced by fdMapScreenInit().
Definition at line 49 of file stubs.h.
mnWindowSpritePrepareForRedrawStub
void mnWindowSpritePrepareForRedrawStub(void *window)
Clears a window's contents: redraws it empty and releases its sprites.
Referenced by fdMapScreenShow(), fdMapScreenUpdateMarkers(), fdSuperLuckyDiceRun(), mnDjinnMenuRunPreview(), mnDjinnMenuShowHelp(), mnDjinnMenuShowMemberStatus(), mnItemPickerRun(), mnItemPickerSelectItem(), mnSanctumDrawFee(), mnSanctumHighlightMembers(), mnSanctumRunPartyService(), mnShopChooseMember(), mnShopDrawCarriedItem(), mnShopDrawEquipComparison(), mnShopDrawMemberItems(), mnShopDrawMoney(), mnShopDrawParty(), mnShopDrawStock(), mnShopSelectBuy(), mnShopSelectSell(), mnStatusScreenRunEquipmentPage(), mnStatusScreenRunPsynergyPage() and mnStatusScreenRunStatusPage().
Definition at line 51 of file stubs.h.
mnFieldMessageShowStub
void mnFieldMessageShowStub(Sint32 msg, Sint32 flags)
Shows a message in a window centred on the screen, waits until it is typed out and closes it, as its flags say.
Referenced by fdEngineRun(), fdExamineMetatile(), fdMapScreenShow(), fdPartyCheckItemLimit(), fdPartyInventoryGiveItem(), fdPartyLearnAbility(), fdPsynergyAvoid(), fdPsynergyShowAvoidWoreOff(), fdPsynergyStartCast(), fdRunPsynergyScript(), fdScriptPickUpItem(), fdScriptShowMessageAndOfferScoop(), fdTalkToActor(), fdUseItem() and fdUsePsynergy().
Definition at line 54 of file stubs.h.
mnDebugFlagEditorRunStub
void mnDebugFlagEditorRunStub(void)
The debug flag editor: shows 16 rows of 16 flags a page and takes input until closed, starting on page 8.
Referenced by fdEngineRun().
Definition at line 57 of file stubs.h.
mnFieldMenuRunStub
void mnFieldMenuRunStub(void)
Runs the field menu until the player picks something that leaves it.
Referenced by fdEngineRun().
Definition at line 59 of file stubs.h.
mnDebugSceneSelectRunStub
void mnDebugSceneSelectRunStub(void)
The debug scene selector: picks a scene and entrance and travels there.
Referenced by fdEngineRun().
Definition at line 61 of file stubs.h.
mnPartyStatusCloseStub
void mnPartyStatusCloseStub(void)
Closes the party status window and frees its heap block.
Referenced by fdTalkToActor().
Definition at line 63 of file stubs.h.
mnMessageSetDecodeFlagsStub
void mnMessageSetDecodeFlagsStub(Sint32 flags)
Sets the decode flags the next message is decoded with (mnMessageDecode).
Referenced by fdTalkToActor().
Definition at line 65 of file stubs.h.
mnScanlineWindowFillSpansStub
void mnScanlineWindowFillSpansStub(Uint16 *spans)
Fills spans, a page of the screen transition's window edges, with the
windows' horizontal extent on each of the 160 scan lines.
Referenced by fdScreenTransitionUpdateScanlineTable().
Definition at line 68 of file stubs.h.
mnTextGetMessageSizeAllPagesStub
void mnTextGetMessageSizeAllPagesStub( Sint32 msg, Sint32 *left, Sint32 *top, Uint32 *width, Uint32 *height)
As mnTextGetMessageSizeStub, but measuring every page of the message.
Referenced by fdMessageShowAtActor().
Definition at line 70 of file stubs.h.
mnTextGetMessageSizeStub
void mnTextGetMessageSizeStub( Sint32 msg, Sint32 *left, Sint32 *top, Uint32 *width, Uint32 *height)
Decodes a message and fits a window for its first page on the screen near tile (*left, *top), returning its place and size in tiles.
Referenced by fdMessageShowAtActor(), mnItemMenuShowMessage() and mnPsynergyMenuDrawShortcuts().
Definition at line 74 of file stubs.h.
mnPortraitGetForSpeakerStub
Sint32 mnPortraitGetForSpeakerStub(Sint32 speaker)
Returns the portrait of a speaker, a character or a sprite, or -1 when it has none.
Referenced by fdMessageShowAtActor().
Definition at line 78 of file stubs.h.
mnMessageDecodeRawStub
void mnMessageDecodeRawStub(Sint32 msg, Uint16 *text, Sint32 capacity)
Decodes message into text as a zero-terminated string of 16-bit codes, with at most capacity entries, keeping style codes with their operands.
Referenced by gmBattleUnitSet().
Definition at line 81 of file stubs.h.
mnWindowSpriteCreateLoadedStub
struct WINDOW_SPR *mnWindowSpriteCreateLoadedStub( Sint32 icon, Sint32 layers, struct WINDOW *window, Sint32 x, Sint32 y)
Copies icon icon into a free VRAM slot and shows it as a 16x16 sprite at
(x, y) in window.
Referenced by mnShopDrawStock().
Definition at line 84 of file stubs.h.
mnSelectShopCommandStub
Sint32 mnSelectShopCommandStub(Sint32 selection)
Selects a shop command (Buy, Sell, Artifacts, Repair) on the bottom row,
starting on selection, and returns the one chosen.
Referenced by mnShopRun().
Definition at line 88 of file stubs.h.
mnSelectSanctumServiceStub
Sint32 mnSelectSanctumServiceStub(Sint32 selection)
Selects a Sanctum service (Revive, Cure Poison, Repel Evil, Remove Curse) on
the bottom row, starting on selection.
Referenced by mnSanctumRun().
Definition at line 91 of file stubs.h.
mnTextMeasureMessageStub
void mnTextMeasureMessageStub(Sint32 msg, Sint32 *width, Sint32 *height)
Decodes message and returns its text's width and height in pixels.
Referenced by fdMapScreenUpdateMarkers().
Definition at line 93 of file stubs.h.
mnWindowColorApplyStub
void mnWindowColorApplyStub(Sint32 color, Sint32 brightness)
Sets the window colours for a window colour (0 to 23) and brightness (0 to 14, 7 neutral).
Referenced by fdPsynergyRestoreMindReadPalette(), gmClearDataApply(), gmDataTransferApply() and gmMainRoutineRun().
Definition at line 96 of file stubs.h.
mnBattleCollectPartyCommandsStub
Sint32 mnBattleCollectPartyCommandsStub(struct BATTLE_ACTION_RECORD *commands, void *actors, Sint32 commandCount)
Collects the party's commands for a turn into commands, one for each of the
commandCount units in actors.
Referenced by btBuildUnitActions().
Definition at line 99 of file stubs.h.
mnAreaNameWindowShowStub
void mnAreaNameWindowShowStub(Sint32 scene)
Opens the area-name window, which closes after ninety ticks.
Referenced by fdEngineRun().
Definition at line 103 of file stubs.h.
mnPauseMenuRunStub
void mnPauseMenuRunStub(Sint32 unused)
Handles Save your quest, Sleep and Change settings from the Pause menu. The field passes it a 0 it does not read.
Referenced by fdEngineRun().
Definition at line 106 of file stubs.h.
mnSummonShowLearnedMessageStub
void mnSummonShowLearnedMessageStub(Sint32 summon)
Announces a summon the party can now use.
Referenced by fdTalkToActor().
Definition at line 108 of file stubs.h.
mnMessageResetIdleStub
void mnMessageResetIdleStub(void)
Resets the pen and text style of the first idle message.
Referenced by btAutoBattleRunAction().
Definition at line 111 of file stubs.h.
mnYesNoMenuRunAtStub
Sint32 mnYesNoMenuRunAtStub(Sint32 x, Sint32 y, Sint32 selection)
Selects Yes or No at (x, y).
Referenced by mnSanctumAskYesNo() and mnShopAskYesNo().
Definition at line 113 of file stubs.h.
mnTextDrawMessageToCanvasStub
Sint32 mnTextDrawMessageToCanvasStub(Sint32 msg, Uint8 *canvas, Sint32 unused)
Draws message centred in a 192-pixel canvas of one byte a pixel, as the credits draw their scrolling lines; they pass an alignment it does not read.
Referenced by mnDisplayScrollDrawMessageLine().
Definition at line 117 of file stubs.h.
mnPortraitOpenWindowStub
struct WINDOW *mnPortraitOpenWindowStub(Sint32 speaker, Sint32 portraitOption, Sint32 x, Sint32 y)
Opens a portrait window at tile (x, y) showing the speaker's portrait.
Referenced by fdMessageShowAtActor(), fdScriptShowTwoMessagesAndWait(), mnForgeRun(), mnInnCheckIn(), mnSanctumRun() and mnShopRun().
Definition at line 120 of file stubs.h.
mnTextDrawStringAtOffsetStub
void mnTextDrawStringAtOffsetStub(const Uint8 *text, Sint32 window, Sint32 offsetX, Sint32 offsetY)
Draws a byte string as tiles in a window at pixel (offsetX, offsetY) of its interior.
Referenced by mnDjinnMenuDrawStatPreview(), mnDjinnMenuSelectDjinn(), mnItemMenuDrawItemHead(), mnItemMenuSelectGiveQuantity(), mnPsynergyMenuDrawShortcuts(), mnStatusPanelDraw(), mnStatusPanelDrawHpPp(), mnStatusScreenDrawEquipmentPage(), mnStatusScreenDrawPsynergyPage() and mnStatusScreenDrawTopRows().
Definition at line 127 of file stubs.h.
mnTextDrawNumberAtOffsetStub
void mnTextDrawNumberAtOffsetStub( Sint32 value, Sint32 width, Sint32 window, Sint32 x, Sint32 y)
Draws a number, width digits as mnStringFormatNumber takes it, as tiles in a
window at pixel (x, y) of its interior.
Referenced by mnDjinnMenuDrawStatPreview(), mnDrawCoins(), mnPsynergyMenuDrawPage(), mnStatusScreenDrawPsynergyPage(), mnTextDrawNumberRightAligned() and mnTextDrawStatComparison().
Definition at line 139 of file stubs.h.
mnTextDrawNumberInWindowStub
void mnTextDrawNumberInWindowStub( Sint32 value, Sint32 width, Sint32 window, Sint32 x, Sint32 y)
As mnTextDrawNumberAtOffsetStub, into the window's tilemap.
Referenced by fdLuckyDiceRun(), fdLuckyWheelsUpdate(), fdSuperLuckyDiceRun(), mnDjinnMenuDrawStatPreview(), mnDjinnMenuSelectDjinn(), mnItemMenuDrawItemDetailsWithCount(), mnItemMenuDrawStat(), mnItemMenuSelectGiveQuantity(), mnItemMenuSelectTarget(), mnItemPickerDrawItem(), mnShopDrawEquipComparison(), mnShopDrawItemPrice(), mnShopDrawMoney(), mnShopSelectQuantity(), mnStatusPanelDraw(), mnStatusScreenDrawEquipmentPage(), mnStatusScreenDrawPsynergyPage(), mnStatusScreenDrawStatusPage() and mnStatusScreenDrawTopRows().
Definition at line 142 of file stubs.h.
mnTextSetColorStub
Sint32 mnTextSetColorStub(Sint32 color)
Sets the text colour (0 to 15) of drawn text.
Referenced by mnDjinnMenuDrawEntry(), mnDjinnMenuDrawPage(), mnDjinnMenuDrawStatPreview(), mnDjinnMenuRunPreview(), mnItemMenuDrawCommands(), mnPsynergyMenuDrawPage(), mnStatusPanelDrawHpPp(), mnStatusScreenDrawStatusPage(), mnStatusScreenDrawTopRows(), mnTextSetNormalColor(), mnTextSetRedColor() and mnTextSetYellowColor().
Definition at line 145 of file stubs.h.
mnAbilityBuildIconTilesStub
void mnAbilityBuildIconTilesStub( Sint32 action, Sint32 withBase, Sint32 *slot, Sint32 *tile, Sint32 reuse)
mnAbilityBuildIconTiles, for an overlay.
Referenced by mnIconLoadResourceIntoSlot().
Definition at line 147 of file stubs.h.
mnWindowDrawDividerLineStub
void mnWindowDrawDividerLineStub( Sint32 window, Sint32 x1, Sint32 y1, Sint32 x2, Sint32 y2)
Draws a divider from (x1, y1) to (x2, y2), one of which must agree, joining it to the tick and divider tiles already on the tilemap.
Referenced by mnCursorCreate(), mnDjinnMenuDrawPage(), mnDjinnMenuDrawStatPreview(), mnDrawCoins(), mnItemMenuChooseCommand(), mnItemMenuDrawListPage(), mnItemMenuSelectTarget(), mnItemMenuShowDetails(), mnPsynergyMenuDrawPage(), mnShopDrawEquipComparison(), mnStatusScreenSelectMember() and mnStatusScreenShowDjinnList().
Definition at line 151 of file stubs.h.
mnPortraitReloadStub
void mnPortraitReloadStub(Sint32 slot, Sint32 key, Sint32 unused)
Reloads the portrait picture for the key into a portrait slot with that
slot's palette (PORTRAIT_PALETTE + slot), reusing the slot's VRAM cache
entry.
Referenced by mnReloadMemberPortrait().
Definition at line 156 of file stubs.h.
mnWindowSpriteCreateStub
struct WINDOW_SPR *mnWindowSpriteCreateStub(Sint32 slot, Sint32 oamFlags, struct WINDOW *window, Sint32 offsetX, Sint32 offsetY)
Takes a free window sprite showing VRAM cache slot slot, places it
(offsetX, offsetY) pixels from the window's inner corner and appends it to
the window's list.
Referenced by mnCursorCreate(), mnForgeRun(), mnIconCreateDjinnArrow(), mnIconCreateHandCursor(), mnIconCreatePsynergyIcon(), mnIconCreateStatChangeArrow(), mnItemMenuSelectGiveQuantity(), mnItemPickerRun(), mnOpenBackdropScreen(), mnSanctumHighlightMembers(), mnSanctumRun(), mnShopCreatePriceSprite(), mnShopDrawEquipComparison(), mnShopDrawParty(), mnShopDrawStock(), mnShopRun() and mnShopSelectQuantity().
Definition at line 161 of file stubs.h.
mnWindowSpriteCreateFromResourceStub
struct WINDOW_SPR *mnWindowSpriteCreateFromResourceStub( Sint32 mode, Sint32 resource, struct WINDOW *window, Sint32 x, Sint32 y)
Loads resource resource in loading mode mode into a VRAM slot and shows
it as a 16x16 sprite at (x, y) in window.
Referenced by mnItemMenuRunMemberSelection(), mnPsynergyMenuSelectMember() and mnSpawnIconEntries().
Definition at line 169 of file stubs.h.
mnTextDrawMessageStub
void mnTextDrawMessageStub(Sint32 msg, Sint32 window, Sint32 x, Sint32 y)
Decodes a message and draws it into a text canvas window at pixel (x, y), all at once.
Referenced by fdMapScreenUpdateMarkers(), mnDjinnMenuSelectDjinn(), mnDjinnMenuShowHelp(), mnItemMenuShowMessage(), mnPsynergyMenuSelectTarget(), mnPsynergyMenuShowSelectedRow(), mnSanctumDrawFee(), mnShopDrawEquipComparison(), mnShopDrawMemberItems(), mnStatusScreenDrawSelectionLabels() and mnStatusScreenShowDjinnList().
Definition at line 174 of file stubs.h.
mnWindowHighlightRectStub
void mnWindowHighlightRectStub( Sint32 x, Sint32 y, Sint32 width, Sint32 height, Sint32 style)
Switches the UI tilemap entries of the width x height tile rectangle at
screen tile (x, y) to WINDOW_PALETTE or HIGHLIGHT_PALETTE by bit 12.
Referenced by mnWindowSetInteriorPaletteBitRect().
Definition at line 178 of file stubs.h.
mnWindowSetTilemapEntryStub
void mnWindowSetTilemapEntryStub( Sint32 window, Sint32 value, Sint32 x, Sint32 y, Uint32 mode)
Writes value into a window's tilemap at tile (x, y) of its interior, in the palette mode given (TILEMAP_ENTRY_).
Referenced by mnDjinnMenuDrawEntry(), mnDjinnMenuDrawStatPreview(), mnDjinnMenuRunPreview(), mnDjinnMenuSelectDjinn(), mnDjinnMenuShowMemberStatus(), mnItemMenuDrawItemDetailsWithCount(), mnPagedListDrawPageNumbers(), mnPsynergyMenuDrawRange(), mnStatusPanelDraw(), mnStatusScreenDrawStatusPage(), mnStatusScreenShowDjinnList(), mnStatusScreenShowEquipmentRow() and mnStatusScreenShowPsynergyRow().
Definition at line 183 of file stubs.h.
mnItemIconLoadLayersIntoSlotStub
void mnItemIconLoadLayersIntoSlotStub(Sint32 item, Sint32 mode, Sint32 resource)
Draws an item's icon with layers mode and loads it into VRAM cache entry
resource.
Referenced by mnItemIconGridLoadItems().
Definition at line 188 of file stubs.h.
mnWindowDrawBorderStub
void mnWindowDrawBorderStub(Sint32 x, Sint32 y, Sint32 width, Sint32 height)
Draws an empty window at tile (x, y), width by height tiles, and frees the text tiles the rectangle showed.
Referenced by mnDjinnMenuRun(), mnItemMenuRun(), mnPartyMemberChooserOpen(), mnPsynergyMenuRun() and mnStatusScreenRun().
Definition at line 194 of file stubs.h.
mnWindowEraseBorderRectStub
void mnWindowEraseBorderRectStub(Sint32 x, Sint32 y, Sint32 width, Sint32 height)
Erases a rectangle of the windows' tilemap, in tiles, and frees the text tiles it showed.
Referenced by mnDjinnMenuRun(), mnItemMenuRun(), mnPsynergyMenuRun() and mnStatusScreenRun().
Definition at line 198 of file stubs.h.
mnTextUseExtraTilesStub
void mnTextUseExtraTilesStub(Sint32 flag)
Frees the second range of text tiles and, with flag set, lets text take
them too.
Referenced by mnDjinnMenuRun(), mnItemMenuRun(), mnPsynergyMenuRun() and mnStatusScreenRun().
Definition at line 205 of file stubs.h.
mnWindowMarkVisibleTextTilesStub
void mnWindowMarkVisibleTextTilesStub(void)
Marks the text tiles the tilemap shows and frees those it no longer shows.
Referenced by mnDjinnMenuRun(), mnDjinnMenuRunPreview(), mnDjinnMenuShowHelp(), mnItemMenuRun(), mnPsynergyMenuRun() and mnStatusScreenRun().
Definition at line 208 of file stubs.h.
mnSelectionIconLoadIntoSlotStub
void mnSelectionIconLoadIntoSlotStub(Sint32 mode, Sint32 id, Sint32 slot, Sint32 flags)
Loads entry id's icon of kind mode into sprite tile slot slot (a free
one when -1).
Referenced by mnIconLoadSlots(), mnItemMenuDrawIcons(), mnItemMenuDrawItemHead(), mnItemMenuRunCommands() and mnPsynergyMenuDrawPsynergyIcons().
Definition at line 212 of file stubs.h.
mnPageArrowsDrawStub
void mnPageArrowsDrawStub(Sint32 offset)
Animates the page arrows on a window's top border, from tile offset.
Referenced by mnDjinnMenuRun(), mnItemMenuRun(), mnPagedListHandleInput(), mnPsynergyMenuRun(), mnStatusScreenRun() and mnStatusScreenShowDjinnList().
Definition at line 218 of file stubs.h.
mnWindowSpriteRedrawSavedRectStub
void mnWindowSpriteRedrawSavedRectStub(void *window)
Redraws a window empty, its border and fill, at its current rectangle.
Referenced by mnDjinnMenuDrawPage(), mnDjinnMenuRunPreview(), mnDjinnMenuSelectDjinn(), mnDjinnMenuShowMemberStatus(), mnItemMenuChooseCommand(), mnItemMenuDrawListPage(), mnItemMenuDrawMessage(), mnItemMenuRefreshMember(), mnItemMenuRunCommands(), mnItemMenuSelectGiveQuantity(), mnItemMenuSelectTarget(), mnItemMenuShowDetails(), mnItemMenuShowEquipment(), mnItemMenuShowMessage(), mnItemMenuTryBreak(), mnItemMenuUse(), mnItemPickerDrawItem(), mnPartyMemberChooserChooseMember(), mnPsynergyMenuDrawPage(), mnPsynergyMenuRefreshMemberPsynergy(), mnPsynergyMenuRunSteps(), mnPsynergyMenuSelectMember(), mnPsynergyMenuSelectTarget(), mnPsynergyMenuShowSelectedRow(), mnShopDrawItemPrice(), mnShopDrawMessage(), mnShopSelectBuy(), mnStatusScreenDrawPsynergyPage(), mnStatusScreenRunEquipmentPage(), mnStatusScreenRunPartyRow(), mnStatusScreenRunPsynergyPage(), mnStatusScreenRunStatusPage(), mnStatusScreenSelectMember(), mnStatusScreenShowDjinnList() and mnWindowUpdateOrCreate().
Definition at line 221 of file stubs.h.
mnWindowClearInteriorTilesStub
void mnWindowClearInteriorTilesStub(struct WINDOW *window, Sint32 left, Sint32 top, Sint32 right, Sint32 bottom)
Clears an area of a window's interior to the window fill.
Referenced by mnDjinnMenuRunPreview(), mnDjinnMenuSelectDjinn(), mnItemMenuConfirmEquip(), mnItemMenuRunCommands(), mnItemMenuRunList(), mnItemMenuSelectTarget(), mnPsynergyMenuRunList(), mnStatusPanelDraw(), mnStatusScreenDrawEquipmentPage(), mnStatusScreenDrawStatusPage(), mnStatusScreenDrawTopRows() and mnStatusScreenShowPsynergyRow().
Definition at line 224 of file stubs.h.
mnWindowSpriteClearListStub
void mnWindowSpriteClearListStub(void *window)
Releases every window sprite in a window's list and empties it.
Referenced by mnDjinnMenuRunPreview(), mnDjinnMenuRunScreen(), mnDjinnMenuSelectDjinn(), mnDjinnMenuShowHelp(), mnDjinnMenuShowMemberStatus(), mnItemMenuRun(), mnItemMenuRunCommands(), mnItemMenuSelectGiveQuantity(), mnItemMenuSelectMember(), mnItemMenuShowMessage(), mnItemMenuUse(), mnOpenBackdropScreen(), mnPartyMemberChooserOpen(), mnPsynergyMenuRun(), mnPsynergyMenuRunSteps(), mnPsynergyMenuSelectMember(), mnStatusPanelDraw(), mnStatusScreenRun(), mnStatusScreenRunEquipmentPage(), mnStatusScreenRunPsynergyPage(), mnStatusScreenRunStatusPage() and mnStatusScreenShowDjinnList().
Definition at line 231 of file stubs.h.
mnPortraitCreateStub
void *mnPortraitCreateStub(Sint32 owner, Sint32 pos, Sint32 side, struct WINDOW *window, Sint32 x, Sint32 y)
Creates party member owner's portrait in window at pixel (x, y), with side's palette.
Referenced by mnDjinnMenuDrawStatPreview(), mnSanctumRun(), mnStatusPanelDraw() and mnStatusScreenShowMemberStatus().
Definition at line 235 of file stubs.h.
mnGraphicsExpandVRAMTilesByColorTableStub
void mnGraphicsExpandVRAMTilesByColorTableStub(void *tiles)
Copies the UI's ten digit tiles twice into tiles, mapped through
GraphicsExpandNibbleTable.
Referenced by mnOpenBackdropScreen().
Definition at line 244 of file stubs.h.
mnMessageOpenDecodedStub
struct MESSAGE *mnMessageOpenDecodedStub(void *window, Sint32 msg)
Decodes message and starts it typing in window, which is already open.
Referenced by mnDjinnMenuShowHelp().
Definition at line 247 of file stubs.h.
mnMessageCopyExpandedStub
void mnMessageCopyExpandedStub(Sint32 msgId, void *buf, Sint32 length)
Decodes message into buf, at most length halfwords with the terminator.
Referenced by mnStatusScreenShowMemberProgressMessage().
Definition at line 250 of file stubs.h.
mnTextDrawWideStringAtOffsetStub
void mnTextDrawWideStringAtOffsetStub(void *text, void *window, Sint32 x, Sint32 y)
Draws a zero-terminated string of 16-bit character codes into a text canvas window at pixel (x, y).
Referenced by mnStatusScreenShowMemberProgressMessage().
Definition at line 254 of file stubs.h.