mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-10-31 05:01:05 +01:00 
			
		
		
		
	TreeNode: Added ImGuiTreeNodeFlags_FramePadding flag
This commit is contained in:
		| @@ -429,7 +429,8 @@ void ImGui::ShowTestWindow(bool* p_open) | ||||
|                     else | ||||
|                     { | ||||
|                         // Leaf: The only reason we have a TreeNode at all is to allow selection of the leaf. Otherwise we can use BulletText() or TreeAdvanceToLabelPos()+Text(). | ||||
|                         ImGui::TreeNodeEx((void*)(intptr_t)i, node_flags | ImGuiTreeNodeFlags_Leaf | ImGuiTreeNodeFlags_NoTreePushOnOpen, "Selectable Leaf %d", i); | ||||
|                         node_flags |= ImGuiTreeNodeFlags_Leaf | ImGuiTreeNodeFlags_NoTreePushOnOpen; // ImGuiTreeNodeFlags_Bullet | ||||
|                         ImGui::TreeNodeEx((void*)(intptr_t)i, node_flags, "Selectable Leaf %d", i); | ||||
|                         if (ImGui::IsItemClicked())  | ||||
|                             node_clicked = i; | ||||
|                     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user