LuaAPI.wiki
changeset 49 863995d12a27
parent 48 3c5d26c1562a
child 50 9033b970cbf7
equal deleted inserted replaced
48:3c5d26c1562a 49:863995d12a27
   220 <blockquote>This allows manipulation of many of the visual gear values.  Calling GetVisualGearValues first is recommended on most visual gears unless you are controlling all the key values.  In the case of vgtCircle, the visual gear values are mapped as follows.  X, Y: position.  State: radius. Timer: Thickness.  FrameTicks: pulsation speed (0 to disable).  dX, dY: min/max pulsation opacity (0-255). Tint: colour, RGBA.
   220 <blockquote>This allows manipulation of many of the visual gear values.  Calling GetVisualGearValues first is recommended on most visual gears unless you are controlling all the key values.  In the case of vgtCircle, the visual gear values are mapped as follows.  X, Y: position.  State: radius. Timer: Thickness.  FrameTicks: pulsation speed (0 to disable).  dX, dY: min/max pulsation opacity (0-255). Tint: colour, RGBA.
   221 Most visual gears require little to no modification of parameters.
   221 Most visual gears require little to no modification of parameters.
   222 </blockquote>
   222 </blockquote>
   223 Example:
   223 Example:
   224 
   224 
   225 <code lang="lua">    !SetVisualGearValues(circleUid, 1000,1000, 20, 200, 0, 0, 100, 50, 3, 0xff0000ff) -- set a circle to position 1000,1000 pulsing from opacity 20 to 200 (8%-78%), radius of 50, 3px thickness, bright red.
   225 <code lang="lua">    !SetVisualGearValues(circleUid, 1000,1000, 20, 200, 0, 0, 100, 50, 3, 0xff0000ff) 
       
   226 -- set a circle to position 1000,1000 pulsing from opacity 20 to 200 (8%-78%), radius of 50, 3px thickness, bright red.
   226 </code>
   227 </code>
   227 
   228 
   228 === <tt>!FindPlace(gearUid, fall, left, right)</tt> ===
   229 === <tt>!FindPlace(gearUid, fall, left, right)</tt> ===
   229 
   230 
   230 <blockquote>Finds a place for the specified gear between x=left and x=right and places it there.
   231 <blockquote>Finds a place for the specified gear between x=left and x=right and places it there.