Class: GraphicItem

GraphicItem

The graphic displaying all the items information in the inventory menu

new GraphicItem (gameItem, nbItem)

Name Type Description
gameItem GameItem The current selected item
nbItem number The number of occurence of the selected item
Properties:
Name Type Description
gameItem GameItem The current selected item
graphicName GraphicText The item name graphic
graphicNb GraphicText The item numbers graphic

Methods

updateNb ()

Update the game item number

drawChoice (x, y, w, h)

Drawing the item in choice box
Name Type Description
x number The x position to draw graphic
y number The y position to draw graphic
w number The width dimention to draw graphic
h number The height dimention to draw graphic

drawBox (x, y, w, h)

Drawing the item description
Name Type Description
x number The x position to draw graphic
y number The y position to draw graphic
w number The width dimention to draw graphic
h number The height dimention to draw graphic