mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 06:53:43 +00:00
Support custom pause and banner graphics
This commit is contained in:
@@ -62,17 +62,17 @@ void DrawBanner (Point *topLeft)
|
|||||||
topLeft->v = wholePage.top;
|
topLeft->v = wholePage.top;
|
||||||
partPage = wholePage;
|
partPage = wholePage;
|
||||||
partPage.bottom = partPage.top + 190;
|
partPage.bottom = partPage.top + 190;
|
||||||
LoadScaledGraphic(workSrcMap, kBannerPageTopPICT, &partPage);
|
LoadScaledGraphicCustom(workSrcMap, kBannerPageTopPICT, &partPage);
|
||||||
|
|
||||||
partPage = wholePage;
|
partPage = wholePage;
|
||||||
partPage.top = partPage.bottom - 30;
|
partPage.top = partPage.bottom - 30;
|
||||||
mapBounds = partPage;
|
mapBounds = partPage;
|
||||||
ZeroRectCorner(&mapBounds);
|
ZeroRectCorner(&mapBounds);
|
||||||
theErr = CreateOffScreenGWorld(&tempMap, &mapBounds, kPreferredPixelFormat);
|
theErr = CreateOffScreenGWorld(&tempMap, &mapBounds, kPreferredPixelFormat);
|
||||||
LoadGraphic(tempMap, kBannerPageBottomPICT);
|
LoadGraphicCustom(tempMap, kBannerPageBottomPICT);
|
||||||
|
|
||||||
theErr = CreateOffScreenGWorld(&tempMask, &mapBounds, GpPixelFormats::kBW1);
|
theErr = CreateOffScreenGWorld(&tempMask, &mapBounds, GpPixelFormats::kBW1);
|
||||||
LoadGraphic(tempMask, kBannerPageBottomMask);
|
LoadGraphicCustom(tempMask, kBannerPageBottomMask);
|
||||||
|
|
||||||
CopyMask((BitMap *)*GetGWorldPixMap(tempMap),
|
CopyMask((BitMap *)*GetGWorldPixMap(tempMap),
|
||||||
(BitMap *)*GetGWorldPixMap(tempMask),
|
(BitMap *)*GetGWorldPixMap(tempMask),
|
||||||
@@ -232,10 +232,10 @@ void DisplayStarsRemaining(void)
|
|||||||
NumToString((long)numStarsRemaining, theStr);
|
NumToString((long)numStarsRemaining, theStr);
|
||||||
|
|
||||||
if (numStarsRemaining < 2)
|
if (numStarsRemaining < 2)
|
||||||
LoadScaledGraphic(surface, kStarRemainingPICT, &bounds);
|
LoadScaledGraphicCustom(surface, kStarRemainingPICT, &bounds);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
LoadScaledGraphic(surface, kStarsRemainingPICT, &bounds);
|
LoadScaledGraphicCustom(surface, kStarsRemainingPICT, &bounds);
|
||||||
const Point textPoint = Point::Create(bounds.left + 102 - (appFont->MeasurePStr(theStr) / 2), bounds.top + 23);
|
const Point textPoint = Point::Create(bounds.left + 102 - (appFont->MeasurePStr(theStr) / 2), bounds.top + 23);
|
||||||
ColorText(surface, textPoint, theStr, 4L, appFont);
|
ColorText(surface, textPoint, theStr, 4L, appFont);
|
||||||
}
|
}
|
||||||
|
@@ -88,9 +88,9 @@ void DoPause (void)
|
|||||||
QSetRect(&bounds, 0, 0, 214, 54);
|
QSetRect(&bounds, 0, 0, 214, 54);
|
||||||
CenterRectInRect(&bounds, &houseRect);
|
CenterRectInRect(&bounds, &houseRect);
|
||||||
if (isEscPauseKey)
|
if (isEscPauseKey)
|
||||||
LoadScaledGraphic(surface, kEscPausePictID, &bounds);
|
LoadScaledGraphicCustom(surface, kEscPausePictID, &bounds);
|
||||||
else
|
else
|
||||||
LoadScaledGraphic(surface, kTabPausePictID, &bounds);
|
LoadScaledGraphicCustom(surface, kTabPausePictID, &bounds);
|
||||||
|
|
||||||
const KeyDownStates *theKeys = nullptr;
|
const KeyDownStates *theKeys = nullptr;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user