mirror of
				https://github.com/nicbarker/clay.git
				synced 2025-11-04 08:36:17 +00:00 
			
		
		
		
	Merge 3c2082e309 into fd97d8179e
				
					
				
			This commit is contained in:
		
						commit
						a7ca35b562
					
				| 
						 | 
				
			
			@ -439,7 +439,12 @@ UI_AutoId :: proc() -> proc (config: ElementDeclaration) -> bool {
 | 
			
		|||
 | 
			
		||||
UI :: proc{UI_WithId, UI_AutoId};
 | 
			
		||||
 | 
			
		||||
Text :: proc($text: string, config: ^TextElementConfig) {
 | 
			
		||||
Text :: proc {
 | 
			
		||||
	TextStatic,
 | 
			
		||||
	TextDynamic,
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
TextStatic :: proc($text: string, config: ^TextElementConfig) {
 | 
			
		||||
	wrapped := MakeString(text)
 | 
			
		||||
	wrapped.isStaticallyAllocated = true
 | 
			
		||||
	_OpenTextElement(wrapped, config)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue