Cool VL Viewer forum http://sldev.free.fr/forum/ |
|
Extra chat bar (kind of) http://sldev.free.fr/forum/viewtopic.php?f=10&t=2443 |
Page 1 of 1 |
Author: | g0rd0ngrfr33mailgr [ 2023-12-20 23:50:14 ] | |||||||||
Post subject: | Extra chat bar (kind of) | |||||||||
It's often useful to have an extra chat bar. It took me an afternoon, but I managed to do it! In your automation.lua file, just add a button like so:
|
Author: | RossoAms [ 2023-12-21 12:20:09 ] | ||||||||||||||||||
Post subject: | Re: Extra chat bar (kind of) | ||||||||||||||||||
Hey nice, thanks! |
Author: | g0rd0ngrfr33mailgr [ 2024-01-16 19:18:27 ] | |||||||||||||||||||||||||||
Post subject: | Re: Extra chat bar (kind of) | |||||||||||||||||||||||||||
A better version, using a custom Lua floater. First, add a "floater_lua_chat2.xml" file to your custom skins directory ("~/.secondlife/skins/default/xui/en-us/" under Linux and "%appdata%\SecondLife\skins\default\xui\en-us\" under Windows) containing the following XUI floater definition:
Then modify your automation.lua script in order to contain the following:
Also, add/modify a button in the automation.lua script to look like
I stole Henri's custom floater and kept only the relevant bits, and I hope I did them well. Texts starting with "/" are sent as plain text (i.e. one can't send gestures with that) and I don't know why, but, compared to the previous version, the length of the chat is much larger (1023 characters, as many as the viewer's proper chat bar). If anyone can make this better, feel free to tell me how ![]() Thanks, Henri, for Lua! |
Author: | RossoAms [ 2024-01-17 10:13:48 ] | |||||||||
Post subject: | Re: Extra chat bar (kind of) | |||||||||
Nice revision! My skins however, using Linux, are in $INSTALLDIR/skins, not in any dot-directory in $HOME. |
Author: | g0rd0ngrfr33mailgr [ 2024-01-17 11:20:41 ] |
Post subject: | Re: Extra chat bar (kind of) |
Yes, true. But you can create a folder ~/.secondlife/skins/default/xui/en-us and put the file there. From what Henri has said, I understand that the viewer looks in both directories for floaters. That one's own contributions should be in their home directory, while the viewer itself, as it comes from upstream, should be at $INSTALLDIR. That way, when a new major version comes and you uninstall the old major version before installing the new major version, or if you want to have both for any reason (say, a stable version and a development version), your own scripts and floaters and whatnot won't be lost or they'll be accessible from both versions. |
Author: | Henri Beauchamp [ 2024-01-17 11:30:23 ] | |||||||||
Post subject: | Re: Extra chat bar (kind of) | |||||||||
|
Author: | RossoAms [ 2024-01-17 11:44:59 ] | ||||||||||||||||||
Post subject: | Re: Extra chat bar (kind of) | ||||||||||||||||||
Can I just create it in ~/.cool_vl then, as I start the viewer after export SECONDLIFE_USER_DIR="/home/mich/.cool_vl"? Creating a ~/.secondlife directory while there is no current Unix version of that viewer just feels odd. |
Author: | Henri Beauchamp [ 2024-01-17 13:08:43 ] | |||||||||
Post subject: | Re: Extra chat bar (kind of) | |||||||||
|
Author: | RossoAms [ 2024-01-17 13:14:45 ] | ||||||||||||||||||
Post subject: | Re: Extra chat bar (kind of) | ||||||||||||||||||
Okay thanks for the explanation. |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |