 # MenuScene
 
 phina.define 'MenuScene',
-  superClass: 'nz.SceneBase'
+  superClass: 'phina.display.CanvasScene'
 
   _static:
     defaults:

      btn.index = i
      btn.x = @menu.gridX.span i % @cols
      btn.y = @menu.gridY.span (i / @cols).floor()

    @setupKeyboradHander()
    @setupCursorHandler (e) ->
      console.log e.type
      return
    return


    @menu.gridX = phina.util.Grid(@width  - @padding, @cols, true)
    @menu.gridY = phina.util.Grid(@height - @padding, @rows, true, - @menu.height / 2 + @itemHeight / 2 + @padding)

    @cursor = phina.display.RectangleShape
      width:  @itemWidth
      height: @itemHeight
      stroke:       'red'
      strokeWidth:  3
      visible:      true
      cornerRadius: 5
      fill:         null
      backgroundColor: 'transparent'
    @cursor.addChildTo @menu
    @btns = []
    for m,i in @menus
      btn = phina.ui.Button
        text:   m.text
