wavelength 1.0.0
Loading...
Searching...
No Matches
netfoundplayerpanel.h
Go to the documentation of this file.
1#pragma once
2
3#include "met/avatarpanel.h"
5#include "os/string.h"
6#include "script/dataarray.h"
7#include "ui/uipanel.h"
8
15public:
24 NetFoundPlayerPanel(DataArray *pData, const char *pszDir);
25
33 }
34
44 static UIPanel *New(DataArray *pData, const char *pszDir) {
45 return new NetFoundPlayerPanel(pData, pszDir);
46 }
47
57 void Enter(bool bForce, float fTime) override;
58
66 void SetPlayer(LobbyPlayer player, int nChatroomId, const char *pszChatroom) {
67 mPlayer = player;
68 mChatroomName = pszChatroom;
69 mChatroomId = nChatroomId;
70 mInChatroom = nChatroomId != -1;
71 }
72
73private:
74 LobbyPlayer mPlayer;
75 int mReserved188; // +0x188, not yet identified.
76 int mInChatroom;
77 int mChatroomId;
78 String mChatroomName;
79};
AvatarPanel(DataArray *pData, const char *pszDir)
Construct the panel from its script description, showing no Freq.
Reference-counted array of script data nodes.
Definition dataarray.h:20
A player of the lobby server, as FindPlayerMsg reports it.
Definition lobbyplayer.h:16
NetFoundPlayerPanel(DataArray *pData, const char *pszDir)
Construct the panel from its script description.
void Enter(bool bForce, float fTime) override
Start the entry and show the rank, the games, the connection, the presence, the chatroom,...
static UIPanel * New(DataArray *pData, const char *pszDir)
Create a panel from its script description.
Definition netfoundplayerpanel.h:44
void SetPlayer(LobbyPlayer player, int nChatroomId, const char *pszChatroom)
Set the player to show and the chatroom the player is in.
Definition netfoundplayerpanel.h:66
~NetFoundPlayerPanel() override
Destroy the panel.
Definition netfoundplayerpanel.h:32
Growable text buffer that is also a PrnStream.
Definition string.h:19
UIPanel(DataArray *pData, const char *pszDir)
Construct a hidden panel from its script description.