Movable Chatbox
-
Macattack278
- Posts: 16
- Joined: Mon Feb 23, 2009 4:21 am
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)
)
]
);
/////////////////
////////////////////////////
// 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.
the line that controls where it is on the screen is really this one, near the bottom:
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
Code: Select all
(VisibleImage(PaneImage(CommPane, false, true), ShowChatHistoryHUD), SideTop, Point(-130, 120), Point(-130, -100), .5, 119, true),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



-
Macattack278
- Posts: 16
- Joined: Mon Feb 23, 2009 4:21 am
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:
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.Code: Select all
(VisibleImage(PaneImage(CommPane, false, true), ShowChatHistoryHUD), SideTop, Point(-130, 120), Point(-130, -100), .5, 119, true),
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.
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.
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.



-
Macattack278
- Posts: 16
- Joined: Mon Feb 23, 2009 4:21 am
-
Macattack278
- Posts: 16
- Joined: Mon Feb 23, 2009 4:21 am
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!!!!!!!
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.
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.
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.



-
Macattack278
- Posts: 16
- Joined: Mon Feb 23, 2009 4:21 am
That's a good idea, but for something that only requires the modification of a few arguments, i don't think it's necessary.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.

