mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-10-31 21:21:06 +01:00 
			
		
		
		
	Minor API comments and tweaks, standardize index used in imgui.h. Tables: tweaked TableSetupColumn() assert to use IM_ASSERT_USER_ERROR().
This commit is contained in:
		| @@ -5516,13 +5516,13 @@ void ImGui::ShowAboutWindow(bool* p_open) | ||||
| bool ImGui::ShowStyleSelector(const char* label) | ||||
| { | ||||
|     static int style_idx = -1; | ||||
|     if (ImGui::Combo(label, &style_idx, "Classic\0Dark\0Light\0")) | ||||
|     if (ImGui::Combo(label, &style_idx, "Dark\0Light\0Classic\0")) | ||||
|     { | ||||
|         switch (style_idx) | ||||
|         { | ||||
|         case 0: ImGui::StyleColorsClassic(); break; | ||||
|         case 1: ImGui::StyleColorsDark(); break; | ||||
|         case 2: ImGui::StyleColorsLight(); break; | ||||
|         case 0: ImGui::StyleColorsDark(); break; | ||||
|         case 1: ImGui::StyleColorsLight(); break; | ||||
|         case 2: ImGui::StyleColorsClassic(); break; | ||||
|         } | ||||
|         return true; | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user