On Jul 12, 2009, at 11:56 AM, Jani Pirkola wrote:

> 2) I think you can not control client side UI like that, using Python. (I am
not sure, though)
> 2009/7/12 Anu <[email protected]>
>> 2) Tried adding button function from windows forms using IronPython
>> scripting but that didnt work either. i.e.
>>            import clr
>>            clr.AddReference("System.Windows.Forms")
>>            from System.Windows.Forms import *
>>            msgButton = Button(Text='Message', Left =20, Top=20)
>> what am i doing wrong? has somebody tried anything similar?


i think that code like that works, but it runs on the server, so you'll get a
.net form with the button on the box where you are running the rex server
(opensim) :) .. having no connection to any viewer or a user or anything like 
that.

rexscripting is basically a way to write opensim region modules, using wrapper
classes like the avatars etc and an own for those scripts event system that is
helpful for making game logic. it can be done using python thanks to .net clr
and ironpython. also normal opensim region modules can be written using 
ironpython.

with the new ng viewer, Naali, we are providing client side scripting and making
custom UIs too, but that' work in progress still.

within the Linden base you can afaik use the HUDs for client side UIs using lsl
commands. i don't know that area too well myself yet, have been learning
recently a bit 'cause need to work on similar things for Naali.

i've also used llDialogs for dialogs, it's just a lsl command (also exposed to
rexscript) that opens a client side dialog box and sends the response as an IM
iirc, worked fine.

~Toni



--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/realxtend
http://www.realxtend.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to