Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
script:module:core [2019-11-17 19:22] – [Core.String] skyjake | script:module:core [2019-11-17 19:27] (current) – [Core.String] skyjake | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Core (Module) ====== | ||
+ | |||
+ | Module for built-in classes and other integral features of Doomsday Script. | ||
+ | |||
+ | ===== Functions ===== | ||
+ | |||
+ | |||
+ | # | ||
+ | |||
+ | Returns the current search path for imported Doomsday Script modules. The return value is an array: | ||
+ | [ , /modules, / | ||
+ | net.dengine.stdlib.gui.pack/ | ||
+ | |||
+ | Loaded packages can add paths here using '' | ||
+ | |||
+ | ===== Core.Animation ===== | ||
+ | |||
+ | |||
+ | # | ||
+ | |||
+ | Starts a new animation from the current value to //target//. The transition to the new target value will take //span// seconds. If //delay// is not zero, the transition will wait //delay// seconds before starting, however the delay time is considered to be included in //span// so increasing the value of //delay// does not change the transition span time, and the maximum delay is equal to //span//. | ||
+ | |||
+ | |||
+ | uEmission.setValue(1, | ||
+ | |||
+ | |||
+ | # | ||
+ | |||
+ | Starts a new animation from // | ||
+ | |||
+ | |||
+ | uEmission.setValueFrom(1, | ||
+ | |||
+ | |||
+ | # | ||
+ | |||
+ | Returns the target value of the animation. | ||
+ | |||
+ | # | ||
+ | |||
+ | Returns the current value of the animation. If the animation is not ongoing, this is the same as the target value. | ||
+ | |||
+ | ===== Core.Dictionary ===== | ||
+ | |||
+ | Base class for values of type Dictionary. | ||
+ | |||
+ | # | ||
+ | |||
+ | Returns the keys of a dictionary as an array: | ||
+ | |||
+ | < | ||
+ | $ d = {' | ||
+ | $ d.keys() | ||
+ | ⇒ [ key1, key2 ] | ||
+ | </ | ||
+ | |||
+ | # | ||
+ | |||
+ | Returns the values of a dictionary as an array: | ||
+ | |||
+ | < | ||
+ | $ d = {' | ||
+ | $ d.values() | ||
+ | ⇒ [ value1, value2 ] | ||
+ | </ | ||
+ | |||
+ | ===== Core.File ===== | ||
+ | |||
+ | # | ||
+ | |||
+ | # | ||
+ | |||
+ | # | ||
+ | |||
+ | # | ||
+ | |||
+ | # | ||
+ | |||
+ | # | ||
+ | |||
+ | # | ||
+ | |||
+ | # | ||
+ | |||
+ | # | ||
+ | |||
+ | # | ||
+ | |||
+ | # | ||
+ | |||
+ | # | ||
+ | |||
+ | # | ||
+ | |||
+ | ===== Core.Folder ===== | ||
+ | |||
+ | Parent class for File objects that represent folders. Folders are derived both from Core.File and Core.Folder. | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ===== Core.RemoteFile ===== | ||
+ | |||
+ | |||
+ | ===== Core.String ===== | ||
+ | |||
+ | Base class for values of type Text. | ||
+ | |||
+ | # | ||
+ | |||
+ | # | ||
+ | |||
+ | # | ||
+ | |||
+ | # | ||
+ | |||
+ | # | ||
+ | |||
+ | Returns a text string with the file name removed. | ||
+ | |||
+ | < | ||
+ | $ "/ | ||
+ | ⇒ /abc | ||
+ | </ | ||
+ | |||
+ | # | ||
+ | |||
+ | # | ||
+ | |||
+ | # | ||
+ | |||