mirror of
https://github.com/jie65535/GrasscutterCommandGenerator.git
synced 2025-12-10 08:51:34 +08:00
Add Cutscene command to Scene page
This commit is contained in:
@@ -147,8 +147,17 @@ namespace GrasscutterTools.Pages
|
||||
return;
|
||||
}
|
||||
|
||||
Common.OC = new OpenCommandAPI(TxtHost.Text);
|
||||
if (await Common.OC.Ping())
|
||||
var isOcEnabled = false;
|
||||
try
|
||||
{
|
||||
Common.OC = new OpenCommandAPI(TxtHost.Text);
|
||||
isOcEnabled = await Common.OC.Ping();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show(ex.ToString(), Resources.Error, MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
}
|
||||
if (isOcEnabled)
|
||||
{
|
||||
LblOpenCommandSupport.Text = "√";
|
||||
LblOpenCommandSupport.ForeColor = Color.Green;
|
||||
|
||||
Reference in New Issue
Block a user