// =============================================== // I>NSANE KAOS HUD - Texture Controller // Sends: "Button|UUID" on channel XXXXXXX // IMPORTANT: HUD buttons must be linked to the root prim // and their names must match exactly the names in the receiver MAP // =============================================== integer CHANNEL = XXXXXXX; // ------------------------------------------ // List of buttons and their UUIDs // [ButtonName, UUID, ...] // ------------------------------------------ list BUTTONS = [ // Lips "Lip1", "xxxx", "Lip2", "xxxx", "Lip3", "xxxx", "Lip4", "xxxx", "Lip5", "xxxx", "Lip6", "xxxx", "Lip7", "xxxx", "Lip8", "xxxx", // Lashes "Lash1", "xxxx", "Lash2", "xxxx", "Lash3", "xxxx", "Lash4", "xxxx", "Lash5", "xxxx", "Lash6", "xxxx", // Brows "Brow1", "xxxx", "Brow2", "xxxx", "Brow3", "xxxx", "Brow4", "xxxx", "Brow5", "xxxx", "Brow6", "xxxx", "Brow7", "xxxx", "Brow8", "xxxx", // Shadows "Shadow1", "xxxx", "Shadow2", "xxxx", "Shadow3", "xxxx", "Shadow4", "xxxx", "Shadow5", "xxxx", "Shadow6", "xxxx", "Shadow7", "xxxx" ]; // ------------------------------------------ // Get the UUID assigned to a button // ------------------------------------------ string GetUUID(string button) { integer idx = llListFindList(BUTTONS, [button]); if (idx == -1) return ""; return llList2String(BUTTONS, idx + 1); } // ------------------------------------------ // Events // ------------------------------------------ default { touch_start(integer total_number) { integer i; for (i = 0; i < total_number; i++) { integer prim = llDetectedLinkNumber(i); // which prim was clicked string button = llGetLinkName(prim); // name of the prim string uuid = GetUUID(button); if (uuid != "") { string msg = button + "|" + uuid; llSay(CHANNEL, msg); } } } }