Creating a list
by Vishal Bhanderi · in Torque X 2D · 01/05/2008 (1:19 pm) · 2 replies
Hi guys,
Im having problems creating a list where i can chose a from predefined list made in c#. In TXB the list dosn't work. For example
in C#
list[0]='selection1'
list[1]='selection2'
etc
Then in TXB there would be a list where i choose which type i want.
Back in C# during run time there will be a selection statement to figure out which one was chosen.
Can this be done ?
Im having problems creating a list where i can chose a from predefined list made in c#. In TXB the list dosn't work. For example
in C#
list[0]='selection1'
list[1]='selection2'
etc
Then in TXB there would be a list where i choose which type i want.
Back in C# during run time there will be a selection statement to figure out which one was chosen.
Can this be done ?
About the author
#2
That way should be fine with some workarounds. I am trying to get a list from C# but i guess TXB won't know the values in the list since it doesn't execute the code.
01/08/2008 (1:24 am)
Thanks JoshuaThat way should be fine with some workarounds. I am trying to get a list from C# but i guess TXB won't know the values in the list since it doesn't execute the code.
Torque Owner Joshua A. Thomas
www.garagegames.com/mg/forums/result.thread.php?qt=70241