2026-01-07 16:36:40 -05:00
|
|
|
type gfximageloaddef [display="GFX Image Load Def"]
|
|
|
|
|
{
|
2026-01-11 12:09:57 -05:00
|
|
|
u8 level_count;
|
|
|
|
|
|
|
|
|
|
ui("level_count", "Level Count");
|
|
|
|
|
u8 flags;
|
|
|
|
|
|
|
|
|
|
ui("flags", "Flags");
|
2026-01-07 16:36:40 -05:00
|
|
|
|
|
|
|
|
// Dimensions (3 x u16)
|
2026-01-11 12:09:57 -05:00
|
|
|
u16 dimension_0;
|
|
|
|
|
|
|
|
|
|
ui("dimension_0", "Dimension 0");
|
|
|
|
|
u16 dimension_1;
|
|
|
|
|
|
|
|
|
|
ui("dimension_1", "Dimension 1");
|
|
|
|
|
u16 dimension_2;
|
|
|
|
|
|
|
|
|
|
ui("dimension_2", "Dimension 2");
|
2026-01-07 16:36:40 -05:00
|
|
|
|
2026-01-11 12:09:57 -05:00
|
|
|
u32 format;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ui("format", "Format");
|
2026-01-07 16:36:40 -05:00
|
|
|
|
|
|
|
|
// Resource size - when inline, this contains the size of pixel data that follows
|
2026-01-11 12:09:57 -05:00
|
|
|
i32 resource_size;
|
|
|
|
|
|
|
|
|
|
ui("resource_size", "Resource Size");
|
2026-01-07 16:36:40 -05:00
|
|
|
|
|
|
|
|
// Read pixel data if present (resource_size > 0 indicates inline data)
|
|
|
|
|
if (resource_size > 0) {
|
2026-01-11 12:09:57 -05:00
|
|
|
pixel_data = read(resource_size);
|
|
|
|
|
|
|
|
|
|
ui("pixel_data", "Pixel Data");
|
2026-01-07 16:36:40 -05:00
|
|
|
}
|
|
|
|
|
}
|