diff --git a/protos/tccGraphics.proto b/protos/tccGraphics.proto index 56cf6ca..8ad7e25 100644 --- a/protos/tccGraphics.proto +++ b/protos/tccGraphics.proto @@ -8,19 +8,15 @@ message TccGraphicStorage { graphicData.Canvas canvas = 1; repeated TccButton tccButtons = 2; repeated TccText tccTexts = 3; -} - -enum TccElementColor { - green = 0; - red = 1; + repeated TccKey tccKeys = 4; + repeated TccHandle tccHandles = 5; } /** TCC按钮 */ message TccButton { graphicData.CommonInfo common = 1; string code = 2; - TccElementColor buttonColor = 3; - bool isSelfReset = 4; + bool isSelfReset = 3; } /** TCC文字 */ @@ -31,3 +27,21 @@ message TccText { string color = 4; int32 fontSize = 5; } + +/** TCC钥匙 */ +message TccKey { + enum TccKeyType { + driverControllerActivationClint = 0; //司控器激活端 + frontAndRearDirectionalControl = 1;//前后方向控制 + } + + graphicData.CommonInfo common = 1; + string code = 2; + TccKeyType type = 3; +} + +/** TCC手柄 */ +message TccHandle { + graphicData.CommonInfo common = 1; + string code = 2; +}