PDA

View Full Version : Is that possible to change the scale and position of vizmenu?


haohaoxuexi1
06-25-2016, 10:50 AM
I am wandering how to change the scale and position of the vizmenu

In the tutorial, it teaches us how to add vizmenu but when i write the code "menu.setScale([2]*3)", it came out there is no setScale attribute to menu.

Jeff
06-26-2016, 12:33 AM
By default, the menu is aligned to the left of the window. It also can be aligned to the center:

menu = vizmenu.add()
menu.setAlignment(vizmenu.CENTER)

You can change the font size used by vizmenu to scale menus up/down. The default font size is 16:

#Scale the menu up
vizmenu.MENU_FONT_SIZE = 20