diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-11-24 12:51:55 +1100 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-11-24 12:51:55 +1100 |
commit | 56c99c086fd14ee1b1131cb7df18c1b55ede5519 (patch) | |
tree | 2374579586f961063f0cab46ff6beb921149327e /source/frontend/StarChat.hpp | |
parent | d4c976bcb3ec75c94298c6b8776487809367498b (diff) |
scriptable chat
Diffstat (limited to 'source/frontend/StarChat.hpp')
-rw-r--r-- | source/frontend/StarChat.hpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source/frontend/StarChat.hpp b/source/frontend/StarChat.hpp index df2d63c..53ed578 100644 --- a/source/frontend/StarChat.hpp +++ b/source/frontend/StarChat.hpp @@ -1,6 +1,6 @@ #pragma once -#include "StarPane.hpp" +#include "StarBaseScriptPane.hpp" #include "StarChatTypes.hpp" namespace Star { @@ -13,9 +13,9 @@ STAR_CLASS(ImageStretchWidget); STAR_CLASS(CanvasWidget); STAR_CLASS(Chat); -class Chat : public Pane { +class Chat : public BaseScriptPane { public: - Chat(UniverseClientPtr client); + Chat(UniverseClientPtr client, Json const&); void startChat(); void startCommand(); @@ -57,6 +57,7 @@ private: void updateBottomButton(); UniverseClientPtr m_client; + bool m_scripted; TextBoxWidgetPtr m_textBox; LabelWidgetPtr m_say; |