- spriteset(VEH_ID(slice_set), SPRITE_FILE(_8bpp_normal.png)) {
- #if SLICE == -1
- view_normal(16, 0, 0, 4,
- #elif SLICE == 0
- view_normal(16, 0, 4, 12,
- #else
- view_normal(16, 0, 12, 16,
- #endif
- 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0,
- )
- }
- //alternative_sprites(VEH_ID(slice_set), ZOOM_LEVEL_NORMAL, SPRITE_FILE(32bpp_z2.png)) {
- //#if SLICE == -1
- // view_normal(16, 0, 0, 4,
- //#elif SLICE == 0
- // view_normal(16, 0, 4, 12,
- //#else
- // view_normal(16, 0, 12, 16,
- //#endif
- // 0, 0, 0, 0, 0, 0, 0, 0,
- // 0, 0, 0, 0, 0, 0, 0, 0,
- // )
- //}
- spritegroup VEH_ID(slice_group) {
- loading: VEH_ID(slice_set);
- loaded: VEH_ID(slice_set);
- }
- spriteset(VEH_ID(gui_set), SPRITE_FILE(_8bpp_normal.png)) {
- #if SLICE == -1
- view_normal(16, 0, 0, 16,
- #elif SLICE == 0
- view_normal(16, 4, 0, 16,
- #else
- view_normal(16,12, 0, 16,
- #endif
- 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0,
- )
- }
- //alternative_sprites(VEH_ID(gui_set), ZOOM_LEVEL_NORMAL, 32BPP_FILENAME) {
- //#if SLICE == -1
- // view_normal(16, 0, 0, 16,
- //#elif SLICE == 0
- // view_normal(16, 4, 0, 16,
- //#else
- // view_normal(16,12, 0, 16,
- //#endif
- // 0, 0, 0, 0, 0, 0, 0, 0,
- // 0, 0, 0, 0, 0, 0, 0, 0,
- // )
- //}
- spritegroup VEH_ID(gui_group) {
- loading: VEH_ID(gui_set);
- loaded: VEH_ID(gui_set);
- }
- #if SLICE == 0
- spriteset(VEH_ID(set), SPRITE_FILE(_8bpp_normal.png)) {
- view_normal(16, 4, 0, 16,
- 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0,
- )
- }
- //alternative_sprites(VEH_ID(set), ZOOM_LEVEL_NORMAL, 32BPP_FILENAME) {
- // view_normal(16, 4, 0, 16,
- // 0, 0, 0, 0, 0, 0, 0, 0,
- // 0, 0, 0, 0, 0, 0, 0, 0,
- // )
- //}
- spritegroup VEH_ID(group) {
- loading: VEH_ID(set);
- loaded: VEH_ID(set);
- }
- spriteset(VEH_ID(1_set_12), SPRITE_FILE(_8bpp_normal.png)) {
- view_left_2(16, 4, 0, 16,
- 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0,
- )
- }
- //alternative_sprites(VEH_ID(1_set_12), ZOOM_LEVEL_NORMAL, 32BPP_FILENAME) {
- // view_left_2(16, 4, 0, 16,
- // 0, 0, 0, 0, 0, 0, 0, 0,
- // 0, 0, 0, 0, 0, 0, 0, 0,
- // )
- //}
- spritegroup VEH_ID(1_group) {
- loading: VEH_ID(1_set_12);
- loaded: VEH_ID(1_set_12);
- }
- spriteset(VEH_ID(2_set_12), SPRITE_FILE(_8bpp_normal.png)) {
- view_left_1(16, 4, 0, 16,
- 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0,
- )
- }
- //alternative_sprites(VEH_ID(2_set_12), ZOOM_LEVEL_NORMAL, 32BPP_FILENAME) {
- // view_left_1(16, 4, 0, 16,
- // 0, 0, 0, 0, 0, 0, 0, 0,
- // 0, 0, 0, 0, 0, 0, 0, 0,
- // )
- //}
- spritegroup VEH_ID(2_group) {
- loading: VEH_ID(2_set_12);
- loaded: VEH_ID(2_set_12);
- }
- spriteset(VEH_ID(3_set_12), SPRITE_FILE(_8bpp_normal.png)) {
- view_right_2(16, 4, 0, 16,
- 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0,
- )
- }
- //alternative_sprites(VEH_ID(3_set_12), ZOOM_LEVEL_NORMAL, 32BPP_FILENAME) {
- // view_right_2(16, 4, 0, 16,
- // 0, 0, 0, 0, 0, 0, 0, 0,
- // 0, 0, 0, 0, 0, 0, 0, 0,
- // )
- //}
- spritegroup VEH_ID(3_group) {
- loading: VEH_ID(3_set_12);
- loaded: VEH_ID(3_set_12);
- }
- spriteset(VEH_ID(4_set_12), SPRITE_FILE(_8bpp_normal.png)) {
- view_right_1(16, 4, 0, 16,
- 0, 0, 0, 0, 0, 0, 0, 1,
- 0, 0, 0, 0, 0, 0, 0, 0,
- )
- }
- //alternative_sprites(VEH_ID(4_set_12), ZOOM_LEVEL_NORMAL, 32BPP_FILENAME) {
- // view_right_1(16, 4, 0, 16,
- // 0, 0, 0, 0, 0, 0, 0, 1,
- // 0, 0, 0, 0, 0, 0, 0, 0,
- // )
- //}
- spritegroup VEH_ID(4_group) {
- loading: VEH_ID(4_set_12);
- loaded: VEH_ID(4_set_12);
- }
- #endif
- switch(FEAT_TRAINS, SELF, VEH_ID(height_switch), ((var[0x62, 24, 0x000000FF, -1 - (SLICE)] - var[0x62, 24, 0x000000FF, -0 - (SLICE)]) & 0xFF) << 8 | ((var[0x62, 24, 0x000000FF, -0 - (SLICE)] - var[0x62, 24, 0x000000FF, 1 - (SLICE)]) & 0xFF)) {
- 0 : VEH_ID(slice_group);
- #if SLICE == 0
- VEH_ID(group);
- #else
- inv_dummy_group;
- #endif
- }
- switch(FEAT_TRAINS, SELF, VEH_ID(direction_switch), ((var[0x62, 0, 0x0000000F, -1 - (SLICE)] - var[0x62, 0, 0x0000000F, -0 - (SLICE)]) & 0xF) << 8 | ((var[0x62, 0, 0x0000000F, -0 - (SLICE)] - var[0x62, 0, 0x0000000F, 1 - (SLICE)]) & 0xF)) {
- #if SLICE == 0
- 0x00000000: VEH_ID(height_switch);
- 0x00000001: VEH_ID(1_group);
- 0x00000F00: VEH_ID(2_group);
- 0x0000000F: VEH_ID(3_group);
- 0x00000100: VEH_ID(4_group);
- VEH_ID(group);
- #else
- 0x00000000: VEH_ID(height_switch);
- inv_dummy_group;
- #endif
- }
- switch(FEAT_TRAINS, SELF, VEH_ID(gfx_switch), extra_callback_info1 & 0xFF) {
- 0 : VEH_ID(direction_switch);
- VEH_ID(gui_group);
- }