- Volition VPP: Unified BE/LE types using inheritance pattern - THQA PAK: Child types now inherit byte order from parent - Various XScript definition updates and fixes Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
23 lines
418 B
Plaintext
23 lines
418 B
Plaintext
type localize ui("Localize Entry")
|
|
{
|
|
const PTR_INLINE = -1;
|
|
|
|
i32 value_ptr ui("Value Ptr");
|
|
i32 name_ptr ui("Name Ptr");
|
|
|
|
// Inline data
|
|
if (value_ptr == PTR_INLINE) {
|
|
value = cstring() ui("Value");
|
|
}
|
|
if (name_ptr == PTR_INLINE) {
|
|
name = cstring() ui("Name");
|
|
set_name(name);
|
|
}
|
|
|
|
// Display value as text
|
|
if (value_ptr == PTR_INLINE) {
|
|
set_viewer("text");
|
|
set_text(value);
|
|
}
|
|
}
|