Closing the inventory panel opens the previous chest panel

EVG

Member
The last update says that this bug is fixed in version 1.2.11, but for some reason I still have it.
This error appears when I pick one item from a chest using the Quantity Picker. I was unable to reproduce this in the demo scene.
Also, the Quantity Picker does not go away after the second picking up of the item, it is noticeable on the video (this is also in the demo version).
I have version 1.2.11
 

Attachments

  • invver.png
    invver.png
    5 KB · Views: 2

EVG

Member
I had "Is Non Selectable Panel" selected. I deselected and the problem was solved, the previous window no longer appears. Thank you!
What about the second question? Why doesn't Quantity Picker disappear?
 

Sangemdoko

Moderator
Staff member
Ah sorry I missed that, I was able to replicate it in the demo scene.

Here is a quick fix within the ConfirmCancelPanel.cs until I find a better solution
Code:
  /// <summary>
  /// The confirm button was clicked.
  /// </summary>
  protected virtual void ClickedConfirm()
  {
      m_PressedConfirm = true;
      OnConfirm?.Invoke();
      if (m_CloseOnConfirm) {
          // Force close by having the panel as open.
          m_IsOpen = true;
          Close();
      }
      m_WaitForInput = false;
  }
  /// <summary>
  /// The cancel button was clicked.
  /// </summary>
  protected virtual void ClickedCancel()
  {
      m_PressedConfirm = false;
      OnCancel?.Invoke();
      if (m_CloseOnCancel) {
          // Force close by having the panel as open.
          m_IsOpen = true;
          Close();
      }
      m_WaitForInput = false;
  }

The issue is that it cannot close the panel because it thinks it is already closed.
 
  • Like
Reactions: EVG
Top