This shows you the differences between two versions of the page.
— | fuss:ossl [2022/04/19 08:28] (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; | ||
+ | } | ||
+ | </ | ||