RouteRegionButtonUI
Overview
Per-region button that highlights adjacent (or sea-connected) nodes and fades them to guide selection. Disables nodes already in the path or not reachable; grays out regions with Presence. fileciteturn22file5
Behavior
- Registers
UpdateUI()onupdateRouteUI. - If this node is already selected → lock color to
routeSelectedNodeColor, stop fade, disable button. - Else compute adjacency to the last selected node:
- Adjacent if directly connected or both have sea connections and
seaRoutesEnabledis true → enable + startAdjacentFadeEffectwith per-connection phase offset. - Otherwise disable; color = gray when region has
Presence, elsestartingColor. fileciteturn22file5
- Adjacent if directly connected or both have sea connections and
Cleanup
Stops coroutines and unregisters on destroy. fileciteturn22file5