1 /* ---------------------------------------------------------------------- * 2 * screen_interface.h 3 * This file is part of lincity. 4 * Lincity is copyright (c) I J Peters 1995-1997, (c) Greg Sharp 1997-2001. 5 * ---------------------------------------------------------------------- */ 6 #ifndef __screen_interface_h__ 7 #define __screen_interface_h__ 8 9 //#include "cliglobs.h" 10 11 #define MONTHGRAPH_STYLE_ECONOMY 1 12 #define MONTHGRAPH_STYLE_SUSTAIN 2 13 14 #define MONTHGRAPH_STYLE_MIN MONTHGRAPH_STYLE_ECONOMY 15 #define MONTHGRAPH_STYLE_MAX MONTHGRAPH_STYLE_SUSTAIN 16 17 18 void HandleError (const char *, int); 19 20 21 extern unsigned char main_font[2048]; 22 extern unsigned char start_font1[2048]; 23 extern unsigned char start_font2[4096]; 24 extern unsigned char start_font3[4096]; 25 26 extern int monthgraph_style; 27 28 29 int getMainWindowWidth(); 30 int getMainWindowHeight(); 31 32 33 /* This is on in screen_full_refresh, used in *_refresh() */ 34 extern char screen_refreshing; 35 36 void draw_cb_box (int row, int col, int checked); 37 int ask_launch_rocket_click (int x, int y); 38 int ask_launch_rocket_now (int x, int y); 39 void display_rocket_result_dialog (int result); 40 void draw_background (void); 41 void screen_full_refresh (void); 42 void init_fonts (void); 43 void initialize_monthgraph (void); 44 void rotate_mini_screen (void); 45 void advance_mps_style (void); 46 void update_main_screen (int full_refresh); 47 void connect_transport_main_screen (void); 48 void refresh_main_screen (void); 49 void refresh_mps (void); 50 void advance_monthgraph_style (void); 51 void refresh_monthgraph (void); 52 void draw_small_yellow_bezel (int x, int y, int h, int w); 53 void init_pbars (void); 54 void mini_screen_help (void); 55 void status_message(const char *m1, const char* m2); 56 void print_time_for_year (void); 57 void rotate_main_screen (void); 58 void screen_setup (void); 59 void refresh_main_screen (void); 60 /* Miniscreen */ 61 void init_mini_map_mouse(void); 62 void mini_map_handler(int x, int y, int button); 63 void mini_aux_handler(int x, int y, int button); 64 /* Message area */ 65 void display_info_message (int colour, const char* ss, const char* xs); 66 void reset_status_message (void); 67 68 #define CB_SPACE 20 // space between checkbuttons for market/port 69 70 #endif /* __screen_h__ */ 71 72