mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-23 15:52:55 +01:00
Move WindowRideConstructionUpdateActiveElements out of _legacy.cpp
This commit is contained in:
@@ -182,6 +182,7 @@ static Widget _rideConstructionWidgets[] = {
|
||||
};
|
||||
|
||||
static void WindowRideConstructionMouseUpDemolishNextPiece(const CoordsXYZD& piecePos, int32_t type);
|
||||
static void WindowRideConstructionUpdateActiveElements();
|
||||
|
||||
/* move to ride.c */
|
||||
static void CloseRideWindowForConstruction(RideId rideId)
|
||||
@@ -4629,4 +4630,10 @@ static Widget _rideConstructionWidgets[] = {
|
||||
WindowRideConstructionUpdateActiveElements();
|
||||
}
|
||||
}
|
||||
|
||||
static void WindowRideConstructionUpdateActiveElements()
|
||||
{
|
||||
auto intent = Intent(INTENT_ACTION_RIDE_CONSTRUCTION_UPDATE_ACTIVE_ELEMENTS);
|
||||
ContextBroadcastIntent(&intent);
|
||||
}
|
||||
} // namespace OpenRCT2::Ui::Windows
|
||||
|
||||
@@ -1046,7 +1046,6 @@ bool TrackBlockGetPreviousFromZero(
|
||||
|
||||
void RideGetStartOfTrack(CoordsXYE* output);
|
||||
|
||||
void WindowRideConstructionUpdateActiveElements();
|
||||
money64 RideEntranceExitPlaceGhost(
|
||||
const Ride& ride, const CoordsXY& entranceExitCoords, Direction direction, int32_t placeType, StationIndex stationNum);
|
||||
|
||||
|
||||
@@ -464,6 +464,12 @@ std::optional<CoordsXYZ> GetTrackElementOriginAndApplyChanges(
|
||||
return retCoordsXYZ;
|
||||
}
|
||||
|
||||
static void WindowRideConstructionUpdateActiveElements()
|
||||
{
|
||||
auto intent = Intent(INTENT_ACTION_RIDE_CONSTRUCTION_UPDATE_ACTIVE_ELEMENTS);
|
||||
ContextBroadcastIntent(&intent);
|
||||
}
|
||||
|
||||
void RideRestoreProvisionalTrackPiece()
|
||||
{
|
||||
if (_currentTrackSelectionFlags & TRACK_SELECTION_FLAG_TRACK)
|
||||
|
||||
@@ -396,16 +396,6 @@ bool WindowRideConstructionUpdateState(
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* rct2: 0x006C84CE
|
||||
*/
|
||||
void WindowRideConstructionUpdateActiveElements()
|
||||
{
|
||||
auto intent = Intent(INTENT_ACTION_RIDE_CONSTRUCTION_UPDATE_ACTIVE_ELEMENTS);
|
||||
ContextBroadcastIntent(&intent);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* rct2: 0x0066DB3D
|
||||
|
||||
Reference in New Issue
Block a user