2016-10-21 10:35:54 +00:00
|
|
|
#pragma once
|
|
|
|
#include "file/file_util.h"
|
|
|
|
#include "ui/ui_screen.h"
|
|
|
|
|
|
|
|
class ChatMenu : public PopupScreen {
|
|
|
|
public:
|
2017-06-07 18:18:45 +00:00
|
|
|
ChatMenu() : PopupScreen("Chat") , toBottom_(false) {}
|
2016-10-22 18:44:28 +00:00
|
|
|
~ChatMenu();
|
2016-10-21 10:35:54 +00: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-07 18:18:45 +00:00
|
|
|
void update() override;
|
2016-10-31 14:22:57 +00:00
|
|
|
void UpdateChat();
|
2016-10-21 10:35:54 +00:00
|
|
|
private:
|
|
|
|
UI::EventReturn OnSubmit(UI::EventParams &e);
|
|
|
|
UI::TextEdit *chatEdit_;
|
|
|
|
UI::ScrollView *scroll_;
|
|
|
|
UI::LinearLayout *chatVert_;
|
|
|
|
UI::ViewGroup *box_;
|
|
|
|
bool toBottom_;
|
|
|
|
};
|