readme
This commit is contained in:
@@ -48,6 +48,9 @@ public partial class IDIS_TemplateWeaver : FormWeaverResource
|
||||
typeButton.GetPopup().AddItem("h_site");
|
||||
typeButton.GetPopup().AddItem("base64");
|
||||
typeButton.GetPopup().AddItem("guid");
|
||||
typeButton.GetPopup().AddItem("url");
|
||||
typeButton.GetPopup().AddItem("dateTime");
|
||||
typeButton.GetPopup().AddItem("float");
|
||||
|
||||
typeButton.Selected = 0;
|
||||
|
||||
|
@@ -48,7 +48,7 @@ public partial class IDIS_SearchService : Node
|
||||
MathNode.ClearChild(searchCandidateContainer);
|
||||
if (service.Query(word, out IDIS_Query[] queries) is false) return;
|
||||
if(queries.Length is 1 && queries.First().Handle == word)return;
|
||||
foreach (var query in queries)
|
||||
foreach (var query in queries.Take(3))
|
||||
{
|
||||
var button = new Button();
|
||||
|
||||
|
@@ -8,9 +8,7 @@ using BITKit;
|
||||
using Cysharp.Threading.Tasks;
|
||||
using Godot;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using RosSharp.RosBridgeClient.MessageTypes.Sensor;
|
||||
using Constant = BITKit.Constant;
|
||||
using String = RosSharp.RosBridgeClient.MessageTypes.Std.String;
|
||||
|
||||
namespace BITFactory;
|
||||
// ReSharper disable once IdentifierTypo
|
||||
|
17
Mods/工业数据采集与分析应用分享/Scripts/Quest/TemplateCondition.cs
Normal file
17
Mods/工业数据采集与分析应用分享/Scripts/Quest/TemplateCondition.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using Godot;
|
||||
using System;
|
||||
using System.Linq;
|
||||
using BITKit;
|
||||
|
||||
namespace BITKit;
|
||||
public partial class TemplateCondition : ConditionComponent
|
||||
{
|
||||
public override Type BaseType => typeof(ConditionComponent);
|
||||
[Export] private TemplateResource templateResource;
|
||||
[Export] private string templateName;
|
||||
|
||||
public override bool OnCheck()
|
||||
{
|
||||
return templateResource.GetTemplates().Any(x => x.Name == templateName);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user