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?
Posts: 2,742
Threads: 115
Joined: Jun 2006
Reputation:
0
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).
Quote:Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?