2019-06-06 21:40:32 +02:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using GL_EditorFramework.Interfaces;
|
2019-07-16 23:35:21 +02:00
|
|
|
|
using Toolbox.Library.Forms;
|
2019-06-06 21:40:32 +02:00
|
|
|
|
|
2019-07-16 23:35:21 +02:00
|
|
|
|
namespace Toolbox.Library
|
2019-06-06 21:40:32 +02:00
|
|
|
|
{
|
|
|
|
|
//Represents a container that stores multiple drawables
|
|
|
|
|
//These can be switched between the viewport
|
|
|
|
|
public class DrawableContainer
|
|
|
|
|
{
|
|
|
|
|
private string _name;
|
|
|
|
|
public string Name
|
|
|
|
|
{
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
List<string> Names = ObjectEditor.GetDrawableContainers().Select(o => o.Name).ToList();
|
|
|
|
|
foreach (string str in Names)
|
|
|
|
|
Console.WriteLine("STR NAME " + str);
|
|
|
|
|
_name = Utils.RenameDuplicateString(Names, value);
|
|
|
|
|
}
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return _name;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public ContainerState ContainerState { get; set; }
|
|
|
|
|
|
|
|
|
|
public List<AbstractGlDrawable> Drawables = new List<AbstractGlDrawable>();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum ContainerState
|
|
|
|
|
{
|
|
|
|
|
Active,
|
|
|
|
|
Inactive,
|
|
|
|
|
Disposed,
|
|
|
|
|
}
|
|
|
|
|
}
|