Sumilion
2008-01-09 11:52:00
Hey all,
I want to update the SRLPlayerForm so that you can also add a variable ComboBox. It will in the end save the setting in Players[x].Strings[y] but I'm not so sure on how I should do the parameters …
One way I thought of was to use a TStringArray and that [0] of that array is the name of the combobox, [1] is the default setting and the rest are the options …
I also thought of an array of TStringArray; But then you would have to create a variable for that before calling the SRLPlayerForm function so in the end I don't think it will be much better than just a TStringArray, but if you think otherwise let me know.
But I was wondering if anyone might have a better solution … or any tips or things you would like to see in the PlayerForm while im at it ..
EDIT: I also thought about making the boolean vars buttons instead of comboboxes. One of the buttons will be disabled, for example False, then when you click on True, it will get disabled… Do you think it is better or should I leave it at comboboxes ?
I want to update the SRLPlayerForm so that you can also add a variable ComboBox. It will in the end save the setting in Players[x].Strings[y] but I'm not so sure on how I should do the parameters …
One way I thought of was to use a TStringArray and that [0] of that array is the name of the combobox, [1] is the default setting and the rest are the options …
I also thought of an array of TStringArray; But then you would have to create a variable for that before calling the SRLPlayerForm function so in the end I don't think it will be much better than just a TStringArray, but if you think otherwise let me know.
But I was wondering if anyone might have a better solution … or any tips or things you would like to see in the PlayerForm while im at it ..
EDIT: I also thought about making the boolean vars buttons instead of comboboxes. One of the buttons will be disabled, for example False, then when you click on True, it will get disabled… Do you think it is better or should I leave it at comboboxes ?