From 1c3e48f6763cf629767ee11f937c63999c13fbb2 Mon Sep 17 00:00:00 2001 From: Sem van der Hoeven Date: Fri, 16 Oct 2020 11:23:52 +0200 Subject: [PATCH] added ralfs message display on vr panel into engineconnection --- ClientApp/Utils/EngineConnection.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ClientApp/Utils/EngineConnection.cs b/ClientApp/Utils/EngineConnection.cs index ea699a3..a82dfb7 100644 --- a/ClientApp/Utils/EngineConnection.cs +++ b/ClientApp/Utils/EngineConnection.cs @@ -42,6 +42,7 @@ namespace ClientApp.Utils private static string headId = string.Empty; private static string groundPlaneId = string.Empty; private static string terrainId = string.Empty; + private static string lastMessage = "No message received yet"; public float BikeSpeed { get; set; } public float BikePower { get; set; } @@ -297,6 +298,11 @@ namespace ClientApp.Utils { // TODO check if is drawn }); + SendMessageAndOnResponse(stream, mainCommand.showMessage(panelId, "message", lastMessage), "message", + (message) => + { + // TODO check if is drawn + }); // Check if every text is drawn!