After no update about a month I have added 2 new Commands to let you simply add custom Commands to the Console.
Here is the Download link:
http://www.brsoftware.de.vu/DL/
The File:
ConsoleMODV13.rar
Here is the Download link:
http://www.brsoftware.de.vu/DL/
The File:
ConsoleMODV13.rar
Console Module Version 1.3 -------------------------- 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 Multiple line for sended text ***New Feature*** Added Functionptr to set unique Console Commands : With this simple method you can init an integrated help command for the console: C.Add_Command("/Help",Help,Null,Null,0) Function Help() For Local h:TCommand = EachIn c.Command_List C.Send_Text(h.Command) Next End Function For more examples take a look in the sample. 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. Intro ----- This is my first Module for Bmax and I have tried to do something which maybe useful for a lot of people and where I also can learn abit more about the OOP issues of Bmax. The Watch functions I have added because I think they may be good for beta testing games and apps. The Sample shows and describes all available Methods and Functions which are implemented in this small Module. How to install: --------------- Copy the folder 'console.mod' from this archiv to your 'pub.mod' folder of Bmax Thats all. What to do next : ----------------- make better docs. and wait for suggestions If you find bugs or have suggestions or whishes about things you want to have added please send me an email to BenniRoessig@.... (c)opyright 2005 by Benjamin Rössig