//---------- Begin of function RawRes::init -----------// // // This function must be called after a map is generated. // void RawRes::init() { deinit(); //----- open unit bitmap resource file -------// String str; str = DIR_RES; str += "I_RAW.RES"; // res_icon.init(str, 1); // 1-read all into buffer res_map_icon.init_imported(str, 1); // 1-don't read all into buffer res_small_raw.init_imported(DIR_RES"I_RAWRS.RES", 1); res_small_product.init_imported(DIR_RES"I_RAWPS.RES" ,1); res_large_raw.init_imported(DIR_RES"I_RAWRL.RES" ,1); res_large_product.init_imported(DIR_RES"I_RAWPL.RES" ,1); res_interface_raw.init_imported(DIR_RES"I_RAWRI.RES" ,1); //------- load database information --------// load_all_info(); init_flag=1; }
//---------- Begin of function RawRes::init -----------// // // This function must be called after a map is generated. // void RawRes::init() { deinit(); //----- open unit bitmap resource file -------// String str; str = DIR_RES; str += "I_RAW.RES"; res_icon.init(str, 1); // 1-read all into buffer //------- load database information --------// load_all_info(); init_flag=1; }