WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Is that possible to change the scale and position of vizmenu? (https://forum.worldviz.com/showthread.php?t=5762)

haohaoxuexi1 06-25-2016 10:50 AM

Is that possible to change the scale and position of vizmenu?
 
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:

Code:

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:

Code:

#Scale the menu up
vizmenu.MENU_FONT_SIZE = 20



All times are GMT -7. The time now is 11:10 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2021, vBulletin Solutions, Inc.
Copyright 2002-2018 WorldViz LLC