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: Planet Search Overhaul (07/13/24)

Author Topic: Custom UI Panel Template  (Read 892 times)

cptdash

  • Ensign
  • *
  • Posts: 32
  • aka SpeedRacer
    • View Profile
Custom UI Panel Template
« on: October 14, 2022, 11:46:17 AM »

In an effort to give back to the community, I have created a template for a custom UI panel. The panel is launched from an InteractionDialogPlugin using a CustomVisualDialogDelegate and a CustomUIPanelPlugin. I have not used Java before StarSector modding, and make no claim that this is the best or right way to accomplish this, but it does seem to work  :)

The 3 classes needed to accomplish this are attached, along with a screenshot of the example custom panel. The code is somewhat documented about how I use it, but if you come up with something else interesting let me know.

I will try to answer questions if I can.



[attachment deleted by admin]
« Last Edit: October 15, 2022, 07:05:12 AM by cptdash »
Logged