Files
ppsspp/UI/ChatScreen.h

35 lines
1008 B
C
Raw Normal View History

2016-10-21 18:35:54 +08:00
#pragma once
#include "ppsspp_config.h"
2016-10-21 18:35:54 +08:00
#include "file/file_util.h"
#include "ui/ui_screen.h"
class ChatMenu : public PopupScreen {
public:
ChatMenu(): PopupScreen("Chat") {}
~ChatMenu();
2016-10-21 18:35:54 +08:00
void CreatePopupContents(UI::ViewGroup *parent) override;
void CreateViews() override;
void dialogFinished(const Screen *dialog, DialogResult result) override;
bool touch(const TouchInput &touch) override;
2017-06-08 02:18:45 +08:00
void update() override;
void UpdateChat();
bool toBottom_ = true;
2016-10-21 18:35:54 +08:00
private:
UI::EventReturn OnSubmit(UI::EventParams &e);
2017-07-06 21:43:39 +08:00
UI::EventReturn OnQuickChat1(UI::EventParams &e);
UI::EventReturn OnQuickChat2(UI::EventParams &e);
UI::EventReturn OnQuickChat3(UI::EventParams &e);
UI::EventReturn OnQuickChat4(UI::EventParams &e);
UI::EventReturn OnQuickChat5(UI::EventParams &e);
2020-03-08 23:51:23 +01:00
#if PPSSPP_PLATFORM(WINDOWS) || defined(USING_QT_UI) || defined(SDL)
UI::TextEdit *chatEdit_ = nullptr;
#endif
UI::ScrollView *scroll_ = nullptr;
UI::LinearLayout *chatVert_ = nullptr;
UI::ViewGroup *box_ = nullptr;
};