DestroyRoutePanelUI
Overview
Confirmation panel to remove the incoming route of the current region. Shows origin/destination, initial cost, refund %, and total refund (formatted es-ES). Pauses gameplay while open and disables time controls. fileciteturn22file1
Behavior
- OpenPanel()
- Fetch
routeToRemove=LabGroupRegistrar.GetIncomingRoute(currentRegion)andtargetLabfor that route. - Compute
initialCost = (routeBaseCost + routeCostPerNode * NodesTraversed) * routeCostMultiplier. refund = initialCost * routeRefund.- Build multi-line
infoText:From,To,Initial Cost,Refund %,Total Refund. paused = true;disableTimeControls.Raise(); show panel. fileciteturn22file1
- Fetch
- OnConfirmButtonPressed() →
targetLab.RemoveRoute(routeToRemove), hide,paused=false,enableTimeControls.Raise(). - OnDenyButtonPressed() → hide,
paused=false,enableTimeControls.Raise(). fileciteturn22file1
Serialized
Route pricing atoms, currentRegion, paused, enable/disableTimeControls, and TextMeshProUGUI infoText. fileciteturn22file1