Esempio n. 1
0
 private void UpdateCursor()
 {
     if (HUDItem.Get().enabled)
     {
         return;
     }
     if (HUDNewWheel.Get().IsSelected())
     {
         return;
     }
     if (HUDBackpack.Get().m_IsHovered)
     {
         return;
     }
     if (this.m_CarriedItem)
     {
         if (CursorManager.Get().GetCursor() != CursorManager.TYPE.Hand_1)
         {
             CursorManager.Get().SetCursor(CursorManager.TYPE.Hand_1);
         }
     }
     else if (this.m_FocusedItem)
     {
         if (CursorManager.Get().GetCursor() != CursorManager.TYPE.Hand_0)
         {
             CursorManager.Get().SetCursor(CursorManager.TYPE.Hand_0);
         }
     }
     else if (CursorManager.Get().GetCursor() != CursorManager.TYPE.Normal)
     {
         CursorManager.Get().SetCursor(CursorManager.TYPE.Normal);
     }
 }
Esempio n. 2
0
 private void UpdateCursor()
 {
     if (this.m_ActiveTab == MenuNotepad.MenuNotepadTab.MapTab)
     {
         CursorManager.Get().SetCursor(CursorManager.TYPE.Normal);
     }
     else if (this.m_MouseOverConstruction)
     {
         CursorManager.Get().SetCursor(CursorManager.TYPE.Hammer);
     }
     else if (this.m_MouseOverButton)
     {
         CursorManager.Get().SetCursor(CursorManager.TYPE.MouseOver);
     }
     else if (!HUDNewWheel.Get().IsSelected())
     {
         CursorManager.Get().SetCursor(CursorManager.TYPE.Normal);
     }
 }
Esempio n. 3
0
    private void UpdateAimVisibility()
    {
        bool active = this.m_ShowCrosshair && !Inventory3DManager.Get().gameObject.activeSelf&& !BodyInspectionController.Get().IsActive() && !HUDWheel.Get().enabled&& !HUDNewWheel.Get().enabled&& !BodyInspectionMiniGameController.Get().IsActive();

        this.m_CrosshairLeft.gameObject.SetActive(active);
        this.m_CrosshairRight.gameObject.SetActive(active);
        this.m_Crosshair_Down.gameObject.SetActive(active);
    }