public static void PrintUsageHint() { var keyName = TextForKey(GeneralGameKeyCategories.GetKey(GeneralGameKey.OpenMenu)); var hint = Module.CurrentModule.GlobalTextManager.FindText("str_rts_camera_open_menu_hint").SetTextVariable("KeyName", keyName).ToString(); DisplayMessageForced(hint); }
public override void OnMissionTick(float dt) { base.OnMissionTick(dt); if (Input.IsKeyPressed(GeneralGameKeyCategories.GetKey(GeneralGameKey.OpenMenu))) { Utility.DisplayMessage("L pressed."); } }
public static void PrintUsageHint() { var keyName = TextForKey(GeneralGameKeyCategories.GetKey(GeneralGameKey.OpenMenu)); GameTexts.SetVariable("KeyName", keyName); var hint = Module.CurrentModule.GlobalTextManager.FindText("str_rts_camera_open_menu_hint").ToString(); DisplayMessageOutOfMission(hint); keyName = TextForKey(RTSCameraGameKeyCategory.GetKey(GameKeyEnum.FreeCamera)); GameTexts.SetVariable("KeyName", keyName); hint = Module.CurrentModule.GlobalTextManager.FindText("str_rts_camera_switch_camera_hint").ToString(); DisplayMessageOutOfMission(hint); }
public override void OnMissionScreenTick(float dt) { base.OnMissionScreenTick(dt); if (IsActivated) { if (GauntletLayer.Input.IsKeyReleased(GeneralGameKeyCategories.GetKey(GeneralGameKey.OpenMenu))) { DeactivateMenu(); } } else if (Input.IsKeyReleased(GeneralGameKeyCategories.GetKey(GeneralGameKey.OpenMenu))) { ActivateMenu(); } }