Exemplo n.º 1
0
        public static void ShowItemPopups(String primaryAction, String secondaryAction, bool showAmmo, bool showReload, bool showHolster)
        {
            EquipItemPopup equipItemPopup = InterfaceManager.m_Panel_HUD.m_EquipItemPopup;

            ShowItemIcons(equipItemPopup, primaryAction, secondaryAction, showAmmo);

            if (Utils.IsGamepadActive())
            {
                equipItemPopup.m_ButtonPromptFire.ShowPromptForKey(primaryAction, "Fire");
                MaybeRepositionFireButtonPrompt(equipItemPopup, secondaryAction);
                equipItemPopup.m_ButtonPromptAltFire.ShowPromptForKey(secondaryAction, "AltFire");
                MaybeRepositionAltFireButtonPrompt(equipItemPopup, primaryAction);
            }
            else
            {
                equipItemPopup.m_ButtonPromptFire.ShowPromptForKey(secondaryAction, "AltFire");
                MaybeRepositionFireButtonPrompt(equipItemPopup, primaryAction);
                equipItemPopup.m_ButtonPromptAltFire.ShowPromptForKey(primaryAction, "Interact");
                MaybeRepositionAltFireButtonPrompt(equipItemPopup, secondaryAction);
            }

            string reloadText = showReload ? Localization.Get("GAMEPLAY_Reload") : string.Empty;

            equipItemPopup.m_ButtonPromptReload.ShowPromptForKey(reloadText, "Reload");

            string holsterText = showHolster ? Localization.Get("GAMEPLAY_HolsterPrompt") : string.Empty;

            equipItemPopup.m_ButtonPromptHolster.ShowPromptForKey(holsterText, "Holster");
        }
        public static void CreatePlacingHUD()
        {
            if (paHUD != null)
            {
                return;
            }

            paHUD = new GameObject();

            EquipItemPopup placingHUD = InterfaceManager.m_Panel_HUD.m_EquipItemPopup;

            GameObject bpButton = placingHUD.m_ButtonPromptRight.gameObject;

            float baseX = Screen.width / 4f;
            float baseY = 160f;

            AddHUDButtons(bpButton, baseX, baseY);
        }
Exemplo n.º 3
0
 internal static void ShowItemIcons(EquipItemPopup equipItemPopup, String primaryAction, String secondaryAction, bool showAmmo)
 {
     ModUtils.ExecuteMethod(equipItemPopup, "ShowItemIcons", new object[] { primaryAction, secondaryAction, showAmmo });
 }
Exemplo n.º 4
0
 internal static void MaybeRepositionFireButtonPrompt(EquipItemPopup equipItemPopup, String otherAction)
 {
     ModUtils.ExecuteMethod(equipItemPopup, "MaybeRepositionFireButtonPrompt", otherAction);
 }
Exemplo n.º 5
0
 internal static void MaybeRepositionAltFireButtonPrompt(EquipItemPopup __instance, String otherAction)
 {
     ModUtils.ExecuteMethod(__instance, "MaybeRepositionAltFireButtonPrompt", otherAction);
 }
Exemplo n.º 6
0
 private static void ShowItemIcons(EquipItemPopup equipItemPopup, string primaryAction, string secondaryAction, bool showAmmo, bool showDuration)
 {
     ExecuteMethod(equipItemPopup, "ShowItemIcons", new object[] { primaryAction, secondaryAction, showAmmo, showDuration });
 }
Exemplo n.º 7
0
 private static void MaybeRepositionFireButtonPrompt(EquipItemPopup equipItemPopup, string otherAction)
 {
     ExecuteMethod(equipItemPopup, "MaybeRepositionFireButtonPrompt", new object[] { otherAction, });
 }
Exemplo n.º 8
0
 private static void MaybeRepositionAltFireButtonPrompt(EquipItemPopup __instance, string otherAction)
 {
     ExecuteMethod(__instance, "MaybeRepositionAltFireButtonPrompt", new object[] { otherAction, });
 }
Exemplo n.º 9
0
 internal static void ShowItemIcons(EquipItemPopup equipItemPopup, String primaryAction, String secondaryAction, bool showAmmo)
 {
     equipItemPopup.ShowItemIcons(primaryAction, secondaryAction, showAmmo);
 }
Exemplo n.º 10
0
 internal static void MaybeRepositionFireButtonPrompt(EquipItemPopup equipItemPopup, String otherAction)
 {
     equipItemPopup.MaybeRepositionFireButtonPrompt(otherAction);
 }