Message Separator widget
Moderator: Moderators
Uh, resizing is in the todo already, he already said he did horizontal overflow the "easy way".
Edit: some bugfixing to do maybe? I enabled it in the middle of a game and it crashed LuaUI.
Edit: some bugfixing to do maybe? I enabled it in the middle of a game and it crashed LuaUI.
Last edited by ZellSF on 02 Feb 2007, 19:43, edited 1 time in total.
Yes, well, resizing is a bit harder to do, so it'll take a little longer.
Messages don't wrap around, yes. I know it's less than ideal, but I'm afraid you'll just have to hold off on your soliloquies until I can come up with something better.
Saving the box positions is next up, then (if there are no further problems) I'll probably start cracking the resize-nut.
version 1.5 (link outdated, see first post)
New features:
* dynamic font-size editing (ctrl+] to increase, ctrl+[ to decrease)
Messages don't wrap around, yes. I know it's less than ideal, but I'm afraid you'll just have to hold off on your soliloquies until I can come up with something better.
Saving the box positions is next up, then (if there are no further problems) I'll probably start cracking the resize-nut.
version 1.5 (link outdated, see first post)
New features:
* dynamic font-size editing (ctrl+] to increase, ctrl+[ to decrease)
Last edited by Kloot on 17 Jul 2007, 13:18, edited 4 times in total.
error = 1, Call_DrawWorldItems, ...me/.spring/LuaUI/Widgets/MessageSeparator.lua:276: attempt to compare nil with number
error = 1, Call_AddConsoleLine, ...me/.spring/LuaUI/Widgets/MessageSeparator.lua:300: attempt to index global `NAME_PREFIX_STRINGS' (a nil value)
error = 1, Call_DrawScreenItems, ...me/.spring/LuaUI/Widgets/MessageSeparator.lua:366: attempt to perform arithmetic on global `PLAYER_MSG_BOX_Y_TOP' (a nil value)
Here LuaUI crashed and made sure that I couldn't see messages any longer (even after a /luaui disable)
I'm guessing it's a bug in your widget
error = 1, Call_AddConsoleLine, ...me/.spring/LuaUI/Widgets/MessageSeparator.lua:300: attempt to index global `NAME_PREFIX_STRINGS' (a nil value)
error = 1, Call_DrawScreenItems, ...me/.spring/LuaUI/Widgets/MessageSeparator.lua:366: attempt to perform arithmetic on global `PLAYER_MSG_BOX_Y_TOP' (a nil value)
Here LuaUI crashed and made sure that I couldn't see messages any longer (even after a /luaui disable)
I'm guessing it's a bug in your widget
version 1.6 (link outdated, see first post)
Changelog:
* widget can now be activated mid-game without bringing down LuaUI
* text-boxes are now resizable if resizing is enabled (toggle with ctrl+e)
Box positions and sizes still aren't saved yet, but will be in version 1.7 with reasonable probability.
Changelog:
* widget can now be activated mid-game without bringing down LuaUI
* text-boxes are now resizable if resizing is enabled (toggle with ctrl+e)
Box positions and sizes still aren't saved yet, but will be in version 1.7 with reasonable probability.
Last edited by Kloot on 17 Jul 2007, 13:18, edited 1 time in total.
Bad bug on startup that kills LuaUI permanently
Code: Select all
error = 1, gui.lua, LuaUI\Widgets\MessageSeparator.lua:411: attempt to perform arithmetic on global `FONT_SIZE' (a nil value)
Player [LCC]LordMatt joined as 0
version 1.7 (link outdated, see first post)
Changelog:
* all user-configurable data is now properly saved and loaded (at last)
Zell: you mean none of the widget's key commands work for you?
Changelog:
* all user-configurable data is now properly saved and loaded (at last)
Zell: you mean none of the widget's key commands work for you?
Last edited by Kloot on 17 Jul 2007, 13:18, edited 1 time in total.
Zell: I really wouldn't know what's causing that, perhaps Trepan can tell you more.
version 1.8 (link outdated, see first post)
New features:
* messages can now be set to wrap around (toggle with ctrl+p)
Since the widget's just about feature-complete at this point, this will probably be the last major revision for a while. Major thanks to all who went to the trouble of testing it and having their games occasionally ruined, your help's been invaluable.
version 1.8 (link outdated, see first post)
New features:
* messages can now be set to wrap around (toggle with ctrl+p)
Since the widget's just about feature-complete at this point, this will probably be the last major revision for a while. Major thanks to all who went to the trouble of testing it and having their games occasionally ruined, your help's been invaluable.
Last edited by Kloot on 17 Jul 2007, 13:19, edited 1 time in total.
Well, suddenly the widget started spamming this error when I click down my start position:
Then it goes away when the game actually starts. It may only do this if you have an AI player and choose starts in game, which would be why I didn't notice it before.
Code: Select all
error = 1, Call_DrawScreenItems, LuaUI\Widgets\MessageSeparator.lua:648: attempt to index field `?' (a nil value)
Re: Message Separator widget
Nice Job!Kloot wrote:** updated to version 1.8 **
Heya,
Since a common source of annoyance for people seems to be that Spring's system messages are mixed with those typed by players, I thought I'd write a simple widget to separate them. :) What you get when you install it looks like this:
shot 1
shot 2
(ie. not much) There are some rough edges to smooth out, but it should otherwise be stable and hopefully not too sluggish.
Download here (right-click and save-as, park the file in LuaUI/Widgets).
This will be immensily helpfull, mainly in those games that unsncy but suffer nothing except immense spam of unsncy messages that makes chat almost useless.