g0rd0ngrfr33mailgr
Joined: 2011-09-27 11:18:31 Posts: 193
|
Hello! I wanted to contribute a Quick Preferences floater I made for my own use. I'm pretty sure it can be made much better, but it works. First we make ~/.secondlife/skins/en-us/floater_lua_qp.xml: Then in the automation script, in the section function OnLuaFloaterAction(name, control, value) we add | | | | Code: if name == "qp" then SetLuaFloaterCommand("qp","radio1","SetDebugSetting('RenderName',GetValue())") SetLuaFloaterCommand("qp","radio2","SetDebugSetting('EnableVoiceChat',GetValue())") SetLuaFloaterCommand("qp","spin1","SetDebugSetting('AvatarOffsetZ',GetValue())") SetLuaFloaterCommand("qp","button1","SetDebugSetting('EnableVoiceChat',true)") SetLuaFloaterCommand("qp","button2","SetDebugSetting('EnableVoiceChat',false)") SetLuaFloaterCommand("qp","button3","SetDebugSetting('CameraFrontView',false);SetDebugSetting('CameraOffsetDefault','-2.000','0.000','-0.200');SetDebugSetting('FocusOffsetDefault','0.900','0.000','0.200')") SetLuaFloaterCommand("qp","button4","SetDebugSetting('CameraFrontView',false);SetDebugSetting('CameraOffsetDefault','-2.800','0.000','1.000');SetDebugSetting('FocusOffsetDefault','1.000','0.000','1.000')") SetLuaFloaterCommand("qp","button5","SetDebugSetting('CameraFrontView',true)") SetLuaFloaterCommand("qp","button6","SetCameraMode('-2')") SetLuaFloaterCommand("qp","button7","AgentSit()") SetLuaFloaterCommand("qp","button8","SendChat('/99stop')") SetLuaFloaterCommand("qp","button9","SetDebugSetting('RenderUsePBR',true)") SetLuaFloaterCommand("qp","button10","SetDebugSetting('RenderUsePBR',false)") end
| | | | |
Also, in the section function OnLuaFloaterOpen(name, parameter)Finally, to open/close it, in the automation script in the section function OnLogin(location)and in the section function OnLuaFloaterOpen(name, parameter)
|