DCDecomp
A decompilation of Dark Cloud for the PlayStation 2
Loading...
Searching...
No Matches
ShopMenuWork Struct Reference

#include <shop_menu.hpp>

Public Attributes

s16 shop_no
 
s16 side
 
s16 mode
 
s16 key_used
 
PERSONAL_BOARD board
 
s32 unk_168
 
float stock_y
 
float stock_scroll
 
s16 stock_row_offset
 
u8 stock_top_row
 
u8 unk_177
 
float cursor_x
 
float cursor_y
 
s16 talk_mode
 
s16 unk_182
 
s32 step_count
 
s16 ready
 
s16 tex_block
 
s16 unk_18C
 
s16 alpha
 
s16 lang
 
s16 unk_192
 
s16 person_state
 
s16 person_tex_block
 
s16 unk_198
 
s16 msg_mode
 
s16 motion
 
s16 msg_no
 
s32 draw_delay
 
s32 idle_count
 

Detailed Description

Shop UI bookkeeping shared by the charge shop and item shop screens: their cursor, phase and animation state. Only the handful of fields read outside this unit's own functions are named.

Definition at line 13 of file shop_menu.hpp.

Member Data Documentation

◆ shop_no

s16 ShopMenuWork::shop_no

Shop being run.

Definition at line 14 of file shop_menu.hpp.

◆ side

s16 ShopMenuWork::side

Board the cursor is on.

See also
ShopSide

Definition at line 15 of file shop_menu.hpp.

◆ mode

s16 ShopMenuWork::mode

How the shop was opened.

Definition at line 16 of file shop_menu.hpp.

◆ key_used

s16 ShopMenuWork::key_used

Set once this frame's confirm or sell press has been handled, so the frame's cancel press is ignored.

Definition at line 17 of file shop_menu.hpp.

◆ board

PERSONAL_BOARD ShopMenuWork::board

The player's side of the shop: the personal board and the records it holds.

Definition at line 18 of file shop_menu.hpp.

◆ unk_168

s32 ShopMenuWork::unk_168

Definition at line 19 of file shop_menu.hpp.

◆ stock_y

float ShopMenuWork::stock_y

Screen Y the stock board draws at, eased toward its top row.

Definition at line 20 of file shop_menu.hpp.

◆ stock_scroll

float ShopMenuWork::stock_scroll

Scroll bar position of the stock board.

Definition at line 21 of file shop_menu.hpp.

◆ stock_row_offset

s16 ShopMenuWork::stock_row_offset

Cleared with the stock board's top row whenever a shop opens.

Definition at line 22 of file shop_menu.hpp.

◆ stock_top_row

u8 ShopMenuWork::stock_top_row

Row the stock board shows first.

Definition at line 23 of file shop_menu.hpp.

◆ unk_177

u8 ShopMenuWork::unk_177

Definition at line 24 of file shop_menu.hpp.

◆ cursor_x

float ShopMenuWork::cursor_x

Screen X of the cursor, eased toward its cell.

Definition at line 25 of file shop_menu.hpp.

◆ cursor_y

float ShopMenuWork::cursor_y

Screen Y of the cursor, eased toward its cell.

Definition at line 26 of file shop_menu.hpp.

◆ talk_mode

s16 ShopMenuWork::talk_mode

What the shopkeeper is saying or waiting on.

See also
ShopTalkMode

Definition at line 27 of file shop_menu.hpp.

◆ unk_182

s16 ShopMenuWork::unk_182

Definition at line 28 of file shop_menu.hpp.

◆ step_count

s32 ShopMenuWork::step_count

Frames the shop has spent in its talk mode.

Definition at line 29 of file shop_menu.hpp.

◆ ready

s16 ShopMenuWork::ready

Nonzero once the shop's textures are entered.

Definition at line 30 of file shop_menu.hpp.

◆ tex_block

s16 ShopMenuWork::tex_block

Texture block the shop's textures are entered into.

Definition at line 31 of file shop_menu.hpp.

◆ unk_18C

s16 ShopMenuWork::unk_18C

Definition at line 32 of file shop_menu.hpp.

◆ alpha

s16 ShopMenuWork::alpha

Opacity the shop draws with.

Definition at line 33 of file shop_menu.hpp.

◆ lang

s16 ShopMenuWork::lang

Language the shop's plates are laid out for.

Definition at line 34 of file shop_menu.hpp.

◆ unk_192

s16 ShopMenuWork::unk_192

Definition at line 35 of file shop_menu.hpp.

◆ person_state

s16 ShopMenuWork::person_state

Shopkeeper model: 1 while it is read, 2 once it is built, 0 when there is none.

Definition at line 36 of file shop_menu.hpp.

◆ person_tex_block

s16 ShopMenuWork::person_tex_block

Texture block the shopkeeper's textures are entered into.

Definition at line 37 of file shop_menu.hpp.

◆ unk_198

s16 ShopMenuWork::unk_198

Definition at line 38 of file shop_menu.hpp.

◆ msg_mode

s16 ShopMenuWork::msg_mode

How the shopkeeper's message is shown.

See also
ShopMsgMode

Definition at line 39 of file shop_menu.hpp.

◆ motion

s16 ShopMenuWork::motion

Motion the shopkeeper's model is playing: 0 idle, 3 talking.

Definition at line 40 of file shop_menu.hpp.

◆ msg_no

s16 ShopMenuWork::msg_no

Shopkeeper line the speech window was last made for.

Definition at line 41 of file shop_menu.hpp.

◆ draw_delay

s32 ShopMenuWork::draw_delay

Frames the shopkeeper has been stepped; the model and its speech are drawn once it reaches four.

Definition at line 42 of file shop_menu.hpp.

◆ idle_count

s32 ShopMenuWork::idle_count

Frames without input; at 320 the shopkeeper starts talking.

Definition at line 43 of file shop_menu.hpp.