1
0
mirror of synced 2024-12-04 20:08:00 +01:00
Switch-Toolbox/Switch_Toolbox_Library/DrawableContainer.cs
KillzXGaming 157ff75b79 Add model cycling if multiple models are active in an editor.
Models can be cycled in the same editor. The active one now gets properly set. You can adjust the combo box to preview multiple models in the scene.
Fixed a bug where some models would project on the top of the screen as duplicates.
2019-06-06 15:40:32 -04:00

43 lines
1.1 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using GL_EditorFramework.Interfaces;
using Switch_Toolbox.Library.Forms;
namespace Switch_Toolbox.Library
{
//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,
}
}