Download | Screen Shot
Download Source
Use:
Free for all GameStudio projects without restrictions.
Disclaimer: If it blows up your machine it's not my fault. DO NOT USE THIS
IN A MISSION CRITICAL PROJECT. BUGGY.
Information:
None of the functions will work in 8bit mode. They may work on 8bit textures
but will most likely be converted to 24bit (16bit internally). I don't know
how the alpha transparency will be handled from TGA based textures. If you
change from windowed to fullscreen or fullscreen to windowed mode the textures
will revert to their A5 original.
Installation:
Unzip Chatpanel.wdl into your templates directory.
Unzip Chatpanel.dll, chatbg.pcx, and chatpan.pcx into your work directory.
You will have to copy the DLL's manually to your .cd directory when
you publish.
Place this line at the end of your include list in the OFFICE project WDL file:
include ;
Versions:
12/03/2002 -- v0.93 -- Added functions.
11/26/2002 -- v0.92 ALPHA -- Added functions.
9/18/2002 -- v0.91 ALPHA -- Fixed scroll bar. Added said history.
9/9/2002 -- v0.9 ALPHA -- Released.
Bugs:
-Only run in FULLSCREEN MODE
-Scrolling semi messed up.
-Runs on server side (bad?).
-WDL Not independent of OFFICE project.
Usage:
Call ShowForm(); at the end of main(). Make sure to run with -sv -cl on the server and
-cl on the clients.
Press enter and type to chat. Press enter again to send the text.
Functions:
// style is a string = 6, 7, 8, 9, 10, 11, 12, 13, 14, or 15
// Create the chat client and point it at panel.
dllfunction Chat_Create(panel,width,height);
// Redraw the chat client on panel.
dllfunction Chat_PanelDraw(panel);
// Add text to the chat panel via str and give it a color (9 is white).
dllfunction Chat_AddText(str,style);
// Adjust the width and height of the panel
dllfunction Chat_AdjustSize(width,height);
// Sets Fontname of Input Edit to font_string. Default = "Terminal"
dllfunction Chat_SetInputFont(font_string);
// Sets font color of Input Edit to Color = "000000000"
dllfunction Chat_SetInputColor(color);
// font_size_str in points (default is 9)
dllfunction Chat_SetInputSize(font_size_str);
// String to the left of the input field. Default = "Msg >>"
dllfunction Chat_SetMsg(msgstring);
// Sets Fontname of Msg to font_string. Default = "Terminal"
dllfunction Chat_SetMsgFont(font_string);
// Sets font color of Msg to Color = "000000000"
dllfunction Chat_SetMsgColor(color);
// font_size_str in points (default is 9)
dllfunction Chat_SetMsgSize(font_size_str);
// Sets Fontname of Chat text to font_string. Default = "Terminal"
dllfunction Chat_SetFont(font_string);
// Sets font color of Chat text style to Color = "000000000"
dllfunction Chat_SetColor(color, style);
// font_size_str in points (default is 9)
dllfunction Chat_SetSize(font_size_str);
// Begin chat input. See example.
dllfunction Chat_BeginInput();
// Click on chat panel at x,y
dllfunction Chat_Click(x,y);
// Free Chat Panel
dllfunction Chat_Free();
|