Fractal Softworks Forum

Please login or register.

Login with username, password and session length

Author Topic: [0.9a] Cargo picker dialog bugs  (Read 1726 times)

Histidine

  • Admiral
  • *****
  • Posts: 4682
    • View Profile
    • GitHub profile
[0.9a] Cargo picker dialog bugs
« on: January 15, 2019, 10:41:22 PM »

In a cargo picker dialog (created with InteractionDialogAPI.showCargoPickerDialog()), any blueprints in the upper section can be right-clicked to learn them; after closing the screen, the blueprints will still be in the player cargo. Presumably this would affect any item with a custom right-click behavior.

I can work around this by removing the dialog cargo's contents from the player cargo, then returning anything that remains afterwards. But this gave me a new problem: cancelledCargoSelection() isn't called when closing the dialog with Escape, so my fix would let the dialog irretrievably "eat" the player's items if the player presses the wrong key.
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 24118
    • View Profile
Re: [0.9a] Cargo picker dialog bugs
« Reply #1 on: January 18, 2019, 11:26:18 AM »

Thank you for the report! Just wanted to let you know I've noted this down and will fix it up.
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 24118
    • View Profile
Re: [0.9a] Cargo picker dialog bugs
« Reply #2 on: January 19, 2019, 01:41:00 PM »

(Should be fixed.)
Logged

Histidine

  • Admiral
  • *****
  • Posts: 4682
    • View Profile
    • GitHub profile
Re: [0.9a] Cargo picker dialog bugs
« Reply #3 on: February 18, 2019, 04:41:17 AM »

IndustryPickerListener.cancelledIndustryPicking() also isn't called on Escape.
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 24118
    • View Profile
Re: [0.9a] Cargo picker dialog bugs
« Reply #4 on: February 18, 2019, 09:36:44 AM »

Thank you! Fixed this up as well.
Logged