![]() |
Chatbox Resize - Printable Version +- Mirage Source (https://mirage-engine.uk/forums) +-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61) +--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18) +---- Forum: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17) +---- Thread: Chatbox Resize (/showthread.php?tid=1131) |
Chatbox Resize - JohnY - 25-07-2007 Hey, I'm trying to get my Chatbox resized, but somehow when I got it, it's either like the full screen or just a little square like 50 by 50 pixels. How can I resize it to the size I want it? Also, the text I type appears in the Map, how can I remove this? Re: Chatbox Resize - Robin - 25-07-2007 Find the resizegui sub. Comment out all the code inside (or if you're feeling adventurous, go delete all calls to it ;D) Also, a quick tip to finding this out yourself. You know that some piece of code is resizing the chat box, so do a quick search for "txtChat.width" and see where that takes you. You can do the same for any other code, and it's a life saver when finding out what's going wrong with long strings of packets. As for the text on the screen, that is perhaps the easiest edition ever. There is a tutorial for adding it to a textbox, but personally I either print to a label or print directly to the form. To do this, go into "gameloop" and find "mytext". There should be a line of code blting your text. Comment that out, then in either the gameloop (easiest) add "frmMirage.lblMyText.caption = mytext" or do it in HandleKeyPresses for a more optimised version (harder for beginners). Re: Chatbox Resize - JohnY - 25-07-2007 Thank you very much, together with ur reply and some effort of myself, I got it fixed ![]() |