Add multiple color cursors with a single extension.
Anthony Saxton, the author of Clip Dragon, developed this edit that modifies an old color cursor extension so that it handles multiple cursor replacements.
In fact, Anthony has updated his User Submission: Drawing Board Cursor so that it now users only one extension.
The first thing to do is download the Color Cursor Extension Template.
After downloading, open the extension in ResEdit. Open the crsr and CURS resources and create your new extensions as outlined below.
Each Black and White cursor (top) will be replaced by the color cursor with an ID of +1 (bottom).
That is:
B&W cursor 0 is replaced by color cursor 1,
B&W cursor 1 is replaced by color cursor 2, etc...
(Here's a refresher on cursor editing)
Once you have created your cursor pairs, it's time to edit the code!
Close the cursor resources, and open the INIT resource with a double-click.
You need duplicate one copy of the INIT for each cursor pair.
Use the Get Info command from the File menu to sequentailly renumber the ID's as shown on the left.
Except for the first one, ID#1, each INIT resource needs a little modification.
For each of duplicated INIT:
Goto line 58, find the Hex sequence:
4267 A9A0 2E1F 673E and change it to: 3F3C 00XX A9A0 2E1F where XX = the B&W cursor ID
In the example above, INIT ID#2 will control the Black & White cursor number 1

Goto line 78, find the Hex sequence:
0001
and change it to:
00XX
where XX = the Color cursor ID
To summarize:
INIT 2 will be modified to swap B&W cursor 1 with Color cursor 2.
INIT 3 will be modified to swap B&W cursor 2 with Color cursor 3.
INIT 4 will be modified to swap B&W cursor 3 with Color cursor 4.
and so on...
Make sure your cursors are paired up with the correct ID numbers. Make sure you have properly assigned the Hot Spot in your cursors. Save your work and drop the extension into your Extensions Folder and restart the computer.
The nice thing about this edit is if you make a mistake, you can restart without extensions and start over.
To see an additional example using six replacement cursors, download my test extension.
(Cursor 6 is from Glidel.)
|