Added lights panel tab to send LED commands. However we can not get in-game lighting as its on the socket not websocket. More reason for the bridge

This commit is contained in:
Jon ESA
2026-04-02 11:14:36 +01:00
parent 3dc9ee91d4
commit 9671785a14
7 changed files with 362 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
#include "WebSocketController.h"
#include "GamesPanel.h"
#include "LogPanel.h"
#include "LightsPanel.h"
#include "PanelsPanel.h"
#include "PowerPanel.h"
#include "SettingsTree.h"
@@ -33,6 +34,7 @@ void WebSocketController::setVersionsPanel(VersionsPanel *p) { m_versionsPanel
void WebSocketController::setPowerPanel(PowerPanel *panel) { m_powerPanel = panel; }
void WebSocketController::setLogPanel(LogPanel *panel) { m_logPanel = panel; }
void WebSocketController::setPanelsPanel(PanelsPanel *panel) { m_panelsPanel = panel; }
void WebSocketController::setLightsPanel(LightsPanel *panel) { m_lightsPanel = panel; }
bool WebSocketController::isConnected() const
{
@@ -168,6 +170,7 @@ void WebSocketController::handleProtocol(const QString &msg)
m_rnpCount = count;
if (m_versionsPanel) m_versionsPanel->setRnpCount(count);
if (m_panelsPanel) m_panelsPanel->setRnpCount(count);
if (m_lightsPanel) m_lightsPanel->setRnpCount(count);
for (int i = 0; i < count; ++i) {
sendCommand(QString("VER %1").arg(i));
sendCommand(QString("UID %1").arg(i));