84 bool Update(
float fTime,
float fDelta);
106 std::unique_ptr<Interpolator> mSlide;
201 const std::list<std::unique_ptr<Line>> &
GetLines()
const {
211 std::list<std::unique_ptr<Line>> mLines;
213 std::vector<float> mRows;
214 std::list<PendingMsg> mPending;
220 float mHiddenPosition;
221 float mShownPosition;
Message with one line of chat between the consoles of an online session or lobby.
Definition chatmsg.h:24
Reference-counted array of script data nodes.
Definition dataarray.h:20
Line of text the keyboard edits, with a cursor and an overwrite mode.
Definition editfield.h:13
Map from an input range to an output range, clamped at both ends.
Definition interpolator.h:11
Message the keyboard poll sends when a key of a USB keyboard is pressed.
Definition keyboardkeymsg.h:23
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:40
Receiver of engine messages.
Definition msgsink.h:21
static float sSlideTime
The length of a slide, the end of the input range of the first slide built, or -1e9.
Definition ovychat.h:92
bool Update(float fTime, float fDelta)
Move the text to the position the slide has at a time.
void SetColor(int nPlayer)
Colour the line for the player who wrote it.
void SetPosition(bool bJump, float fTime, float fRow)
Move the line to a row, sliding from where it is or jumping there.
Interpolator * GetSlide() const
Definition ovychat.h:100
RndText * GetText() const
Definition ovychat.h:95
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 Poll()
Advance the panel and the lines, and show the next waiting line.
const std::list< std::unique_ptr< Line > > & GetLines() const
Definition ovychat.h:201
~OvyChat() override
Unregister the chat and destroy its lines.
OvyChat(DataArray *pConfig, DataArray *pDefaults, RndView *pHudView)
Construct an empty chat, and register it for the keyboard and for channel 3 of the chat.
void Reset()
Empty the lines, hide the panel, and stop the editing.
bool AddLine(ChatMsg *pMsg)
Queue a line that arrived from another console.
void Collapse()
Drop the line the player typed in, moving every other line one row down.
void Layout(bool bEditing)
Move every line one row up, the top line wrapping round to the bottom.
bool HandleKey(KeyboardKeyMsg *pMsg)
Apply a key to the line the player types, starting or ending the editing.
RndDrawable * GetDrawable() const
Definition ovychat.h:206
bool DispatchPriv(Message *pMsg) override
Act on a line of chat or a key.
Value that moves toward a target along an interpolator, and poses an animation on the value.
Definition rampanimator.h:14
Mix-in for an object that draws itself and then a list of other drawables.
Definition rnddrawable.h:16
Triangle mesh with a material.
Definition rndmesh.h:31
Text drawn with a bitmap font as a mesh of one quad per character.
Definition rndtext.h:27
View that shows the children of another view, its children owner, under its own transform and frame.
Definition rndview.h:27
Growable text buffer that is also a PrnStream.
Definition string.h:19
A line that arrived and waits for the top of the panel.
Definition ovychat.h:110
int mPlayer
Definition ovychat.h:112
String mText
Definition ovychat.h:111