|
Digimon World 3 decomp
The European version, SLES_039.36
|
The buying and selling dialogs: how many of the item, at what total, and the purchase or the sale. More...
#include "menus/item_shop.h"Go to the source code of this file.
Functions | |
| void | STITSHOP_createBuyWindows (ShopBuy *buy, ShopBuyWindows *win) |
| Creates the buying dialog's windows: the quantity, the total with its yes and no, and the cursor. | |
| void | STITSHOP_showQuantity (ShopBuy *buy, ShopBuyWindows *win, s32 show) |
| Shows the quantity to buy; or hides it. | |
| void | STITSHOP_showBuyTotal (ShopBuy *buy, ShopBuyWindows *win, s32 show) |
| Shows the total price with yes and no to confirm the purchase; or hides them. | |
| void | STITSHOP_drawBuy (ShopBuy *buy, ShopBuyWindows *win) |
| Draws the buying screen's frames, the quantity's blinking arrows and the marker over a partner. | |
| static void | STITSHOP_chooseBuyQuantity (ShopBuy *buy, ShopBuyWindows *win) |
| The quantity to buy: up/down change it by one, left/right by ten, up to what the money and the bag's 99 allow; cross goes on to the total, triangle back to the list and circle turns the details' page. | |
| static void | STITSHOP_pickBuyItem (ShopBuy *buy, ShopBuyWindows *win) |
| The item list: cross picks the item under the cursor, unless the bag holds 99 of it or the money is short (a message then), triangle closes the dialog and circle turns the details' page. | |
| static void | STITSHOP_confirmBuy (ShopBuy *buy, ShopBuyWindows *win) |
| Yes or no to the total: yes buys the items (at most 99 in the bag) and pays for them, and for equipment asks next whether to equip it; triangle cancels and circle turns the details' page. | |
| static void | STITSHOP_endBuyTotal (ShopBuy *buy, ShopBuyWindows *win) |
| Once the total's panel has closed: asks whether to equip what was bought when a partner of the party can, else goes back to the list. | |
| static void | STITSHOP_confirmEquip (ShopBuy *buy, ShopBuyWindows *win) |
| Yes or no to equipping what was bought: cross answers, triangle declines. | |
| static void | STITSHOP_chooseEquipPartner (ShopBuy *buy, ShopBuyWindows *win) |
| The marker over the partner to equip: left/right move it to the next partner who can equip the item, cross equips it on them and triangle gives up. | |
| static void | STITSHOP_startBuyQuantity (ShopBuy *buy, ShopBuyWindows *win) |
| Closes the list and works out the most of the item that can be bought: what the money pays for (an item priced 0 counts as 1), up to 99 in the bag. | |
| static void | STITSHOP_openBuyTotal (ShopBuy *buy, ShopBuyWindows *win) |
| Once the total's panel has opened: shows the total with yes and no, the cursor on yes. | |
| static void | STITSHOP_openEquipQuestion (ShopBuy *buy, ShopBuyWindows *win) |
| Once the question's panels have opened: asks whether to equip what was bought, the cursor on yes. | |
| static void | STITSHOP_closeEquipQuestion (ShopBuy *buy, ShopBuyWindows *win) |
| Hides the question about equipping and closes its panel, and the message's too when the answer was no. | |
| static void | STITSHOP_endEquipQuestion (ShopBuy *buy, ShopBuyWindows *win) |
| Once the question's panel has closed: on yes goes on to pick the partner, on no back to the list. | |
| static void | STITSHOP_showEquipMarker (ShopBuy *buy, ShopBuyWindows *win) |
| Once the message's panel has opened: shows the marker over the first partner who can equip the item (or the last one picked) and asks who equips it. | |
| static void | STITSHOP_endEquipped (ShopBuy *buy, ShopBuyWindows *win) |
| Once the message that the item was equipped has closed: back to the list when none is left in the bag, else to picking a partner again. | |
| void | STITSHOP_runBuy (ShopBuy *buy, ShopBuyWindows *win) |
| The buying dialog: pick the item in the list, how many, confirm, then (equipment) whether to equip it and on which partner. | |
| void | STITSHOP_updateBuy (ShopBuy *buy, ShopBuyWindows *win) |
| The buying dialog's task: creates its windows, starting at a quantity of 1, then runs and draws it. | |
| void | STITSHOP_showBuyItem (ShopBuy *buy, s32 item, s32 quantity) |
| Shows the item selected in the list, and the quantity, in the details panel (buy->showItem) | |
| ShopBuy * | STITSHOP_createBuy (ItemShop *shop) |
| Creates the buying dialog (task), when buy is chosen in the shop. | |
| void | STITSHOP_createSellWindows (ShopSell *sell, ShopSellWindows *win) |
| Creates the selling dialog's windows: the cursor, the four kinds of sale, the quantity, the total with its yes and no, and the message. | |
| void | STITSHOP_drawSell (ShopSell *sell, ShopSellWindows *win) |
| Draws the selling screen's frames, and the quantity's blinking arrows. | |
| static void | STITSHOP_openSellTypes (ShopSell *sell, ShopSellWindows *win) |
| Once the panel has opened: shows the four kinds of items to sell (items, weapons, armor, accessories) and the cursor on the last one chosen. | |
| static void | STITSHOP_chooseSellType (ShopSell *sell, ShopSellWindows *win) |
| Up/down choose the kind of items to sell; cross lists the bag's items of that kind, triangle closes the dialog. | |
| static void | STITSHOP_openSellQuantity (ShopSell *sell, ShopSellWindows *win) |
| Once the quantity's panel has opened: shows how many to sell, up to all of the item the bag holds. | |
| static void | STITSHOP_chooseSellQuantity (ShopSell *sell, ShopSellWindows *win) |
| The quantity to sell: up/down change it by one, left/right by ten, up to what the bag holds; cross goes on to the total, triangle back to the list. | |
| static void | STITSHOP_closeSellQuantity (ShopSell *sell, ShopSellWindows *win) |
| Hides the quantity and closes its panel, then goes on to the total, or back to the list after triangle. | |
| static void | STITSHOP_openSellTotal (ShopSell *sell, ShopSellWindows *win) |
| Once the total's panel has opened: shows what the items sell for with sell and no, the cursor on sell. | |
| static void | STITSHOP_confirmSell (ShopSell *sell, ShopSellWindows *win) |
| Sell or no to the total: sell takes the items from the bag and adds their price to the money (up to 9999999); the list is refilled either way. | |
| static void | STITSHOP_closeSellTotal (ShopSell *sell, ShopSellWindows *win) |
| Hides the total and closes its panel; back to the kinds of items when none of the kind is left, else back to the list. | |
| static void | STITSHOP_reopenSellList (ShopSell *sell, ShopSellWindows *win) |
| Brings the list back while the total's panel closes: its cursor and page move up when the last row sold out, and the details show the item now under it; then back to the list. | |
| static void | STITSHOP_closeSellTypes (ShopSell *sell, ShopSellWindows *win) |
| Hides the kinds of items and the cursor and closes their panel. | |
| void | STITSHOP_runSell (ShopSell *sell, ShopSellWindows *win) |
| The selling dialog: pick the kind of item, then the item in the list, how many, and confirm. | |
| void | STITSHOP_updateSell (ShopSell *sell, ShopSellWindows *win) |
| The selling dialog's task: creates its windows, starting at a quantity of 1, then runs and draws it. | |
| void | STITSHOP_showSellItem (ShopSell *sell, s32 item, s32 quantity) |
| Shows the item selected in the list, and the quantity, in the details panel (sell->showItem) | |
| ShopSell * | STITSHOP_createSell (ItemShop *shop) |
| Creates the selling dialog (task), when sell is chosen in the shop. | |
The buying and selling dialogs: how many of the item, at what total, and the purchase or the sale.
Definition in file trade.c.
| void STITSHOP_createBuyWindows | ( | ShopBuy * | buy, |
| ShopBuyWindows * | win | ||
| ) |
Creates the buying dialog's windows: the quantity, the total with its yes and no, and the cursor.
Definition at line 8 of file trade.c.
Referenced by STITSHOP_updateBuy().
| void STITSHOP_showQuantity | ( | ShopBuy * | buy, |
| ShopBuyWindows * | win, | ||
| s32 | show | ||
| ) |
Shows the quantity to buy; or hides it.
< ITSHOP: STITSHOP's
< ITSHOP: STITSHOP's
Definition at line 20 of file trade.c.
Referenced by STITSHOP_chooseBuyQuantity(), and STITSHOP_runBuy().
| void STITSHOP_showBuyTotal | ( | ShopBuy * | buy, |
| ShopBuyWindows * | win, | ||
| s32 | show | ||
| ) |
Shows the total price with yes and no to confirm the purchase; or hides them.
< ITSHOP: STITSHOP's
< ITSHOP: STITSHOP's
< ITSHOP: STITSHOP's
Definition at line 34 of file trade.c.
Referenced by STITSHOP_openBuyTotal(), and STITSHOP_runBuy().
| void STITSHOP_drawBuy | ( | ShopBuy * | buy, |
| ShopBuyWindows * | win | ||
| ) |
Draws the buying screen's frames, the quantity's blinking arrows and the marker over a partner.
< 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
< 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
< 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 49 of file trade.c.
Referenced by STITSHOP_updateBuy().
|
inlinestatic |
The quantity to buy: up/down change it by one, left/right by ten, up to what the money and the bag's 99 allow; cross goes on to the total, triangle back to the list and circle turns the details' page.
< SYSTEM06
< SYSTEM07
< SYSTEM01
Definition at line 114 of file trade.c.
Referenced by STITSHOP_runBuy().
|
inlinestatic |
The item list: cross picks the item under the cursor, unless the bag holds 99 of it or the money is short (a message then), triangle closes the dialog and circle turns the details' page.
< SYSTEM00: a choice is taken
< ITSHOP: STITSHOP's
< ITSHOP: STITSHOP's
< SYSTEM01
Definition at line 167 of file trade.c.
Referenced by STITSHOP_runBuy().
|
inlinestatic |
Yes or no to the total: yes buys the items (at most 99 in the bag) and pays for them, and for equipment asks next whether to equip it; triangle cancels and circle turns the details' page.
< SYSTEM02: a cursor moves
< SYSTEM00: a choice is taken
< SYSTEM01
Definition at line 200 of file trade.c.
Referenced by STITSHOP_runBuy().
|
inlinestatic |
Once the total's panel has closed: asks whether to equip what was bought when a partner of the party can, else goes back to the list.
Definition at line 242 of file trade.c.
Referenced by STITSHOP_runBuy().
|
inlinestatic |
Yes or no to equipping what was bought: cross answers, triangle declines.
< SYSTEM02: a cursor moves
< SYSTEM00: a choice is taken
< SYSTEM01
Definition at line 267 of file trade.c.
Referenced by STITSHOP_runBuy().
|
inlinestatic |
The marker over the partner to equip: left/right move it to the next partner who can equip the item, cross equips it on them and triangle gives up.
< SYSTEM06
< SYSTEM07
< SYSTEM01
Definition at line 294 of file trade.c.
Referenced by STITSHOP_runBuy().
|
inlinestatic |
Closes the list and works out the most of the item that can be bought: what the money pays for (an item priced 0 counts as 1), up to 99 in the bag.
Definition at line 334 of file trade.c.
Referenced by STITSHOP_runBuy().
|
inlinestatic |
Once the total's panel has opened: shows the total with yes and no, the cursor on yes.
Definition at line 351 of file trade.c.
Referenced by STITSHOP_runBuy().
|
inlinestatic |
Once the question's panels have opened: asks whether to equip what was bought, the cursor on yes.
< ITSHOP: STITSHOP's
< ITSHOP: STITSHOP's
< ITSHOP: STITSHOP's
Definition at line 363 of file trade.c.
Referenced by STITSHOP_runBuy().
|
inlinestatic |
Hides the question about equipping and closes its panel, and the message's too when the answer was no.
Definition at line 378 of file trade.c.
Referenced by STITSHOP_runBuy().
|
inlinestatic |
Once the question's panel has closed: on yes goes on to pick the partner, on no back to the list.
Definition at line 392 of file trade.c.
Referenced by STITSHOP_runBuy().
|
inlinestatic |
Once the message's panel has opened: shows the marker over the first partner who can equip the item (or the last one picked) and asks who equips it.
< ITSHOP: STITSHOP's
Definition at line 409 of file trade.c.
Referenced by STITSHOP_runBuy().
|
inlinestatic |
Once the message that the item was equipped has closed: back to the list when none is left in the bag, else to picking a partner again.
Definition at line 426 of file trade.c.
Referenced by STITSHOP_runBuy().
| void STITSHOP_runBuy | ( | ShopBuy * | buy, |
| ShopBuyWindows * | win | ||
| ) |
The buying dialog: pick the item in the list, how many, confirm, then (equipment) whether to equip it and on which partner.
< ITSHOP: STITSHOP's
< SYSTEM07
< SYSTEM07
Definition at line 439 of file trade.c.
Referenced by STITSHOP_updateBuy().
| void STITSHOP_updateBuy | ( | ShopBuy * | buy, |
| ShopBuyWindows * | win | ||
| ) |
The buying dialog's task: creates its windows, starting at a quantity of 1, then runs and draws it.
Definition at line 652 of file trade.c.
Referenced by STITSHOP_createBuy().
Shows the item selected in the list, and the quantity, in the details panel (buy->showItem)
Definition at line 676 of file trade.c.
Referenced by STITSHOP_createBuy().
Creates the buying dialog (task), when buy is chosen in the shop.
Definition at line 683 of file trade.c.
Referenced by STITSHOP_runShop().
| void STITSHOP_createSellWindows | ( | ShopSell * | sell, |
| ShopSellWindows * | win | ||
| ) |
Creates the selling dialog's windows: the cursor, the four kinds of sale, the quantity, the total with its yes and no, and the message.
Definition at line 695 of file trade.c.
Referenced by STITSHOP_updateSell().
| void STITSHOP_drawSell | ( | ShopSell * | sell, |
| ShopSellWindows * | win | ||
| ) |
Draws the selling screen's frames, and the quantity's blinking arrows.
< 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
< 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 713 of file trade.c.
Referenced by STITSHOP_updateSell().
|
inlinestatic |
Once the panel has opened: shows the four kinds of items to sell (items, weapons, armor, accessories) and the cursor on the last one chosen.
< ITSHOP: STITSHOP's
Definition at line 780 of file trade.c.
Referenced by STITSHOP_runSell().
|
inlinestatic |
Up/down choose the kind of items to sell; cross lists the bag's items of that kind, triangle closes the dialog.
< SYSTEM02: a cursor moves
< SYSTEM00: a choice is taken
< SYSTEM01
Definition at line 795 of file trade.c.
Referenced by STITSHOP_runSell().
|
inlinestatic |
Once the quantity's panel has opened: shows how many to sell, up to all of the item the bag holds.
< ITSHOP: STITSHOP's
< ITSHOP: STITSHOP's
Definition at line 827 of file trade.c.
Referenced by STITSHOP_runSell().
|
inlinestatic |
The quantity to sell: up/down change it by one, left/right by ten, up to what the bag holds; cross goes on to the total, triangle back to the list.
< SYSTEM06
< SYSTEM07
< SYSTEM01
Definition at line 841 of file trade.c.
Referenced by STITSHOP_runSell().
|
inlinestatic |
Hides the quantity and closes its panel, then goes on to the total, or back to the list after triangle.
Definition at line 887 of file trade.c.
Referenced by STITSHOP_runSell().
|
inlinestatic |
Once the total's panel has opened: shows what the items sell for with sell and no, the cursor on sell.
< ITSHOP: STITSHOP's
< ITSHOP: STITSHOP's
< ITSHOP: STITSHOP's
Definition at line 902 of file trade.c.
Referenced by STITSHOP_runSell().
|
inlinestatic |
Sell or no to the total: sell takes the items from the bag and adds their price to the money (up to 9999999); the list is refilled either way.
< SYSTEM02: a cursor moves
< SYSTEM00: a choice is taken
< SYSTEM01
Definition at line 917 of file trade.c.
Referenced by STITSHOP_runSell().
|
inlinestatic |
Hides the total and closes its panel; back to the kinds of items when none of the kind is left, else back to the list.
Definition at line 952 of file trade.c.
Referenced by STITSHOP_runSell().
|
inlinestatic |
Brings the list back while the total's panel closes: its cursor and page move up when the last row sold out, and the details show the item now under it; then back to the list.
Definition at line 972 of file trade.c.
Referenced by STITSHOP_runSell().
|
inlinestatic |
Hides the kinds of items and the cursor and closes their panel.
Definition at line 994 of file trade.c.
Referenced by STITSHOP_runSell().
| void STITSHOP_runSell | ( | ShopSell * | sell, |
| ShopSellWindows * | win | ||
| ) |
The selling dialog: pick the kind of item, then the item in the list, how many, and confirm.
< SYSTEM00: a choice is taken
< SYSTEM01
< ITSHOP: STITSHOP's
< ITSHOP: STITSHOP's
< SYSTEM07
Definition at line 1007 of file trade.c.
Referenced by STITSHOP_updateSell().
| void STITSHOP_updateSell | ( | ShopSell * | sell, |
| ShopSellWindows * | win | ||
| ) |
The selling dialog's task: creates its windows, starting at a quantity of 1, then runs and draws it.
Definition at line 1174 of file trade.c.
Referenced by STITSHOP_createSell().
Shows the item selected in the list, and the quantity, in the details panel (sell->showItem)
Definition at line 1199 of file trade.c.
Referenced by STITSHOP_createSell().
Creates the selling dialog (task), when sell is chosen in the shop.
Definition at line 1206 of file trade.c.
Referenced by STITSHOP_runShop().