mirror of
				https://github.com/flame-engine/flame.git
				synced 2025-10-31 08:56:01 +08:00 
			
		
		
		
	 d1777b7a9e
			
		
	
	d1777b7a9e
	
	
	
		
			
			This PR addresses the concerns in https://github.com/flame-engine/flame/issues/3488 For convenience, here is the relevant text. > It is a fairly common feature for a game to "type out" dialogue within a TextBoxComponent (as the behavior would be if timePerChar > 0, but also allow the user to skip that type-out effect, and display the dialogue in its entirety (as the behavior would be if timePerChar == 0). This PR implements a setter for TextBoxComponent.boxConfig, allowing for the TextBoxConfig to be changed after TextBoxComponent is instantiated. The `_boxConfig` has been made non-final to allow this field to be modifiable. Additionally, a `skip` method is implemented which more explicitly provides the intended skipping behavior. --------- Co-authored-by: Lukas Klingsbo <me@lukas.fyi>