private void ShowContextIcons() { Hotspot hotspot = KickStarter.playerInteraction.GetActiveHotspot(); if (hotspot == null) { return; } if (hotspot.HasContextUse()) { if (!hotspot.HasContextLook()) { DrawIcon(KickStarter.cursorManager.GetCursorIconFromID(hotspot.GetFirstUseButton().iconID), false); return; } else { Button _button = hotspot.GetFirstUseButton(); if (hotspot.HasContextUse() && hotspot.HasContextLook() && CanDisplayIconsSideBySide()) { CursorIcon icon = KickStarter.cursorManager.GetCursorIconFromID(_button.iconID); DrawIcon(new Vector2(-icon.size * Screen.width / 2f, 0f), icon, false); } else if (CanCycleContextSensitiveMode() && contextCycleExamine && hotspot.HasContextLook()) { CursorIcon lookIcon = KickStarter.cursorManager.GetCursorIconFromID(KickStarter.cursorManager.lookCursor_ID); DrawIcon(Vector2.zero, lookIcon, true); } else { DrawIcon(KickStarter.cursorManager.GetCursorIconFromID(_button.iconID), false); } } } if (hotspot.HasContextLook() && (!hotspot.HasContextUse() || (hotspot.HasContextUse() && CanDisplayIconsSideBySide()))) { if (KickStarter.cursorManager.cursorIcons.Count > 0) { CursorIcon icon = KickStarter.cursorManager.GetCursorIconFromID(KickStarter.cursorManager.lookCursor_ID); if (hotspot.HasContextUse() && hotspot.HasContextLook() && CanDisplayIconsSideBySide()) { DrawIcon(new Vector2(icon.size * Screen.width / 2f, 0f), icon, true); } else { DrawIcon(icon, true); } } } }
private void ShowContextIcons() { Hotspot hotspot = KickStarter.playerInteraction.GetActiveHotspot(); if (hotspot == null) { return; } if (hotspot.HasContextUse()) { if (!hotspot.HasContextLook()) { DrawIcon(KickStarter.cursorManager.GetCursorIconFromID(hotspot.GetFirstUseButton().iconID), false); return; } else { Button _button = hotspot.GetFirstUseButton(); if (hotspot.HasContextUse() && hotspot.HasContextLook() && KickStarter.cursorManager.lookUseCursorAction == LookUseCursorAction.DisplayBothSideBySide) { CursorIcon icon = KickStarter.cursorManager.GetCursorIconFromID(_button.iconID); DrawIcon(new Vector2(-icon.size * Screen.width / 2f, 0f), icon, false); } else { DrawIcon(KickStarter.cursorManager.GetCursorIconFromID(_button.iconID), false); } } } if (hotspot.HasContextLook() && (!hotspot.HasContextUse() || (hotspot.HasContextUse() && KickStarter.cursorManager.lookUseCursorAction == LookUseCursorAction.DisplayBothSideBySide))) { if (KickStarter.cursorManager.cursorIcons.Count > 0) { CursorIcon icon = KickStarter.cursorManager.GetCursorIconFromID(KickStarter.cursorManager.lookCursor_ID); if (hotspot.HasContextUse() && hotspot.HasContextLook() && KickStarter.cursorManager.lookUseCursorAction == LookUseCursorAction.DisplayBothSideBySide) { DrawIcon(new Vector2(icon.size * Screen.width / 2f, 0f), icon, true); } else { DrawIcon(icon, true); } } } }