Exemple #1
0
	//------------------------------------------------------------------------------------
	void TimeStateTool::hideUI()
	{
		MenuBar* mb = MenuBarList::getSingleton().getMenuBar("EditorMenuBar");
		mb->removeItem("TimeState");
		mb->removeItem("Sky");
		showTimeStatePanel(false);
	}
Exemple #2
0
	//------------------------------------------------------------------------------------
	QuitTool::~QuitTool()
	{
		MenuBar* mb = MenuBarList::getSingleton().getMenuBar("EditorMenuBar");
		mb->removeItem("Quit");
		mb->removeItem("QuitSep");
		mb->removeItem("File");
	}
	//------------------------------------------------------------------------------------
	WorldObjectPropertiesTool::~WorldObjectPropertiesTool()
	{
		MenuBar* mb = MenuBarList::getSingleton().getMenuBar("EditorMenuBar");
		mb->removeItem("WorldObjectProperties");
		mb->removeItem("WorldObjectPropertiesSep");
		mb->removeItem("Windows");
	}
	//------------------------------------------------------------------------------------
	CameraPositionTool::~CameraPositionTool()
	{
		MenuBar* mb = MenuBarList::getSingleton().getMenuBar("EditorMenuBar");

		size_t i;
		for(i = 0; i != NUM_POSITIONS; ++i)
		{
			mb->removeItem( STORE_MENU_ITEM_ID[i] );
		}

		mb->removeItem( MENU_SEPARATOR_ID[0] );
		mb->removeItem( MENU_SEPARATOR_ID[1] );

		for(i = 0; i != NUM_POSITIONS; ++i)
		{
			mb->removeItem( RESTORE_MENU_ITEM_ID[i] );
		}

		mb->removeItem( POPUP_MENU_ID );
		mb->removeItem( ROOT_MENU_ID );
	}
	//------------------------------------------------------------------------------------
	FrameStatsConfigTool::~FrameStatsConfigTool()
	{
		MenuBar* mb = MenuBarList::getSingleton().getMenuBar("EditorMenuBar");
		mb->removeItem("FrameStatsConfig");
		mb->removeItem("Settings");
	}
 //------------------------------------------------------------------------------------
 void EnvironmentTool::hideUI()
 {
   MenuBar* mb = MenuBarList::getSingleton().getMenuBar("EditorMenuBar");
   mb->removeItem("EnvironmentParams");
   mb->removeItem("Sky");
 }