Updated to version 1.1. Changes:
– Fade speed not dependant on game speed
– resizes to window size
– added lots of options, look in the file to set them (such as colour, display times and size, keys)
Instructions:
The currently working (default) keys are:
– Alt and Numpad+ to increase sound level.
– Alt and Numpad– to decrease sound level.
and additionally in version 1.1:
– Alt and + to increase sound level.
– Alt and – to decrease sound level.
Also you can move the widget by entering tweak mode (press Ctrl - F11)
http://springfiles.com/spring/lua-scripts/volume-osd
Bugs:
The plus key doesn't work on my keyboard. It's either because of the fact that the widget also requires the alt key to be pressed, and when pressing alt it also changes the function on the + key, or because my keyboard is scandinavian.
Anyway, the keys are configurable within the widget: there are two keys labelled as plus- and minuskeys. Set them to what you like (or set them to be same key to disable the secondary key).
Keysymbols can be found in uikeys.txt in spring folder. Would there be an easier way to have the settings configurable? Do people like to mess in their widget files?