mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-10-31 13:11:05 +01:00 
			
		
		
		
	| @@ -7171,12 +7171,9 @@ void ImGui::BeginDisabled(bool disabled) | |||||||
| { | { | ||||||
|     ImGuiContext& g = *GImGui; |     ImGuiContext& g = *GImGui; | ||||||
|     bool was_disabled = (g.CurrentItemFlags & ImGuiItemFlags_Disabled) != 0; |     bool was_disabled = (g.CurrentItemFlags & ImGuiItemFlags_Disabled) != 0; | ||||||
|  |     g.DisabledAlphaBackup = g.Style.Alpha; | ||||||
|     if (!was_disabled && disabled) |     if (!was_disabled && disabled) | ||||||
|     { |         g.Style.Alpha *= g.Style.DisabledAlpha; // PushStyleVar(ImGuiStyleVar_Alpha, g.Style.Alpha * g.Style.DisabledAlpha); | ||||||
|         //PushStyleVar(ImGuiStyleVar_Alpha, g.Style.Alpha * g.Style.DisabledAlpha); |  | ||||||
|         g.DisabledAlphaBackup = g.Style.Alpha; |  | ||||||
|         g.Style.Alpha *= g.Style.DisabledAlpha; |  | ||||||
|     } |  | ||||||
|     //PushItemFlag(ImGuiItemFlags_Disabled, was_disabled || disabled); |     //PushItemFlag(ImGuiItemFlags_Disabled, was_disabled || disabled); | ||||||
|     g.CurrentItemFlags |= ImGuiItemFlags_Disabled; |     g.CurrentItemFlags |= ImGuiItemFlags_Disabled; | ||||||
|     g.ItemFlagsStack.push_back(g.CurrentItemFlags); |     g.ItemFlagsStack.push_back(g.CurrentItemFlags); | ||||||
|   | |||||||
							
								
								
									
										2
									
								
								imgui.h
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								imgui.h
									
									
									
									
									
								
							| @@ -62,7 +62,7 @@ Index of this file: | |||||||
| // Version | // Version | ||||||
| // (Integer encoded as XYYZZ for use in #if preprocessor conditionals. Work in progress versions typically starts at XYY99 then bounce up to XYY00, XYY01 etc. when release tagging happens) | // (Integer encoded as XYYZZ for use in #if preprocessor conditionals. Work in progress versions typically starts at XYY99 then bounce up to XYY00, XYY01 etc. when release tagging happens) | ||||||
| #define IMGUI_VERSION               "1.84" | #define IMGUI_VERSION               "1.84" | ||||||
| #define IMGUI_VERSION_NUM           18400 | #define IMGUI_VERSION_NUM           18401 | ||||||
| #define IMGUI_CHECKVERSION()        ImGui::DebugCheckVersionAndDataLayout(IMGUI_VERSION, sizeof(ImGuiIO), sizeof(ImGuiStyle), sizeof(ImVec2), sizeof(ImVec4), sizeof(ImDrawVert), sizeof(ImDrawIdx)) | #define IMGUI_CHECKVERSION()        ImGui::DebugCheckVersionAndDataLayout(IMGUI_VERSION, sizeof(ImGuiIO), sizeof(ImGuiStyle), sizeof(ImVec2), sizeof(ImVec4), sizeof(ImDrawVert), sizeof(ImDrawIdx)) | ||||||
| #define IMGUI_HAS_TABLE | #define IMGUI_HAS_TABLE | ||||||
| #define IMGUI_HAS_VIEWPORT          // Viewport WIP branch | #define IMGUI_HAS_VIEWPORT          // Viewport WIP branch | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user