Skip to content

NazS2/WorldVizMenu

Repository files navigation

World Viz 3d Menu

The aim of this repository

This class is made to provide a 3d menu that is fairly customizable in term of menu items actions and behaviours. The menu should be available in two style. one of them that follows the users avatar all the time. and the other one works like a box that is click-able so options pops up.

classes

  • menuSystem: is the main class that receives the modules & menu_itmes
  • menu_item: is the menu items class is used to configure each menu-items behaviour.

usage

main.py is used for testing the system. ```python menuItems = [ D3_menu.menu_item("T1",action = test), D3_menu.menu_item(viz.add('basketball.osgb')), D3_menu.menu_item("T3",description="thi is the bac"), D3_menu.menu_item("T4",description="thi is the bac"), D3_menu.menu_item("T5"), D3_menu.menu_item("T6") ]

#setParent works. You need to send a smart Opject to be the parent !! my_menu = D3_menu.menu_system(parent=rawAvatar['head_and_hand'],loc=[0.5,1.5,1], pointer = rawTool['grabber'],itemsList=menuItems,Debug=False)

About

A class that can be used as an addon on vizconnect to support 3d menus.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages