Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Starsector 0.97a is out! (02/02/24); New blog post: Simulator Enhancements (03/13/24)

Author Topic: [0.9a RC10] CampaignUIAPI.getCurrentCoreTab() returns null when docked  (Read 761 times)

Darloth

  • Admiral
  • *****
  • Posts: 592
    • View Profile

Presumably vanilla never uses this so I've posted it here, but I'd like to catch events when in the character tab.

Code
CoreUITabId currentCoreTab = Global.getSector().getCampaignUI().getCurrentCoreTab();

works fine when flying around, but this will return null when docked - even if the player does change to one of the core tabs.
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 23988
    • View Profile
Re: [0.9a RC10] CampaignUIAPI.getCurrentCoreTab() returns null when docked
« Reply #1 on: December 08, 2018, 12:07:19 PM »

Thank you; should be fixed.
Logged