Maikel de Vries
2a731b2545
implement Components as a property lookup table
2016-05-21 13:34:34 +02:00
Maikel de Vries
8291298af1
add script callback on completion change
2016-05-21 13:34:34 +02: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
accd897b91
rename NoComponentMass to NoMassFromContents
...
This had nothing to with components, and risk of backwards compatibility is minor.
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
a4680868d8
docs: Scroll to the desired position in the page when navigating
2016-05-15 15:20:08 +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
Maikel de Vries
d6b963d321
remove unused LineMaxDistance property
2016-03-22 22:26:46 +01:00
Maikel de Vries
dc1e828cfb
add callback OnLineChange when line changes its vertices or vertex positions
2016-03-22 21:53:32 +01:00
Maikel de Vries
fc008241cd
rename LineBreak callback to OnLineBreak
2016-03-22 18:58:55 +01: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
Nicolas Hake
5f895c14fc
Materials: Fix misspelling of "Incendiary" ( #1680 )
...
The wrong spelling will still be accepted as a material value, as long
as no value with the correct spelling exists.
2016-02-09 23:45:02 +01:00
David Dormagen
91391c64af
draw global particles on plane 900
...
Previously, global particles would be drawn even in front of Plane 1000+ (GUI) objects. Additionally, it was impossible to specify particles that were supposed to always be in front of all other particles (e.g. fog, clouds, emulated FoW, ...).
Now, you can attach particles to an object on plane 901+ and have them be in front of everything else.
2016-02-09 20:43:23 +01:00
Maikel de Vries
159dbf071f
make ContactCalls a property instead of DefCore entry
...
This allows for useful runtime changes, like disabling contact calls when an animal dies.
2016-02-08 21:25:43 +01:00
Sven Eberhardt
44121a00eb
MAPALGO_Scale: Fix scaling coordinates for common case of blitting scaled surfaces from one surface to another.
2016-02-06 16:10:34 -05:00
Maikel de Vries
4bcdfc451e
block construction sites based on Exclusive and not on planes ( #1534 )
...
This makes more sense, exclusive object block all other construction sites, irrespective of their planes.
2016-01-30 14:46:14 +01:00
Sven Eberhardt
1f81b87c33
PlayAnimation: Delete previous animations in same slot if no weight is given.
...
This will simplify fixing several animation leaks.
2016-01-28 22:02:27 -05:00
Sven Eberhardt
e94c0e38fc
Add scenario core field "Mode" (in [Game]) to allow setting game mode independent of goal objects.
...
To be used by the league so you can properly host race scenarios in the open melee league.
2016-01-23 21:19:22 -05:00
Nicolas Hake
4fddda20f9
C4Script: Accept array parameter for Min, Max
...
Min/Max with array parameter will return the smallest/largest value of
all elements of the array. If any array element is not an integer, nor
convertible to integer, the function will fail.
2016-01-23 13:49:10 +01:00
Günther Brammer
c20f98dcf9
gtk editor: Support EditCursorCommands, too
...
Reuse the windows code for this. Both versions had three parts: Enabling
the right menu items, adding the selection-specific ones, and showing the
menu. The second part is now common code, with the platform code in a new
function, since it grew big enough to be worth sharing.
2016-01-11 01:52:49 +01:00
Sven Eberhardt
8552b3a8f9
Change return value of InsertMaterial when inserting outside landscape bounds #1509
...
Fixes clogged pump when pumping outside map.
2016-01-08 01:05:22 -04:00
Günther Brammer
5bd30204b7
docs: Fix some <ul> contents to be <li> instead of <text>
...
This fixes visual breakage in the contents.
2016-01-02 22:52:30 +01:00
Günther Brammer
00a4c6c428
Replace BorderBound DefCore value with BorderBound object property
2016-01-01 22:18:41 +01:00
Nicolas Hake
93df9ba532
Docs: Desc??.rtf is now Desc??.txt
2015-12-29 19:17:48 +01:00
Günther Brammer
7ae26c00b9
docs: Fix index entry of operator >
2015-12-20 00:50:43 +01:00
Maikel de Vries
1d10220a00
fix documentation of Touchable property
2015-12-19 10:42:30 +01:00
Sven Eberhardt
1deb7e8176
Add range parameter to ShakeViewport.
...
Controls the falloff distance, so you can create more localized (or more global) shakes.
2015-12-13 11:11:01 -05:00
Sven Eberhardt
03c9399804
docs: Mention that root windows in script GUIs are not clipped.
2015-12-10 20:32:38 -05:00
Sven Eberhardt
8927096286
Sound namespace changes: Add missing documentation and a lost sound.
2015-12-07 00:17:41 -05:00
Sven Eberhardt
2ad8c75d37
docs: Remove .mid from allowed music extension ( #1476 )
2015-12-04 19:08:16 -05:00
Sven Eberhardt
d758c85028
Add max memory time to music resume feature ( #1461 )
2015-12-03 19:17:41 -05:00
Sven Eberhardt
cc12230d56
Add "immediate" parameter to SetPlrView and ResetCursorView script functions to force viewport scroll position to the target.
2015-12-02 22:11:28 -05:00
Clonkonaut
f8ddc7b313
Documentation for the second parameter of EliminatePlayer ( #1261 ).
2015-11-30 23:49:15 +01:00
Sven Eberhardt
7f827d4b15
Add optional debug logging for shape texture loading.
...
Set Config.Developer.DebugShapeTextures to 1 for testing.
2015-11-20 20:35:05 -05:00