HUD with "enter text" field
|
|
Led Writer
Registered User
Join date: 12 Apr 2007
Posts: 14
|
01-03-2008 10:57
hi, i was recently told about a HUD that allowed to directly enter text into a text field, which was located on the HUD. So far I didn't know, that there was a way to create something like that, because I thought the only way for input was mainchat.
If it is possible, please let me know where to start doing some research on this topic.
Thanks in advance.
|
|
Deanna Trollop
BZ Enterprises
Join date: 30 Jan 2006
Posts: 671
|
01-03-2008 11:37
Until I see otherwise, the only way I can think of is simply listening to owner chat, preferably on a non-zero channel. There is simply no other way for keyboard input to interface with a prim through LSL, outside of a few limited control keystrokes.
|
|
Okiphia Anatine
Okiphia Rayna
Join date: 22 Nov 2007
Posts: 454
|
01-03-2008 12:39
From: Led Writer hi, i was recently told about a HUD that allowed to directly enter text into a text field, which was located on the HUD. So far I didn't know, that there was a way to create something like that, because I thought the only way for input was mainchat.
If it is possible, please let me know where to start doing some research on this topic.
Thanks in advance. SOunds like a custom viewer in all likelihood, it seems that would be the only way possible since LSL doesn't allow that at this point. Seems like its a viewer with a HUD attachment, where the viewer has a special textbox that auto-says into a specific channel, heard by the HUD.
|
|
Wildefire Walcott
Heartbreaking
Join date: 8 Nov 2005
Posts: 2,156
|
01-03-2008 12:57
Might there be a "soft keyboard" on the HUD?
|
|
Meade Paravane
Hedgehog
Join date: 21 Nov 2006
Posts: 4,845
|
01-03-2008 13:00
That's what I was thinking. Bunch (26+) of prims that you can click on.
I like Okiphia's idea better, though. Don't know if anybody has done a custom viewer like that but it's sure an interesting idea..
_____________________
Tired of shouting clubs and lucky chairs? Vote for llParcelSay!!! - Go here: http://jira.secondlife.com/browse/SVC-1224- If you see "if you were logged in.." on the left, click it and log in - Click the "Vote for it" link on the left
|
|
Cherry Hainsworth
Registered User
Join date: 31 Jul 2006
Posts: 125
|
01-27-2008 16:09
I may be 1000% wrong on this (it has been known, with maths like mine!) but I have often wondered if this is what Strife's Dialog Module is for. http://wiki.secondlife.com/wiki/Dialog_ModuleThe thing is way over my head - so, if it doesn't have this capability, please can someone explain what it does? :/ ** Edited to add: There are quite a few HUDs which accept input via chat (processed remotely). It was most likely one of those. Good example is the SLOODLE blog hud.
_____________________
================= My stuff on XSt:- http://tinyurl.com/383mgh
|
|
Haruki Watanabe
llSLCrash(void);
Join date: 28 Mar 2007
Posts: 434
|
01-27-2008 17:18
I think this script is kind of a _very_ sophisticated Dialog-Maker...
When I look at stuff like that, I just wanna sit in the corner for the rest of my life and _never_ write a single line of code again...
|
|
Cherry Hainsworth
Registered User
Join date: 31 Jul 2006
Posts: 125
|
01-27-2008 17:33
From: Haruki Watanabe When I look at stuff like that, I just wanna sit in the corner for the rest of my life and _never_ write a single line of code again... Heh, I know what you mean! I'm never sure whether I feel *privileged* to have access, here, to such bright individuals .... or should just crawl under a stone, with my shabby ole average intellect 
_____________________
================= My stuff on XSt:- http://tinyurl.com/383mgh
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
01-27-2008 18:42
From: Cherry Hainsworth Heh, I know what you mean! I'm never sure whether I feel *privileged* to have access, here, to such bright individuals .... or should just crawl under a stone, with my shabby ole average intellect  avaerage intellects come up with some of the best solutions, and even more of the interesting problems to solve. (not to mention Einstein was below average by conventional standards)
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|
|
Bobbyb30 Zohari
SL Mentor Coach
Join date: 11 Nov 2006
Posts: 466
|
01-27-2008 18:56
From: Cherry Hainsworth Heh, I know what you mean! I'm never sure whether I feel *privileged* to have access, here, to such bright individuals .... or should just crawl under a stone, with my shabby ole average intellect  That script is what we call inefficient and pure overkill. I've written a similarly complex dialog module with a lot fewer lines and it runs more efficiently. I'm not saying this to criticize the creator, merely to point out that despite lsl's severe limitaitons, there are multiple ways to write scripts. 
|
|
Bobbyb30 Zohari
SL Mentor Coach
Join date: 11 Nov 2006
Posts: 466
|
01-27-2008 18:59
From: Led Writer hi, i was recently told about a HUD that allowed to directly enter text into a text field, which was located on the HUD. So far I didn't know, that there was a way to create something like that, because I thought the only way for input was mainchat. If it is possible, please let me know where to start doing some research on this topic. Thanks in advance. There are 5 ways in which such an hud may exsist... 1) It has a nonzrero listen and whatever you type it inputs it into the hud. 2) It has a "keyboard" of its own (or a dialog driven keyboard). 3) It is a customized viewer and the viewer may listen. 4) It is inputed on a website somewhere and xml-rpc or emailed or httposted on the script. 5) They enter it on a notecard and the script reads the notecard.
|
|
Haruki Watanabe
llSLCrash(void);
Join date: 28 Mar 2007
Posts: 434
|
01-28-2008 00:26
From: Void Singer avaerage intellects come up with some of the best solutions, and even more of the interesting problems to solve. (not to mention Einstein was below average by conventional standards) I know what you mean, Void - that's because sometimes one can't see the forest because of all the trees (is that english?  - That's why I never wanted to become «specialist»*as I didn't wanted to lose «the big picture»... But then again, I look at Strife's code and go «I guess, I'm just not smart enough for stuff like that»  (@Bobby - despite you even _might_ be right - Strife's script still blows my mind)... And to just contribute to the OP's discussion at least a little: We really need such a thing as an input-field apart from the regular chat. Something like in Javascript, where we'd have 3 possibilities: a) just an alert with an ok button b) a confirm-alert with «ok/cancel» and c) an input-box where we could request the user to input data. All three of them should be bounded to an object, without the need of a listener. This dialog should raise an event in the object with the original question, the user's answer and the id of the user who clicked it. It should be different from the regular llDialog and, if possible, pop up in the middle of the screen, forcing the user to make a choice... If there's a JIRA-entry for such a thing, I'd vote for it...
|