|
DCDecomp
A decompilation of Dark Cloud for the PlayStation 2
|
Public Member Functions | |
| s16 | GetGaijiW (int code) |
| int | GetNameLen (int chara) |
| int | GetNameWidth (int chara) |
| void | AutoSetSub (CCharacter *first, CCharacter *second, int *out_pos) |
| void | AutoSet (int *pos) |
| void | AbsFukidashiIn () |
| ClsMes () | |
| void | SetBuff (short *buff) |
| void | SetBuff_system (short *buff) |
| void | Preset (int style) |
| void | SetMesFukidashi (int style) |
| void | Step () |
| int | State () |
| void | MyTextureMake_InitAll () |
| void | GoNextPage () |
| int | MyTextureMake_sub () |
| void | MyTextureMake () |
| void | MakeMesWinTbl_value (int *x, int *y) |
| void | MakeMesWinTbl_value (int which, int *x, int *y) |
| int | MakeMesWinTbl_system (int code, int *x, int *y) |
| int | GetMesLen_system (int mes_no) |
| int | GetMesWidth_system (int mes_no) |
| short * | GetTextLineDataTop (int line) |
| short * | GetTextLineDataTop_system (int line) |
| void | InitMesWinTbl () |
| int | SetMesWinTbl (int code, int mode, short x, short y) |
| int | CalcSpaceW (int width, int glyph_width, short *text) |
| int | MakeMesWinTbl (int mes_no) |
| void | NeedMesWinWH (int mes_no, int *out) |
| int | MakeMesWin (int mes_no) |
| void | MakeMesTexture (int mes_no) |
| void | Myset2DSprite_Fuchi (sceVif1Packet *packet, CTexture *texture, int x, int y, int width, int height, int u, int v, int u_width, int v_height) |
| void | MakeFukidashi_sub (sceVif1Packet *packet, int prim) |
| void | MakeFukidashi (sceVif1Packet *packet) |
| void | DrawMesWin_sub (CTexture *texture, int dx, int dy, int frame) |
| void | DrawGaijiFont (CTexture *texture, int index, const CRect_i_ &texel, const CRect_i_ &screen, int wide, int dark) |
| void | DrawMesWin () |
Definition at line 149 of file clsmes.hpp.
| ClsMes::ClsMes | ( | ) |
Starts a window with nothing to say and every setting at its default.
Definition at line 365 of file clsmes.cpp.
| s16 ClsMes::GetGaijiW | ( | int | code | ) |
Gives back how wide one external character of the font draws, in pixels.
Definition at line 63 of file clsmes.cpp.
| int ClsMes::GetNameLen | ( | int | chara | ) |
Gives back how many characters one character's registered name has, or -1 where there is no such name.
Definition at line 93 of file clsmes.cpp.
| int ClsMes::GetNameWidth | ( | int | chara | ) |
Adds up how wide a character's registered name draws, in pixels.
Definition at line 113 of file clsmes.cpp.
| void ClsMes::AutoSetSub | ( | CCharacter * | first, |
| CCharacter * | second, | ||
| int * | out_pos | ||
| ) |
Reads where two characters stand on screen, so that AutoSet can place the window clear of both of them.
Definition at line 168 of file clsmes.cpp.
| void ClsMes::AutoSet | ( | int * | pos | ) |
Puts the window at whichever of nine screen positions lies furthest from the two points pos names, and works out where its tail leaves it.
Definition at line 173 of file clsmes.cpp.
| void ClsMes::AbsFukidashiIn | ( | ) |
Pulls the window back inside the screen's margins, and moves its text along with it.
Definition at line 339 of file clsmes.cpp.
| void ClsMes::SetBuff | ( | short * | buff | ) |
Gives the window the message file it reads its text out of.
Definition at line 456 of file clsmes.cpp.
| void ClsMes::SetBuff_system | ( | short * | buff | ) |
The same, for the file the system messages come out of.
Definition at line 462 of file clsmes.cpp.
| void ClsMes::Preset | ( | int | style | ) |
Sets the frame, colours and text speed that one of the window's styles asks for.
Definition at line 468 of file clsmes.cpp.
| void ClsMes::SetMesFukidashi | ( | int | style | ) |
Sets the font size, frame and colours that one of the speech-bubble styles asks for.
Definition at line 511 of file clsmes.cpp.
| void ClsMes::Step | ( | ) |
Carries the window's fade on by one step, and works out where its tail stands now.
Definition at line 575 of file clsmes.cpp.
| int ClsMes::State | ( | ) |
Gives back what the window is doing: closed, fading in or out, revealing its text, stopped on a page, or done.
Definition at line 637 of file clsmes.cpp.
| void ClsMes::MyTextureMake_InitAll | ( | ) |
Forgets which characters of the text the window has already drawn.
Definition at line 657 of file clsmes.cpp.
| void ClsMes::GoNextPage | ( | ) |
Carries the window on to the page that follows the one it stopped at.
Definition at line 663 of file clsmes.cpp.
| int ClsMes::MyTextureMake_sub | ( | ) |
Steps the window's text on by one laid-out character and gives back what the caller has to do about it.
Definition at line 672 of file clsmes.cpp.
| void ClsMes::MyTextureMake | ( | ) |
Reveals as much of the text as this step's rate allows.
Definition at line 716 of file clsmes.cpp.
| void ClsMes::MakeMesWinTbl_value | ( | int * | x, |
| int * | y | ||
| ) |
Lays out the number that a bare value code prints, and moves the pen past it.
Definition at line 790 of file clsmes.cpp.
| void ClsMes::MakeMesWinTbl_value | ( | int | which, |
| int * | x, | ||
| int * | y | ||
| ) |
The same, for the number one of the window's value slots holds.
Definition at line 871 of file clsmes.cpp.
| int ClsMes::MakeMesWinTbl_system | ( | int | code, |
| int * | x, | ||
| int * | y | ||
| ) |
Lays out the system message that a code names, and gives back whether there was one to lay out.
Definition at line 952 of file clsmes.cpp.
| int ClsMes::GetMesLen_system | ( | int | mes_no | ) |
Gives back how many characters the longest line of one system message has, or -1 where there is no such message.
Definition at line 1089 of file clsmes.cpp.
| int ClsMes::GetMesWidth_system | ( | int | mes_no | ) |
Gives back how wide the widest line of one system message draws.
Definition at line 1193 of file clsmes.cpp.
| short * ClsMes::GetTextLineDataTop | ( | int | line | ) |
Gives back where one message of the window's file starts.
Definition at line 1239 of file clsmes.cpp.
| short * ClsMes::GetTextLineDataTop_system | ( | int | line | ) |
The same, for the system messages.
Definition at line 1252 of file clsmes.cpp.
| void ClsMes::InitMesWinTbl | ( | ) |
Empties the window's line table so that a message can be laid out into it.
Definition at line 1265 of file clsmes.cpp.
| int ClsMes::SetMesWinTbl | ( | int | code, |
| int | mode, | ||
| short | x, | ||
| short | y | ||
| ) |
Enters one laid-out character into the window's line table, or applies the control code it stands for; gives back whether a line was entered.
Definition at line 1277 of file clsmes.cpp.
| int ClsMes::CalcSpaceW | ( | int | width, |
| int | glyph_width, | ||
| short * | text | ||
| ) |
Works out how wide each space of one justified line has to draw.
Definition at line 1320 of file clsmes.cpp.
| int ClsMes::MakeMesWinTbl | ( | int | mes_no | ) |
Lays one message out into the window's line table, and gives back whether it ran as far as a page break.
Definition at line 1356 of file clsmes.cpp.
| void ClsMes::NeedMesWinWH | ( | int | mes_no, |
| int * | out | ||
| ) |
Works out the characters, lines, width and height that a message needs, and writes the largest of each into the four slots of out.
Definition at line 1476 of file clsmes.cpp.
| int ClsMes::MakeMesWin | ( | int | mes_no | ) |
Opens the window on one message: lays the text out, sizes the frame around it and places it on screen.
Definition at line 1669 of file clsmes.cpp.
| void ClsMes::MakeMesTexture | ( | int | mes_no | ) |
Lays one message out and works out the frame it needs, unless the window already holds that message.
Definition at line 1699 of file clsmes.cpp.
| void ClsMes::Myset2DSprite_Fuchi | ( | sceVif1Packet * | packet, |
| CTexture * | texture, | ||
| int | x, | ||
| int | y, | ||
| int | width, | ||
| int | height, | ||
| int | u, | ||
| int | v, | ||
| int | u_width, | ||
| int | v_height | ||
| ) |
Draws the outline that stands behind one character of the text.
Definition at line 1748 of file clsmes.cpp.
| void ClsMes::MakeFukidashi_sub | ( | sceVif1Packet * | packet, |
| int | prim | ||
| ) |
Writes the points that the speech bubble's outline is drawn from into the packet.
Definition at line 1847 of file clsmes.cpp.
| void ClsMes::MakeFukidashi | ( | sceVif1Packet * | packet | ) |
Draws the speech bubble into the texture that the text is laid over.
Definition at line 2051 of file clsmes.cpp.
| void ClsMes::DrawMesWin_sub | ( | CTexture * | texture, |
| int | dx, | ||
| int | dy, | ||
| int | frame | ||
| ) |
Draws the window's frame once, offset by dx and dy; frame asks for the nine-slice frame rather than one plain sprite.
Definition at line 2143 of file clsmes.cpp.
| void ClsMes::DrawGaijiFont | ( | CTexture * | texture, |
| int | index, | ||
| const CRect_i_ & | texel, | ||
| const CRect_i_ & | screen, | ||
| int | wide, | ||
| int | dark | ||
| ) |
Draws one external character of the text at the colour its palette entry asks for.
Definition at line 2364 of file clsmes.cpp.
| void ClsMes::DrawMesWin | ( | ) |
Draws the window: its frame, the text revealed so far, and the marks that go alongside them.
Definition at line 2619 of file clsmes.cpp.
| s32 ClsMes::text_x |
Distance of the text from the left of the screen.
Definition at line 151 of file clsmes.hpp.
| s32 ClsMes::text_y |
Distance of the text from the top of the screen.
Definition at line 152 of file clsmes.hpp.
| s32 ClsMes::char_width |
How wide one character of the font draws.
Definition at line 153 of file clsmes.hpp.
| s32 ClsMes::char_height |
How tall one character of the font draws.
Definition at line 154 of file clsmes.hpp.
| s32 ClsMes::columns |
Characters one line of the window holds.
Definition at line 155 of file clsmes.hpp.
| s32 ClsMes::rows |
Lines the window holds.
Definition at line 156 of file clsmes.hpp.
| s32 ClsMes::text_columns |
Characters the widest line of the text takes.
Definition at line 157 of file clsmes.hpp.
| s32 ClsMes::text_rows |
Lines the text takes.
Definition at line 158 of file clsmes.hpp.
| s32 ClsMes::text_len |
Characters the window has laid out to draw.
Definition at line 159 of file clsmes.hpp.
| s32 ClsMes::text_width |
How wide the laid-out text is, in pixels.
Definition at line 160 of file clsmes.hpp.
| s32 ClsMes::text_height |
How tall the laid-out text is, in pixels.
Definition at line 161 of file clsmes.hpp.
| s32 ClsMes::unk_02C |
Definition at line 162 of file clsmes.hpp.
| s32 ClsMes::init_030 |
Set to 16 by the constructor and never read.
Definition at line 163 of file clsmes.hpp.
| s32 ClsMes::fukidashi |
Whether the window draws as a speech bubble, not a frame.
Definition at line 164 of file clsmes.hpp.
| s32 ClsMes::fukidashi_shape |
Which shape the bubble takes, as the text asks for.
Definition at line 165 of file clsmes.hpp.
| s32 ClsMes::grow_x |
Point the window grows out of and shrinks back into, from the left.
Definition at line 166 of file clsmes.hpp.
| s32 ClsMes::grow_y |
Point the window grows out of and shrinks back into, from the top.
Definition at line 167 of file clsmes.hpp.
| s32 ClsMes::win_x |
Distance of the window from the left of the screen.
Definition at line 168 of file clsmes.hpp.
| s32 ClsMes::win_y |
Distance of the window from the top of the screen.
Definition at line 169 of file clsmes.hpp.
| s32 ClsMes::win_width |
How wide the window draws.
Definition at line 170 of file clsmes.hpp.
| s32 ClsMes::win_height |
How tall the window draws.
Definition at line 171 of file clsmes.hpp.
| s32 ClsMes::auto_pos |
Position the window is forced to take.
Definition at line 172 of file clsmes.hpp.
| s32 ClsMes::tail_on |
Whether the window draws a tail pointing at its speaker.
Definition at line 173 of file clsmes.hpp.
| s32 ClsMes::tail_to_x |
Where the tail points, from the left of the screen.
Definition at line 174 of file clsmes.hpp.
| s32 ClsMes::tail_to_y |
Where the tail points, from the top of the screen.
Definition at line 175 of file clsmes.hpp.
| s32 ClsMes::tail_x |
Where the tail leaves the window, from the left.
Definition at line 176 of file clsmes.hpp.
| s32 ClsMes::tail_y |
Where the tail leaves the window, from the top.
Definition at line 177 of file clsmes.hpp.
| s32 ClsMes::tail_half_width |
Half the width of the tail where it meets the window.
Definition at line 178 of file clsmes.hpp.
| s32 ClsMes::tail_length |
How far the tail reaches towards what it points at.
Definition at line 179 of file clsmes.hpp.
| s32 ClsMes::tail_left_x |
Left corner of the tail's base, worked out by Step.
Definition at line 180 of file clsmes.hpp.
| s32 ClsMes::tail_left_y |
Left corner of the tail's base, worked out by Step.
Definition at line 181 of file clsmes.hpp.
| s32 ClsMes::tail_right_x |
Right corner of the tail's base, worked out by Step.
Definition at line 182 of file clsmes.hpp.
| s32 ClsMes::tail_right_y |
Right corner of the tail's base, worked out by Step.
Definition at line 183 of file clsmes.hpp.
| s32 ClsMes::tail_tip_x |
Point of the tail, worked out by Step.
Definition at line 184 of file clsmes.hpp.
| s32 ClsMes::tail_tip_y |
Point of the tail, worked out by Step.
Definition at line 185 of file clsmes.hpp.
| float ClsMes::fade_speed |
How much of the fade one step covers.
Definition at line 186 of file clsmes.hpp.
| float ClsMes::fade |
How far the window has faded in, from zero to one.
Definition at line 187 of file clsmes.hpp.
| s32 ClsMes::fade_in |
Whether the window is fading in rather than out.
Definition at line 188 of file clsmes.hpp.
| s32 ClsMes::stay_frame |
Whether the window draws a plain frame behind its text.
Definition at line 189 of file clsmes.hpp.
| s32 ClsMes::stay_width |
Width that frame takes; zero or less follows the text.
Definition at line 190 of file clsmes.hpp.
| s32 ClsMes::stay_height |
Height that frame takes; zero or less follows the text.
Definition at line 191 of file clsmes.hpp.
| float ClsMes::text_rate |
Characters the text reveals each step, now.
Definition at line 192 of file clsmes.hpp.
| float ClsMes::text_rate_set |
Characters the text reveals each step, as configured.
Definition at line 193 of file clsmes.hpp.
| s32 ClsMes::waiting |
Whether the text has stopped on a wait code.
Definition at line 194 of file clsmes.hpp.
| s32 ClsMes::auto_page |
Whether the window turns its own pages.
Definition at line 195 of file clsmes.hpp.
| float ClsMes::text_at |
How far through the laid-out characters the text has revealed.
Definition at line 196 of file clsmes.hpp.
| s32 ClsMes::text_no |
The laid-out character the text has revealed up to.
Definition at line 197 of file clsmes.hpp.
| s32 ClsMes::text_from |
The laid-out character the text starts drawing at.
Definition at line 198 of file clsmes.hpp.
| s32 ClsMes::page_from |
The laid-out character the next page begins at.
Definition at line 199 of file clsmes.hpp.
| MES_WIN_LINE ClsMes::win_line[MES_WIN_LINE_MAX] |
Every line the window lays out.
Definition at line 200 of file clsmes.hpp.
| s32 ClsMes::win_line_num |
Lines the window has laid out.
Definition at line 201 of file clsmes.hpp.
| s32 ClsMes::clut_default |
Palette entry the text draws with unless a code changes it.
Definition at line 202 of file clsmes.hpp.
| s32 ClsMes::clut_now |
Palette entry the text draws with now.
Definition at line 203 of file clsmes.hpp.
| s32 ClsMes::wait |
Steps left before the text reveals its next character.
Definition at line 204 of file clsmes.hpp.
| s32 ClsMes::blink |
Steps the window has drawn for, which drives what flashes.
Definition at line 205 of file clsmes.hpp.
| s32 ClsMes::auto_page_wait |
Steps the window holds a full page before turning it by itself.
Definition at line 206 of file clsmes.hpp.
| s32 ClsMes::mes_made |
The message the window has laid out; negative where it has none.
Definition at line 207 of file clsmes.hpp.
| s32 ClsMes::style |
Which of the window's frames and colours to draw.
Definition at line 208 of file clsmes.hpp.
| s32 ClsMes::page_arrow |
Whether the window draws the mark that says more text follows.
Definition at line 209 of file clsmes.hpp.
| s32 ClsMes::end_mark |
Whether the window always draws that mark, wherever the text is.
Definition at line 210 of file clsmes.hpp.
| s32 ClsMes::centre_rows |
Whether the text sits in the middle of the window's rows.
Definition at line 211 of file clsmes.hpp.
| s32 ClsMes::page_mark_style |
Whether the window's style asks for the more-text mark; set with the style and never read.
Definition at line 212 of file clsmes.hpp.
| s32 ClsMes::edge_alpha |
How solid the outline behind the text draws.
Definition at line 213 of file clsmes.hpp.
| s32 ClsMes::narrow_gaiji_set |
Forces the narrow gaiji page on (2) or off (1); 0 by width.
Definition at line 214 of file clsmes.hpp.
| s32 ClsMes::narrow_gaiji |
Whether the editor's external characters draw narrowed.
Definition at line 215 of file clsmes.hpp.
| s32 ClsMes::mes_no[10] |
The message each of the window's slots names.
Definition at line 216 of file clsmes.hpp.
| s32 ClsMes::values[8] |
The number each of the window's value slots prints.
Definition at line 217 of file clsmes.hpp.
| s32 ClsMes::value |
The number the window prints for a bare value code.
Definition at line 218 of file clsmes.hpp.
| s32 ClsMes::value_signed |
Whether a positive value prints with a leading plus.
Definition at line 219 of file clsmes.hpp.
| s32 ClsMes::value_show |
Whether a value prints even when it is zero.
Definition at line 220 of file clsmes.hpp.
| s32 ClsMes::value_narrow |
Whether a value's digits draw at three quarters width.
Definition at line 221 of file clsmes.hpp.
| s32 ClsMes::space_width |
Width one space takes on a justified line; -1 where it is not.
Definition at line 222 of file clsmes.hpp.
| s32 ClsMes::space_area |
Width a justified line spreads across; -1 where it is not.
Definition at line 223 of file clsmes.hpp.
| s32 ClsMes::cursor_row |
Line the choice cursor stands on; negative where there is none.
Definition at line 224 of file clsmes.hpp.
| s32 ClsMes::cursor_y |
Where the cursor has eased to, from the top of the text.
Definition at line 225 of file clsmes.hpp.
| s32 ClsMes::cursor_lit |
Whether the line the cursor stands on is the one drawn wide.
Definition at line 226 of file clsmes.hpp.
| s32 ClsMes::tex_block |
Texture block the window's font is loaded into.
Definition at line 227 of file clsmes.hpp.
| MES_LINE_POS ClsMes::line_pos[10] |
Where each line draws, where the window says so.
Definition at line 228 of file clsmes.hpp.
| short* ClsMes::buff |
The message file the window reads its text out of.
Definition at line 229 of file clsmes.hpp.
| short* ClsMes::buff_system |
The same, for the system messages.
Definition at line 230 of file clsmes.hpp.
| char* ClsMes::text |
Where the text of that file starts.
Definition at line 231 of file clsmes.hpp.
| char* ClsMes::text_system |
The same, for the system messages.
Definition at line 232 of file clsmes.hpp.
| void* ClsMes::tex_buff |
Buffer the window builds its text texture in, cleared to start over; null where there is none.
Definition at line 233 of file clsmes.hpp.
| u32* ClsMes::clut |
The palette the window's font draws out of.
Definition at line 234 of file clsmes.hpp.