Nicolas Hake
31c7805f10
C4Set: Replace elements with zero-initialized ones on clear
...
C4Set used to set its removed elements to nullptr. This requires
some special handling from non-pointer entries like C4Property.
Overwriting the element with a zero-initialized one removes this
requirement, leading to improved type safety on the part of
C4Property.
2019-01-01 21:35:08 +01:00
Clonkonaut
cc163b21b0
New engine recognised property: MaterialIncinerate.
...
Objects will be incinerated by incendiary material (which before was only possible by using ContactIncinerate).
local MaterialIncinerate = true; - object will burn in lava not from other burning objects.
2017-11-01 00:49:26 +01:00
Tushar Maheshwari
a661eab867
Automatic fixes using clang-tidy for header files
...
A follow-up on a previous PR GH-41. The discussion in the forum can be
viewed at http://forum.openclonk.org/topic_show.pl?pid=33086 .
Run clang-tidy (without auto, pass-by-value and using checks) to fix the
header files not modified in the previous PR.
Summary of the changes:
- C++11 member initialization.
- nullptr instead of 0 for pointers.
- override for functions declared virtual in base class.
- default trivial special member functions
2017-05-15 13:46:46 +02:00
Sven Eberhardt
4fac960cf4
Editor: Add localized string support
2017-05-07 14:26:30 -04:00
Sven Eberhardt
5032e61dea
Editor: Add OnUpdate to all delegates and EditorPropertyChanged callbacks to selected root object
2017-02-26 10:53:59 -05:00
Lukas Werling
d8e0b33192
Put scenario parameters in SCENPAR proplist
2017-02-21 21:14:43 +01:00
Sven Eberhardt
e3eec21271
Editor: Add arrow drawing option to polyline delegate
2017-02-20 14:05:24 -05:00
Sven Eberhardt
294b679961
Editor: Add StartFromCenter option to polyline delegate
2017-02-20 13:39:46 -05:00
Sven Eberhardt
6579798907
Add editor enum option to force value serialization on foreign values
2017-02-19 20:36:40 -05:00
Sven Eberhardt
d46f98fd7b
Add EditorCollection callback
...
To be used to re-route contents created/moved in editor.
2017-01-01 17:00:56 -05:00
Sven Eberhardt
072e1dcde0
Editor graph delegate: Add update callback functionality for graph edits
2016-11-12 22:20:05 -05:00
Sven Eberhardt
91af5a95be
Editor graph delegate: Add HorizontalFix, VerticalFix and StructureFix constraints
2016-11-12 22:20:03 -05:00
Lukas Werling
6847e50e79
Implement setting shader uniforms from script ( #1206 )
...
Uniform variables are read from the "Uniforms" proplist set on Scenario
or on individual objects. Proplist keys are uniform names. Values can
either be an int or an array of one to four ints in C4Script. In GLSL,
the uniforms then need a matching type (int/ivec2/ivec3/ivec4). There is
no error reporting; uniforms are only set if both name and type match.
The implementation walks the "Uniforms" proplists on each Draw call. We
may need to cache the uniform maps if this turns out to be too slow.
2016-11-12 22:09:23 +01:00
Sven Eberhardt
bf9c940aa6
Editor graph delegate: Add edge and vertex properties. Remove graph storage options.
...
The different storage options weren't really needed and would not work with edge and vertex delegates.
2016-11-10 21:43:43 -05:00
Sven Eberhardt
ebda8193ef
Replace NULL by nullptr in C++ sources
...
We don't support pre-C++0x any more, so nullptr should be fine everywhere (except in the plain C source files)
2016-11-02 19:58:02 -04:00
Sven Eberhardt
54e8c14666
Editor: Add graph, polyline and polygon shape delegates
2016-11-02 09:54:31 -04:00
Sven Eberhardt
31121d682c
Rename option default value function property to DefaultValueFunction
...
It was "Get" and later "Set", which was always a bit confusing.
2016-09-01 18:32:24 -04:00
Sven Eberhardt
6b9df3118c
Sort UserAction evaluators and groups by name
...
Also merge effect group into ambience group.
2016-08-27 16:46:59 -04:00
Sven Eberhardt
fc24969899
Add EditorPlacementLimit property
...
Limits the number of object instances that can be placed of a given def.
2016-08-06 02:36:53 -04:00
Sven Eberhardt
bce09d272d
Add EditorInitialize callback
2016-08-04 22:12:10 -04:00
Sven Eberhardt
442b8e66df
Qt Editor: Add short name for enum delegate options displayed as sub-delegate
2016-07-30 14:50:07 -04:00
Sven Eberhardt
37885a2e4f
Qt Editor: Add AllowEditing flag for enum delegates.
...
Used for sound delegate
2016-07-28 00:24:28 -04:00
Sven Eberhardt
ee88a36f73
Qt Editor: Rename EditorInfo to EditorHelp
...
Fits better with "UsageHelp" and is more precise.
2016-07-24 23:10:43 -04:00
Sven Eberhardt
4245f60e83
Qt Editor: Add help/description label for current selection
2016-07-24 10:12:38 -04:00
Sven Eberhardt
14d01cd5cd
Qt Editor: Add EmptyName option for def property to rename the "nil" entry
2016-07-22 00:28:01 -04:00
Sven Eberhardt
4fad947980
Qt Editor: Add Set function options SetGlobal and SetRoot
2016-07-21 00:24:53 -04:00
Sven Eberhardt
d605bab0be
Qt Editor: Move EditorActions from EditorAction_* to a proplist EditorAction.*
2016-07-14 00:17:53 -04:00
Sven Eberhardt
28d2172b78
Qt Editor: Move editor props from EditorProp_* to an EditorProp proplist
2016-07-13 17:18:08 -04:00
Sven Eberhardt
85c5deb099
Qt Editor: Add option to auto-select objects created by an EditorAction
...
To be used by the dialogue so you can press a button on the clonk to add and immediately configure a dialogue.
2016-07-07 01:36:58 -04:00
Sven Eberhardt
990b6ea8f1
Qt Editor: Add option to descend directly into a subpath from array and sequence property delegates
2016-07-06 00:56:08 -04:00
Sven Eberhardt
62c1f4bda5
Qt Editor: Add callback support for dynamic enum values in Enum delegates
2016-07-04 13:21:30 -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
Sven Eberhardt
34289fa18a
Qt Editor: Add EditorActions.
...
Replacing the old EditCursorCommands (which nobody knew). Objects now publish their commands directly on the property viewer.
2016-06-19 00:08:09 -04:00
Sven Eberhardt
ad863836b3
Qt Editor: Add groups to enum
2016-06-15 00:15:47 -04:00
Sven Eberhardt
397dbd867a
Add DefinitionPriority property to control call order of Definition()-callbacks.
2016-06-07 18:22:43 -04:00
Sven Eberhardt
16e31098b4
Qt Editor: Improve proplist and array display/editing
...
* Add/Remove element buttons
* Display customization of user delegates
2016-06-06 01:54:05 -04:00
Sven Eberhardt
b10da0629d
Qt Editor: More EditorProps types (string, array) and attributes (EditOnSelection, DefaultEditorProp)
2016-06-03 01:20:43 -04:00
Sven Eberhardt
8a5dbdc73f
Qt Editor: More shape prop storage options
2016-05-23 19:22:49 -04:00
Günther Brammer
b00b8554ab
Merge branch script
2016-04-28 03:25:44 +02:00
Günther Brammer
97406d24d2
Script: Add Construction and Destruction effect callbacks
2016-04-28 01:08:04 +02:00
Günther Brammer
50378ffda0
Script: CreateEffect starts effects that receive callbacks themselves
2016-04-28 01:08:04 +02:00
Sven Eberhardt
881534bee0
Qt Editor: Shape properties
2016-04-25 16:17:10 -04:00
Sven Eberhardt
c0228be4e7
Qt Editor: More editor property types and functionality
2016-04-16 22:05:35 -04:00
Sven Eberhardt
2a2fc68e3f
Qt Editor: Add user properties
2016-04-09 14:29:02 -04:00
Sven Eberhardt
879d501592
Merge remote-tracking branch 'remotes/origin/qteditor' into qteditor
...
Conflicts:
src/editor/C4ConsoleQtPropListViewer.cpp
src/editor/C4ConsoleQtPropListViewer.h
src/script/C4ValueArray.cpp
2016-04-04 19:34:02 -04:00
Sven Eberhardt
98c36e5955
Qt Editor: Implement setting of properties
2016-04-03 23:46:58 -04:00
Nicolas Hake
9dddf289db
Merge branch 'master' into qteditor
2016-04-03 21:06:32 +02:00
Nicolas Hake
eabca223f5
Update all copyright notices for 2016
2016-04-03 20:24:42 +02:00
Maikel de Vries
d6b963d321
remove unused LineMaxDistance property
2016-03-22 22:26:46 +01:00
Günther Brammer
b54ddc7663
Merge branch script
2016-03-01 03:04:17 +01:00