Game Development Reference
In-Depth Information
Objective Complete - Mini Debriefing
We just finished the last tab of our menu window. In this step, we created an EQUIPMENT
buton that will bring up the selecion window, from which the player can choose the type of
equipment or skill. It will update the current equipment status on the status tab too.
In the ShowArmor() funcion, we had the following code to display the six items in the scroll
view, which is just an example to use, to set up the muliple selected items within the scroll
view area when a_armors.length = 1 :
var in_items : int = 6;
var itemsContent : GUIContent[] = new GUIContent[in_items];
for (var i: int = 0; i < in_items; i++) {
if (i == 0) {
itemsContent[i] = GUIContent(s_unequip, "");
} else {
itemsContent[i] = GUIContent(a_armors[0].name, a_armors[0].
icon);
}
}
 
Search WWH ::




Custom Search