LuaAPI.wiki
changeset 51 5ab1cf4c7194
parent 50 9033b970cbf7
child 52 714b56de5ea1
equal deleted inserted replaced
50:9033b970cbf7 51:5ab1cf4c7194
   221 <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 <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.
   222 Most visual gears require little to no modification of parameters.
   222 Most visual gears require little to no modification of parameters.
   223 </blockquote>
   223 </blockquote>
   224 Example:
   224 Example:
   225 
   225 
   226 <code lang="lua">    !SetVisualGearValues(circleUid, 1000,1000, 20, 200, 0, 0, 100, 50, 3, 0xff0000ff) 
   226 <code lang="lua">  -- set a circle to position 1000,1000 pulsing from opacity 20 to 200 (8%-78%), radius of 50, 3px thickness, bright red.
   227 -- set a circle to position 1000,1000 pulsing from opacity 20 to 200 (8%-78%), radius of 50, 3px thickness, bright red.
   227     !SetVisualGearValues(circleUid, 1000,1000, 20, 200, 0, 0, 100, 50, 3, 0xff0000ff)
   228 </code>
   228 </code>
   229 
   229 
   230 === <tt>!FindPlace(gearUid, fall, left, right)</tt> ===
   230 === <tt>!FindPlace(gearUid, fall, left, right)</tt> ===
   231 
   231 
   232 <blockquote>Finds a place for the specified gear between x=left and x=right and places it there.
   232 <blockquote>Finds a place for the specified gear between x=left and x=right and places it there.