Game Development Community

arraylist does not seem to work in cev 4.0

by curtis michael guy · in Torque X 2D · 05/27/2012 (7:45 pm) · 1 replies

i took a starter game with a premade gui in 3.5 and converted it all over to 4.0. but now it gives me this error

Error 1 The type or namespace name 'Arraylist' could not be found (are you missing a using directive or an assembly reference?) C:\Users\curtis\Documents\Visual Studio 2010\Projects\TorqueX GUI 2D (3.1.5) Pro1\TorqueX GUI 2D (3.1.5) Pro1\Game\GUI\GuiMainMenu.cs 196 9 Game

not sure what to do. anyone have any ideas?

#1
06/15/2012 (10:43 am)
ok I figured it out. I just turned the arraylist into a list by changing

ArrayList _buttons = new ArrayList(); to

List<GUIButton> _buttons=new List<GUIButton>();

i posted this to mainly help anyone who runs across this problem