@@ -2122,7 +2122,7 @@ private InteractiveControl ReadControl(JsonReader jsonReader, string sceneID = "
2122
2122
string controlID = string . Empty ;
2123
2123
uint cost = 0 ;
2124
2124
bool disabled = false ;
2125
- string helpText = string . Empty ;
2125
+ string text = string . Empty ;
2126
2126
string eTag = string . Empty ;
2127
2127
string kind = string . Empty ;
2128
2128
try
@@ -2144,7 +2144,7 @@ private InteractiveControl ReadControl(JsonReader jsonReader, string sceneID = "
2144
2144
break ;
2145
2145
case WS_MESSAGE_KEY_TEXT :
2146
2146
jsonReader . Read ( ) ;
2147
- helpText = jsonReader . Value . ToString ( ) ;
2147
+ text = jsonReader . Value . ToString ( ) ;
2148
2148
break ;
2149
2149
case WS_MESSAGE_KEY_ETAG :
2150
2150
jsonReader . Read ( ) ;
@@ -2171,19 +2171,23 @@ private InteractiveControl ReadControl(JsonReader jsonReader, string sceneID = "
2171
2171
}
2172
2172
if ( kind == WS_MESSAGE_VALUE_CONTROL_TYPE_BUTTON )
2173
2173
{
2174
- newControl = new InteractiveButtonControl ( controlID , InteractiveEventType . Button , disabled , helpText , cost , eTag , sceneID ) ;
2174
+ newControl = new InteractiveButtonControl ( controlID , InteractiveEventType . Button , disabled , text , cost , eTag , sceneID ) ;
2175
2175
}
2176
2176
else if ( kind == WS_MESSAGE_VALUE_CONTROL_TYPE_JOYSTICK )
2177
2177
{
2178
- newControl = new InteractiveJoystickControl ( controlID , InteractiveEventType . Joystick , disabled , helpText , eTag , sceneID ) ;
2178
+ newControl = new InteractiveJoystickControl ( controlID , InteractiveEventType . Joystick , disabled , text , eTag , sceneID ) ;
2179
2179
}
2180
2180
else if ( kind == WS_MESSAGE_VALUE_CONTROL_TYPE_TEXTBOX )
2181
2181
{
2182
- newControl = new InteractiveTextControl ( controlID , InteractiveEventType . TextInput , disabled , helpText , eTag , sceneID ) ;
2182
+ newControl = new InteractiveTextControl ( controlID , InteractiveEventType . TextInput , disabled , text , eTag , sceneID ) ;
2183
+ }
2184
+ else if ( kind == WS_MESSAGE_VALUE_CONTROL_TYPE_LABEL )
2185
+ {
2186
+ newControl = new InteractiveLabelControl ( controlID , text , sceneID ) ;
2183
2187
}
2184
2188
else
2185
2189
{
2186
- newControl = new InteractiveControl ( controlID , kind , InteractiveEventType . Unknown , disabled , helpText , eTag , sceneID ) ;
2190
+ newControl = new InteractiveControl ( controlID , kind , InteractiveEventType . Unknown , disabled , text , eTag , sceneID ) ;
2187
2191
}
2188
2192
return newControl ;
2189
2193
}
@@ -3424,6 +3428,7 @@ private void SendJsonString(string jsonString)
3424
3428
internal const string WS_MESSAGE_VALUE_DEFAULT_GROUP_ID = "default" ;
3425
3429
internal const string WS_MESSAGE_VALUE_DEFAULT_SCENE_ID = "default" ;
3426
3430
private const string WS_MESSAGE_VALUE_CONTROL_TYPE_JOYSTICK = "joystick" ;
3431
+ internal const string WS_MESSAGE_VALUE_CONTROL_TYPE_LABEL = "label" ;
3427
3432
internal const string WS_MESSAGE_VALUE_CONTROL_TYPE_TEXTBOX = "textbox" ;
3428
3433
private const bool WS_MESSAGE_VALUE_TRUE = true ;
3429
3434
@@ -3467,6 +3472,7 @@ private void SendJsonString(string jsonString)
3467
3472
// Input
3468
3473
internal const string CONTROL_TYPE_BUTTON = "button" ;
3469
3474
internal const string CONTROL_TYPE_JOYSTICK = "joystick" ;
3475
+ internal const string CONTROL_KIND_LABEL = "label" ;
3470
3476
internal const string CONTROL_KIND_TEXTBOX = "textbox" ;
3471
3477
3472
3478
// Event names
0 commit comments