User Tools

Site Tools


script:module:core

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

script:module:core [2017-03-13 12:38]
skyjake ↷ Page moved and renamed from core_module to script:module:core
script:module:core [2017-03-13 12:38] (current)
skyjake ↷ Links adapted because of a move operation
Line 6: Line 6:
  
  
-{{Identifier|importPath}} ()+{{:identifier|importPath}} ()
  
 Returns the currently effective search path for imported Doomsday Script modules. The return value is an array: Returns the currently effective search path for imported Doomsday Script modules. The return value is an array:
Line 16: Line 16:
  
  
-{{Identifier|setValue}} ( {{TypeArgument|Number|target}},​ {{TypeArgument|Number|span}} = 0, {{TypeArgument|Number|delay}} = 0 )+{{:identifier|setValue}} ( {{:​typeargument|Number|target}},​ {{:​typeargument|Number|span}} = 0, {{:​typeargument|Number|delay}} = 0 )
  
-Starts a new animation from the current value to {{Argument|target}}. The transition to the new target value will take {{Argument|span}} seconds. If {{Argument|delay}} is not zero, the transition will wait {{Argument|delay}} seconds before starting, however the delay time is considered to be included in {{Argument|span}} so increasing the value of {{Argument|delay}} does not change the transition span time, and the maximum delay is equal to {{Argument|span}}.+Starts a new animation from the current value to {{:argument|target}}. The transition to the new target value will take {{:argument|span}} seconds. If {{:argument|delay}} is not zero, the transition will wait {{:argument|delay}} seconds before starting, however the delay time is considered to be included in {{:argument|span}} so increasing the value of {{:argument|delay}} does not change the transition span time, and the maximum delay is equal to {{:argument|span}}.
  
  
Line 24: Line 24:
  
  
-{{Identifier|setValueFrom}} ( {{TypeArgument|Number|fromValue}}, ​ {{TypeArgument|Number|toValue}},​ {{TypeArgument|Number|span}},​ {{TypeArgument|Number|delay}} = 0 )+{{:identifier|setValueFrom}} ( {{:​typeargument|Number|fromValue}}, ​ {{:​typeargument|Number|toValue}},​ {{:​typeargument|Number|span}},​ {{:​typeargument|Number|delay}} = 0 )
  
-Starts a new animation from {{Argument|fromValue}} to {{Argument|toValue}}. The current value of the animation is discarded before starting the animation. The transition will take a total of {{Argument|span}} seconds, and will start after {{Argument|delay}} seconds has passed. In the following example, an animation is started from 1 to 0, with the duration of 0.9 seconds. For the first 0.5 seconds, the value remains at 1, after which it transitions in 0.4 seconds to 0.+Starts a new animation from {{:argument|fromValue}} to {{:argument|toValue}}. The current value of the animation is discarded before starting the animation. The transition will take a total of {{:argument|span}} seconds, and will start after {{:argument|delay}} seconds has passed. In the following example, an animation is started from 1 to 0, with the duration of 0.9 seconds. For the first 0.5 seconds, the value remains at 1, after which it transitions in 0.4 seconds to 0.
  
  
Line 32: Line 32:
  
  
-{{Identifier|target}} ( )+{{:identifier|target}} ( )
  
 Returns the target value of the animation. Returns the target value of the animation.
  
-{{Identifier|value}} ( )+{{:identifier|value}} ( )
  
 Returns the current value of the animation. If the animation is not ongoing, this is the same as the target value. Returns the current value of the animation. If the animation is not ongoing, this is the same as the target value.
script/module/core.txt · Last modified: 2017-03-13 12:38 by skyjake