mirror of
https://github.com/softdorothy/GliderPRO.git
synced 2025-02-01 13:32:37 +00:00
First check-in.
Sources for Glider PRO, a Macintosh game written by John Calhoun and published by Casady & Greene, Inc. I believe it was using CodeWarrior IDE to create a fat (68K and PowerPC) binary.
This commit is contained in:
parent
350db52860
commit
7a70d18ba6
BIN
Glider PRO CW5.mcp
Executable file
BIN
Glider PRO CW5.mcp
Executable file
Binary file not shown.
BIN
Glider PRO.mcp
Executable file
BIN
Glider PRO.mcp
Executable file
Binary file not shown.
0
Glider PRO.rsrc
Executable file
0
Glider PRO.rsrc
Executable file
1
Headers/About.h
Executable file
1
Headers/About.h
Executable file
@ -0,0 +1 @@
|
||||
//============================================================================
//----------------------------------------------------------------------------
// About.h
//----------------------------------------------------------------------------
//============================================================================
void DoAbout (void);
|
1
Headers/DialogUtils.h
Executable file
1
Headers/DialogUtils.h
Executable file
@ -0,0 +1 @@
|
||||
//============================================================================
//----------------------------------------------------------------------------
// DialogUtils.h
//----------------------------------------------------------------------------
//============================================================================
#include <Dialogs.h>
void BringUpDialog (DialogPtr *theDialog, short dialogID);
//void GetPutDialogCorner (Point *);
//void GetGetDialogCorner (Point *);
//void CenterDialog (short);
void GetDialogRect (Rect *, short);
//void TrueCenterDialog (short);
//void CenterAlert (short);
//void ZoomOutDialogRect (short);
//void ZoomOutAlertRect (short);
void FlashDialogButton (DialogPtr, short);
void DrawDefaultButton (DialogPtr);
void GetDialogString (DialogPtr, short, StringPtr);
void SetDialogString (DialogPtr, short, StringPtr);
short GetDialogStringLen (DialogPtr, short);
void GetDialogItemValue (DialogPtr, short, short *);
void SetDialogItemValue (DialogPtr, short, short);
void ToggleDialogItemValue (DialogPtr, short);
void SetDialogNumToStr (DialogPtr, short, long);
void GetDialogNumFromStr (DialogPtr, short, long *);
void GetDialogItemRect (DialogPtr, short, Rect *);
void SetDialogItemRect (DialogPtr, short, Rect *);
void OffsetDialogItemRect (DialogPtr, short, short, short);
void SelectFromRadioGroup (DialogPtr, short, short, short);
//void AddMenuToPopUp (DialogPtr, short, MenuHandle);
void GetPopUpMenuValue (DialogPtr, short, short *);
void SetPopUpMenuValue (DialogPtr, short, short);
void MyEnableControl(DialogPtr, short);
void MyDisableControl(DialogPtr, short);
void DrawDialogUserText (DialogPtr, short, StringPtr, Boolean);
void DrawDialogUserText2 (DialogPtr, short, StringPtr);
void LoadDialogPICT (DialogPtr, short, short);
void FrameDialogItem (DialogPtr, short);
void FrameDialogItemC (DialogPtr, short, long);
void FrameOvalDialogItem (DialogPtr, short);
void BorderDialogItem (DialogPtr, short, short);
void ShadowDialogItem (DialogPtr, short, short);
void EraseDialogItem (DialogPtr, short);
|
1
Headers/DynamicMaps.h
Executable file
1
Headers/DynamicMaps.h
Executable file
@ -0,0 +1 @@
|
||||
//============================================================================
//----------------------------------------------------------------------------
// DynamicMaps.h
//----------------------------------------------------------------------------
//============================================================================
|
1
Headers/Environ.h
Executable file
1
Headers/Environ.h
Executable file
@ -0,0 +1 @@
|
||||
//============================================================================
//----------------------------------------------------------------------------
// Environ.h
//----------------------------------------------------------------------------
//============================================================================
#include <Quickdraw.h>
typedef struct
{
Rect screen, gray;
long dirID;
short wasDepth, isDepth;
short thisResFile;
short numScreens;
short vRefNum;
Boolean can1Bit;
Boolean can4Bit;
Boolean can8Bit;
Boolean wasColorOrGray;
Boolean hasWNE;
Boolean hasSystem7;
Boolean hasColor;
Boolean hasGestalt;
Boolean canSwitch;
Boolean canColor;
Boolean hasSM3;
Boolean hasQT;
Boolean hasDrag;
} macEnviron;
extern macEnviron thisMac;
|
1
Headers/Externs.h
Executable file
1
Headers/Externs.h
Executable file
File diff suppressed because one or more lines are too long
1
Headers/GameOver.h
Executable file
1
Headers/GameOver.h
Executable file
@ -0,0 +1 @@
|
||||
//============================================================================
//----------------------------------------------------------------------------
// GameOver.h
//----------------------------------------------------------------------------
//============================================================================
#include <QDOffscreen.h>
extern GWorldPtr angelSrcMap;
extern GWorldPtr angelMaskMap;
|
1
Headers/GliderDefines.h
Executable file
1
Headers/GliderDefines.h
Executable file
File diff suppressed because one or more lines are too long
1
Headers/GliderProtos.h
Executable file
1
Headers/GliderProtos.h
Executable file
File diff suppressed because one or more lines are too long
1
Headers/GliderStructs.h
Executable file
1
Headers/GliderStructs.h
Executable file
File diff suppressed because one or more lines are too long
1
Headers/GliderVars.h
Executable file
1
Headers/GliderVars.h
Executable file
@ -0,0 +1 @@
|
||||
//============================================================================
//----------------------------------------------------------------------------
// GliderVars.h
//----------------------------------------------------------------------------
//============================================================================
#include <Movies.h>
extern Rect blowerSrcRect;
extern Rect flame[], tikiFlame[];
extern Rect coals[];
extern Rect furnitureSrcRect;
extern Rect tableSrc, shelfSrc, hingeSrc, handleSrc, knobSrc;
extern Rect leftFootSrc, rightFootSrc, deckSrc;
extern Rect bonusSrcRect;
extern Rect pointsSrcRect;
extern Rect starSrc[], sparkleSrc[];
extern Rect digits[], pendulumSrc[], greaseSrcRt[], greaseSrcLf[];
extern Rect transSrcRect;
extern Rect switchSrcRect;
extern Rect lightSwitchSrc[], machineSwitchSrc[], thermostatSrc[];
extern Rect powerSrc[], knifeSwitchSrc[];
extern Rect lightSrcRect;
extern Rect flourescentSrc1, flourescentSrc2;
extern Rect trackLightSrc[];
extern Rect applianceSrcRect, toastSrcRect, shredSrcRect; // Appliances
extern Rect plusScreen1, plusScreen2, tvScreen1, tvScreen2;
extern Rect coffeeLight1, coffeeLight2, vcrTime1, vcrTime2;
extern Rect stereoLight1, stereoLight2, microOn, microOff;
extern Rect outletSrc[];
extern Rect balloonSrcRect, copterSrcRect, dartSrcRect; // Enemies
extern Rect ballSrcRect, dripSrcRect, enemySrcRect;
extern Rect fishSrcRect;
extern Rect balloonSrc[], copterSrc[], dartSrc[];
extern Rect ballSrc[], dripSrc[], fishSrc[];
extern Rect clutterSrcRect;
extern Rect flowerSrc[];
extern Rect *srcRects;
extern Movie theMovie;
extern Rect movieRect;
extern Boolean hasMovie, tvInRoom;
extern gliderType theGlider, theGlider2;
extern objDataPtr masterObjects;
extern Rect workSrcRect;
extern Rect backSrcRect;
extern Rect mainWindowRect, houseRect;
extern houseHand thisHouse;
extern roomPtr thisRoom;
extern WindowPtr mainWindow, coordWindow;
extern long theScore;
extern short playOriginH, playOriginV;
extern short thisRoomNumber, theMode, batteryTotal, bandsTotal;
extern short foilTotal, mortals, numMasterObjects, previousRoom;
extern Boolean fileDirty, gameDirty, showFoil, doZooms, isPlayMusicGame;
|
1
Headers/House.h
Executable file
1
Headers/House.h
Executable file
@ -0,0 +1 @@
|
||||
//============================================================================
//----------------------------------------------------------------------------
// House.h
//----------------------------------------------------------------------------
//============================================================================
#include <MacTypes.h>
extern Str32 thisHouseName;
extern Boolean houseUnlocked;
|
1
Headers/MainWindow.h
Executable file
1
Headers/MainWindow.h
Executable file
@ -0,0 +1 @@
|
||||
//============================================================================
//----------------------------------------------------------------------------
// MainWindow.h
//----------------------------------------------------------------------------
//============================================================================
#include <QDOffscreen.h>
extern GWorldPtr workSrcMap;
|
1
Headers/Map.h
Executable file
1
Headers/Map.h
Executable file
@ -0,0 +1 @@
|
||||
//============================================================================
//----------------------------------------------------------------------------
// Map.h
//----------------------------------------------------------------------------
//============================================================================
#include <QDOffscreen.h>
extern GWorldPtr nailSrcMap;
extern WindowPtr mapWindow;
|
1
Headers/Marquee.h
Executable file
1
Headers/Marquee.h
Executable file
@ -0,0 +1 @@
|
||||
//============================================================================
//----------------------------------------------------------------------------
// Marquee.h
//----------------------------------------------------------------------------
//============================================================================
#pragma once
#include <Quickdraw.h>
typedef struct
{
Pattern pats[kNumMarqueePats];
Rect bounds, handle;
short index, direction, dist;
Boolean active, paused, handled;
} marquee;
extern marquee theMarquee;
|
1
Headers/ObjectEdit.h
Executable file
1
Headers/ObjectEdit.h
Executable file
@ -0,0 +1 @@
|
||||
//============================================================================
//----------------------------------------------------------------------------
// ObjectEdit.h
//----------------------------------------------------------------------------
//============================================================================
#pragma once
#include <Quickdraw.h>
extern Rect roomObjectRects[];
extern short objActive;
|
1
Headers/Objects.h
Executable file
1
Headers/Objects.h
Executable file
@ -0,0 +1 @@
|
||||
//============================================================================
//----------------------------------------------------------------------------
// Objects.h
//----------------------------------------------------------------------------
//============================================================================
extern GWorldPtr blowerSrcMap;
extern GWorldPtr blowerMaskMap;
extern GWorldPtr furnitureSrcMap;
extern GWorldPtr furnitureMaskMap;
extern GWorldPtr bonusSrcMap;
extern GWorldPtr bonusMaskMap;
extern GWorldPtr pointsSrcMap;
extern GWorldPtr pointsMaskMap;
extern GWorldPtr transSrcMap;
extern GWorldPtr transMaskMap;
extern GWorldPtr switchSrcMap;
extern GWorldPtr lightSrcMap;
extern GWorldPtr lightMaskMap;
extern GWorldPtr applianceSrcMap;
extern GWorldPtr applianceMaskMap;
extern GWorldPtr toastSrcMap;
extern GWorldPtr toastMaskMap;
extern GWorldPtr shredSrcMap;
extern GWorldPtr shredMaskMap;
extern GWorldPtr balloonSrcMap;
extern GWorldPtr balloonMaskMap;
extern GWorldPtr copterSrcMap;
extern GWorldPtr copterMaskMap;
extern GWorldPtr dartSrcMap;
extern GWorldPtr dartMaskMap;
extern GWorldPtr ballSrcMap;
extern GWorldPtr ballMaskMap;
extern GWorldPtr dripSrcMap;
extern GWorldPtr dripMaskMap;
extern GWorldPtr enemySrcMap;
extern GWorldPtr enemyMaskMap;
extern GWorldPtr fishSrcMap;
extern GWorldPtr fishMaskMap;
extern GWorldPtr clutterSrcMap;
extern GWorldPtr clutterMaskMap;
|
1
Headers/Play.h
Executable file
1
Headers/Play.h
Executable file
@ -0,0 +1 @@
|
||||
//============================================================================
//----------------------------------------------------------------------------
// Play.h
//----------------------------------------------------------------------------
//============================================================================
#include <QDOffscreen.h>
extern GWorldPtr glidSrcMap;
extern GWorldPtr glid2SrcMap;
extern GWorldPtr glidMaskMap;
|
1
Headers/Player.h
Executable file
1
Headers/Player.h
Executable file
@ -0,0 +1 @@
|
||||
//============================================================================
//----------------------------------------------------------------------------
// Player.h
//----------------------------------------------------------------------------
//============================================================================
#include <QDOffscreen.h>
extern GWorldPtr shadowSrcMap;
extern GWorldPtr shadowMaskMap;
|
1
Headers/RectUtils.h
Executable file
1
Headers/RectUtils.h
Executable file
@ -0,0 +1 @@
|
||||
//============================================================================
//----------------------------------------------------------------------------
// RectUtils.h
//----------------------------------------------------------------------------
//============================================================================
#pragma once
#include <Quickdraw.h>
void FrameWHRect (short, short, short, short);
void NormalizeRect (Rect *);
void ZeroRectCorner (Rect *);
void CenterRectOnPoint (Rect *, Point);
short HalfRectWide (Rect *);
short HalfRectTall (Rect *);
short RectWide (Rect *);
short RectTall (Rect *);
void GlobalToLocalRect (Rect *);
void LocalToGlobalRect (Rect *);
void CenterRectInRect (Rect *, Rect *);
void HOffsetRect (Rect *, short);
void VOffsetRect (Rect *, short);
Boolean IsRectLeftOfRect (Rect *, Rect *);
void QOffsetRect (Rect *, short, short);
void QSetRect (Rect *, short, short, short, short);
Boolean ForceRectInRect (Rect *, Rect *);
void QUnionSimilarRect (Rect *, Rect *, Rect *);
void FrameRectSansCorners (Rect *);
void SetEraseRect (short, short, short, short);
|
1
Headers/Room.h
Executable file
1
Headers/Room.h
Executable file
@ -0,0 +1 @@
|
||||
//============================================================================
//----------------------------------------------------------------------------
// Room.h
//----------------------------------------------------------------------------
//============================================================================
#include <QDOffscreen.h>
extern GWorldPtr backSrcMap;
|
1
Headers/RoomGraphics.h
Executable file
1
Headers/RoomGraphics.h
Executable file
@ -0,0 +1 @@
|
||||
//============================================================================
//----------------------------------------------------------------------------
// RoomGraphics.h
//----------------------------------------------------------------------------
//============================================================================
#include <QDOffscreen.h>
extern GWorldPtr suppSrcMap;
|
1
Headers/RubberBands.h
Executable file
1
Headers/RubberBands.h
Executable file
@ -0,0 +1 @@
|
||||
//============================================================================
//----------------------------------------------------------------------------
// RubberBands.h
//----------------------------------------------------------------------------
//============================================================================
#include <QDOffscreen.h>
extern GWorldPtr bandsSrcMap;
extern GWorldPtr bandsMaskMap;
|
1
Headers/Scoreboard.h
Executable file
1
Headers/Scoreboard.h
Executable file
@ -0,0 +1 @@
|
||||
//============================================================================
//----------------------------------------------------------------------------
// Scoreboard.h
//----------------------------------------------------------------------------
//============================================================================
#include <QDOffscreen.h>
extern GWorldPtr boardSrcMap;
extern GWorldPtr badgeSrcMap;
extern GWorldPtr boardTSrcMap;
extern GWorldPtr boardGSrcMap;
extern GWorldPtr boardPSrcMap;
|
1
Headers/Tools.h
Executable file
1
Headers/Tools.h
Executable file
@ -0,0 +1 @@
|
||||
//============================================================================
//----------------------------------------------------------------------------
// Tools.h
//----------------------------------------------------------------------------
//============================================================================
#include <QDOffscreen.h>
extern GWorldPtr toolSrcMap;
extern WindowPtr toolsWindow;
|
1
Headers/Utilities.h
Executable file
1
Headers/Utilities.h
Executable file
@ -0,0 +1 @@
|
||||
//============================================================================
//----------------------------------------------------------------------------
// Utilities.c
//----------------------------------------------------------------------------
//============================================================================
#include <QDOffscreen.h>
OSErr CreateOffScreenGWorld (GWorldPtr *theGWorld, Rect *bounds, short depth);
|
BIN
Houses/Art Museum
Executable file
BIN
Houses/Art Museum
Executable file
Binary file not shown.
BIN
Houses/Art Museum.mov
Executable file
BIN
Houses/Art Museum.mov
Executable file
Binary file not shown.
BIN
Houses/CD Demo House
Executable file
BIN
Houses/CD Demo House
Executable file
Binary file not shown.
BIN
Houses/CD Demo House.mov
Executable file
BIN
Houses/CD Demo House.mov
Executable file
Binary file not shown.
BIN
Houses/California or Bust!
Executable file
BIN
Houses/California or Bust!
Executable file
Binary file not shown.
BIN
Houses/Castle o' the Air
Executable file
BIN
Houses/Castle o' the Air
Executable file
Binary file not shown.
BIN
Houses/Castle o' the Air.mov
Executable file
BIN
Houses/Castle o' the Air.mov
Executable file
Binary file not shown.
BIN
Houses/Davis Station
Executable file
BIN
Houses/Davis Station
Executable file
Binary file not shown.
BIN
Houses/Davis Station.mov
Executable file
BIN
Houses/Davis Station.mov
Executable file
Binary file not shown.
BIN
Houses/Demo House
Executable file
BIN
Houses/Demo House
Executable file
Binary file not shown.
BIN
Houses/Demo House.mov
Executable file
BIN
Houses/Demo House.mov
Executable file
Binary file not shown.
BIN
Houses/Empty House
Executable file
BIN
Houses/Empty House
Executable file
Binary file not shown.
BIN
Houses/Fun House
Executable file
BIN
Houses/Fun House
Executable file
Binary file not shown.
BIN
Houses/Grand Prix
Executable file
BIN
Houses/Grand Prix
Executable file
Binary file not shown.
BIN
Houses/Grand Prix.mov
Executable file
BIN
Houses/Grand Prix.mov
Executable file
Binary file not shown.
BIN
Houses/ImagineHouse PRO II
Executable file
BIN
Houses/ImagineHouse PRO II
Executable file
Binary file not shown.
BIN
Houses/ImagineHouse PRO II.mov
Executable file
BIN
Houses/ImagineHouse PRO II.mov
Executable file
Binary file not shown.
BIN
Houses/In The Mirror
Executable file
BIN
Houses/In The Mirror
Executable file
Binary file not shown.
BIN
Houses/Land of Illusion
Executable file
BIN
Houses/Land of Illusion
Executable file
Binary file not shown.
BIN
Houses/Land of Illusion.mov
Executable file
BIN
Houses/Land of Illusion.mov
Executable file
Binary file not shown.
BIN
Houses/Leviathan
Executable file
BIN
Houses/Leviathan
Executable file
Binary file not shown.
BIN
Houses/Leviathan.mov
Executable file
BIN
Houses/Leviathan.mov
Executable file
Binary file not shown.
BIN
Houses/Metropolis
Executable file
BIN
Houses/Metropolis
Executable file
Binary file not shown.
BIN
Houses/Nemo's Market
Executable file
BIN
Houses/Nemo's Market
Executable file
Binary file not shown.
BIN
Houses/Nemo's Market.mov
Executable file
BIN
Houses/Nemo's Market.mov
Executable file
Binary file not shown.
BIN
Houses/Rainbow's End
Executable file
BIN
Houses/Rainbow's End
Executable file
Binary file not shown.
BIN
Houses/Rainbow's End.mov
Executable file
BIN
Houses/Rainbow's End.mov
Executable file
Binary file not shown.
BIN
Houses/Sampler
Executable file
BIN
Houses/Sampler
Executable file
Binary file not shown.
BIN
Houses/Slumberland
Executable file
BIN
Houses/Slumberland
Executable file
Binary file not shown.
BIN
Houses/Slumberland.mov
Executable file
BIN
Houses/Slumberland.mov
Executable file
Binary file not shown.
BIN
Houses/SpacePods
Executable file
BIN
Houses/SpacePods
Executable file
Binary file not shown.
BIN
Houses/SpacePods.mov
Executable file
BIN
Houses/SpacePods.mov
Executable file
Binary file not shown.
BIN
Houses/Teddy World
Executable file
BIN
Houses/Teddy World
Executable file
Binary file not shown.
BIN
Houses/Teddy World.mov
Executable file
BIN
Houses/Teddy World.mov
Executable file
Binary file not shown.
BIN
Houses/The Asylum Pro
Executable file
BIN
Houses/The Asylum Pro
Executable file
Binary file not shown.
BIN
Houses/Titanic
Executable file
BIN
Houses/Titanic
Executable file
Binary file not shown.
BIN
Houses/Titanic.mov
Executable file
BIN
Houses/Titanic.mov
Executable file
Binary file not shown.
1
Prefix.h
Executable file
1
Prefix.h
Executable file
@ -0,0 +1 @@
|
||||
#define TARGET_CARBON 1
#define ACCESSOR_CALLS_ARE_FUNCTIONS 1
#define OPAQUE_TOOLBOX_STRUCTS 1
#define OPAQUE_UPP_TYPES 1
#define forCarbon 1
#define BUILDING_RUN_LINKED_IN 0
#define DEBUG 1
|
1
Sources/About.c
Executable file
1
Sources/About.c
Executable file
File diff suppressed because one or more lines are too long
1
Sources/AnimCursor.c
Executable file
1
Sources/AnimCursor.c
Executable file
File diff suppressed because one or more lines are too long
1
Sources/AppleEvents.c
Executable file
1
Sources/AppleEvents.c
Executable file
File diff suppressed because one or more lines are too long
1
Sources/Banner.c
Executable file
1
Sources/Banner.c
Executable file
File diff suppressed because one or more lines are too long
1
Sources/ColorUtils.c
Executable file
1
Sources/ColorUtils.c
Executable file
File diff suppressed because one or more lines are too long
1
Sources/Coordinates.c
Executable file
1
Sources/Coordinates.c
Executable file
@ -0,0 +1 @@
|
||||
//============================================================================
//----------------------------------------------------------------------------
// Coordinates.c
//----------------------------------------------------------------------------
//============================================================================
#include <NumberFormatting.h>
#include "Externs.h"
#include "Environ.h"
#include "Marquee.h"
#include "ObjectEdit.h"
#include "RectUtils.h"
Rect coordWindowRect;
WindowPtr coordWindow;
short isCoordH, isCoordV;
short coordH, coordV, coordD;
Boolean isCoordOpen;
//============================================================== Functions
//-------------------------------------------------------------- SetCoordinateHVD
// Given a horizontal, vertical and distance value, this functionÉ
// displays these values in the Coordinates window.
void SetCoordinateHVD (short h, short v, short d)
{
#ifndef COMPILEDEMO
if (h != -2)
coordH = h;
if (v != -2)
coordV = v;
if (d != -2)
coordD = d;
UpdateCoordWindow();
#endif
}
//-------------------------------------------------------------- DeltaCoordinateD
// When the user is dragging a handle (such as the height of a blower)É
// this function can be called and passed the amount by which the userÉ
// has changed the height (delta). This function then displays it inÉ
// the Coordinate window.
void DeltaCoordinateD (short d)
{
#ifndef COMPILEDEMO
coordD = d;
UpdateCoordWindow();
#endif
}
//-------------------------------------------------------------- UpdateCoordWindow
// Completely redraws and updates the Coordinate window.
void UpdateCoordWindow (void)
{
#ifndef COMPILEDEMO
Str255 tempStr, numStr;
GrafPtr wasPort;
if (coordWindow == nil)
return;
GetPort(&wasPort);
SetPort((GrafPtr)coordWindow);
EraseRect(&coordWindowRect);
PasStringCopy("\ph: ", tempStr);
if (coordH != -1)
{
NumToString((long)coordH, numStr);
PasStringConcat(tempStr, numStr);
}
else
PasStringConcat(tempStr, "\p-");
MoveTo(5, 12);
DrawString(tempStr);
PasStringCopy("\pv: ", tempStr);
if (coordV != -1)
{
NumToString((long)coordV, numStr);
PasStringConcat(tempStr, numStr);
}
else
PasStringConcat(tempStr, "\p-");
MoveTo(4, 22);
DrawString(tempStr);
ForeColor(blueColor);
PasStringCopy("\pd: ", tempStr);
if (coordD != -1)
{
NumToString((long)coordD, numStr);
PasStringConcat(tempStr, numStr);
}
else
PasStringConcat(tempStr, "\p-");
MoveTo(5, 32);
DrawString(tempStr);
ForeColor(blackColor);
SetPort((GrafPtr)wasPort);
#endif
}
//-------------------------------------------------------------- OpenCoordWindow
// Brings up the Coordinate window.
void OpenCoordWindow (void)
{
#ifndef COMPILEDEMO
Rect src, dest;
Point globalMouse;
short direction, dist;
if (coordWindow == nil)
{
QSetRect(&coordWindowRect, 0, 0, 50, 38);
if (thisMac.hasColor)
coordWindow = NewCWindow(nil, &coordWindowRect,
"\pTools", false, kWindoidWDEF, kPutInFront, true, 0L);
else
coordWindow = NewWindow(nil, &coordWindowRect,
"\pTools", false, kWindoidWDEF, kPutInFront, true, 0L);
if (coordWindow == nil)
RedAlert(kErrNoMemory);
// if (OptionKeyDown())
// {
// isCoordH = qd.screenBits.bounds.right - 55;
// isCoordV = 204;
// }
MoveWindow(coordWindow, isCoordH, isCoordV, true);
globalMouse = MyGetGlobalMouse();
QSetRect(&src, 0, 0, 1, 1);
QOffsetRect(&src, globalMouse.h, globalMouse.v);
GetWindowRect(coordWindow, &dest);
BringToFront(coordWindow);
ShowHide(coordWindow, true);
// FlagWindowFloating(coordWindow); TEMP - use flaoting windows
HiliteAllWindows();
coordH = -1;
coordV = -1;
coordD = -1;
TextFace(applFont);
TextSize(9);
if (objActive != kNoObjectSelected)
{
if (ObjectHasHandle(&direction, &dist))
coordD = dist;
SetCoordinateHVD(theMarquee.bounds.left, theMarquee.bounds.top, coordD);
}
}
UpdateCoordinateCheckmark(true);
#endif
}
//-------------------------------------------------------------- CloseCoordWindow
// Closes and disposes of the Coordinate window.
void CloseCoordWindow (void)
{
CloseThisWindow(&coordWindow);
UpdateCoordinateCheckmark(false);
}
//-------------------------------------------------------------- ToggleCoordinateWindow
// Toggles the Coordinate windows state between open and closed.
void ToggleCoordinateWindow (void)
{
#ifndef COMPILEDEMO
if (coordWindow == nil)
{
OpenCoordWindow();
isCoordOpen = true;
}
else
{
CloseCoordWindow();
isCoordOpen = false;
}
#endif
}
|
1
Sources/DebugUtilities.c
Executable file
1
Sources/DebugUtilities.c
Executable file
File diff suppressed because one or more lines are too long
1
Sources/DialogUtils.c
Executable file
1
Sources/DialogUtils.c
Executable file
File diff suppressed because one or more lines are too long
1
Sources/DynamicMaps.c
Executable file
1
Sources/DynamicMaps.c
Executable file
File diff suppressed because one or more lines are too long
1
Sources/Dynamics.c
Executable file
1
Sources/Dynamics.c
Executable file
File diff suppressed because one or more lines are too long
1
Sources/Dynamics2.c
Executable file
1
Sources/Dynamics2.c
Executable file
File diff suppressed because one or more lines are too long
1
Sources/Dynamics3.c
Executable file
1
Sources/Dynamics3.c
Executable file
File diff suppressed because one or more lines are too long
1
Sources/Environ.c
Executable file
1
Sources/Environ.c
Executable file
File diff suppressed because one or more lines are too long
1
Sources/Events.c
Executable file
1
Sources/Events.c
Executable file
File diff suppressed because one or more lines are too long
1
Sources/FileError.c
Executable file
1
Sources/FileError.c
Executable file
@ -0,0 +1 @@
|
||||
//============================================================================
//----------------------------------------------------------------------------
// FileError.c
//----------------------------------------------------------------------------
//============================================================================
#include <NumberFormatting.h>
#include <TextUtils.h>
#include "Externs.h"
#define rFileErrorAlert 140
#define rFileErrorStrings 140
//============================================================== Functions
//-------------------------------------------------------------- CheckFileError
// Given a result code (returned from a previous file operation) thisÉ
// function cheks to see if the result code is an error and, if it isÉ
// a common error for which I have a string message, I bring up anÉ
// alert with the error message. If it is an unusual error, I stillÉ
// bring up an alert but with "Miscellaneous file error" and theÉ
// error ID.
Boolean CheckFileError (short resultCode, StringPtr fileName)
{
short dummyInt, stringIndex;
Str255 errMessage, errNumString;
if (resultCode == noErr) // No problems? Then cruise
return(true);
switch (resultCode)
{
case dirFulErr:
stringIndex = 2;
break;
case dskFulErr:
stringIndex = 3;
break;
case ioErr:
stringIndex = 4;
break;
case bdNamErr:
stringIndex = 5;
break;
case fnOpnErr:
stringIndex = 6;
break;
case mFulErr:
stringIndex = 7;
break;
case tmfoErr:
stringIndex = 8;
break;
case wPrErr:
stringIndex = 9;
break;
case fLckdErr:
stringIndex = 10;
break;
case vLckdErr:
stringIndex = 11;
break;
case fBsyErr:
stringIndex = 12;
break;
case dupFNErr:
stringIndex = 13;
break;
case opWrErr:
stringIndex = 14;
break;
case volOffLinErr:
stringIndex = 15;
break;
case permErr:
stringIndex = 16;
break;
case wrPermErr:
stringIndex = 17;
break;
default:
stringIndex = 1;
break;
}
InitCursor();
GetIndString(errMessage, rFileErrorStrings, stringIndex);
NumToString((long)resultCode, errNumString);
ParamText(errMessage, errNumString, fileName, "\p");
// CenterAlert(rFileErrorAlert);
dummyInt = Alert(rFileErrorAlert, 0L);
return(false);
}
|
1
Sources/GameOver.c
Executable file
1
Sources/GameOver.c
Executable file
File diff suppressed because one or more lines are too long
1
Sources/Grease.c
Executable file
1
Sources/Grease.c
Executable file
File diff suppressed because one or more lines are too long
1
Sources/HighScores.c
Executable file
1
Sources/HighScores.c
Executable file
File diff suppressed because one or more lines are too long
1
Sources/House.c
Executable file
1
Sources/House.c
Executable file
File diff suppressed because one or more lines are too long
1
Sources/HouseIO.c
Executable file
1
Sources/HouseIO.c
Executable file
File diff suppressed because one or more lines are too long
1
Sources/HouseInfo.c
Executable file
1
Sources/HouseInfo.c
Executable file
File diff suppressed because one or more lines are too long
1
Sources/HouseLegal.c
Executable file
1
Sources/HouseLegal.c
Executable file
File diff suppressed because one or more lines are too long
1
Sources/Input.c
Executable file
1
Sources/Input.c
Executable file
File diff suppressed because one or more lines are too long
1
Sources/Interactions.c
Executable file
1
Sources/Interactions.c
Executable file
File diff suppressed because one or more lines are too long
1
Sources/InterfaceInit.c
Executable file
1
Sources/InterfaceInit.c
Executable file
File diff suppressed because one or more lines are too long
1
Sources/Link.c
Executable file
1
Sources/Link.c
Executable file
File diff suppressed because one or more lines are too long
1
Sources/Main.c
Executable file
1
Sources/Main.c
Executable file
File diff suppressed because one or more lines are too long
1
Sources/MainWindow.c
Executable file
1
Sources/MainWindow.c
Executable file
File diff suppressed because one or more lines are too long
1
Sources/Map.c
Executable file
1
Sources/Map.c
Executable file
File diff suppressed because one or more lines are too long
1
Sources/Marquee.c
Executable file
1
Sources/Marquee.c
Executable file
File diff suppressed because one or more lines are too long
1
Sources/Menu.c
Executable file
1
Sources/Menu.c
Executable file
File diff suppressed because one or more lines are too long
1
Sources/Modes.c
Executable file
1
Sources/Modes.c
Executable file
File diff suppressed because one or more lines are too long
1
Sources/Music.c
Executable file
1
Sources/Music.c
Executable file
File diff suppressed because one or more lines are too long
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user