This shows you the differences between two versions of the page.
| — | fuss:ossl [2025/10/21 23:26] (current) – created - external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Display a List on a Primitive ====== | ||
| + | |||
| + | The following function formats a command string that can be passed to '' | ||
| + | |||
| + | Example call: | ||
| + | <code lsl2> | ||
| + | osSetDynamicTextureData("", | ||
| + | </ | ||
| + | |||
| + | <code lsl2> | ||
| + | /////////////////////////////////////////////////////////////////////////// | ||
| + | // Copyright (C) 2013 Wizardry and Steamworks - License: GNU GPLv3 // | ||
| + | /////////////////////////////////////////////////////////////////////////// | ||
| + | string wasTextDisplayList(list input, integer spacing) { | ||
| + | string c = ""; | ||
| + | integer p = 0; | ||
| + | do { | ||
| + | string in = llList2String(input, | ||
| + | c = osMovePen(c, | ||
| + | p += spacing; | ||
| + | c = osDrawText(c, | ||
| + | input = llDeleteSubList(input, | ||
| + | } while(llGetListLength(input)); | ||
| + | return c; | ||
| + | } | ||
| + | </ | ||
For the contact, copyright, license, warranty and privacy terms for the usage of this website please see the contact, license, privacy, copyright.