Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

GUI Help

rubiq Campbell
Registered User
Join date: 4 Apr 2006
Posts: 22
05-31-2006 11:36
Please help with your expertise. I am trying to build a small game but I need to know if is possible to create a GUI using LSL or what are the options available to perform such a task. Basically I want to create objects and be able to assign that object different task and delete them when necessary. When I click the object I want to have a drop-down list to select from the different task and once a task has been selected would like to be able to delete and select another one. Any clue on such a script or please direct me to where I can get such help.
Keknehv Psaltery
Hacker
Join date: 11 Apr 2005
Posts: 1,185
05-31-2006 11:40
For something like that, I would recommend dialogs. They will cause a small pop-up to appear in the top-right corner of the screen, with various choices.

Search the library for 'dialog'-- there should be some example code.
rubiq Campbell
Registered User
Join date: 4 Apr 2006
Posts: 22
05-31-2006 12:45
thanks thats help a lot
rubiq Campbell
Registered User
Join date: 4 Apr 2006
Posts: 22
GUI Help Again
05-31-2006 13:55
Now I have been able to create a dialogue box with different tasks.
For example:

string AssignTask = "Please select task from the following list";

list task = "add", "divide", "multiply";

On the dialogue window i have a choice to select tasks as shown above but not sure of how to add some functionality to add, divide and multiply. Should I make those tasks functions or what please help as much as you can. Basically how do I embed code or some functionality like adding without functions or with functions.