Removing the messagebox
by Chris Labombard · 06/17/2005 (1:47 am) · 8 comments
This is very simple. So I thought I would put it up as a how To...
This removes the messagebox that tells you when you pick up items, and when you get killed etc.
In starter.fps/client/scripts/playgui.cs ... comment out the following lines:
line 20:
Canvas.pushDialog( MainChatHud );
line 21:
chatHud.attach(HudMessageVector);
line 33:
Canvas.popDialog( MainChatHud );
Delete playgui.cs.dso and enjoy.
This removes the messagebox that tells you when you pick up items, and when you get killed etc.
In starter.fps/client/scripts/playgui.cs ... comment out the following lines:
line 20:
Canvas.pushDialog( MainChatHud );
line 21:
chatHud.attach(HudMessageVector);
line 33:
Canvas.popDialog( MainChatHud );
Delete playgui.cs.dso and enjoy.
About the author
I have been a professional game programmer for over 5 years now. I've worked on virtually every platform, dozens of games and released a few of my own games, including 2 iPhone titles and a title waiting release on Big Fish Games.
#2
i will double check it when I get home, but I am pretty sure the console was clean.
06/17/2005 (5:55 am)
@Ron - Well, I thought so too. But there weren't any. To be honest, I thought it was going to be a lot more difficult.i will double check it when I get home, but I am pretty sure the console was clean.
#3
06/17/2005 (9:48 am)
As long as you do not delete the file that contains the GUI object, and the exec() line that runs the file... you won't get any errors as the MessageVector control that the text get's sent to will be loaded.
#4
06/17/2005 (2:06 pm)
Ya. There are no errors.
#5
06/18/2005 (9:38 am)
To be sure you get no spam and still have callbacks function open common\client\message.cs and comment out "addMessageCallback("", defaultMessageCallback);" and the function clientCmdChatMessage.
#6
06/29/2005 (1:19 pm)
or you could just use the example game instead of the rts starter kit. It doesnt have the messagebox code at all. None of it.
#7
06/29/2005 (1:47 pm)
rts starter kit ? This will remove the messagebox from the starter.fps kit.
#8
08/09/2008 (5:44 am)
I don't think, doing this will remove the actual message hud code.
Associate Ron Yacketta
Good start! I think the above will leave behind errors in the console when an item is picked up. The message calls will still be made, but will be unable to find the specific hud thus leaveing an error in your console.
-Ron