private static void Prefix(Panel_HUD __instance) { if (Implementation.ShowHUD) { __instance.m_SprintBar.alpha = 1f; } }
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; } }
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); }
private static void Postfix(Panel_HUD __instance) { MaybeChangeSprintSpriteColors(__instance); }
static void PanelHUD_Awake_Postfix(Panel_HUD __instance) => init(__instance.gameObject);