void toggleRadio(MyGUI::MenuItem* current) {
		MyGUI::VectorWidgetPtr widgets;
		_menuBar->findWidgets(current->getName(), widgets);
		for (size_t i = 0; i < widgets.size(); i++) {
			MyGUI::MenuItem *item = widgets[i]->castType<MyGUI::MenuItem>();
			item->setItemChecked(item == current);
		}
	}
	void MainMenuControlLE::updateMenuScale(size_t _scale)
	{
		MyGUI::MenuItem* scaleMenu = mBar->findItemById("Scale", true);
		if (scaleMenu != nullptr)
		{
			MyGUI::MenuControl* popup = scaleMenu->getItemChild();
			if (popup != nullptr)
			{
				std::string id = MyGUI::utility::toString("Command_ChangeScale.", (int)_scale);
				for (size_t index = 0; index < popup->getItemCount(); index ++)
				{
					MyGUI::MenuItem* item = popup->getItemAt(index);
					item->setItemChecked(item->getItemId() == id);
				}
			}
		}
	}