mirror of
https://github.com/nicbarker/clay.git
synced 2025-04-07 23:08:03 +00:00
[Bindings/Odin] Add support for local ids to odin bindings
This commit is contained in:
parent
09d581a523
commit
8a57153700
@ -458,3 +458,7 @@ MakeString :: proc(label: string) -> String {
|
||||
ID :: proc(label: string, index: u32 = 0) -> ElementId {
|
||||
return _HashString(MakeString(label), index, 0)
|
||||
}
|
||||
|
||||
ID_LOCAL :: proc(label: string, index: u32 = 0) -> ElementId {
|
||||
return _HashString(MakeString(label), index, _GetParentElementId())
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user