@@ -64,6 +64,7 @@ public ScriptEditor()
64
64
ResetGroupBox ( gbImageArea ) ;
65
65
ResetGroupBox ( gbList ) ;
66
66
ResetGroupBox ( gbLoops ) ;
67
+ ResetGroupBox ( gbEnterText ) ;
67
68
68
69
this . Size = new Size ( 800 , 485 ) ;
69
70
splitContainer1 . SplitterDistance = 320 ;
@@ -1242,6 +1243,26 @@ private void TvBotData_AfterSelect(object sender, TreeViewEventArgs e)
1242
1243
gbLoopCoordinate . Enabled = true ;
1243
1244
gbLoopCoordinate . Visible = true ;
1244
1245
break ;
1246
+ case ValidCommandIds . EnterText :
1247
+ if ( commandCopy . Value != null )
1248
+ {
1249
+ tbEnterTextText . Text = commandCopy . Value ;
1250
+ }
1251
+ else
1252
+ {
1253
+ tbEnterTextText . Text = string . Empty ;
1254
+ }
1255
+ if ( commandCopy . OverrideId != null )
1256
+ {
1257
+ tbEnterTextOverideId . Text = commandCopy . OverrideId ;
1258
+ }
1259
+ else
1260
+ {
1261
+ tbEnterTextOverideId . Text = string . Empty ;
1262
+ }
1263
+ gbEnterText . Enabled = true ;
1264
+ gbEnterText . Visible = true ;
1265
+ break ;
1245
1266
case ValidCommandIds . FindClick :
1246
1267
if ( ! string . IsNullOrEmpty ( commandCopy . ImageName ) )
1247
1268
cbImageNameNoWait . SelectedItem = commandCopy . ImageName ;
@@ -1804,6 +1825,7 @@ private string GetCommandIdDisplayText(Command command)
1804
1825
childText = string . Format ( "{0} ({1}, {2}) - ({3}, {4})" , command . CommandId , command . Swipe . X1 , command . Swipe . Y1 , command . Swipe . X2 , command . Swipe . Y2 ) ;
1805
1826
break ;
1806
1827
case ValidCommandIds . EnterLoopCoordinate :
1828
+ case ValidCommandIds . EnterText :
1807
1829
if ( command . Value != null )
1808
1830
childText = string . Format ( "{0} ({1})" , command . CommandId , command . Value ) ;
1809
1831
break ;
@@ -1905,6 +1927,8 @@ private void ResetEditFormItems()
1905
1927
btnUpdate . Enabled = false ;
1906
1928
gbLoops . Enabled = false ;
1907
1929
gbLoops . Visible = false ;
1930
+ gbEnterText . Enabled = false ;
1931
+ gbEnterText . Visible = false ;
1908
1932
}
1909
1933
1910
1934
/// <summary>
@@ -2093,6 +2117,17 @@ private void BtnUpdate_Click(object sender, EventArgs e)
2093
2117
commandCopy . Value = "Y" ;
2094
2118
}
2095
2119
break ;
2120
+ case ValidCommandIds . EnterText :
2121
+ commandCopy . Value = tbEnterTextText . Text ;
2122
+ if ( tbEnterTextOverideId . Text . Length > 0 )
2123
+ {
2124
+ commandCopy . OverrideId = tbEnterTextOverideId . Text ;
2125
+ }
2126
+ else
2127
+ {
2128
+ commandCopy . OverrideId = null ;
2129
+ }
2130
+ break ;
2096
2131
case ValidCommandIds . FindClick :
2097
2132
commandCopy . ImageName = ( string ) cbImageNameNoWait . SelectedItem ;
2098
2133
commandCopy . IgnoreMissing = cbIgnoreMissing . Checked ;
0 commit comments