home *** CD-ROM | disk | FTP | other *** search
-
-
-
- PrettyWindows v1.0
-
- by Thom Robertson
-
- 7/14/90
-
- For the last couple of days I have been perusing all the neat games and
- stuff in the Fred Fish disk collection. One thing became painfully clear
- to me. There are many adventure games out there which are ALL text, and
- the Amiga implementations are very plain. This is not necessarily a bad
- thing, nor am I saying that the programmers are dumb. However, I can't
- help but think that even a little prettying-up would do wonders for any
- text adventure game (and, for that matter, many utilities, too).
-
- PrettyWindows is a set of LATTICE C 5.04 routines designed to make a text
- window more presentable. They can be easily inserted into your code, and
- will automatically adjust to any size or depth of window.
-
-
- The Demo
-
- Run the file called "Demo" from your Workbench screen (or CLI on the WB
- screen). This shows you what is pretty about the three different types of
- window PrettyWindows makes.
-
- My Policy
-
- PrettyWindows V1.0 in its entirety is freely redistributable, and can be
- used in any application, so long as:
-
- Credit for PrettyWindows is given somewhere in the documentation AND the
- source code, and
-
- You write me and share with me what you are doing with it.
-
-
- Tech Stuff
-
- The three routines, pwindows1, pwindows2, and pwindows3 are designed to be
- called AFTER you have opened a window. Each routine clears the screen to
- any color and put a nice border in the window. Therefore, you can easily
- think of PW as a rather special ClearWindow routine.
-
- The window should be BORDERLESS, title-less, have no border gadgets (close
- window, front/back, sizing) or a dragbar. If you don't have a routine that
- creates such a window, my makewindow routine can, so use that.
-
- PrettyWindows can't work with a console window (at least, I don't think it
- would be a good idea). Write text to the window with the graphics
- primitives Move() and Text(). Remember to SetDrMd() to JAM1.
-
- Note that the Images in pwindows2 have data which is declared "chip". This
- is a LATTICE C 5.xx convention which insures that the data will be loaded
- into CHIP RAM. If your compiler doesn't have this, you probably have a
- command line "-" argument for your compiler that will put the data into
- CHIP RAM. Also note that pwindows2 won't use any other background color
- besides 0 (usually black). This is because the Intuition DrawImage command
- will set the rectangle of the Image to 0 all the time. It's possible to
- get around this (I usually use BitMaps instead of Images anyway), but I was
- just lazy.
-
-
- If you have any questions, please write or call me. I would love to help
- put together or modify a neat game or utility. My address as of 7-14-90
- is:
-
- Thom Robertson
- 803-C Autumn Circle
- College Station, TX. 77840
-
-
-