Class cc.MenuPassive

Class Summary
Constructor Attributes Constructor Name and Description
 
MenuPassive: The menu passive ui component

Method Summary

Class Detail

cc.MenuPassive()
MenuPassive: The menu passive ui component

Method Detail

  • alignItemsHorizontally()
    align items horizontally
  • alignItemsHorizontallyWithPadding(padding)
    align items horizontally with padding
    Parameters:
    padding
    Since:
    v0.7.2
  • alignItemsInColumns(columns)
    align items in rows of columns
    Parameters:
    columns
  • alignItemsInRows(rows)
    align items in columns of rows
    Parameters:
    rows
  • alignItemsVertically()
    align items vertically
  • alignItemsVerticallyWithPadding(padding)
    align items vertically with padding
    Parameters:
    padding
    Since:
    v0.7.2
  • <static> cc.MenuPassive.create(item)
    creates an empty CCMenu
    Parameters:
    item
  • <static> cc.MenuPassive.createWithItem(item)
    creates a CCMenu with it's item, then use addChild() to add other items. It is used for script, it can't init with undetermined number of variables.
    Parameters:
    item
  • getColor()
    Color: conforms with CCRGBAProtocol protocol
  • getOpacity()
    Opacity: conforms with CCRGBAProtocol protocol
  • initWithItems(item, args)
    initializes a CCMenu with it's items
    Parameters:
    item
    args