Wizards Magic  3.2.20
MTG based computer game
 All Classes Namespaces Files Functions Variables Typedefs Macros
Public Member Functions | Public Attributes | List of all members
menu.MenuButton Class Reference
Inheritance diagram for menu.MenuButton:

Public Member Functions

def __init__
 
def draw
 
def update
 
def onmouse
 
def onmouseout
 
def onmousedown
 
def onmouseup
 
def default
 

Public Attributes

 type
 
 color
 
 font
 
 text
 
 pos
 
 cmd
 
 enabled
 
 loc
 
 image_normal
 
 image_pressed
 
 image_disabled
 
 image
 
 rect
 
 surface_backup
 

Detailed Description

menu item 

Constructor & Destructor Documentation

def menu.MenuButton.__init__ (   self,
  pos = 0,
  text = "",
  cmd = "",
  enabled = True,
  loc = (0,0 
)
Element of menu. Parameters:
    pos=position of item inside menu
    text=text to display
    cmd=function to ejecute when click on item
    enabled=True/False to enable/disable item
    loc=(X,Y) coordinates (to use this, put pos=-1) relative to 0,0 menu_bg

Member Function Documentation

def menu.MenuButton.default (   self)
def menu.MenuButton.draw (   self)
def menu.MenuButton.onmouse (   self)
def menu.MenuButton.onmousedown (   self)
def menu.MenuButton.onmouseout (   self)
def menu.MenuButton.onmouseup (   self)
def menu.MenuButton.update (   self)

Member Data Documentation

menu.MenuButton.cmd
menu.MenuButton.color
menu.MenuButton.enabled
menu.MenuButton.font
menu.MenuButton.image
menu.MenuButton.image_disabled
menu.MenuButton.image_normal
menu.MenuButton.image_pressed
menu.MenuButton.loc
menu.MenuButton.pos
menu.MenuButton.rect
menu.MenuButton.surface_backup
menu.MenuButton.text
menu.MenuButton.type

The documentation for this class was generated from the following file: