bool HudGaugeTalkingHead::canRender() { if (sexp_override) { return false; } if (hud_disabled() && !hud_disabled_except_messages()) { return false; } if(!active) return false; if ( !(Game_detail_flags & DETAIL_FLAG_HUD) ) { return false; } if ((Viewer_mode & disabled_views)) { return false; } if(pop_up) { if(!popUpActive()) { return false; } } return true; }
bool HudGaugeDirectives::canRender() { if (sexp_override) { return false; } if(hud_disabled_except_messages()) { return false; } if (hud_disabled() && !hud_disabled_except_messages()) { return false; } // force the directives list to display in training missions even if this gauge isn't active. if(!active && !(The_mission.game_type & MISSION_TYPE_TRAINING)) return false; if ( !(Game_detail_flags & DETAIL_FLAG_HUD) ) { return false; } if ((Viewer_mode & disabled_views)) { return false; } if(pop_up) { if(!popUpActive()) { return false; } } if (gauge_config == HUD_ETS_GAUGE) { if (Ships[Player_obj->instance].flags2 & SF2_NO_ETS) { return false; } } return true; }
void message_training_update_frame() { int z; if ((Viewer_mode & (VM_EXTERNAL | VM_DEAD_VIEW | VM_WARP_CHASE | VM_PADLOCK_ANY ))) { return; } if ( hud_disabled() && !hud_disabled_except_messages()) { return; } Training_message_visible = 0; message_training_queue_check(); if (Training_failure){ return; } if (timestamp_elapsed(Training_message_timestamp) || !strlen(Training_buf)){ return; } // the code that preps the training message and counts the number of lines // has been moved to message_training_setup() if (Training_num_lines <= 0){ return; } Training_message_visible = 1; if ((Training_voice >= 0) && (Training_num_lines > 0) && !(Training_message_timestamp)) { if (Training_voice_type) z = audiostream_is_playing(Training_voice_handle); else z = snd_is_playing(Training_voice_handle); if (!z) Training_message_timestamp = timestamp(2000); // 2 second delay } Training_message_method = 0; }
bool HudGaugeTrainingMessages::canRender() { if (hud_disabled() && !hud_disabled_except_messages()) { return false; } if ( !(Game_detail_flags & DETAIL_FLAG_HUD) ) { return false; } if ((Viewer_mode & disabled_views)) { return false; } if(pop_up) { if(!popUpActive()) { return false; } } return true; }