Etterna 0.74.4
Loading...
Searching...
No Matches
ScreenNetSelectBase.h
1/* ScreenNetSelectBase - Base screen containing chat room & user list */
2
3#ifndef SCREEN_NET_SELECT_BASE_H
4#define SCREEN_NET_SELECT_BASE_H
5
6#include "Etterna/Actor/Base/BitmapText.h"
7#include "Etterna/Screen/Others/ScreenWithMenuElements.h"
8
10{
11 public:
12 void Init() override;
13
14 bool Input(const InputEventPlus& input) override;
15 void HandleScreenMessage(const ScreenMessage& SM) override;
16 void TweenOffScreen() override;
17
18 void UpdateUsers();
19 void UpdateTextInput();
20
21 bool usersVisible = true;
22 bool enableChatboxInput = true;
23 void SetChatboxVisible(bool visibility);
24 void SetUsersVisible(bool visibility);
25 std::vector<BitmapText>* ToUsers();
26 void Scroll(unsigned int movescroll);
27 std::string GetPreviousMsg();
28 std::string GetNextMsg();
29 void SetInputText(std::string text);
30 void ShowPreviousMsg();
31 void ShowNextMsg();
32 unsigned int GetScroll() { return scroll; }
33 unsigned int GetLines() { return m_textChatOutput.lines; }
34 void PasteClipboard();
35 // Lua
36 void PushSelf(lua_State* L) override;
37
38 private:
39 // Chatting
40 ColorBitmapText m_textChatInput;
41 ColorBitmapText m_textChatOutput;
42 AutoActor m_sprChatInputBox;
43 AutoActor m_sprChatOutputBox;
44 std::string m_sTextInput;
45 unsigned int m_sTextLastestInputsIndex = 0;
46 std::vector<std::string> m_sTextLastestInputs;
47 unsigned int scroll = 0;
48 std::string m_actualText;
49
50 std::vector<BitmapText> m_textUsers;
51};
52
53#endif
A smart pointer for Actor.
Definition AutoActor.h:13
Definition BitmapText.h:193
Holds a device input plus Game/Menu translations.
Definition InputEventPlus.h:9
Definition ScreenNetSelectBase.h:10
void Init() override
This is called immediately after construction, to allow initializing after all derived classes exist.
Definition ScreenNetSelectBase.cpp:29
Definition ScreenWithMenuElements.h:12