vehicle_store_table¶
Source: base/tealdef/gui/line_vehicle_mgmt/vehicle_store_table.d.tl
Notes
Parameters of the table layout of the vehicle store (/gui/line_vehicle_mgmt/vehicle_store_table.tl, which returns the recipe directly).
VehicleStoreTableRecipeParams¶
record global base/tealdef/gui/line_vehicle_mgmt/vehicle_store_table.d.tl:3
global record VehicleStoreTableRecipeParams
Load: local VehicleStoreTable = ug_require "/gui/line_vehicle_mgmt/vehicle_store_table.tl"
Notes
Parameters of the table layout of the vehicle store.
Fields
| Name | Type | Description |
|---|---|---|
filteredVectorState |
ReactStateT<{VehicleStoreUtil.Element}> |
variants are mixed in when in table layout |
filter |
VehicleStore.VehicleBrowserFilter |
Current browser filter; also chooses the column set (engines only, cargo or passenger). |
vehicleStoreMode |
VehicleStore.VehicleStoreMode |
Store mode; decides what the buy button shows. |
cartRef |
ReactRefWrapApi0<VehicleStore.VehicleCartApi> |
Ref to the cart, used for price checks and adding vehicles. |
Functions
setFilterSort(newFilter : VehicleStore.VehicleBrowserFilter, newSort : VehicleStore.VehicleBrowserSort, forceUpdate : boolean) base/tealdef/gui/line_vehicle_mgmt/vehicle_store_table.d.tl:9
Call as VehicleStoreTable.setFilterSort
Notes
Updates filter and sort; the table calls it once on mount with (nil, nil, true) to force a refresh.