One line of the chat, which slides between the rows of the panel.
More...
#include <ovychat.h>
|
| | Line (DataArray *pConfig, DataArray *pDefaults, RndText *pText) |
| | Construct a line on a text, with the slide of chat_line_slide.
|
| | ~Line () |
| | Destroy the slide, and forget the length of the slides.
|
| void | SetPosition (bool bJump, float fTime, float fRow) |
| | Move the line to a row, sliding from where it is or jumping there.
|
| void | SetColor (int nPlayer) |
| | Colour the line for the player who wrote it.
|
| bool | Update (float fTime, float fDelta) |
| | Move the text to the position the slide has at a time.
|
| RndText * | GetText () const |
| Interpolator * | GetSlide () const |
|
| static float | sSlideTime |
| | The length of a slide, the end of the input range of the first slide built, or -1e9.
|
One line of the chat, which slides between the rows of the panel.
The RTTI names the type. The object is 8 bytes.
◆ Line()
Construct a line on a text, with the slide of chat_line_slide.
- Parameters
-
| pConfig | The configuration section of the game mode. |
| pDefaults | The section of defaults. |
| pText | The text of the line. |
- Ghidra address:
- NTSC-U/C: 0x001c1e98
- Ghidra address:
- PAL: 0x001cac38
◆ ~Line()
Destroy the slide, and forget the length of the slides.
- Ghidra address:
- NTSC-U/C: 0x001c1f20
- Ghidra address:
- PAL: 0x001cacc0
◆ SetPosition()
| void OvyChat::Line::SetPosition |
( |
bool | bJump, |
|
|
float | fTime, |
|
|
float | fRow ) |
Move the line to a row, sliding from where it is or jumping there.
- Parameters
-
| bJump | Whether the line jumps to the row. |
| fTime | The time of the move, in milliseconds. |
| fRow | The position of the row. |
- Ghidra address:
- NTSC-U/C: 0x001c1f98
- Ghidra address:
- PAL: 0x001cad38
◆ SetColor()
| void OvyChat::Line::SetColor |
( |
int | nPlayer | ) |
|
Colour the line for the player who wrote it.
- Parameters
-
| nPlayer | The player, or a negative value for white. |
- Ghidra address:
- NTSC-U/C: 0x001c2060
- Ghidra address:
- PAL: 0x001cae00
◆ Update()
| bool OvyChat::Line::Update |
( |
float | fTime, |
|
|
float | fDelta ) |
Move the text to the position the slide has at a time.
- Parameters
-
| fTime | The time, in milliseconds. |
| fDelta | The milliseconds since the last poll. The routine does not read it. |
- Returns
- Whether the text moved.
- Ghidra address:
- NTSC-U/C: 0x001c2180
- Ghidra address:
- PAL: 0x001caf20
◆ GetText()
| RndText * OvyChat::Line::GetText |
( |
| ) |
const |
|
inline |
◆ GetSlide()
- Returns
- The position of the text over time.
◆ sSlideTime
| float OvyChat::Line::sSlideTime |
|
static |
The length of a slide, the end of the input range of the first slide built, or -1e9.
- Ghidra address:
- NTSC-U/C: 0x003af95c
- Ghidra address:
- PAL: 0x0042e7f0
The documentation for this class was generated from the following file: