HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Clear chat

09-06-2008, 01:58 AM#1
d07.RiV
Is there any way to clear player chat messages?
Just anything.
Preferrably something that does not have too much sideeffects but w/e.

(I do not mean totally removing them by e.g. changing the font to blank, but making a function that would clear the ones currently on the screen).
09-06-2008, 02:32 AM#2
Zerzax
call ClearTextMessages()
09-06-2008, 02:35 AM#3
Joker
That function clears game text, not chat.
09-06-2008, 02:37 AM#4
Zerzax
whoops, ill check native list again.

Edit: Can't find anything :(
09-06-2008, 03:22 AM#5
Eznce
I don't think there is a way to just clear them. The closest thing is being able to hide them permanantly (discovered by Shadow1500, i think you were referencing this in your post but whatever)but since that's not what you want, i can't think of any way of just clearing the chat messages.
09-06-2008, 04:10 AM#6
Pyrogasm
You could clear them from the screen by sending the proper amount of blank messages.
09-06-2008, 04:53 AM#7
d07.RiV
Quote:
You could clear them from the screen by sending the proper amount of blank messages.
How? DisplayTextToPlayer can't do that (it will not interfere with player chat messages)...
If you know a native that does that then maybe it could work..

Otherwise, maybe there is some trick involving something like disabling user control and re-enabling it (of course it will not work just like that, but maybe some other mode)?
09-06-2008, 05:13 AM#8
DioD
you can do it only by making your own chat.
09-06-2008, 05:22 AM#9
Pyrogasm
Well, you can tell I've never done it, but I thought there was a way to move the current chat up by creating a blank line. Nevermind, then.
09-06-2008, 06:49 AM#10
Vestras
Quote:
Originally Posted by Pyrogasm
Well, you can tell I've never done it, but I thought there was a way to move the current chat up by creating a blank line. Nevermind, then.

There is a way.
Collapse JASS:
call Cheat(" ")
09-06-2008, 08:17 AM#11
DioD
Quote:
call Cheat(" ")

Tested.

This is not working.

ps. Call cheat message with mod UI is good, but this wont work in multiplayer anyway.
09-06-2008, 08:48 AM#12
Vestras
Doesn't it display a blank msg from player 1?
09-06-2008, 11:11 PM#13
d07.RiV
Nope.
I always use call Cheat ("iseedeadpeople") in testmaps :p