-
Notifications
You must be signed in to change notification settings - Fork 20
VRMenu
Häfner edited this page May 11, 2015
·
2 revisions
The menu module allows you to quickly set up a menu with sprites:
import VR
m = VR.Menu()
m.setLeafType('SPRITE', [0.3, 0.4])
# the leaf type can only be 'SPRITE' for now, the second parameter is the size
m.setLayout('LINEAR', 0.1)
# the layout can be 'LINEAR' or 'CIRCULAR', the second parameter is the distance between sprites
m.append('myTextures/menu1')
m.append('myTextures/menu2')
m3 = m.append('myTextures/menu3')
m3.append('myTextures/menu31')
m3.append('myTextures/menu32')