This commit is contained in:
Hayden Gray 2025-10-23 08:56:05 +02:00 committed by GitHub
commit a7ca35b562
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)