protected override EditorTexture DefinedIcon() { if (unit.ErrorIfHit) { return(EditorTexture.Load(new AssemblyResourceProvider(Assembly.GetExecutingAssembly(), "Bolt.Addons.Community.Fundamentals.Editor", "Resources"), "construction_alarm.png", CreateTextureOptions.PixelPerfect, true)); } return(EditorTexture.Load(new AssemblyResourceProvider(Assembly.GetExecutingAssembly(), "Bolt.Addons.Community.Fundamentals.Editor", "Resources"), "construction.png", CreateTextureOptions.PixelPerfect, true)); }
protected override EditorTexture DefinedIcon() { switch (unit.BranchingType) { case LogicParamNode.BranchType.And: return(EditorTexture.Load(new AssemblyResourceProvider(Assembly.GetExecutingAssembly(), "Bolt.Addons.Community.Fundamentals.Editor", "Resources"), "Branch_And.png", CreateTextureOptions.PixelPerfect, true)); case LogicParamNode.BranchType.Or: return(EditorTexture.Load(new AssemblyResourceProvider(Assembly.GetExecutingAssembly(), "Bolt.Addons.Community.Fundamentals.Editor", "Resources"), "Branch_Or.png", CreateTextureOptions.PixelPerfect, true)); case LogicParamNode.BranchType.GreaterThan: if (unit.AllowEquals) { return(EditorTexture.Load(new AssemblyResourceProvider(Assembly.GetExecutingAssembly(), "Bolt.Addons.Community.Fundamentals.Editor", "Resources"), "Branch_Greater_Equal.png", CreateTextureOptions.PixelPerfect, true)); } else { return(EditorTexture.Load(new AssemblyResourceProvider(Assembly.GetExecutingAssembly(), "Bolt.Addons.Community.Fundamentals.Editor", "Resources"), "Branch_Greater.png", CreateTextureOptions.PixelPerfect, true)); } case LogicParamNode.BranchType.LessThan: if (unit.AllowEquals) { return(EditorTexture.Load(new AssemblyResourceProvider(Assembly.GetExecutingAssembly(), "Bolt.Addons.Community.Fundamentals.Editor", "Resources"), "Branch_Less_Equal.png", CreateTextureOptions.PixelPerfect, true)); } else { return(EditorTexture.Load(new AssemblyResourceProvider(Assembly.GetExecutingAssembly(), "Bolt.Addons.Community.Fundamentals.Editor", "Resources"), "Branch_Less.png", CreateTextureOptions.PixelPerfect, true)); } case LogicParamNode.BranchType.Equal: return(EditorTexture.Load(new AssemblyResourceProvider(Assembly.GetExecutingAssembly(), "Bolt.Addons.Community.Fundamentals.Editor", "Resources"), "Branch_Equal.png", CreateTextureOptions.PixelPerfect, true)); default: return(EditorTexture.Load(new AssemblyResourceProvider(Assembly.GetExecutingAssembly(), "Bolt.Addons.Community.Fundamentals.Editor", "Resources"), "arrow_switch.png", CreateTextureOptions.PixelPerfect, true)); } }
protected override EditorTexture DefinedIcon() { return(EditorTexture.Load(new AssemblyResourceProvider(Assembly.GetExecutingAssembly(), "Bolt.Addons.Community.Fundamentals.Editor", "Resources"), "weather_clouds.png", CreateTextureOptions.PixelPerfect, true)); }