mirror of
				https://github.com/hedge-dev/UnleashedRecomp.git
				synced 2025-10-30 07:11:05 +00:00 
			
		
		
		
	Change progress bar animation on installer. (#299)
This commit is contained in:
		
							parent
							
								
									9549ba54aa
								
							
						
					
					
						commit
						e7cc5a858e
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -1275,8 +1275,9 @@ static void DrawInstallingProgress() | |||
| { | ||||
|     if (g_currentPage == WizardPage::Installing) | ||||
|     { | ||||
|         constexpr float ProgressSpeed = 0.1f; | ||||
|         float ratioTarget = g_installerProgressRatioTarget.load(); | ||||
|         g_installerProgressRatioCurrent += (4.0f * ImGui::GetIO().DeltaTime * (ratioTarget - g_installerProgressRatioCurrent)); | ||||
|         g_installerProgressRatioCurrent += std::min(ratioTarget - g_installerProgressRatioCurrent, ProgressSpeed * ImGui::GetIO().DeltaTime); | ||||
|         DrawProgressBar(g_installerProgressRatioCurrent); | ||||
| 
 | ||||
|         if (g_installerFinished) | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Darío
						Darío