mirror of
https://github.com/nicbarker/clay.git
synced 2025-09-18 04:26:18 +00:00
Odin binding: removed comptime from text parameter
This commit is contained in:
parent
58491394ca
commit
10328fde95
|
@ -430,7 +430,7 @@ UI :: proc() -> proc (config: ElementDeclaration) -> bool {
|
||||||
return ConfigureOpenElement
|
return ConfigureOpenElement
|
||||||
}
|
}
|
||||||
|
|
||||||
Text :: proc($text: string, config: ^TextElementConfig) {
|
Text :: proc(text: string, config: ^TextElementConfig) {
|
||||||
wrapped := MakeString(text)
|
wrapped := MakeString(text)
|
||||||
wrapped.isStaticallyAllocated = true
|
wrapped.isStaticallyAllocated = true
|
||||||
_OpenTextElement(wrapped, config)
|
_OpenTextElement(wrapped, config)
|
||||||
|
@ -486,4 +486,4 @@ ID :: proc(label: string, index: u32 = 0) -> ElementId {
|
||||||
|
|
||||||
ID_LOCAL :: proc(label: string, index: u32 = 0) -> ElementId {
|
ID_LOCAL :: proc(label: string, index: u32 = 0) -> ElementId {
|
||||||
return _HashString(MakeString(label), index, _GetParentElementId())
|
return _HashString(MakeString(label), index, _GetParentElementId())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue