Lukas Werling
bd8b241734
Update dependency list in README
2016-11-10 22:19:58 +01:00
David Dormagen
ae2000f0a1
Contents menu: sort extra-slot containers to front to make items jump around less
...
With the highest items being in the front, the tight grid layout has less reason to resort a major amount of the items every time items are added or removed. This results in a generally more stable layout.
2016-11-07 20:09:37 +01:00
David Dormagen
12e808263b
Contents menu: use tight grid layout ( #1842 )
...
This makes extra-slot containers not block an extra row anymore. However, they might jump around a bit. It might be a good idea to set their priority lower to make them always appear first.
When they would be in front, the tight grid layout would likely not move them around.
2016-11-05 15:35:15 +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
Julius Michaelis
7aeec3279c
Fix 75289da
and 55b6713
2016-11-03 13:09:54 +01: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
Julius Michaelis
75289dabb5
Always Log chat message
2016-11-01 19:26:38 +01:00
Lukas Werling
9c98227a03
Fix all -Wformat warnings
2016-10-31 23:39:45 +01:00
Sven Eberhardt
02dffb8af1
Allow rotation of guideposts
2016-10-31 10:10:29 -04:00
Sven Eberhardt
f17046e1f0
Fix display of rotated meshes with MeshTransformation
...
Rotation used the wrong (untransformed) coordinates for the rotation center
2016-10-31 10:10:29 -04:00
Nicolas Hake
194e7d709b
Aul codegen: Handle errors at codegen time better ( #1837 )
...
If a parse error occurs inside a declaration, the codegen should just go
on and deal with the next declaration instead of completely giving up on
the entire script.
2016-10-31 11:17:43 +01:00
Nicolas Hake
f0f50ec402
Aul: Don't prepend "ERROR:" to parser error msgs
...
Further formatting of the error message should be the error handler's
job.
2016-10-31 11:16:14 +01:00
Nicolas Hake
3c13c88f56
Aul: Count errors and warnings properly
...
9caaf1e
introduced an external error handler for easier testing of
error conditions. The default error handler needs to count errors and
warnings if we want to display them, but didn't.
2016-10-31 11:15:19 +01:00
Sven Eberhardt
8e281103b0
Improve guidepost editor placement and rotation
...
* Shows correct size in preview (by setting the scaling on the definition instead of in Construction)
* Can be oversized
* Avoid angles where all signs are facing parallel to the camera
* Unfortunately, rotation doesn't work well with Mesh Transform (uses the wrong rotation center for the graphics)
2016-10-31 00:34:48 -04:00
Sven Eberhardt
5c5e1a5fa3
Fix editor selection after object duplication on remote clients
...
Also remove some remaining EditCursorSelection/EditCursorDeselection callbacks
2016-10-30 22:26:14 -04:00
Sven Eberhardt
aed3f92982
Fix dialogue sequence assignment
...
It used to be set by reference instead of copying, which means all dialogues created in a single session would reference the same sequence.
2016-10-30 21:56:08 -04:00
Kanibal
97c8104ac8
Fix msvc build.
2016-10-30 21:46:29 -04:00
Sven Eberhardt
15fbb1ea99
Fix editor runtime join to use a file at the temporary path
2016-10-30 20:40:40 -04:00
Sven Eberhardt
d048ca01dc
Fix resource goal scenario saving
2016-10-30 20:33:55 -04:00
Sven Eberhardt
a07d26c839
Fix conditional UserAction in loops
2016-10-30 20:33:55 -04:00
Sven Eberhardt
3712c6ed2f
Change MoveTo function signature in experimental CableLorry
2016-10-30 20:33:54 -04:00
Julius Michaelis
55b6713185
Dedicated server: stop game when there are less than 2 clients
2016-10-30 21:36:29 +01:00
Julius Michaelis
890669ea0d
Silence a warning from getopt when using --config
2016-10-30 21:36:29 +01:00
Julius Michaelis
65940080a7
Remove two unused config options, set music to default off with the dedicated.
...
I admit that this is just a hack to silence some warnings by default.
2016-10-30 21:36:29 +01:00
Julius Michaelis
64dd72c380
Fix dedicated: Load JPEG surfaces so the texture shape information can be correctly generated
2016-10-30 21:36:29 +01:00
Lukas Werling
63cc42e967
Improve script shader code
...
- Avoid std::list.
- Don't pass strings and vectors by value.
- Don't try to update script shader slices as they never change.
2016-10-30 12:06:01 +01:00
Julius Michaelis
29b5fa5946
Fix include: no "src/"
2016-10-30 01:21:44 +02:00
Lukas Werling
5da45d68e1
Add docs for AddFragmentShader/RemoveShader
2016-10-29 21:22:12 +02:00
Lukas Werling
13fa0ab7b1
Implement adding/removing shaders from script
...
New script functions: AddFragmentShader, RemoveShader.
There is currently no support for adding vertex shaders.
2016-10-29 21:19:08 +02:00
Julius Michaelis
9ab410e47d
SDL: Notify C4Application of resolution / window size changes.
2016-10-29 14:15:09 +02:00
Nicolas Hake
bce0b45413
Editor: Fix scheduler timer so it doesn't busy wait ( #1834 )
...
36/1000 is always 0 and doesn't make a lot of sense anyway. Use 1000/36
(aka 1000ms/36fps) instead so the UI thread has some time to rest.
Also use a Qt::PreciseTimer so Qt doesn't try to coalesce the scheduler
timer with other timers to save energy.
2016-10-28 21:31:14 +02:00
Sven Eberhardt
f2231e848e
AulCompiler: Fix static parameter type check
2016-10-24 22:00:30 -04:00
Sven Eberhardt
2b6eb83e48
Fix some parameter count errors
2016-10-24 21:28:31 -04:00
Sven Eberhardt
591b20b6ca
Fix some variable name shadowing errors
2016-10-24 21:21:55 -04:00
Sven Eberhardt
0d20551ab6
Fix some "function variable hides local variable" warnings
2016-10-24 21:05:17 -04:00
Sven Eberhardt
342916a1ed
Fix some implicit for loop declaration errors
2016-10-24 21:02:02 -04:00
Sven Eberhardt
7f543e8390
Add AI control UserActions
2016-10-24 21:02:02 -04:00
Sven Eberhardt
2e73343814
EnemyAI: Add "active" setting
...
This allows disabled AI clonks (to be used by UserActions)
2016-10-24 21:02:01 -04:00
David Dormagen
83260c5e69
Key object: updated graphics
...
This one has a higher resolution and should also look decent when bigger (e.g. as an inventory picture). Made by me with Blender.
2016-10-24 18:12:45 +02:00
Julius Michaelis
e61dcbe4c3
Extend the netpuncher: clients can ask hosts for a connection initiation to circumvent port restricted NATs
2016-10-23 22:34:43 +02:00
Julius Michaelis
078ac47780
Add CMake option for headless-only build.
2016-10-23 22:34:42 +02:00
David Dormagen
c2f391e565
editor: don't crash on selecting object when EditorBase doesn't have member EditorProps
...
This crash happened for me in a custom scenario but with unmodified original objects. No idea why, but it seemed defective anyway.
2016-10-23 18:47:44 +02:00
Sven Eberhardt
8fb8be9cec
Sequence: Store trigger offset to allow non-synchronized triggers at the same interval
2016-10-23 00:20:26 -04:00
Julius Michaelis
072c4a3475
Fix windows build: link libpng to libopenclonk
...
Attempt #2
2016-10-22 21:33:10 +02:00
Julius Michaelis
b658f6aeed
Fix windows build
...
Attempt #1
Make that 26 compilation units saved.
2016-10-22 19:59:23 +02:00
Julius Michaelis
f72bfc72a3
Add a libopenclonk target to save compiling some units twice
...
Unfortunately, only 27 units could be deduplicated with the current state of USE_CONSOLE.
2016-10-22 18:28:25 +02:00
Julius Michaelis
3c5dde1293
.gitignore
2016-10-22 17:42:23 +02:00
Julius Michaelis
376ca5a9df
Prevent using USE_CONSOLE in lib{misc,c4script}
2016-10-22 17:42:23 +02:00
Lukas Werling
e7f4105b97
Replace duplicate BreakMessage() implementations
...
...with a single one based on std::string in the hope of getting rid of
StdStrBuf some day.
2016-10-22 17:00:20 +02:00