From 56c99c086fd14ee1b1131cb7df18c1b55ede5519 Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Sun, 24 Nov 2024 12:51:55 +1100 Subject: scriptable chat --- source/frontend/StarMainInterface.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'source/frontend/StarMainInterface.cpp') 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(m_client, "/interface/scripted/collections/collectionsgui.config"); m_paneManager.registerPane(MainInterfacePanes::Collections, PaneLayer::Window, m_collections); - m_chat = make_shared(m_client); + m_chat = make_shared(m_client, Root::singleton().assets()->json("/interface/chat/chat.config")); m_paneManager.registerPane(MainInterfacePanes::Chat, PaneLayer::Hud, m_chat); m_clientCommandProcessor = make_shared(m_client, m_cinematicOverlay, &m_paneManager, m_config->macroCommands); @@ -171,11 +171,6 @@ MainInterface::MainInterface(UniverseClientPtr client, WorldPainterPtr painter, m_nameplatePainter = make_shared(); m_questIndicatorPainter = make_shared(m_client); m_chatBubbleManager = make_shared(); - - 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& 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(); -- cgit v1.2.3