Jump to content

llDialog: button labels must be 24 or fewer characters long


AndreaSwede
 Share

You are about to reply to a thread that has been inactive for 2633 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

here is a snippet that may help?

 

composelist()
{
    integer currentobject = 0;
    integer totalobjects = llGetInventoryNumber(INVENTORY_OBJECT);
        object_list = [];
        do
        {   name = llGetInventoryName(INVENTORY_OBJECT, currentobject);
            name = llGetSubString(name, 0, 23) ;  // button charachter limit
            object_list += name;
            currentobject++;
        }
        while (currentobject > 0 & currentobject < totalobjects);
        gLstMnu =  object_list;
}

  • Like 1
Link to comment
Share on other sites

If you are writing your own script, you incorporate something like Xijia's code snippet into a user-defined function that will pre-process the button labels before they get to your llDialog statement.  If you are not writing your own script but are just trying to put button labels into someone else's script, the easiest solution is to simply use labels that are less than 24 characters long.  There is no easier way to do it.

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 2633 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...