private void drawMechanicalInfo() { this.getSelectedAircraftWeapons(); float xpos = (float)(0.975000023841858 - Function.Call <float>((Hash) - 1067213516044759673L, new InputArgument[1] { InputArgument.op_Implicit(false) }) / 10.0) + this.xOffsetRight; float ypos = 0.88f; if (Jet_HUD.GetVehicleCurrentWeapon(this.PlayerPed) != 0U) { this.drawString2(this.weaponSelectionText, xpos, ypos - 0.04f, 0.75f, this.color_HUD, false); } this.drawString2("HGHT " + ((Entity)this.Aircraft).get_Position().Z.ToString("0"), xpos, ypos, 0.75f, this.color_HUD, false); Color colorHud1 = this.color_HUD; string str1 = "GEAR DOWN"; if (this.Aircraft.get_LandingGear() == 1 || this.Aircraft.get_LandingGear() == 2) { if (this.Aircraft.get_LandingGear() == 1) { str1 = "GEAR CLSNG"; } if (this.Aircraft.get_LandingGear() == 2) { str1 = "GEAR OPNG"; } Color color = Color.FromArgb(204, 204, 0); if (this.Timer1Switch) { this.drawString2(str1, xpos, ypos + 0.04f, 0.75f, color, false); } } else if (this.Aircraft.get_LandingGear() == null) { string str2 = "GEAR DOWN"; Color colorHud2 = this.color_HUD; this.drawString2(str2, xpos, ypos + 0.04f, 0.75f, colorHud2, false); } else if (this.Aircraft.get_LandingGear() == 3) { string str2 = "GEAR UP"; Color colorHud2 = this.color_HUD; this.drawString2(str2, xpos, ypos + 0.04f, 0.75f, colorHud2, false); } if (this.Aircraft.get_EngineRunning() || this.Aircraft.get_IsStopped()) { this.drawString2("ENG " + (this.Aircraft.get_EngineRunning() ? "ON" : "OFF"), xpos, ypos + 0.08f, 0.75f, this.color_HUD, false); } else { if (!this.Timer1Switch) { return; } this.drawString2("ENG " + (this.Aircraft.get_EngineRunning() ? "ON" : "OFF"), xpos, ypos + 0.08f, 0.75f, Color.FromArgb(204, 204, 0), false); } }
private void drawMechanicalInfo() { this.getSelectedAircraftWeapons(); float xpos = (float)(0.975000023841858 - Function.Call <float>((Hash)0xF1307EF624A80D87, false) / 10.0) + this.xOffsetRight; float ypos = 0.88f; if (Jet_HUD.GetVehicleCurrentWeapon(this.PlayerPed) != 0U) { this.drawString2(this.weaponSelectionText, xpos, ypos, 0.75f, this.color_HUD, false); } Color colorHud1 = this.color_HUD; string str1 = "GEAR DOWN"; if (this.Aircraft.LandingGearState == VehicleLandingGearState.Retracting || this.Aircraft.LandingGearState == VehicleLandingGearState.Retracting) { if (this.Aircraft.LandingGearState == VehicleLandingGearState.Retracting) { str1 = "GEAR CLSNG"; } if (this.Aircraft.LandingGearState == VehicleLandingGearState.Deploying) { str1 = "GEAR OPNG"; } Color color = Color.FromArgb(204, 204, 0); if (this.Timer1Switch) { this.drawString2(str1, xpos, ypos + 0.04f, 0.75f, color, false); } } else if (this.Aircraft.LandingGearState == VehicleLandingGearState.Deployed) { string str2 = "GEAR DOWN"; Color colorHud2 = this.color_HUD; this.drawString2(str2, xpos, ypos + 0.04f, 0.75f, colorHud2, false); } else if (this.Aircraft.LandingGearState == VehicleLandingGearState.Retracted) { string str2 = "GEAR UP"; Color colorHud2 = this.color_HUD; this.drawString2(str2, xpos, ypos + 0.04f, 0.75f, colorHud2, false); } if (this.Aircraft.IsEngineRunning || this.Aircraft.IsStopped) { this.drawString2("ENG " + (this.Aircraft.IsEngineRunning ? "ON" : "OFF") + " " + (int)this.Aircraft.EngineHealth, xpos, ypos + 0.08f, 0.75f, this.color_HUD, false); } else { if (!this.Timer1Switch) { return; } this.drawString2("ENG " + (this.Aircraft.IsEngineRunning ? "ON" : "OFF") + " " + (int)this.Aircraft.EngineHealth, xpos, ypos + 0.08f, 0.75f, Color.FromArgb(204, 204, 0), false); } }
private void getSelectedAircraftWeapons() { string str1; string str2 = !this.VehicleWeapons.TryGetValue(Jet_HUD.GetVehicleCurrentWeapon(this.PlayerPed), out str1) ? "[GUN]" : str1; if (str2 == this.vehicleWeaponBefore && (str2 == "VEHICLE_WEAPON_SPACE_ROCKET" || str2 == "VEHICLE_WEAPON_PLANE_ROCKET")) { if (Game.IsControlJustPressed(0, (Control)99)) { this.missileType = "MISL UG"; } if (Game.IsControlJustPressed(0, (Control)100)) { this.missileType = "MISL GD"; } } else { this.missileType = "MISL GD"; } switch (str2) { case "VEHICLE_WEAPON_PLANE_ROCKET": this.weaponSelectionText = "[" + this.missileType + "] GUN"; break; case "VEHICLE_WEAPON_PLAYER_BUZZARD": this.weaponSelectionText = this.missileType + " [GUN]"; break; case "VEHICLE_WEAPON_PLAYER_HUNTER": this.weaponSelectionText = this.missileType + " [GUN]"; break; case "VEHICLE_WEAPON_PLAYER_LASER": this.weaponSelectionText = this.missileType + " [GUN]"; break; case "VEHICLE_WEAPON_PLAYER_LAZER": this.weaponSelectionText = this.missileType + " [GUN]"; break; case "VEHICLE_WEAPON_PLAYER_SAVAGE": this.weaponSelectionText = this.missileType + " [GUN]"; break; case "VEHICLE_WEAPON_SPACE_ROCKET": this.weaponSelectionText = "[" + this.missileType + "] GUN"; break; } this.vehicleWeaponBefore = str2; }