All checks were successful
Linux arm64 / Build (push) Successful in 4m20s
commit2b0930a734Author: Morph01 <thibaut6969delastreet@gmail.com> Date: Tue Mar 19 10:43:55 2024 +0100 hud of blitz (#16) Résoudre partiellement #12 Co-authored-by: Persson-dev <sim16.prib@gmail.com> Co-authored-by: Morph01 <145839520+Morph01@users.noreply.github.com> Co-authored-by: Simon Pribylski <sim16.prib@gmail.com> Reviewed-on: #16 commit84b6acad4cAuthor: Persson-dev <sim16.prib@gmail.com> Date: Tue Mar 19 10:15:54 2024 +0100 less spooky light commit9f94d51fc4Author: Persson-dev <sim16.prib@gmail.com> Date: Thu Mar 14 16:36:15 2024 +0100 Ajout de tests d'intégration (#17) Le paquet fournissant OpenGL a été temporairement remplacé par glew Reviewed-on: #17 Co-authored-by: Persson-dev <sim16.prib@gmail.com> Co-committed-by: Persson-dev <sim16.prib@gmail.com> commit9951256881Author: Simon Pribylski <sim16.prib@gmail.com> Date: Wed Mar 13 20:19:37 2024 +0100 action: install libsdl via apt commit4a02054648Author: Morph01 <145839520+Morph01@users.noreply.github.com> Date: Wed Mar 13 13:53:20 2024 +0100 compression tests commit19c39312bfAuthor: Morph01 <145839520+Morph01@users.noreply.github.com> Date: Wed Mar 13 13:51:57 2024 +0100 setup action commitd5014b1e8aAuthor: Persson-dev <sim16.prib@gmail.com> Date: Tue Mar 12 10:26:47 2024 +0100 Revert "extend Vec3" This reverts commitdccfa9c936. commitdccfa9c936Author: = <=> Date: Tue Mar 12 10:01:00 2024 +0100 extend Vec3
36 lines
804 B
C++
36 lines
804 B
C++
#pragma once
|
|
|
|
#include "GuiWidget.h"
|
|
#include "client/Client.h"
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
namespace blitz {
|
|
|
|
namespace gui {
|
|
|
|
class GameChatGui : public GuiWidget, GuiListener {
|
|
private:
|
|
char InputBuf[256];
|
|
std::vector<protocol::ColoredText> m_Lines;
|
|
std::vector<protocol::ColoredText> m_TempLines;
|
|
bool m_FocusRequested = false;
|
|
int HistoryPos; // -1: new line, 0..History.Size-1 browsing history.
|
|
bool ScrollToBottom = false;
|
|
bool AutoScroll = true;
|
|
float m_ChatDisplay = 0;
|
|
|
|
|
|
void Draw(const char* title, bool* p_open);
|
|
void DrawMini(const char* title, bool* p_open);
|
|
|
|
public:
|
|
GameChatGui(GuiWidget* parent, Client* client);
|
|
virtual void OnTextChatReceived(const protocol::ColoredText& text);
|
|
|
|
virtual void Render() override;
|
|
};
|
|
|
|
} // namespace gui
|
|
} // namespace blitz
|