Message Separator widget
Moderator: Moderators
version 2.0 (link outdated, see first post)
Changelog:
* player message history is now scrollable (toggle with ctrl+m, then use ctrl+comma and ctrl+period to scroll up and down, respectively)
Beware that when exiting scrollable mode, ALL messages stored in the buffer up to that point will be erased, so I would recommend enabling it once at the start of a game and then leave the widget in that mode (this setting is meant to be more or less permanent anyway).
Changelog:
* player message history is now scrollable (toggle with ctrl+m, then use ctrl+comma and ctrl+period to scroll up and down, respectively)
Beware that when exiting scrollable mode, ALL messages stored in the buffer up to that point will be erased, so I would recommend enabling it once at the start of a game and then leave the widget in that mode (this setting is meant to be more or less permanent anyway).
Last edited by Kloot on 17 Jul 2007, 13:20, edited 1 time in total.
Current hotkey review for this, found this in the LUA file, so might as well share it so you dont have to go through the entire topic for commands.-- control + s: switch message-box rendering mode
-- control + p: switch text overflow handling mode
-- control + g: enable/disable message-box dragging
-- control + e: enable/disable message-box resizing
-- control + f: enable/disable message filtering
-- control + o: enable/disable message outlining
-- control + y: enable/disable font outlining
-- control + m: enable/disable scrollable message history
-- control + ,: scroll up message history
-- control + .: scroll down message history
-- control + [: decrease message-box text font-size
-- control + ]: increase message-box text font-size
You assimilated half of the keyboard-- control + s: switch message-box rendering mode
-- control + p: switch text overflow handling mode
-- control + g: enable/disable message-box dragging
-- control + e: enable/disable message-box resizing
-- control + f: enable/disable message filtering
-- control + o: enable/disable message outlining
-- control + y: enable/disable font outlining
-- control + m: enable/disable scrollable message history
-- control + ,: scroll up message history
-- control + .: scroll down message history
-- control + [: decrease message-box text font-size
-- control + ]: increase message-box text font-size
Would you consider adding a command to enable editmode, so that you cannot accidentally change the settings in the heat of a fight. It would be nice, if you use CTRL+F11, which is already used by the included widgets.
They should probably be changed to use key bindings.
The Spring.GetKeySymbol() and Spring.GetKeyBindings()
calls are available. I may pass the key binding string tables
into key press and key release widget events in a future
version to simply using key bindings.
P.S. Might also go with an ordered binding registry approach.
The Spring.GetKeySymbol() and Spring.GetKeyBindings()
calls are available. I may pass the key binding string tables
into key press and key release widget events in a future
version to simply using key bindings.
P.S. Might also go with an ordered binding registry approach.
Actually, my current plan is to eliminate the keyboard shortcuts altogether (save those for manipulating font size and scrolling) and replace them with a bar listening to ctrl+F11 of clickable icons, but an ETA for that I don't have. I'll add a 'master' shortcut to lock/unlock all the other keys until then.
edit: done (master shortcut is ctrl+backslash)
edit: done (master shortcut is ctrl+backslash)
I am not sure if it is the fault of your widget or a problem with the lua implementation, but everytime when the game crashes, before it really begann. (Different map than the server, crash when ai initialise), i lost my config of your widget (the data that is stored in 'widget_data.lua'). I 'solved' this by making a kopie of this file and restore it, everytime this happens.
Additionall is changed the following lines in your widged (in my version line 612-631):
DELAY_BEFORE_CLEAR = 1200
MAX_ALPHA = 0.5
PLAYER_BOX_FILL_COLOR = {0.44, 0.44, 0.44, PLAYER_BOX_ALPHA}
SYSTEM_BOX_FILL_COLOR = {0.44, 0.44, 0.44, SYSTEM_BOX_ALPHA}
PLAYER_TEXT_OUTLINE_COLOR = {0.44, 0.44, 0.44, 1.0}
Maybee you could rearange this information to the top of the file or store them in widget_data, too.
Additionall is changed the following lines in your widged (in my version line 612-631):
DELAY_BEFORE_CLEAR = 1200
MAX_ALPHA = 0.5
PLAYER_BOX_FILL_COLOR = {0.44, 0.44, 0.44, PLAYER_BOX_ALPHA}
SYSTEM_BOX_FILL_COLOR = {0.44, 0.44, 0.44, SYSTEM_BOX_ALPHA}
PLAYER_TEXT_OUTLINE_COLOR = {0.44, 0.44, 0.44, 1.0}
Maybee you could rearange this information to the top of the file or store them in widget_data, too.