Quote:
Originally Posted by OiRodgar
Okay, thanks. But when I click on "Bombe", I want that in the descriptionfield the description for the bomb appears. How can I do that?
|
PHP Code:
function Shop_TextList1.onSelect( entryid, entrytext, entryindex ) {
switch ( entrytext ) {
case "Bombe":
temp.description = "put descriptions here";
break;
case "Whatever":
temp.description = "whatever";
break;
}
Shop_MultiLine1.setText( temp.description );
}
Try something like that but I'd really put all descriptions in a database or something and call that to get the information, if you want it to be used countless times throughout your project.