Movable Chatbox

A place to post suggestions for new features, new bugs, and comments about the existing code.
Macattack278
Posts: 16
Joined: Mon Feb 23, 2009 4:21 am

Post by Macattack278 »

As it turns out, ASGS crashed right as i was going to run it. Bad luck on my part, and I didn't break anything. However, do any of you guys have a guide for what the following values are? i'm not a cs major, so i can only make vague guesses as to what they are.

////////////////////////////
// Chat History Pane
////////////////////////////


chatListPane = ChatListPane(Point(370, 68));

CommPane =
ImagePane(
ImportImage("concommdisplaybmp", false),
[
(
chatListPane,
Point(0,16)
)
]
);

/////////////////
Last edited by Macattack278 on Tue Mar 03, 2009 3:20 am, edited 1 time in total.
Andon
Posts: 5453
Joined: Sun Jun 03, 2007 8:29 pm
Location: Maryland, USA
Contact:

Post by Andon »

the line that controls where it is on the screen is really this one, near the bottom:

Code: Select all

        (VisibleImage(PaneImage(CommPane, false, true),     ShowChatHistoryHUD), SideTop, Point(-130,  120), Point(-130, -100), .5, 119, true),
SideTop means that it is aligned to the top of the screen. Acceptable choices are SideTop, SideBottom, SideLeft, SideRight, SideTopRight, SideTopLeft, SideBottomRight, SideBottomLeft, and SideCenter.

The first point, Point(-130, 120), referrs to where it is when the pane is activated. Change this to move the more specific position of the box.

The best way to move things around is with the SideXXXX and then tweaking the numbers, because while you can have something that's aligned to SideCenter appear on the top of the screen, when you increase the resolution it is no longer at the top of the screen and is now somewhere in the middle
Image
ImageImage
Macattack278
Posts: 16
Joined: Mon Feb 23, 2009 4:21 am

Post by Macattack278 »

Andon wrote:QUOTE (Andon @ Mar 2 2009, 10:35 PM) the line that controls where it is on the screen is really this one, near the bottom:

Code: Select all

        (VisibleImage(PaneImage(CommPane, false, true),     ShowChatHistoryHUD), SideTop, Point(-130,  120), Point(-130, -100), .5, 119, true),
SideTop means that it is aligned to the top of the screen. Acceptable choices are SideTop, SideBottom, SideLeft, SideRight, SideTopRight, SideTopLeft, SideBottomRight, SideBottomLeft, and SideCenter.

The first point, Point(-130, 120), referrs to where it is when the pane is activated. Change this to move the more specific position of the box.

The best way to move things around is with the SideXXXX and then tweaking the numbers, because while you can have something that's aligned to SideCenter appear on the top of the screen, when you increase the resolution it is no longer at the top of the screen and is now somewhere in the middle

really helpful, thanks. what is the second set of points?

Additionally, i get errors whenever i try to start a game saying something along the lines of "server and client codes are out of sync" (which they probably are). Specifically, i get that when i change it from SideTop to SideLeft.
Last edited by Macattack278 on Tue Mar 03, 2009 5:30 am, edited 1 time in total.
Andon
Posts: 5453
Joined: Sun Jun 03, 2007 8:29 pm
Location: Maryland, USA
Contact:

Post by Andon »

There are cores on the core list that are not on auto-update. Make sure you're using the cc_03 core when trying to start a game.

I personally find it easier to test changes to dialog.mdl in the training missions, as you don't have to have ASGS up, and if you have just a shortcut to the alleg file it makes it a lot faster.
Image
ImageImage
Macattack278
Posts: 16
Joined: Mon Feb 23, 2009 4:21 am

Post by Macattack278 »

Andon wrote:QUOTE (Andon @ Mar 3 2009, 12:36 AM) There are cores on the core list that are not on auto-update. Make sure you're using the cc_03 core when trying to start a game.
So there are some cores i won't be able to run if i modify the chatbox?
madpeople
Posts: 4787
Joined: Tue Dec 16, 2003 8:00 am
Location: England

Post by madpeople »

Macattack278 wrote:QUOTE (Macattack278 @ Mar 3 2009, 10:24 PM) So there are some cores i won't be able to run if i modify the chatbox?
nope, chatbox has nothnig to do with cores. he was jsut giving general advice
Andon
Posts: 5453
Joined: Sun Jun 03, 2007 8:29 pm
Location: Maryland, USA
Contact:

Post by Andon »

Chatbox has nothing to do with cores. It's simply that some cores are not on the autoupdate system but are still hosted on the servers
Image
ImageImage
Macattack278
Posts: 16
Joined: Mon Feb 23, 2009 4:21 am

Post by Macattack278 »

So i wouldn't be able to play those cores under any circumstances.

In other news, IT LIVES!!!!!!!

I got it moved to coordinates (SideLeft, 280, -150) and that makes me happy!!!!!!!
Last edited by Macattack278 on Wed Mar 04, 2009 5:30 am, edited 1 time in total.
Andon
Posts: 5453
Joined: Sun Jun 03, 2007 8:29 pm
Location: Maryland, USA
Contact:

Post by Andon »

Cool.

I believe that the 'ChatListPane(Point(370, 68));' you put in your post a bit above is the size of the chat list box - 370 being width and 68 being height. It would require testing though.

I would highly recommend making backups of working HUD mods you like if you go in to change things. I've lost hours worth of work because I've forgotten to back up, and I've had to start from scratch or have to rebuild massive chunks of it.
Image
ImageImage
Macattack278
Posts: 16
Joined: Mon Feb 23, 2009 4:21 am

Post by Macattack278 »

Andon wrote:QUOTE (Andon @ Mar 4 2009, 01:02 AM) I would highly recommend making backups of working HUD mods you like if you go in to change things. I've lost hours worth of work because I've forgotten to back up, and I've had to start from scratch or have to rebuild massive chunks of it.
That's a good idea, but for something that only requires the modification of a few arguments, i don't think it's necessary.
Post Reply