// :( public List <ContainerWindow> GetListOfSelectableContainerWindows() { var list = new List <ContainerWindow>(); for (var i = 0; i < TabbedGui.NumWindows(); i++) { var window = TabbedGui.GetWindowAt(i); if (window is ContainerWindow && window != InvGui && window != EquipmentGui) { list.Add(window as ContainerWindow); } } return(list); }
public void RemoveAllOpenContainers() { for (var i = TabbedGui.NumWindows() - 1; i >= 0; i--) { var window = TabbedGui.GetWindowAt(i); if (window is ContainerWindow && window != InvGui && window != EquipmentGui) { TabbedGui.Remove(window); } } if (SelectedContainer != null) { MoveSelectedContainerToNext(); } }