Esempio n. 1
0
 private static void Prefix(Panel_HUD __instance)
 {
     if (Implementation.ShowHUD)
     {
         __instance.m_SprintBar.alpha = 1f;
     }
 }
Esempio n. 2
0
        internal static void MaybeChangeSprintSpriteColors(Panel_HUD __instance)
        {
            if (PlayerIsCarryingCarcass)
            {
                ((UIWidget)__instance.m_Sprite_SprintCenter).color = __instance.m_SprintBarNoSprintColor;

                ((UIWidget)__instance.m_Sprite_SprintBar).color = __instance.m_SprintBarNoSprintColor;
            }
        }
Esempio n. 3
0
        public static void Postfix(Panel_HUD __instance)
        {
            GameObject root = NGUITools.GetRoot(__instance.m_FullScreenMessageObject);

            int x = -150;

            CreateLabel(KeyCode.R, root, x);
            x += LABEL_SIZE;
            CreateLabel(KeyCode.L, root, x);
            x += LABEL_SIZE;
            CreateLabel(KeyCode.P, root, x);
            x += LABEL_SIZE;
            CreateLabel(KeyCode.LeftControl, root, x);
            x += LABEL_SIZE;
            CreateLabel(KeyCode.LeftShift, root, x);
            x += LABEL_SIZE;
            CreateWheelLabel(root, x);
        }
Esempio n. 4
0
 private static void Postfix(Panel_HUD __instance)
 {
     MaybeChangeSprintSpriteColors(__instance);
 }
Esempio n. 5
0
 static void PanelHUD_Awake_Postfix(Panel_HUD __instance) => init(__instance.gameObject);