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/StarMainInterface.cpp | |
parent | d4c976bcb3ec75c94298c6b8776487809367498b (diff) |
scriptable chat
Diffstat (limited to 'source/frontend/StarMainInterface.cpp')
-rw-r--r-- | source/frontend/StarMainInterface.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/source/frontend/StarMainInterface.cpp b/source/frontend/StarMainInterface.cpp index 153ce07..41eceb7 100644 --- a/source/frontend/StarMainInterface.cpp +++ b/source/frontend/StarMainInterface.cpp @@ -141,7 +141,7 @@ MainInterface::MainInterface(UniverseClientPtr client, WorldPainterPtr painter, m_collections = make_shared<ScriptPane>(m_client, "/interface/scripted/collections/collectionsgui.config"); m_paneManager.registerPane(MainInterfacePanes::Collections, PaneLayer::Window, m_collections); - m_chat = make_shared<Chat>(m_client); + m_chat = make_shared<Chat>(m_client, Root::singleton().assets()->json("/interface/chat/chat.config")); m_paneManager.registerPane(MainInterfacePanes::Chat, PaneLayer::Hud, m_chat); m_clientCommandProcessor = make_shared<ClientCommandProcessor>(m_client, m_cinematicOverlay, &m_paneManager, m_config->macroCommands); @@ -171,11 +171,6 @@ MainInterface::MainInterface(UniverseClientPtr client, WorldPainterPtr painter, m_nameplatePainter = make_shared<NameplatePainter>(); m_questIndicatorPainter = make_shared<QuestIndicatorPainter>(m_client); m_chatBubbleManager = make_shared<ChatBubbleManager>(); - - m_paneManager.displayRegisteredPane(MainInterfacePanes::ActionBar); - m_paneManager.displayRegisteredPane(MainInterfacePanes::Chat); - m_paneManager.displayRegisteredPane(MainInterfacePanes::TeamBar); - m_paneManager.displayRegisteredPane(MainInterfacePanes::StatusPane); } MainInterface::~MainInterface() { @@ -997,6 +992,13 @@ void MainInterface::reviveScriptPanes(List<ScriptPaneInfo>& panes) { } } +void MainInterface::displayDefaultPanes() { + m_paneManager.displayRegisteredPane(MainInterfacePanes::ActionBar); + m_paneManager.displayRegisteredPane(MainInterfacePanes::Chat); + m_paneManager.displayRegisteredPane(MainInterfacePanes::TeamBar); + m_paneManager.displayRegisteredPane(MainInterfacePanes::StatusPane); +} + PanePtr MainInterface::createEscapeDialog() { auto assets = Root::singleton().assets(); |