| Mirage Source http://miragesource.net/forums/ |
|
| Chatbox Resize http://miragesource.net/forums/viewtopic.php?f=201&t=2342 |
Page 1 of 1 |
| Author: | JohnY [ Wed Jul 25, 2007 11:52 am ] |
| Post subject: | Chatbox Resize |
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? |
|
| Author: | Robin [ Wed Jul 25, 2007 11:59 am ] |
| Post subject: | Re: Chatbox Resize |
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). |
|
| Author: | JohnY [ Wed Jul 25, 2007 12:19 pm ] |
| Post subject: | Re: Chatbox Resize |
Thank you very much, together with ur reply and some effort of myself, I got it fixed |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|