private static void Prefix(CM_PageBase __instance) { if (VR_UI_Overlay.Current && VR_UI_Overlay.Current.GetPlayerPointingAtPositionOnScreen(out Vector2 newCursorPos)) { Vector2 res = __instance.m_screenResVec2; newCursorPos -= new Vector2(0.5f, 0.5f); newCursorPos.y *= -1f; newCursorPos *= res; CM_PageBase.m_cursorPos = newCursorPos; } }
public static bool Prefix(CM_TimedButton __instance, ref iCellMenuInputHandler inputHandler) { if (!inputHandler.MainButtonStatus) { return(false); } __instance.DoBtnPress(inputHandler); __instance.m_holdBtnActive = false; CM_PageBase.PostSound(__instance.SOUND_CLICK_HOLD_DONE, "Click hold DONE"); return(false); }