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
Sven Eberhardt
4df8679be2
Simplify saving of scenario properties in saved scenarios.
...
Just need to set "Save" to an identifier now.
2016-08-20 01:55:21 -04:00
Lukas Werling
c965c24ee2
Docs: Remove obsolete remark about Random() range
2016-08-19 16:03:54 +02:00
Sven Eberhardt
e39b314239
Add property to auto-save EditorProps in scenarios
2016-08-06 14:49:48 -04:00
Sven Eberhardt
bce09d272d
Add EditorInitialize callback
2016-08-04 22:12:10 -04:00
Sven Eberhardt
1d566ec6c5
Add VIS_Editor visibility flag
2016-08-02 01:12:08 -04:00
Sven Eberhardt
b1a1df8dee
Add eval parameter to not pass errors
2016-07-31 08:15:54 -04:00
Sven Eberhardt
f4ea3359d0
Add InitializePlayers callback after all initial players have joined
2016-07-22 00:13:57 -04:00
Sven Eberhardt
d9f31b006b
Add ReplaceString script function
2016-07-13 02:12:31 -04:00
Sven Eberhardt
0206e9a74a
Qt Editor: Add HideInCreator DefCore setting
...
Hides internal definitions, libraries, etc. from the object creator in the editor.
2016-07-10 21:55:56 -04:00
Sven Eberhardt
a7aa89f168
Merge branch 'master' into qteditor
...
Conflicts:
planet/Objects.ocd/Structures.ocd/StoneDoor.ocd/SpinWheel.ocd/Script.c
src/platform/C4WindowSDL.cpp
src/script/C4AulParse.cpp
src/script/C4Effect.cpp
2016-06-20 22:27:03 -04:00
Tobias Zwick
0ad8e15c8a
in the documentation, always have "docs" preselected in the search shown in the header
2016-06-19 17:00:18 +02:00
Sven Eberhardt
397dbd867a
Add DefinitionPriority property to control call order of Definition()-callbacks.
2016-06-07 18:22:43 -04:00
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
5941fdc391
docs: Update de.po with the current english texts
2016-05-16 18:50:32 +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
a12b5e5ad7
docs: Enable navigation to cells in a table
2016-05-15 15:20:08 +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
Julius Michaelis
c6a6b71c3a
Specifically run python2 instead of python from the docs Makefile.
...
If this breaks anywhere, please revert this commit.
2016-02-14 22:32:29 +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
755fd09c78
docs: Fix contents position in really wide browser windows
2016-01-03 00:21:39 +01: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
e1b7db956a
docs: Update header and CSS for the new openclonk.org style
2016-01-02 22:44:45 +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
Armin
31371bcc82
Docs: Fix mistake in map scripts. 'Op=checkerboard' was missing.
2015-11-07 11:22:52 +01:00
Armin
9a9ab3059d
Docs: Add related function "DoEnergy" to "GetEnergy".
...
squashed:
Correct mistake. Copied too many lines in my last commit.
Docs: Add releated function.
2015-10-29 11:24:21 +01:00
Armin
0b223be474
Docs: Correct two examples in Script GUIs.
2015-10-29 11:16:53 +01:00
David Dormagen
4556fbe011
documented GetPlayerControlState
2015-10-15 18:05:21 +02:00
Sven Eberhardt
47e422f452
Rework and document texture shapes.
...
* Renamed from material shapes to textures shapes
* No per-texture, so the same material can use different shapes with different textures
* Load a shape image instead of text file with vector components
* Allow texture sizes that are not multiple of the map zoom
* Add minimum overlap parameter to draw shapes only when the given overlap is reached.
2015-10-09 00:16:24 -04:00
David Dormagen
fa1e86f2ae
docs: added fuzzy logic to "library" folder
2015-10-05 14:50:02 +02:00
David Dormagen
cb58bed40e
fuzzy logic library: changed interface & added documentation
...
The interface now follows the Shape library's interface.
2015-10-04 18:38:05 +02:00
Armin
5a2bfe40a6
Docs: Map.c examples: Replace DrawSulphur with DrawFirestone.
2015-10-01 18:46:35 +02:00
Sven Eberhardt
17e0e2f423
Add breaks between music.
2015-09-30 22:50:18 -04:00
Sven Eberhardt
62c3d13ece
Document InitializeAmbience.
2015-09-28 20:20:57 -04:00
Sven Eberhardt
3f6cacade4
Add parameters to Music and SetPlayList to resume a piece from where it was last interrupted.
2015-09-27 20:58:37 -04:00
Sven Eberhardt
766cd3e7d6
Fix default map zoom in docs ( #1409 ).
2015-09-27 16:12:17 -04:00
David Dormagen
052e0358d9
script guis: document and give example for names starting with underscores
2015-09-27 18:34:18 +02:00
David Dormagen
cd9c0717c9
document new GUI_NoCrop effect on text
2015-09-26 08:33:20 +02:00
Sven Eberhardt
88167a03a8
Add support for hidden scenarios.
...
If C4S.Head.Secret is set and mission access to the scenario has not been gained, it is hidden in the scenario selection list.
2015-09-24 23:51:16 -04:00
Maikel de Vries
0cf664e5d9
fix dead link in Anim_Linear documentation
2015-09-20 20:29:34 +02:00
Sven Eberhardt
95da770892
Move GetDefWidth and GetDefHeight script functions to engine.
...
They started to appear in script profiler runs and the GetDefVal-implementation is very inefficient.
2015-09-19 21:22:55 -04:00
Armin Burgmeier
653680b296
Revert "Add Scale parameter in materials"
...
This reverts commit 8ef1f908cc
. This seems to be
a performance bottleneck on some graphics cards and/or drivers. Clonkonaut
reports issues with a Radeon HD 7800.
This feature is not vital since textures can always be drawn such that they
tile properly at 512x512. While that particular problem with the Radeon card
could probably be worked around, it's just not worth it.
2015-09-19 17:26:46 -04:00
Armin Burgmeier
8ef1f908cc
Add Scale parameter in materials
...
This allows to scale textures up or down from their initial size, allowing
them to tile at intervals other than 512x512.
2015-09-19 10:48:28 -04:00
Armin Burgmeier
8e2ad1fb33
Fix property name "LightOffset" in SetLightRange docs
2015-09-16 21:55:33 -04:00
Sven Eberhardt
b683e47499
Add LightOffset property to allow light sources to origin from locations other than the object center.
2015-09-16 21:14:08 -04:00
Mark
722a5ad448
Explode: DoShockwave
...
Added the global function DoShockwave. Updated documentation. Changed the way explosions deal damage: Every object at the center of the explosion gets full damage. Every object inside the explosion radius gets half damage.
(cherry picked from commit 22298a6d1389b5344ebe7aea56f3c371b5ad845f)
Conflicts:
planet/System.ocg/Explode.c
2015-09-13 13:01:28 +02:00
Mark
15056b823f
Explode: Damage override
...
Added damage override parameter to the explosion functions. Updated the documentation as well.
(cherry picked from commit 59f802c2d3f269d54c12489ac9659ee3ca57a857)
Conflicts:
planet/System.ocg/Explode.c
2015-09-13 13:01:24 +02:00
Armin Burgmeier
a40792013f
Add "AttachNumber" parameter to AttachMesh
...
This allows to create nested definition-based attached meshes.
2015-09-12 19:57:00 -04:00
Maikel de Vries
e64534b201
document ignore_ocf parameter of Collect
2015-09-12 22:37:21 +02:00
Sven Eberhardt
75d0eba402
Document attach_number in several animation-related script functions.
2015-09-12 12:26:03 -04:00
Sven Eberhardt
6face464aa
Document attach_mesh parameter of the PlayAnimation function.
2015-09-12 11:07:20 -04:00
David Dormagen
cd82b41c06
particles: added CollisionDensity to specify with which kind of material a particle will collide
2015-09-12 10:53:23 +02:00
Maikel de Vries
0610cbda7d
document object layer setter and getter
2015-09-10 22:31:51 +02:00