So over the last couple weeks I have been working on a small side project that will be being used in an upcoming project of Iambian's and mine. This project is a Text Subsystem that would be used in an RPG.
The program is interfaced with 2 Main routines these are DrawBox And PutStr. PutStr Puts the null terminated string pointed to by hd inside the bounded box that has been defined. DrawBox Draws the visual Box around the Text and takes the corner style in A.
The PutStr Routine supports inline modifiers for the text output that is supplemented via a macro.
Mod(Italics,Underline,Flip,Mirror,Inverse,WordWrap) OR any combination of the settings. Which makes adding effects to strings rather easy.
Ok enough Jargon Lets put some examples and screenies
.db "Welcome to Cemetech",CrlF,Mod(Italics,Underline),"LTTFW",0
.db "This Is right up",CrLf,Mod(Mirror,Flip),"This is not!",0
.db Mod(Inverse),"White",Mod(Clear),"Black",Mod(Inverse),"White",Mod(Clear),"Black",0.db Mod(Inverse),"White",Mod(Clear)," Black",Mod(Inverse),"White",Mod(Clear)," Black",0
Its WordWrapping is rather robust.
And it supports style changes by changing a byte in ram
Why is there no release? Because this is just a showing of it so far I have to polish some of the code and make some changes to make it so when compiled with a DCS program you don't have to include the entire DCS font map and other things. (saves a few hundred bytes worth of data!)
So thoughts and suggestions/Things you would like to see?
- Features
* Arbitrary Bounding Box
* 5xW Font (Borrowed with permission from DCS)
* Customizable Corners
* Word Wrapping
* Character Wrapping
* Post processing Effect (see next list)
* Supporting Routines
- Post Processors
* Italics
* Mirror
* Flip
* Inverse
* Underline
- Routines
* NewLine
* HomeUp
* SetFulScreen
* SetBoundsStack
The program is interfaced with 2 Main routines these are DrawBox And PutStr. PutStr Puts the null terminated string pointed to by hd inside the bounded box that has been defined. DrawBox Draws the visual Box around the Text and takes the corner style in A.
The PutStr Routine supports inline modifiers for the text output that is supplemented via a macro.
Mod(Italics,Underline,Flip,Mirror,Inverse,WordWrap) OR any combination of the settings. Which makes adding effects to strings rather easy.
Ok enough Jargon Lets put some examples and screenies
.db "Welcome to Cemetech",CrlF,Mod(Italics,Underline),"LTTFW",0
.db "This Is right up",CrLf,Mod(Mirror,Flip),"This is not!",0
.db Mod(Inverse),"White",Mod(Clear),"Black",Mod(Inverse),"White",Mod(Clear),"Black",0.db Mod(Inverse),"White",Mod(Clear)," Black",Mod(Inverse),"White",Mod(Clear)," Black",0
Its WordWrapping is rather robust.
And it supports style changes by changing a byte in ram
Why is there no release? Because this is just a showing of it so far I have to polish some of the code and make some changes to make it so when compiled with a DCS program you don't have to include the entire DCS font map and other things. (saves a few hundred bytes worth of data!)
So thoughts and suggestions/Things you would like to see?