Public Member Functions | |
| def | __init__ |
| def | up |
| def | down |
| def | left |
| def | right |
| def | press |
| def | draw |
Public Attributes | |
| items | |
| backg | |
| musicVol | |
| soundVol | |
| state | |
| fontType | |
| fontSizeNSelec | |
| fontSizeSelec | |
| spread | |
| fontColor | |
Class for generating volume menu based on
a background image and the current volume
It takes as input a background image and a dictionary containing the
current volume
We will assume that the only way the volume can be changed throughout the game
is through the class methods
If one needs to change the text size or color, one can make use of the
class attributes
| def volume.Volume.down | ( | self | ) |
moving down on the menu
| def volume.Volume.draw | ( | self, | |
| screen | |||
| ) |
drawing the menu
| def volume.Volume.left | ( | self | ) |
moving "left" on the menu
| def volume.Volume.press | ( | self | ) |
whenever the selected item is pressed
| def volume.Volume.right | ( | self | ) |
moving "right" on the menu
| def volume.Volume.up | ( | self | ) |
moving up on the menu
1.7.6.1