Message Separator widget
Moderator: Moderators
Message Separator widget
** updated to version 2.1 **
A common source of annoyance for people
seems to be that Spring's system messages
are mixed with those typed by players, so I've
written a simple LuaUI widget to separate them.
What you get when you install it looks like this:
shot 1
shot 2
(ie. not much, it has some rough edges but gets
the job done )
Download here (park the file in LuaUI/Widgets).
A common source of annoyance for people
seems to be that Spring's system messages
are mixed with those typed by players, so I've
written a simple LuaUI widget to separate them.
What you get when you install it looks like this:
shot 1
shot 2
(ie. not much, it has some rough edges but gets
the job done )
Download here (park the file in LuaUI/Widgets).
Last edited by Kloot on 28 Dec 2007, 01:21, edited 16 times in total.
version 1.1 (link outdated, see first post)
Fixes:
* messages no longer overflow horizontally (excess characters just get cut off)
* text-boxes now scale vertically with the viewport as well
* toggable unit error message filter (ctrl+f to activate/deactivate)
Note: you can expand the message filter's power by adding your own patterns to the MESSAGE_FILTERS variable at the top of the script, currently it only looks for "can't reach destination" matches (since those are by far the most common).
Fixes:
* messages no longer overflow horizontally (excess characters just get cut off)
* text-boxes now scale vertically with the viewport as well
* toggable unit error message filter (ctrl+f to activate/deactivate)
Note: you can expand the message filter's power by adding your own patterns to the MESSAGE_FILTERS variable at the top of the script, currently it only looks for "can't reach destination" matches (since those are by far the most common).
Last edited by Kloot on 17 Jul 2007, 13:17, edited 1 time in total.
version 1.2 (link outdated, see first post)
New features:
* toggable text-box transparency (ctrl+s to switch between solid/transparent rendering)
Thanks for the input, guys.
New features:
* toggable text-box transparency (ctrl+s to switch between solid/transparent rendering)
Thanks for the input, guys.
Last edited by Kloot on 18 Jul 2008, 00:19, edited 2 times in total.
Woah that looks very nice! Two minor issues: The first line of the system messages is right underneath where you type in chat, making it really hard to read what you're typing. I don't know if this is a problem for all resolutions or not, but mine is 1280X1024. Also, it doesn't save your selection for ctrl+s!
Edit: It started spamming this error in game after about 10 minutes (with 12 people in it)
Edit: It started spamming this error in game after about 10 minutes (with 12 people in it)
Code: Select all
error = 1, Call_DrawScreenItems, LuaUI\Widgets\MessageSeparator.lua:240: attempt to index local `playerColor' (a nil value)
Last edited by LordMatt on 01 Feb 2007, 21:54, edited 1 time in total.
The text input-field overlapping the bottom box is indeed hindersome, but the position where it's drawn isn't configurable (short of unbinding the chat action and re-implementing it widget-side, which is what I'm slowly leaning to), so you'll have to type blind for a while.
Good point about saving the selections, cheers.
Edit: ack, I see I should've tested it more. Fix underway.
Good point about saving the selections, cheers.
Edit: ack, I see I should've tested it more. Fix underway.
Last edited by Kloot on 18 Jul 2008, 00:19, edited 2 times in total.
Because then the system messages would appear closer to the middle of your screen, which could be a bit distracting. On the other hand it's far less work than the alternative, so I'll shove my aesthetic objections aside just this once. :]
version 1.3 (link outdated, see first post)
Fixes:
* system message box moved further down
* null-pointer check added when retrieving player color
version 1.3 (link outdated, see first post)
Fixes:
* system message box moved further down
* null-pointer check added when retrieving player color
Last edited by Kloot on 17 Jul 2007, 13:18, edited 2 times in total.
MOAR BUGZ!
This almost on game load, even before the start. Also it didn't save still.
Code: Select all
error = 1, Call_DrawScreenItems, LuaUI\Widgets\MessageSeparator.lua:303: attempt to perform arithmetic on local `i' (a nil value)
ALSO MOAR FIXORZ (sort of), please redownload and try to break it again.
PS. the saving code is already done, but before releasing that into the wild I'd rather be sure the rest of the widget is functioning as it should...
PS. the saving code is already done, but before releasing that into the wild I'd rather be sure the rest of the widget is functioning as it should...
Last edited by Kloot on 18 Jul 2008, 00:20, edited 1 time in total.