Maikel de Vries
9af9e5d98f
docs: removed obsolote Components entry and add IsEditor function
2018-02-15 13:04:22 +01:00
Maikel de Vries
dc7734e223
FnSimFlight: fix precision of velocity if not provided
2018-01-19 14:37:21 +01:00
marsmoon
1f2e34c42d
Docs: add an example for appendto
...
Close GH-59
2017-12-22 19:31:22 +01:00
Lukas Werling
3d1caffcf6
Convert CRLF line endings to LF
...
Now all files are LF again.
2017-11-24 14:23:33 +01:00
Lukas Werling
be9d3032e2
Add ExecutePXS script function
...
Before commit 5a652f23e
("Fix missing C4PXSSystem::Clear
implementation"), ChristmasIce would keep all snow PXS between scenario
section changes. That looked pretty neat, so I'm introducing this script
function to allow properly implementing it.
2017-11-12 22:00:52 +01:00
Maikel de Vries
101dc5055d
add Op parameter to turbulence map script algorithm ( #1948 )
2017-11-11 10:49:42 +01:00
Lukas Werling
6605d390a9
Fix documentation of SplitRGBaValue
2017-10-20 23:36:02 +02:00
Maikel de Vries
efe7dcf251
add Find_Cone to find objects in a cone
...
The reason for an engine function for this is speed, an implementation in script needs Find_Func and ensures slowness.
2017-07-19 22:04:43 +02:00
Maikel de Vries
f5f8b18204
remove unused AttractLightning defcore entry
...
Not used in either the engine or in script, script implementation of lightning can use a script defined property.
2017-07-15 14:00:19 +02:00
Maikel de Vries
496c73a50f
add a method to calculate the area to the shape library
2017-05-13 14:59:14 +02:00
Sven Eberhardt
94669cebe4
Merge branch 'master' of ssh://git.openclonk.org/openclonk
...
Conflicts:
src/editor/C4ConsoleQtPropListViewer.cpp
2017-05-07 15:16:01 -04:00
Sven Eberhardt
4fac960cf4
Editor: Add localized string support
2017-05-07 14:26:30 -04:00
Nicolas Hake
be2f079e2c
Docs: Move ParseInt into Script/Strings category
...
It's not really Arithmetics.
Also change the parameter description to something that isn't a
copy/paste error.
2017-04-11 14:27:50 +02:00
Nicolas Hake
b87f8e3f47
C4Script: Add ParseInt function
...
ParseInt() will take a string parameter and try to convert it into an
integer. If the conversion fails, it returns nil.
2017-04-11 14:21:25 +02:00
Nicolas Hake
30c5bb5f8d
Aul: Allow the user to selectively enable/disable warnings
...
This commit introduces a new Aul directive "#warning", which can be used
to enable or disable warnings for a particular piece of code.
"#warning enable" enables all warnings.
"#warning disable" disables all warnings.
"#warning enable empty_parameter_in_call" selectively enables one
specific warning while not affecting any other.
All warnings that used to be controlled by Developer.ExtraWarnings
remain disabled by default.
2017-02-13 15:07:50 +01:00
Maikel de Vries
7a0b931c83
fix docs after GetBase removal
2016-12-28 18:23:33 +01:00
Maikel de Vries
59961f3a17
remove base library
...
* remove library itself
* remove GetBase()
* change flagpole, etc.
* move basematerial library to vendor
2016-12-28 18:19:10 +01:00
David Dormagen
8a8593e0ba
Script GUI: added TightGridLayout style (requirement of #1842 )
...
The TightGridLayout fills spaces more aggressively. This is slower but makes for a tighter layout. Finding the best layout is NP-complete. This here is just O(N^2) or so.
2016-11-05 15:35:15 +01:00
Lukas Werling
5da45d68e1
Add docs for AddFragmentShader/RemoveShader
2016-10-29 21:22:12 +02:00
Lukas Werling
2163e27661
Add documentation for SetSky()
2016-10-16 19:41:03 +02:00
Sven Eberhardt
d35fc728bf
Fix DrawParticleLine documentation and example #1823
2016-10-01 10:19:40 -04:00
Maikel de Vries
679eedaf50
GetPathLength: add optional depth parameter
...
This is also exposed by the PathFinder defcore entry.
2016-09-25 21:48:19 +02:00
Lukas Werling
fbb8ad5d87
Add RegexSplit()
2016-09-18 11:10:19 +02:00
Lukas Werling
d7cd224a4f
Add functions RegexReplace, RegexSearch and RegexMatch
2016-09-16 23:46:03 +02:00
Sven Eberhardt
d70506ee2e
Improve GetDefinitionGroupPath script function
...
* Now works on _this instead of parameter
* Now works before editor window opened
2016-09-05 18:30:04 -04:00
Sven Eberhardt
41dde5e7d0
Add script function GetDefinitionGroupPath
2016-09-05 02:00:01 -04:00
Sven Eberhardt
31ead2507a
Add Unstick() script function
...
Also add a position parameter to Stuck() script function.
2016-09-05 01:59:58 -04:00
Lukas Werling
c965c24ee2
Docs: Remove obsolete remark about Random() range
2016-08-19 16:03:54 +02:00
Sven Eberhardt
b1a1df8dee
Add eval parameter to not pass errors
2016-07-31 08:15:54 -04:00
Sven Eberhardt
d9f31b006b
Add ReplaceString script function
2016-07-13 02:12:31 -04:00
Maikel de Vries
4833f839d2
script implementation of GetComponent and SetComponent
...
This allows to remove the engine functionality and is based on the property Components = [[def1, amount1], [def2, amount2], ...]. Follow up commits will remove the engine functionality.
2016-05-21 13:34:33 +02:00
Maikel de Vries
00d5a06ec0
remove option to display components in old style menus
2016-05-21 13:34:33 +02:00
Maikel de Vries
dff30d60f5
removed undefined constants C4MN_Extra_MagicValue and C4MN_Extra_MagicValue from docs
2016-05-21 13:34:33 +02:00
Maikel de Vries
fcd3678748
remove unused function ComponentAll
2016-05-21 13:34:33 +02:00
Maikel de Vries
183ab4c4a0
remove unused function ComposeContents
2016-05-21 13:34:33 +02:00
Maikel de Vries
5841b55f7e
remove unused function GetNeededMatStr
2016-05-21 13:34:33 +02:00
Günther Brammer
ef515cc3c7
Script: Prototypes for CreateEffect should inherit from Effect
...
This makes the special effect properties useable without the "this." prefix,
makes the various useful global functions available as well as
effect-specific functions.
2016-05-15 15:22:42 +02:00
Günther Brammer
0559a93f88
Script: CreateEffect effects do not get their target in callbacks
...
They can use the Target property instead.
2016-05-15 15:20:08 +02:00
Günther Brammer
b00b8554ab
Merge branch script
2016-04-28 03:25:44 +02:00
Günther Brammer
3760363a3b
Script: Add GetPrototype and SetPrototype functions
...
This should eventually replace the Prototype property, so that proplists
can be used as a key-value-storage without any hidden gotchas.
The Prototype is such a magical property that any code dealing with all
properties has to special-case it anyway, and isn't even returned by
GetProperties().
2016-04-28 02:59:11 +02:00
Günther Brammer
50378ffda0
Script: CreateEffect starts effects that receive callbacks themselves
2016-04-28 01:08:04 +02:00
Günther Brammer
e5cfb1858f
Script: GetName() can return the property a proplist was defined in
...
This means that the ActMaps do not need to repeat their name anymore,
provided that all Scripts use GetName() instead of directly accessing .Name.
2016-04-24 19:40:29 +02:00
Maikel de Vries
6bdbc5b5c7
add InsertVertex script function to insert a vertex at arbitrary position
2016-03-28 17:36:00 +02:00
Maikel de Vries
12ae155015
GetVertex: return nil for invalid vertex index and improve documentation
2016-03-28 17:36:00 +02:00
Lukas Werling
19caa65b7b
Merge branch 'sdl-gamecontroller' (pull request GH-17)
2016-03-21 16:39:28 +01:00
David Dormagen
85fad425e2
updated docs for PV_Random and PV_Cos
2016-02-27 12:39:18 +01:00
Lukas Werling
2d4747029d
Make analog axis strength symmetrical (0 to 2^15 - 1)
2016-02-26 20:40:07 +01:00
David Dormagen
b69a304493
Fx*Damage reference: added "by_player" parameter; do not imply boolean return value
...
'whether' implies 'yes' or 'no'. That's wrong in this case.
2016-02-23 19:48:15 +01:00
Lukas Werling
9e9505fdf3
Add and update documentation for all control changes
2016-02-21 18:27:02 +01:00
Julius Michaelis
68851106b4
Add a bit of documentation for the half-sold mask stuff.
2016-02-14 22:32:49 +01:00