XPlor/definitions/cod/localize.xscript

20 lines
437 B
Plaintext
Raw Normal View History

2026-01-01 22:18:40 -05:00
type localize [display="Localize Entry"]
{
// Value comes first in the structure
2026-01-01 22:18:40 -05:00
i32 value_ptr [ui, readonly, display="Value Ptr"];
// Then name
i32 name_ptr [ui, readonly, display="Name Ptr"];
// Parse inline value
2026-01-01 22:18:40 -05:00
if (value_ptr == -1) {
value = cstring() [ui, readonly, display="Value"];
}
// Parse inline name
if (name_ptr == -1) {
name = cstring() [ui, readonly, display="Name"];
_name = name;
}
2026-01-01 22:18:40 -05:00
}