void ShowHelpTexts() { ControlNextWheel = GTAFunction.UsingGamepad() ? GTA.Control.VehicleAccelerate : GTA.Control.WeaponWheelPrev; ControlPrevWheel = GTAFunction.UsingGamepad() ? GTA.Control.VehicleBrake : GTA.Control.WeaponWheelNext; if (!Config.DisplayHelpText) { return; } string nativeWheelText = (int)Game.Version < (int)GameVersion.VER_1_0_1493_0_STEAM ? "" : (WheelListIsPopulated() ? "\n" + GTAFunction.InputString(ControlNextWheel) + " " + GTAFunction.InputString(ControlPrevWheel) + " : Next / Prev Wheel\n" + "Wheel: " + currentWheel.Name : ""); GTAFunction.DisplayHelpTextThisFrame( GTAFunction.InputString(Config.KB_Toggle, Config.GP_Toggle) + " : Switch to Custom Wheels" + nativeWheelText , false, false ); }
public void HandleRadioWheelExtraControls() { if (WheelVars.CurrentRadioWheel.Visible) { if (RadioStation.CurrentPlaying != null) { ControlSkipTrack = GTAFunction.UsingGamepad() ? Config.GP_Skip_Track : Config.KB_Skip_Track; ControlVolumeUp = GTAFunction.UsingGamepad() ? Config.GP_Volume_Up : Config.KB_Volume_Up; ControlVolumeDown = GTAFunction.UsingGamepad() ? Config.GP_Volume_Down : Config.KB_Volume_Down; ControlNextWheel = GTAFunction.UsingGamepad() ? GTA.Control.VehicleAccelerate : GTA.Control.WeaponWheelPrev; ControlPrevWheel = GTAFunction.UsingGamepad() ? GTA.Control.VehicleBrake : GTA.Control.WeaponWheelNext; if (Config.DisplayHelpText) { GTAFunction.DisplayHelpTextThisFrame( GTAFunction.InputString(ControlSkipTrack) + " : Skip Track\n" + GTAFunction.InputString(ControlVolumeUp) + " " + GTAFunction.InputString(ControlVolumeDown) + " : Volume: " + Math.Round(SoundFile.SoundEngine.SoundVolume * 100, 0) + "%\n" + GTAFunction.InputString(ControlNextWheel) + " " + GTAFunction.InputString(ControlPrevWheel) + " : Next / Prev Wheel\n", false, false); } if (Game.IsControlJustPressed(2, ControlSkipTrack)) { RadioStation.CurrentPlaying.PlayNextSong(); } else if (Game.IsControlJustPressed(2, ControlVolumeUp)) { SoundFile.StepVolume(0.05f, 2); } else if (Game.IsControlJustPressed(2, ControlVolumeDown)) { SoundFile.StepVolume(-0.05f, 2); } } } if (RadioStation.CurrentPlaying != null) { Game.DisableControlThisFrame(2, GTA.Control.VehicleNextRadio); Game.DisableControlThisFrame(2, GTA.Control.VehicleNextRadioTrack); Game.DisableControlThisFrame(2, GTA.Control.VehiclePrevRadio); Game.DisableControlThisFrame(2, GTA.Control.VehiclePrevRadioTrack); RadioNativeFunctions.SetVanillaRadioOff(); } }