Page 2 of 6
Posted: 02 Feb 2007, 19:31
by ZellSF
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.
Posted: 02 Feb 2007, 19:41
by Kloot
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)
Posted: 02 Feb 2007, 19:45
by ZellSF
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

Posted: 02 Feb 2007, 19:50
by Kloot
Hmm... the widget is written on the assumption that it's loaded at startup, but I'll add support for activating it mid-game.
Posted: 03 Feb 2007, 00:24
by Kloot
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.

Posted: 03 Feb 2007, 01:06
by LordMatt
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
Posted: 03 Feb 2007, 01:14
by Kloot
Fixed, thank you!
Posted: 03 Feb 2007, 01:43
by LordMatt
It seemed like it got confused sometimes whether to resize or to move, but aside from that it worked great.
Posted: 03 Feb 2007, 03:04
by ZellSF
ctrl+ / - doesn't work here.
(ctrl works in Spring though)
Posted: 03 Feb 2007, 04:29
by CompWiz
Nice
Posted: 03 Feb 2007, 14:51
by Kloot
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?
Posted: 03 Feb 2007, 15:53
by ZellSF
No, only ctrl+ and ctrl-
Posted: 03 Feb 2007, 16:11
by LordMatt
Works great!
Posted: 03 Feb 2007, 20:14
by Kloot
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.
Posted: 03 Feb 2007, 21:40
by LordMatt
I could find no issues. Thanks for making this great widget!
Posted: 06 Feb 2007, 06:54
by LordMatt
Well, suddenly the widget started spamming this error when I click down my start position:
Code: Select all
error = 1, Call_DrawScreenItems, LuaUI\Widgets\MessageSeparator.lua:648: attempt to index field `?' (a nil value)
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.
Posted: 06 Feb 2007, 12:36
by Kloot
The version that's available now should not do that anymore, I've applied a few minor touchups since saturday.
PS. would anyone be interested in having a fully scrollable message history?
Posted: 06 Feb 2007, 17:40
by Etheric
Kloot wrote:
PS. would anyone be interested in having a fully scrollable message history?
That would be a great feature!
Re: Message Separator widget
Posted: 06 Feb 2007, 18:02
by manored
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).
Nice Job!
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.
Posted: 07 Feb 2007, 01:02
by LordMatt
Etheric wrote:Kloot wrote:
PS. would anyone be interested in having a fully scrollable message history?
That would be a great feature!
+1