Convert "Request dock" button to a menu#2837
Conversation
|
Testing this out, I realized that the new GuiPanel is being drawn at the same spot/size as the docking button, so on the default theme it looks like a single button, but on my custom theme (for example) it ends up with a second border around the docking button. To work around this i added:
This allows for the docking button to be drawn the same as before, regardless of theme, while keeping the new functionality. |
When multiple compatible DockingBay entities are within range, list them and let the player select which entity to dock with instead of automatically choosing the nearest entity.
374bcf5 to
b7376f5
Compare
Refactored it to no longer be a |
Thanks! I've confirmed on my end that that looks right with my (probably slightly incorrect) theme. |
When multiple compatible DockingBay entities are within range, list them on the "Request dock" button and let the player select which entity to dock with instead of automatically choosing the nearest entity.
This converts DockingBay to subclass GuiPanel instead of GuiButton, and uses separate GuiButton and GuiListbox components in order to handle different docking states and dynamically update list contents.
This does NOT CHANGE keyboard shortcut behavior, which continues to dock with the nearest eligible target. It also does NOT CHANGE any existing interactions when only one eligible target is within range.
Recording.2026-04-06.100116.mp4