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. fileciteturn22file1

Behavior

  • OpenPanel()
    • Fetch routeToRemove = LabGroupRegistrar.GetIncomingRoute(currentRegion) and targetLab for 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. fileciteturn22file1
  • OnConfirmButtonPressed()targetLab.RemoveRoute(routeToRemove), hide, paused=false, enableTimeControls.Raise().
  • OnDenyButtonPressed() → hide, paused=false, enableTimeControls.Raise(). fileciteturn22file1

Serialized

Route pricing atoms, currentRegion, paused, enable/disableTimeControls, and TextMeshProUGUI infoText. fileciteturn22file1