So, we are in the second page of our menu window, which is the inventory page. In this section, we will create an item scroll that the player can use to scroll up and down to select the item and see its name, amount, and information of the item.
We will start with adding the parameters, which we will use to store the data in our inventory page:
Menu.js, and add the following code to it; first the parameters:
//Item Tab private var r_itemsBox : Rect = new Rect (237, 67, 360, 247); private var r_tipBox : Rect = new Rect (237, 330, 360, 107); private var r_itemsButton : Rect = new Rect (257, 87, 340, 227); private var r_tipButton : Rect = new Rect (257, 350, 340, 87); private var r_verScroll : Rect = new ...