- 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>
28 lines
652 B
Plaintext
28 lines
652 B
Plaintext
type font ui("Font")
|
|
{
|
|
const PTR_INLINE = -1;
|
|
|
|
i32 name_ptr ui("Name Ptr");
|
|
i32 pixel_height ui("Pixel Height");
|
|
i32 glyph_count ui("Glyph Count");
|
|
i32 material_ptr ui("Material Ptr");
|
|
i32 glow_material_ptr ui("Glow Material Ptr");
|
|
i32 glyphs_ptr ui("Glyphs Ptr");
|
|
|
|
// Inline data
|
|
if (name_ptr == PTR_INLINE) {
|
|
name = cstring() ui("Name");
|
|
set_name(name);
|
|
}
|
|
if (material_ptr == PTR_INLINE) {
|
|
material = parse_here("material");
|
|
}
|
|
if (glow_material_ptr == PTR_INLINE) {
|
|
glow_material = parse_here("material");
|
|
}
|
|
|
|
if (glyphs_ptr == PTR_INLINE && glyph_count > 0) {
|
|
array[glyph_count] glyphs: glyph;
|
|
}
|
|
}
|