|
Digimon World 3 decomp
The European version, SLES_039.36
|
The details panel of the item under the cursor: its description, and what equipping it would change in each partner's stats. More...
#include "menus/item_shop.h"Go to the source code of this file.
Functions | |
| void | STITSHOP_computeStats (s32 partner, StatBlock *out) |
| A partner's stats with its equipment, as main's computeStats gives them: the weapons' attack (STAT_STRENGTH), the armor's defense (STAT_DEFENSE) and the items' bonuses added, up to 999, less the penalties on STAT_STRENGTH, STAT_DEFENSE and STAT_SPEED. | |
| void | STITSHOP_addStat (s16 *p, s32 stat, s32 delta) |
| Adds an item's bonus to a stat, up to 999: 1 to 6 one of the six battle stats, 7 all of them, 8 to 14 a resistance. | |
| void | STITSHOP_showStat (ShopInfo *info, TextWindow *win, ShopStatRow *row) |
| Shows a row's stat of a partner in the details panel: as it is, or with the item equipped when the row compares. | |
| void | STITSHOP_colorStat (ShopInfo *info, TextWindow *win, ShopStatRow *row) |
| Colors a row's stat: palette 1 when the item would raise it, 5 when it would lower it, else 6 when a penalty lowers it (STAT_STRENGTH, STAT_DEFENSE and STAT_SPEED), 0 otherwise. | |
| void | STITSHOP_showOtherChanges (ShopInfo *info, TextWindow **win, ShopStatRow *row) |
| Shows the new values of the other stats the item would change (palette 1 up, 5 down), noting them in the partner's rows; hides the windows left over. | |
| void | STITSHOP_fillPartnerRows (ShopInfo *info, ShopInfoWindows *win, s32 member) |
| Fills a partner's rows of the details panel's second page: the stats of the slot the item goes in, then the others it would change. | |
| static s32 | STITSHOP_lineY (ShopInfo *info, s32 y) |
| The y of a line of the details panel, two lower when selling. | |
| void | STITSHOP_createInfoWindows (ShopInfo *info, ShopInfoWindows *win) |
| Creates the details panel's windows: the item's rows, then, when buying, each partner's name, stats and stat changes. | |
| void | STITSHOP_showItemRows (ShopInfo *info, ShopInfoWindows *win, s32 show) |
| Shows the item's name, how many are equipped and in the bag, and its price; or hides them. | |
| void | STITSHOP_showItemDesc (ShopInfo *info, ShopInfoWindows *win, s32 show) |
| Shows the item's description and, for a weapon, its kind; or hides them. | |
| void | STITSHOP_showPartnerStats (ShopInfo *info, ShopInfoWindows *win, s32 show) |
| Shows the party's names and, for those who can equip the item, the stats it changes; or hides them. | |
| void | STITSHOP_drawStatsPage (ShopInfo *info, ShopInfoWindows *win) |
| Draws the second page's frames: the panel, then for each partner its frame and either the icons of the stats the item changes or a cross. | |
| static void | STITSHOP_openBuyInfo (ShopInfo *info, ShopInfoWindows *win) |
| Once the item's panel (and the page hint's, for equipment) has opened: shows the item's rows and the hint to turn the page, and opens the description's panel. | |
| static void | STITSHOP_hideBuyInfoPage (ShopInfo *info, ShopInfoWindows *win) |
| While the buying dialog asks to equip the item (info->nextSubstate): hides the page hint and closes its panel, and the description when it is the page shown. | |
| static void | STITSHOP_startInfoPageTurn (ShopInfo *info, ShopInfoWindows *win) |
| Turning the page (info->turnPage): updates the page hint and closes the page that was shown. | |
| static void | STITSHOP_closeBuyInfo (ShopInfo *info, ShopInfoWindows *win) |
| Closing (info->close): hides the item's rows, the page hint and the page shown, and closes their panels. | |
| static void | STITSHOP_endBuyInfo (ShopInfo *info, ShopInfoWindows *win) |
| Ends the details panel once its panels have closed. | |
| void | STITSHOP_runBuyInfo (ShopInfo *info, ShopInfoWindows *win) |
| The details panel's states when buying: fades in its first page, turns between the pages (10-16), and fades out when closed (50) | |
| void | STITSHOP_runSellInfo (ShopInfo *info, ShopInfoWindows *win) |
| The details panel's first page: fades in, shows the item, then fades out when closed. | |
| void | STITSHOP_updateInfo (ShopInfo *info, ShopInfoWindows *win) |
| The details panel: counts the party, then runs the pages and draws the item's icon and frames. | |
| void | STITSHOP_setInfoItem (ShopInfo *info, s32 item, s32 quantity) |
| Shows an item and the quantity (for the price) in the details panel (info->showItem); the windows are only refreshed while the page is shown. | |
| void | STITSHOP_closeInfo (ShopInfo *info) |
| Closes the details panel (info->close), when it is open and idle. | |
| void | STITSHOP_setKindVisible (ShopInfo *info, s32 visible) |
| Shows or hides the weapon's kind in the details panel (info->setKindVisible) | |
| void | STITSHOP_turnInfoPage (ShopInfo *info) |
| Turns the details panel between the description and the partners' stats (info->turnPage); only for the items of kinds 3 to 5, which have stats. | |
| void | STITSHOP_refreshPartner (ShopInfo *info, s32 member) |
| Refreshes the details panel once the item is equipped on a party member (info->refreshPartner): the item's rows and that partner's. | |
| ShopInfo * | STITSHOP_createInfo (s32 selling, s32 item) |
| Creates the details panel (task) of the item selected, when buying or selling. | |
The details panel of the item under the cursor: its description, and what equipping it would change in each partner's stats.
Definition in file info.c.
A partner's stats with its equipment, as main's computeStats gives them: the weapons' attack (STAT_STRENGTH), the armor's defense (STAT_DEFENSE) and the items' bonuses added, up to 999, less the penalties on STAT_STRENGTH, STAT_DEFENSE and STAT_SPEED.
info.c
Definition at line 10 of file info.c.
Referenced by STITSHOP_fillPartnerRows().
Adds an item's bonus to a stat, up to 999: 1 to 6 one of the six battle stats, 7 all of them, 8 to 14 a resistance.
< the first of the seven resistances
< the first of the seven resistances
< the first of the seven resistances
Definition at line 87 of file info.c.
Referenced by STITSHOP_computeStats().
| void STITSHOP_showStat | ( | ShopInfo * | info, |
| TextWindow * | win, | ||
| ShopStatRow * | row | ||
| ) |
Shows a row's stat of a partner in the details panel: as it is, or with the item equipped when the row compares.
Definition at line 116 of file info.c.
Referenced by STITSHOP_fillPartnerRows().
| void STITSHOP_colorStat | ( | ShopInfo * | info, |
| TextWindow * | win, | ||
| ShopStatRow * | row | ||
| ) |
Colors a row's stat: palette 1 when the item would raise it, 5 when it would lower it, else 6 when a penalty lowers it (STAT_STRENGTH, STAT_DEFENSE and STAT_SPEED), 0 otherwise.
< a light blue: what is highlighted or current
Definition at line 132 of file info.c.
Referenced by STITSHOP_fillPartnerRows().
| void STITSHOP_showOtherChanges | ( | ShopInfo * | info, |
| TextWindow ** | win, | ||
| ShopStatRow * | row | ||
| ) |
Shows the new values of the other stats the item would change (palette 1 up, 5 down), noting them in the partner's rows; hides the windows left over.
< a light blue: what is highlighted or current
Definition at line 171 of file info.c.
Referenced by STITSHOP_fillPartnerRows().
| void STITSHOP_fillPartnerRows | ( | ShopInfo * | info, |
| ShopInfoWindows * | win, | ||
| s32 | member | ||
| ) |
Fills a partner's rows of the details panel's second page: the stats of the slot the item goes in, then the others it would change.
The item is equipped to compute them and the partner's equipment put back
< ITSHOP: STITSHOP's
< ITSHOP: STITSHOP's
< ITSHOP: STITSHOP's
< ITSHOP: STITSHOP's
< ITSHOP: STITSHOP's
< ITSHOP: STITSHOP's
< ITSHOP: STITSHOP's
Definition at line 203 of file info.c.
Referenced by STITSHOP_refreshPartner(), and STITSHOP_showPartnerStats().
The y of a line of the details panel, two lower when selling.
The match depends on this being a function: its sum isn't folded into the offset
Definition at line 345 of file info.c.
Referenced by STITSHOP_createInfoWindows(), and STITSHOP_updateInfo().
| void STITSHOP_createInfoWindows | ( | ShopInfo * | info, |
| ShopInfoWindows * | win | ||
| ) |
Creates the details panel's windows: the item's rows, then, when buying, each partner's name, stats and stat changes.
Definition at line 351 of file info.c.
Referenced by STITSHOP_updateInfo().
| void STITSHOP_showItemRows | ( | ShopInfo * | info, |
| ShopInfoWindows * | win, | ||
| s32 | show | ||
| ) |
Shows the item's name, how many are equipped and in the bag, and its price; or hides them.
< ITMNAM
< ITSHOP: STITSHOP's
< ITSHOP: STITSHOP's
< ITSHOP: STITSHOP's
Definition at line 398 of file info.c.
Referenced by STITSHOP_closeBuyInfo(), STITSHOP_openBuyInfo(), STITSHOP_refreshPartner(), STITSHOP_runSellInfo(), and STITSHOP_setInfoItem().
| void STITSHOP_showItemDesc | ( | ShopInfo * | info, |
| ShopInfoWindows * | win, | ||
| s32 | show | ||
| ) |
Shows the item's description and, for a weapon, its kind; or hides them.
< ITMINF
< ITSHOP: STITSHOP's
Definition at line 426 of file info.c.
Referenced by STITSHOP_closeBuyInfo(), STITSHOP_hideBuyInfoPage(), STITSHOP_runBuyInfo(), STITSHOP_runSellInfo(), STITSHOP_setInfoItem(), and STITSHOP_startInfoPageTurn().
| void STITSHOP_showPartnerStats | ( | ShopInfo * | info, |
| ShopInfoWindows * | win, | ||
| s32 | show | ||
| ) |
Shows the party's names and, for those who can equip the item, the stats it changes; or hides them.
< what is unavailable
Definition at line 446 of file info.c.
Referenced by STITSHOP_closeBuyInfo(), STITSHOP_runBuyInfo(), STITSHOP_setInfoItem(), and STITSHOP_startInfoPageTurn().
| void STITSHOP_drawStatsPage | ( | ShopInfo * | info, |
| ShopInfoWindows * | win | ||
| ) |
Draws the second page's frames: the panel, then for each partner its frame and either the icons of the stats the item changes or a cross.
< GTE regards 4096 as 1.0
< GTE regards 4096 as 1.0
< GTE regards 4096 as 1.0
< GTE regards 4096 as 1.0
< GTE regards 4096 as 1.0
< GTE regards 4096 as 1.0
Definition at line 483 of file info.c.
Referenced by STITSHOP_updateInfo().
|
inlinestatic |
Once the item's panel (and the page hint's, for equipment) has opened: shows the item's rows and the hint to turn the page, and opens the description's panel.
< ITSHOP: STITSHOP's
Definition at line 524 of file info.c.
Referenced by STITSHOP_runBuyInfo().
|
inlinestatic |
While the buying dialog asks to equip the item (info->nextSubstate): hides the page hint and closes its panel, and the description when it is the page shown.
Definition at line 541 of file info.c.
Referenced by STITSHOP_runBuyInfo().
|
inlinestatic |
Turning the page (info->turnPage): updates the page hint and closes the page that was shown.
< ITSHOP: STITSHOP's
Definition at line 554 of file info.c.
Referenced by STITSHOP_runBuyInfo().
|
inlinestatic |
Closing (info->close): hides the item's rows, the page hint and the page shown, and closes their panels.
Definition at line 569 of file info.c.
Referenced by STITSHOP_runBuyInfo().
|
inlinestatic |
Ends the details panel once its panels have closed.
Definition at line 587 of file info.c.
Referenced by STITSHOP_runBuyInfo().
| void STITSHOP_runBuyInfo | ( | ShopInfo * | info, |
| ShopInfoWindows * | win | ||
| ) |
The details panel's states when buying: fades in its first page, turns between the pages (10-16), and fades out when closed (50)
Definition at line 603 of file info.c.
Referenced by STITSHOP_updateInfo().
| void STITSHOP_runSellInfo | ( | ShopInfo * | info, |
| ShopInfoWindows * | win | ||
| ) |
The details panel's first page: fades in, shows the item, then fades out when closed.
Definition at line 711 of file info.c.
Referenced by STITSHOP_updateInfo().
| void STITSHOP_updateInfo | ( | ShopInfo * | info, |
| ShopInfoWindows * | win | ||
| ) |
The details panel: counts the party, then runs the pages and draws the item's icon and frames.
< GTE regards 4096 as 1.0
< GTE regards 4096 as 1.0
< GTE regards 4096 as 1.0
< GTE regards 4096 as 1.0
< GTE regards 4096 as 1.0
< GTE regards 4096 as 1.0
< GTE regards 4096 as 1.0
< GTE regards 4096 as 1.0
< GTE regards 4096 as 1.0
Definition at line 751 of file info.c.
Referenced by STITSHOP_createInfo().
Shows an item and the quantity (for the price) in the details panel (info->showItem); the windows are only refreshed while the page is shown.
Definition at line 812 of file info.c.
Referenced by STITSHOP_createInfo().
| void STITSHOP_closeInfo | ( | ShopInfo * | info | ) |
Closes the details panel (info->close), when it is open and idle.
Definition at line 829 of file info.c.
Referenced by STITSHOP_createInfo().
Shows or hides the weapon's kind in the details panel (info->setKindVisible)
Definition at line 836 of file info.c.
Referenced by STITSHOP_createInfo().
| void STITSHOP_turnInfoPage | ( | ShopInfo * | info | ) |
Turns the details panel between the description and the partners' stats (info->turnPage); only for the items of kinds 3 to 5, which have stats.
< SYSTEM06
Definition at line 844 of file info.c.
Referenced by STITSHOP_createInfo().
Refreshes the details panel once the item is equipped on a party member (info->refreshPartner): the item's rows and that partner's.
Definition at line 856 of file info.c.
Referenced by STITSHOP_createInfo().
Creates the details panel (task) of the item selected, when buying or selling.
Definition at line 865 of file info.c.
Referenced by STITSHOP_runBuy(), and STITSHOP_runSell().