mirror of
				https://github.com/hedge-dev/UnleashedRecomp.git
				synced 2025-10-30 07:11:05 +00:00 
			
		
		
		
	installer_wizard: fix source button text and alpha
This commit is contained in:
		
							parent
							
								
									11d0fd2f9c
								
							
						
					
					
						commit
						52558a674e
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		|  | @ -952,10 +952,11 @@ static void DrawSourceButton(ButtonColumn buttonColumn, float yRatio, const char | |||
|     ImVec2 min = { minX, g_aspectRatioOffsetY + Scale(CONTAINER_Y + CONTAINER_HEIGHT - CONTAINER_BUTTON_GAP - BUTTON_HEIGHT - minusY) }; | ||||
|     ImVec2 max = { maxX, g_aspectRatioOffsetY + Scale(CONTAINER_Y + CONTAINER_HEIGHT - CONTAINER_BUTTON_GAP - minusY) }; | ||||
| 
 | ||||
|     auto alphaMotion = ComputeMotionInstaller(g_appearTime, g_disappearTime, CONTAINER_INNER_TIME, CONTAINER_INNER_DURATION); | ||||
|     auto lightSize = Scale(14); | ||||
| 
 | ||||
|     DrawButton(min, max, sourceText, true, sourceSet, buttonPressed, (max.x - min.x) - lightSize * 10); | ||||
|     DrawToggleLight({ min.x + lightSize, min.y + ((max.y - min.y) - lightSize) / 2 + Scale(1) }, sourceSet, sourceSet ? 1.0f : 0.5f); | ||||
|     DrawButton(min, max, sourceText, true, sourceSet, buttonPressed, ((max.x - min.x) * 0.7) / g_aspectRatioScale); | ||||
|     DrawToggleLight({ min.x + lightSize, min.y + ((max.y - min.y) - lightSize) / 2 + Scale(1) }, sourceSet, (sourceSet ? 1.0f : 0.5f) * alphaMotion); | ||||
| } | ||||
| 
 | ||||
| static void DrawProgressBar(float progressRatio) | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Hyper
						Hyper