mirror of
				https://github.com/AlexandreRouma/SDRPlusPlus.git
				synced 2025-11-04 10:49:11 +01:00 
			
		
		
		
	Added menu order locked tooltip for distracted people
This commit is contained in:
		@@ -88,12 +88,16 @@ bool Menu::draw(bool updateStates) {
 | 
			
		||||
            clickedMenuName = opt.name;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        if (menuClicked && ImGui::IsMouseDragging(ImGuiMouseButton_Left) && draggedMenuName.empty() && clickedMenuName == opt.name && !locked) {
 | 
			
		||||
        bool menuDragged = (menuClicked && ImGui::IsMouseDragging(ImGuiMouseButton_Left) && draggedMenuName.empty() && clickedMenuName == opt.name);
 | 
			
		||||
        if (menuDragged && !locked) {
 | 
			
		||||
            draggedMenuName = opt.name;
 | 
			
		||||
            draggedId = rawId - 1;
 | 
			
		||||
            draggedOpt = opt;
 | 
			
		||||
            continue;
 | 
			
		||||
        }
 | 
			
		||||
        else if (menuDragged) {
 | 
			
		||||
            ImGui::SetTooltip("Menu Order Locked!");
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        // Draw menu header and menu content. There is a lot of boilerplate because the checkbox has to be drawn before the menu, TODO: fix
 | 
			
		||||
        if (updateStates) { ImGui::SetNextItemOpen(opt.open); }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user