Panel fixed
This commit is contained in:
@@ -106,8 +106,21 @@ namespace RH_Engine
|
|||||||
data = new
|
data = new
|
||||||
{
|
{
|
||||||
name = "dashboard",
|
name = "dashboard",
|
||||||
|
parent = uuidBike,
|
||||||
components = new
|
components = new
|
||||||
{
|
{
|
||||||
|
transform = new
|
||||||
|
{
|
||||||
|
position = new float[]
|
||||||
|
{
|
||||||
|
-1.5f, 1f, 0f
|
||||||
|
},
|
||||||
|
scale = 1,
|
||||||
|
rotation = new int[]
|
||||||
|
{
|
||||||
|
-30, 90,0
|
||||||
|
}
|
||||||
|
},
|
||||||
panel = new
|
panel = new
|
||||||
{
|
{
|
||||||
size = new int[] { 1, 1 },
|
size = new int[] { 1, 1 },
|
||||||
@@ -130,7 +143,7 @@ namespace RH_Engine
|
|||||||
data = new
|
data = new
|
||||||
{
|
{
|
||||||
id = uuidPanel,
|
id = uuidPanel,
|
||||||
color = new int[] { 1, 1, 1, 1 }
|
color = new float[] { 0f, 0f, 0f, 0f }
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -179,6 +179,7 @@ namespace RH_Engine
|
|||||||
bool speedReplied = false;
|
bool speedReplied = false;
|
||||||
bool moveReplied = true;
|
bool moveReplied = true;
|
||||||
panelId = JSONParser.getPanelID(message);
|
panelId = JSONParser.getPanelID(message);
|
||||||
|
WriteTextMessage(stream, mainCommand.ColorPanel(panelId));
|
||||||
WriteTextMessage(stream, mainCommand.ClearPanel(panelId));
|
WriteTextMessage(stream, mainCommand.ClearPanel(panelId));
|
||||||
|
|
||||||
|
|
||||||
@@ -186,6 +187,7 @@ namespace RH_Engine
|
|||||||
(message) =>
|
(message) =>
|
||||||
{
|
{
|
||||||
Console.WriteLine(message);
|
Console.WriteLine(message);
|
||||||
|
|
||||||
SendMessageAndOnResponse(stream, mainCommand.bikeSpeed(panelId, "bikeSpeed", 5.0), "bikeSpeed",
|
SendMessageAndOnResponse(stream, mainCommand.bikeSpeed(panelId, "bikeSpeed", 5.0), "bikeSpeed",
|
||||||
(message) =>
|
(message) =>
|
||||||
{
|
{
|
||||||
@@ -223,31 +225,7 @@ namespace RH_Engine
|
|||||||
|
|
||||||
//WriteTextMessage(stream, mainCommand.TerrainCommand(new int[] { 256, 256 }, null));
|
//WriteTextMessage(stream, mainCommand.TerrainCommand(new int[] { 256, 256 }, null));
|
||||||
//string command;
|
//string command;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
//Console.WriteLine("id of head " + GetId(Command.STANDARD_HEAD, stream, mainCommand));
|
|
||||||
|
|
||||||
//command = mainCommand.AddModel("car", "data\\customModels\\TeslaRoadster.fbx");
|
|
||||||
//WriteTextMessage(stream, command);
|
|
||||||
|
|
||||||
//command = mainCommand.addPanel();
|
|
||||||
// WriteTextMessage(stream, command);
|
|
||||||
// string response = ReadPrefMessage(stream);
|
|
||||||
// Console.WriteLine("add Panel response: \n\r" + response);
|
|
||||||
// string uuidPanel = JSONParser.getPanelID(response);
|
|
||||||
// WriteTextMessage(stream, mainCommand.ClearPanel(uuidPanel));
|
|
||||||
// Console.WriteLine(ReadPrefMessage(stream));
|
|
||||||
// WriteTextMessage(stream, mainCommand.bikeSpeed(uuidPanel, 2.42));
|
|
||||||
// Console.WriteLine(ReadPrefMessage(stream));
|
|
||||||
// WriteTextMessage(stream, mainCommand.ColorPanel(uuidPanel));
|
|
||||||
// Console.WriteLine("Color panel: " + ReadPrefMessage(stream));
|
|
||||||
// WriteTextMessage(stream, mainCommand.SwapPanel(uuidPanel));
|
|
||||||
// Console.WriteLine("Swap panel: " + ReadPrefMessage(stream));
|
|
||||||
=======
|
|
||||||
Console.WriteLine("id of head " + GetId(Command.STANDARD_HEAD, stream, mainCommand));
|
Console.WriteLine("id of head " + GetId(Command.STANDARD_HEAD, stream, mainCommand));
|
||||||
>>>>>>> develop
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -330,7 +308,7 @@ namespace RH_Engine
|
|||||||
{
|
{
|
||||||
WriteTextMessage(stream, mainCommand.RouteFollow(routeId, bikeId, speed, new float[] { 0, -(float)Math.PI / 2f, 0 }, new float[] { 0, 0, 0 }));
|
WriteTextMessage(stream, mainCommand.RouteFollow(routeId, bikeId, speed, new float[] { 0, -(float)Math.PI / 2f, 0 }, new float[] { 0, 0, 0 }));
|
||||||
WriteTextMessage(stream, mainCommand.RouteFollow(routeId, cameraId, speed));
|
WriteTextMessage(stream, mainCommand.RouteFollow(routeId, cameraId, speed));
|
||||||
WriteTextMessage(stream, mainCommand.RouteFollow(routeId, panelId, speed, 0, "XYZ", 1, false, new float[] { 0, 0, 0 }, new float[] { 0f, 0f, 150f }));
|
//WriteTextMessage(stream, mainCommand.RouteFollow(routeId, panelId, speed, 1f, "XYZ", 1, false, new float[] { 0, 0, 0 }, new float[] { 0f, 5f, 5f }));
|
||||||
}
|
}
|
||||||
//string routeID, string nodeID, float speedValue, float offsetValue, string rotateValue, float smoothingValue, bool followHeightValue, float[] rotateOffsetVector, float[] positionOffsetVector)
|
//string routeID, string nodeID, float speedValue, float offsetValue, string rotateValue, float smoothingValue, bool followHeightValue, float[] rotateOffsetVector, float[] positionOffsetVector)
|
||||||
private static void Force(NetworkStream stream, string message, string serial, HandleSerial action)
|
private static void Force(NetworkStream stream, string message, string serial, HandleSerial action)
|
||||||
|
|||||||
Reference in New Issue
Block a user