Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/frontend/StarChat.hpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2024-04-22 06:07:59 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2024-04-22 06:07:59 +1000
commitca1426eabc873f781eb0dd389d45634b7d183250 (patch)
tree15ea83658ca3824232f14fe4b32ec714e0aa05c6 /source/frontend/StarChat.hpp
parentd5f5fb5ddf0d4a9f0b0e6ac012121926d2fcd949 (diff)
Lua chat callbacks + better font styling
golly gee whiz!! i hope i didn't fuck something up
Diffstat (limited to 'source/frontend/StarChat.hpp')
-rw-r--r--source/frontend/StarChat.hpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/source/frontend/StarChat.hpp b/source/frontend/StarChat.hpp
index 28117ff..80cf683 100644
--- a/source/frontend/StarChat.hpp
+++ b/source/frontend/StarChat.hpp
@@ -32,7 +32,7 @@ public:
void addHistory(String const& chat);
String currentChat() const;
- void setCurrentChat(String const& chat);
+ bool setCurrentChat(String const& chat, bool moveCursor = false);
void clearCurrentChat();
ChatSendMode sendMode() const;
@@ -66,10 +66,7 @@ private:
int64_t m_timeChatLastActive;
float m_chatVisTime;
float m_fadeRate;
- unsigned m_fontSize;
- String m_fontDirectives;
- String m_font;
- float m_chatLineHeight;
+ TextStyle m_chatTextStyle;
unsigned m_chatHistoryLimit;
int m_historyOffset;