/* * BSD 2-Clause “Simplified” License * Copyright (c) 2019, Aldrik Ramaekers, aldrik.ramaekers@protonmail.com * All rights reserved. */ #ifndef INCLUDE_DATA #define INCLUDE_DATA #define FONT_SIZE_SPACING 4 #define FONT_COUNT 20 #define FONT_START 8 image* img_logo_fruitosis; image* img_truck_unknown; image* img_iveco_stralis_activespace; image* img_iveco_stralis_hiway; image* img_mercedes_actos; image* img_mercedes_new_actos; image* img_volvo_aero; image* img_volvo_globetrotter; image* img_logo_mercedes; image* img_logo_iveco; image* img_logo_volvo; image* img_white; image* img_location_pin; image* img_city; image* img_boat; image* img_star; image* img_road; image* img_timer; image* img_coins; image* img_arrow_left_rounded; image* img_globe; image* img_questionmark; image* img_checkmark; image* img_grid; image* img_lock; image* img_arrow_left; image* img_arrow_right; image* img_logo; image* img_pause; image* img_close; image* img_back; image* img_locationdot; image* img_dot; image* img_carwheel; image* img_graph; image* img_list; image* img_bank; image* img_tabitem; image* img_portrait; image* img_resume; image* img_signature; image* img_hired; image* img_denied; image* img_world_map; image* img_invest; image* img_shadow; image* img_handshake; image* img_resume_action; image* img_entry; image* img_exit; image* img_button_bottom; image* img_button_top; image* img_button_left; image* img_button_right; image* img_button_bottomleft; image* img_button_bottomright; image* img_button_topleft; image* img_button_topright; image* img_panel_bottom; image* img_panel_top; image* img_panel_left; image* img_panel_right; image* img_panel_bottomleft; image* img_panel_bottomright; image* img_panel_topleft; image* img_panel_topright; #define PORTRAIT_MAX_HAIR_COUNT 5 image* img_portrait_body; image* img_portrait_head; image* img_portrait_hair[PORTRAIT_MAX_HAIR_COUNT]; font* font_regular[FONT_COUNT]; sound* snd_click; sound* snd_click2; sound* snd_click3; sound* snd_event; sound* snd_accelerate; sound* snd_bell; #define SOUNGS_COUNT 30 sound* snd_songs[SOUNGS_COUNT]; void data_load(); font empty_font_d = {0}; #define SIZE_RDF(_w, _size) ((s32)(_size * (_w) + 3) & ~0x03) #define SIZE_RD(_w, _size) ((s32)((_size * (_w/1280.0f)) + 3) & ~0x03) #define FONT_REGULAR(_size) (_size < FONT_START || _size > (FONT_START+(FONT_SIZE_SPACING*FONT_COUNT))) ? (&empty_font_d) : font_regular[(_size-FONT_START)/FONT_SIZE_SPACING]; #endif