Combine commonly created scroll list menus into single menus identified by menu_num instead of their menu_file
sScrollListMenus is an array such that it will hold more menus in the future, such as groups. fmenu_file still exists and will still exhibit its old behavior if used.
This commit is contained in:
@@ -239,6 +239,7 @@ extern BOOL gDebugTextEditorTips;
|
||||
extern BOOL gShowOverlayTitle;
|
||||
extern BOOL gOcclusionCull;
|
||||
extern AIHTTPView* gHttpView;
|
||||
extern LLMenuGL* sScrollListMenus[1];
|
||||
//
|
||||
// Globals
|
||||
//
|
||||
@@ -781,6 +782,10 @@ void init_menus()
|
||||
|
||||
gMenuHolder->addChild(gLoginMenuBarView);
|
||||
|
||||
// Singu Note: Initialize common ScrollListMenus here
|
||||
sScrollListMenus[0] = LLUICtrlFactory::getInstance()->buildMenu("menu_avs_list.xml", gMenuHolder);
|
||||
//sScrollListMenus[1] = LLUICtrlFactory::getInstance()->buildMenu("menu_groups_list.xml"); // Singu TODO
|
||||
|
||||
LLView* ins = gMenuBarView->getChildView("insert_world", true, false);
|
||||
ins->setVisible(false);
|
||||
ins = gMenuBarView->getChildView("insert_agent", true, false);
|
||||
|
||||
Reference in New Issue
Block a user