forked from rosebudai/OpenRCT2-Web
Create TrackPaintUtilOnridePhotoPlatformPaint()
This commit is contained in:
15 files changed
+35
-55
No files matched your search
@@ -2060,6 +2060,13 @@ void TrackPaintUtilSpinningTunnelPaint(PaintSession& session, int8_t thickness,
|
||||
}
|
||||
}
|
||||
|
||||
void TrackPaintUtilOnridePhotoPlatformPaint(
|
||||
PaintSession& session, Direction direction, int32_t height, MetalSupportType supportType)
|
||||
{
|
||||
PaintAddImageAsParent(session, ImageId(SPR_STATION_BASE_D, COLOUR_BLACK), { 0, 0, height }, { 32, 32, 1 });
|
||||
TrackPaintUtilDrawStationMetalSupports(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], supportType);
|
||||
}
|
||||
|
||||
void TrackPaintUtilOnridePhotoSmallPaint(
|
||||
PaintSession& session, Direction direction, int32_t height, const TrackElement& trackElement)
|
||||
{
|
||||
|
||||
@@ -367,6 +367,18 @@ void TrackPaintUtilLeftQuarterTurn1TilePaint(
|
||||
PaintSession& session, int8_t thickness, int16_t height, int16_t boundBoxZOffset, Direction direction,
|
||||
const ImageId colourFlags, const uint32_t* sprites);
|
||||
void TrackPaintUtilSpinningTunnelPaint(PaintSession& session, int8_t thickness, int16_t height, Direction direction);
|
||||
|
||||
/**
|
||||
* Renders the black metal platform and the supports of the on-ride photo section.
|
||||
*
|
||||
* @param session
|
||||
* @param direction
|
||||
* @param height
|
||||
* @param supportType
|
||||
*/
|
||||
void TrackPaintUtilOnridePhotoPlatformPaint(
|
||||
PaintSession& session, Direction direction, int32_t height, MetalSupportType supportType);
|
||||
|
||||
void TrackPaintUtilOnridePhotoSmallPaint(
|
||||
PaintSession& session, Direction direction, int32_t height, const TrackElement& trackElement);
|
||||
void TrackPaintUtilOnridePhotoPaint(
|
||||
|
||||
@@ -3864,10 +3864,7 @@ static void BobsleighRCTrackOnRidePhoto(
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
PaintAddImageAsParentRotated(
|
||||
session, direction, ImageId(SPR_STATION_BASE_D, COLOUR_BLACK), { 0, 0, height }, { 32, 32, 1 });
|
||||
TrackPaintUtilDrawStationMetalSupports(
|
||||
session, direction, height, session.TrackColours[SCHEME_SUPPORTS], MetalSupportType::Tubes);
|
||||
TrackPaintUtilOnridePhotoPlatformPaint(session, direction, height, MetalSupportType::Tubes);
|
||||
|
||||
switch (direction)
|
||||
{
|
||||
|
||||
@@ -4743,9 +4743,7 @@ static void BolligerMabillardTrackOnRidePhoto(
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
PaintAddImageAsParentRotated(
|
||||
session, direction, ImageId(SPR_STATION_BASE_D, COLOUR_BLACK), { 0, 0, height }, { 32, 32, 1 });
|
||||
TrackPaintUtilDrawStationMetalSupports(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], supportType);
|
||||
TrackPaintUtilOnridePhotoPlatformPaint(session, direction, height, supportType);
|
||||
|
||||
switch (direction)
|
||||
{
|
||||
|
||||
@@ -5295,10 +5295,7 @@ static void CompactInvertedRCTrackOnRidePhoto(
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
PaintAddImageAsParentRotated(
|
||||
session, direction, ImageId(SPR_STATION_BASE_D, COLOUR_BLACK), { 0, 0, height }, { 32, 32, 1 });
|
||||
TrackPaintUtilDrawStationMetalSupports(
|
||||
session, direction, height, session.TrackColours[SCHEME_SUPPORTS], MetalSupportType::TubesInverted);
|
||||
TrackPaintUtilOnridePhotoPlatformPaint(session, direction, height, MetalSupportType::TubesInverted);
|
||||
|
||||
switch (direction)
|
||||
{
|
||||
|
||||
@@ -5053,10 +5053,7 @@ static void CorkscrewRCTrackOnRidePhoto(
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
PaintAddImageAsParentRotated(
|
||||
session, direction, ImageId(SPR_STATION_BASE_D, COLOUR_BLACK), { 0, 0, height }, { 32, 32, 1 });
|
||||
TrackPaintUtilDrawStationMetalSupports(
|
||||
session, direction, height, session.TrackColours[SCHEME_SUPPORTS], MetalSupportType::Tubes);
|
||||
TrackPaintUtilOnridePhotoPlatformPaint(session, direction, height, MetalSupportType::Tubes);
|
||||
|
||||
switch (direction)
|
||||
{
|
||||
|
||||
@@ -7666,10 +7666,8 @@ static void FlyingRCTrackOnRidePhoto(
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
{
|
||||
PaintAddImageAsParentRotated(
|
||||
session, direction, ImageId(SPR_STATION_BASE_D, COLOUR_BLACK), { 0, 0, height }, { 32, 32, 1 });
|
||||
TrackPaintUtilDrawStationMetalSupports(
|
||||
session, direction, height, session.TrackColours[SCHEME_SUPPORTS], MetalSupportType::TubesInverted);
|
||||
TrackPaintUtilOnridePhotoPlatformPaint(session, direction, height, MetalSupportType::TubesInverted);
|
||||
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
@@ -7700,10 +7698,8 @@ static void FlyingRCTrackOnRidePhoto(
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintAddImageAsParentRotated(
|
||||
session, direction, ImageId(SPR_STATION_BASE_D, COLOUR_BLACK), { 0, 0, height }, { 32, 32, 1 });
|
||||
TrackPaintUtilDrawStationMetalSupports(
|
||||
session, direction, height, session.TrackColours[SCHEME_SUPPORTS], MetalSupportType::TubesInverted);
|
||||
TrackPaintUtilOnridePhotoPlatformPaint(session, direction, height, MetalSupportType::TubesInverted);
|
||||
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
|
||||
@@ -4337,10 +4337,7 @@ static void GigaRCTrackOnRidePhoto(
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
PaintAddImageAsParentRotated(
|
||||
session, direction, ImageId(SPR_STATION_BASE_D, COLOUR_BLACK), { 0, 0, height }, { 32, 32, 1 });
|
||||
TrackPaintUtilDrawStationMetalSupports(
|
||||
session, direction, height, session.TrackColours[SCHEME_SUPPORTS], MetalSupportType::Tubes);
|
||||
TrackPaintUtilOnridePhotoPlatformPaint(session, direction, height, MetalSupportType::Tubes);
|
||||
|
||||
switch (direction)
|
||||
{
|
||||
|
||||
@@ -5308,10 +5308,7 @@ static void InvertedRCTrackOnRidePhoto(
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
PaintAddImageAsParentRotated(
|
||||
session, direction, ImageId(SPR_STATION_BASE_D, COLOUR_BLACK), { 0, 0, height }, { 32, 32, 1 });
|
||||
TrackPaintUtilDrawStationMetalSupports(
|
||||
session, direction, height, session.TrackColours[SCHEME_SUPPORTS], MetalSupportType::Boxed);
|
||||
TrackPaintUtilOnridePhotoPlatformPaint(session, direction, height, MetalSupportType::Boxed);
|
||||
|
||||
switch (direction)
|
||||
{
|
||||
|
||||
@@ -3630,10 +3630,7 @@ static void LayDownRCTrackOnRidePhoto(
|
||||
}
|
||||
else
|
||||
{
|
||||
PaintAddImageAsParentRotated(
|
||||
session, direction, ImageId(SPR_STATION_BASE_D, COLOUR_BLACK), { 0, 0, height }, { 32, 32, 1 });
|
||||
TrackPaintUtilDrawStationMetalSupports(
|
||||
session, direction, height, session.TrackColours[SCHEME_SUPPORTS], MetalSupportType::TubesInverted);
|
||||
TrackPaintUtilOnridePhotoPlatformPaint(session, direction, height, MetalSupportType::TubesInverted);
|
||||
|
||||
switch (direction)
|
||||
{
|
||||
|
||||
@@ -4748,10 +4748,7 @@ static void LoopingRCTrackOnRidePhoto(
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
PaintAddImageAsParentRotated(
|
||||
session, direction, ImageId(SPR_STATION_BASE_D, COLOUR_BLACK), { 0, 0, height }, { 32, 32, 1 });
|
||||
TrackPaintUtilDrawStationMetalSupports(
|
||||
session, direction, height, session.TrackColours[SCHEME_SUPPORTS], MetalSupportType::Tubes);
|
||||
TrackPaintUtilOnridePhotoPlatformPaint(session, direction, height, MetalSupportType::Tubes);
|
||||
|
||||
switch (direction)
|
||||
{
|
||||
|
||||
@@ -5212,10 +5212,7 @@ static void MultiDimensionRCTrackOnRidePhoto(
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
{
|
||||
PaintAddImageAsParentRotated(
|
||||
session, direction, ImageId(SPR_STATION_BASE_D, COLOUR_BLACK), { 0, 0, height }, { 32, 32, 1 });
|
||||
TrackPaintUtilDrawStationMetalSupports(
|
||||
session, direction, height, session.TrackColours[SCHEME_SUPPORTS], MetalSupportType::TubesInverted);
|
||||
TrackPaintUtilOnridePhotoPlatformPaint(session, direction, height, MetalSupportType::TubesInverted);
|
||||
|
||||
switch (direction)
|
||||
{
|
||||
|
||||
@@ -11050,10 +11050,7 @@ namespace SingleRailRC
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
PaintAddImageAsParentRotated(
|
||||
session, direction, ImageId(SPR_STATION_BASE_D, COLOUR_BLACK), { 0, 0, height }, { 32, 32, 1 });
|
||||
TrackPaintUtilDrawStationMetalSupports(
|
||||
session, direction, height, session.TrackColours[SCHEME_SUPPORTS], MetalSupportType::Tubes);
|
||||
TrackPaintUtilOnridePhotoPlatformPaint(session, direction, height, MetalSupportType::Tubes);
|
||||
|
||||
switch (direction)
|
||||
{
|
||||
|
||||
@@ -5245,10 +5245,7 @@ static void StandUpRCTrackOnRidePhoto(
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
PaintAddImageAsParentRotated(
|
||||
session, direction, ImageId(SPR_STATION_BASE_D, COLOUR_BLACK), { 0, 0, height }, { 32, 32, 1 });
|
||||
TrackPaintUtilDrawStationMetalSupports(
|
||||
session, direction, height, session.TrackColours[SCHEME_SUPPORTS], MetalSupportType::Tubes);
|
||||
TrackPaintUtilOnridePhotoPlatformPaint(session, direction, height, MetalSupportType::Tubes);
|
||||
|
||||
switch (direction)
|
||||
{
|
||||
|
||||
@@ -810,10 +810,7 @@ static void PaintLogFlumeTrackOnRidePhoto(
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
PaintAddImageAsParent(session, ImageId(SPR_STATION_BASE_D, COLOUR_BLACK), { 0, 0, height }, { 32, 32, 1 });
|
||||
|
||||
TrackPaintUtilDrawStationMetalSupports(
|
||||
session, direction, height, session.TrackColours[SCHEME_SUPPORTS], MetalSupportType::Boxed);
|
||||
TrackPaintUtilOnridePhotoPlatformPaint(session, direction, height, MetalSupportType::Boxed);
|
||||
|
||||
auto imageId = session.TrackColours[SCHEME_TRACK].WithIndex(LogFlumeTrackFlatImageIds[direction][0]);
|
||||
PaintAddImageAsParentRotated(session, direction, imageId, { 0, 0, height }, { { 0, 6, height + 3 }, { 32, 20, 0 } });
|
||||
|
||||
Reference in new issue
Block a user