My Free Console Module V1.0

BlitzMax Forums/BlitzMax Programming/My Free Console Module V1.0

klepto2(Posted 2005) [#1]
Here is my updated Console Module for Bmax

Console Module Version 1.0
--------------------------

Features:

Full OOP Design (IMO)
Uses Max2d (so I think it may compatible with later 3DModule by Mark)
COnfigureable size
FPS Counter
Watch Functions
Sending Text to the Console and receiving Input from the Console
Alpha support
Easy to use
Different Fonts usable
static and animated Images as background supported
Frame supported
Frame could be changed via runtime
Roll in and out feature
Caption support

Complete Functions and Method list:


Download at : http://www.brsoftware.de.vu/DL/

Most bugfixes are done, but if you find something let me know. Also some Feedback would be nice.


klepto2(Posted 2005) [#2]
Version 1.01 :

Added Method : Return_TrimText(_trim:int)
Added multiline support for sended text.

http://www.brsoftware.de.vu/DL/

File : ConsoleMODV101.rar


klepto2(Posted 2005) [#3]
I have uploaded a hotfix for Bmax 1.10
It fixes Import things with glmax2d and d3d7max2d
and it fix some changes which had come with the Update of Bmax.

File: consolehotfix.rar


klepto2(Posted 2005) [#4]
New Update available : Version 1.02

file: ConsoleMODV102.rar (hotfix included)
Download at : http://www.brsoftware.de.vu/DL/

fully compatible to Bmax 1.10
Added Method Return_TrimText2(_trim:String)

What does it ?
Trimming a return Text to different parts :
i.e : the Return_text 'Load Map MyMap.dat' will result in

text[0] = 'Load'
text[1] = 'Map'
text[2] = 'MyMap.dat'

by using following code :

local text:String[]
text = c.Return_TrimText[32] ' The '32' stays for the ASCII Code of
' " " in this case

After that you can get the different parts of text by using a For next loop.
For further details look in the sample.
Added another method quite the same as Return_TrimText but this is called
Return_Trim_text2(_Trim:String)

Instead of giving an int to the Method like in the first method you
can enter a String like " :" or "ABCDEF"

The difference between both methods is the following :
In some cases you have entered a text like "Load Map:MyMap.dat"

With Method 1 (Return_TrimText(32)):

text[0] = 'Load'
text[1] = 'Map:MyMap.dat'

With Method 2 (Return_TrimText2(" :")):

text[0] = 'Load'
text[1] = 'Map'
text[2] = 'MyMap.dat'

I hope you see the advantage of the two methods.