int shapenum = get_shapenum(); if (shapenum == EXULT_FLX_SAV_LOAD_SHP)
if (text == loadtext)
void Newfile_button::activate	(	Game_window *gwin	){	int shapenum = get_shapenum();	if (shapenum == EXULT_FLX_SAV_LOAD_SHP)		((Newfile_gump *) parent)->load();	else if (shapenum == EXULT_FLX_SAV_SAVE_SHP)		((Newfile_gump *) parent)->save();	else if (shapenum == EXULT_FLX_SAV_DELETE_SHP)		((Newfile_gump *) parent)->delete_file();	else if (shapenum == EXULT_FLX_SAV_CANCEL_SHP)		parent->close(gwin);	else if (shapenum == EXULT_FLX_SAV_DOWNDOWN_SHP)		((Newfile_gump *) parent)->scroll_page(1);	else if (shapenum == EXULT_FLX_SAV_DOWN_SHP)		((Newfile_gump *) parent)->scroll_line(1);	else if (shapenum == EXULT_FLX_SAV_UP_SHP)		((Newfile_gump *) parent)->scroll_line(-1);	else if (shapenum == EXULT_FLX_SAV_UPUP_SHP)		((Newfile_gump *) parent)->scroll_page(-1);}