message separator console widget revival

message separator console widget revival

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
User avatar
BrainDamage
Lobby Developer
Posts: 1164
Joined: 25 Sep 2006, 13:56

message separator console widget revival

Post by BrainDamage »

I've fixed & added some tweaks to an old widget from kloot that replaces Spring's chat console, it adds various features such as scrollable history, font size selection, anti spam filter, and splits chat from system messages

keybindings are:
-- ctrl + F11: enters tweak mode which in turns enables the following:
* drag the center to move the boxes
* drag the borders to resize
* mousewheel on the center to change font size

-- control + \: enable/disable commands not marked by **
-- control + p: switch text overflow handling mode
-- control + f: enable/disable message filtering ( filters messages like delayed sync, etc )
-- control + o: enable/disable message outlining
-- control + ,: scroll up message history **
-- control + .: scroll down message history **
mousewheel on the center of the box will also scroll the history

Download

Image
Attachments
gui_messsage_separator.lua
(31.37 KiB) Downloaded 53 times
screen020.png
(1.57 MiB) Downloaded 82 times
Last edited by BrainDamage on 04 Jul 2010, 13:28, edited 9 times in total.
User avatar
BrainDamage
Lobby Developer
Posts: 1164
Joined: 25 Sep 2006, 13:56

Re: messageseparator console widget revival

Post by BrainDamage »

update:

* removed silly background colour change, now it's a static colour with transparency
* added proper font outlining
* added warnings when trying to drag/resize and not being in solid render mode
User avatar
BrainDamage
Lobby Developer
Posts: 1164
Joined: 25 Sep 2006, 13:56

Re: message separator console widget revival

Post by BrainDamage »

another update:
* massive rewrite of some old shitty code ( reduced by one third the old code )
* removed ability to disable chat history since it was more of a burden by turning on by accident than helping
* removed "solid" draw mode and moved it over tweak mode
* now font size, resize and move are handled trough tweak mode
* faster
* less buggy, especially move and resize which were not smooth
* now player colour appears correctly even at the first message
* can use the scrollwheel to browse history when the console is visible
* more fitting borders of the text boxes
* more automagic
* fixed that player text's was incorrectly aligned to the system's box rather than it's own
* more stuff that I forgot ...
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: message separator console widget revival

Post by Beherith »

/me installs...
User avatar
BrainDamage
Lobby Developer
Posts: 1164
Joined: 25 Sep 2006, 13:56

Re: message separator console widget revival

Post by BrainDamage »

sorry, another small update, I accidentally broke the chat auto hide idle timer
Post Reply

Return to “Lua Scripts”