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:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user