Robert Müller
0c69495522
Use std::vector instead of array in editor
2022-05-27 16:36:39 +02:00
Robert Müller
f0df8ad85a
Use std::swap in editor
2022-05-15 21:00:14 +02:00
Chairn
bd5bfa453d
clang-format
2022-03-21 05:55:01 +01:00
Chairn
4cc815711b
Added direction enumeration for the editor
2022-03-21 05:53:36 +01:00
Jupeyy
95fe457abb
Auto font size
2022-03-11 17:34:48 +01:00
ChillerDragon
b770bc6988
Use ETextAlignment enum for UI
...
Replaces the magic numbers -1/0/1 for left/center/right
Based on the work done in upstream:
@cinaera added alignment enums
04ee8b20a1
@TsFreddie renamed them
67651e8122
2022-01-21 16:26:19 +01:00
Wohoo
2017464282
Livefreeze implementation with CHARACTERFLAG_NO_MOVEMENTS flag.
...
Freeze and Unfreeze tiles added to switch layer too.
2022-01-07 16:53:40 +01:00
oy
9e17281573
invalidate texture when unloading a texture.
...
Closes https://github.com/teeworlds/teeworlds/issues/1450
(cherry picked from commit 23a1b80f60
)
2021-09-13 13:23:00 +02:00
fokkonaut
ea08601435
Allow placing unused tiles from other layers (#fixes 3794)
2021-09-01 11:43:32 +02:00
def
82f762c5ac
Prevent editor crash when setting image to None
...
As reported by Anoian
2021-02-19 15:43:41 +01:00
def
6f2c82c0d4
SUBSTRACT -> SUBTRACT
2021-02-01 14:55:26 +01:00
def
21d76ed31d
NOLINT bugprone-parent-virtual-call where clang-tidy is stupid
...
/media/ddnet/src/game/editor/layer_game.cpp:42:35: warning: qualified name 'm_pEditor->m_Map.m_pFrontLayer->CLayerTiles::SetTile' refers to a member overridden in subclass; did you mean 'CLayerTiles'? [bugprone-parent-virtual-call]
m_pEditor->m_Map.m_pFrontLayer->CLayerTiles::SetTile(x, y, through_cut);
^~~~~~~~~~~~~
CLayerTiles::
/media/ddnet/src/game/editor/layer_game.cpp:42:35: note: FIX-IT applied suggested code changes
2020-11-05 08:25:34 +01:00
def
62dc12aacb
Fix all Multiplication type alerts by CodeQL
...
> Multiplication result converted to larger type
> A multiplication result that is converted to a larger type can be a
> sign that the result can overflow the type converted from.
Example: https://github.com/ddnet/ddnet/security/code-scanning/17?query=ref%3Arefs%2Fheads%2Fmaster
2020-10-05 19:03:54 +02:00
def
3be8a592e5
Run clang-format
...
Purely automatic change. In case of conflict with this change, apply the
other change and rerun the formatting to restore it:
$ python scripts/fix_style.py
2020-09-26 21:50:15 +02:00
Jupeyy
84cad658d6
Add new renderer(as streamed vertices) for editor
2020-09-23 16:45:32 +02:00
def
a67a8e36aa
clang-format: fix style
2020-09-14 16:00:51 +02:00
Vlad
be90f3f48b
Replaced tile names.
2020-09-13 23:00:49 +03:00
heinrich5991
aa46ca6bf9
Fix some style issues via scripts/fix_style.py, size_t
2020-09-11 00:47:38 +02:00
Jupeyy
3b403f76a9
Fix editor speedup brush
2020-09-11 00:34:43 +02:00
def
b718282def
Add warning for editor as well
2020-08-31 15:08:04 +02:00
Fireball
ab9b96ddb2
Backported fix for Text() incorrect parameter type (int -> float)
...
The original fix was done by @oy for 0.7.4.
2020-07-15 20:49:14 +01:00
def
c99d791f4b
Add warning in editor for image widths
2020-06-21 01:14:36 +02:00
def
cf7dad8125
Get rid of the clamp that breaks most editor value selection
2020-05-30 09:09:01 +02:00
def
6887b0ff3b
Fix image/sound selection in editor
...
Follow-up to https://github.com/ddnet/ddnet/pull/2186
Thanks to Cøke for notifying me
2020-05-28 10:09:29 +02:00
Andrii
29f093841c
add switch empty slot finder button
2020-05-21 00:44:41 +02:00
Andrii
1c870a3e1b
fix some tele number picker issues
2020-05-21 00:44:41 +02:00
Learath
d2498f257c
Stateful editing
2020-02-28 18:25:27 +03:00
Learath
f2103881c8
Add shift by, fix id overlap
2020-02-28 15:33:32 +03:00
Learath
a50e59d4f6
Allow editing colors, add warning
2020-02-27 18:02:36 +03:00
Learath
f679fbfbc5
Allow editing multiple tile layer props
2020-02-27 16:53:12 +03:00
bors[bot]
8ab8834ccb
Merge #2048
...
2048: Display envelope name in popups r=12pm a=Learath2
A dropdown would've worked better, but we don't have one
Co-authored-by: Learath <learath2@gmail.com>
2020-01-23 20:54:49 +00:00
Learath
2abe4fbcfb
Display envelope name
2020-01-23 20:27:01 +01:00
12pm
9dcfcc8f10
Modify envelope index when appending maps
...
fixes #2044
2020-01-23 18:30:55 +01:00
12pm
82ac6091eb
Fix rotating rotatable tiles in switch layer
2020-01-17 18:22:41 +01:00
ChillerDragon
928e5407eb
Style 'void foo() {' -> 'void foo()\n{'
2019-12-21 14:35:09 +01:00
Magnus Auvinen
6a6a5f00c9
more typesafty in the graphics. introduced the IGraphics::CTextureHandle
...
Edited by @ChillerDragon to fit in ddnet
(cherry picked from commit cb95e8dfe8
)
2019-11-22 18:08:37 +01:00
bors[bot]
a2f44299e0
Merge #1678
...
1678: Handle colors in console r=def- a=Learath2
DEPENDS: #1654
A better way to fix #1581 possibly deprecates #1597
Co-authored-by: Learath <learath2@gmail.com>
2019-04-30 19:39:56 +00:00
12pm
3f76e17830
Fix FillSelection with no selected brush
...
As reported by BannZay on Discord
2019-04-30 14:24:13 +02:00
Learath
6c371a9a57
Even more refactoring
2019-04-27 01:11:15 +03:00
Learath
93d14a1eca
Inconvenience for windows
2019-04-26 22:36:49 +03:00
12pm
7901cc26ad
More reasonable layer size limits
2019-04-17 21:48:23 +02:00
12pm
a1dd2e45a5
Fix non destructive drawing with hookthrough shortcut
...
Fixes #1623
2019-04-11 21:43:22 +02:00
12pm
0abbba4c5d
Add non-destructive brush drawing
...
New brush draw mode that doesn't override existing tiles. Empty brush still acts as an eraser. Button and ctrl+d shortcut to toggle it.
2019-03-26 19:19:25 +01:00
bors[bot]
958778b441
Merge #1531
...
1531: Don't rotate static game tiles and fix switch rotation r=def- a=12pm
Should be handy for mapping.
Can be disabled by activating unused tiles (don't think it's worth a separate toggle and if you want to do it, you're doing something unusal)
Co-authored-by: 12pm <30786226+12pm@users.noreply.github.com>
2019-03-24 19:43:27 +00:00
12pm
4ca69a39de
Default layer names to the selected image/sound
...
And don't paste default names into the edit field
2019-03-24 03:22:29 +01:00
12pm
dff702bd2c
Don't rotate static game tiles and fix switch rotation
...
Should be handy for mapping.
Can be disabled by activating unused tiles (don't think it's worth a separate toggle and if you want to do it, you're doing something unusal)
2019-03-23 01:11:32 +01:00
12pm
7c227c563d
Add auto game tiles to all possible layers, increase layer size if needed
2019-03-12 02:35:29 +01:00
def
16f6e23aaa
Nicer fix for crash
2019-01-10 15:44:04 +01:00
def
1c85c962ef
Fix automap crash (reported in #1425 )
2019-01-10 15:38:04 +01:00
Dennis Felsing
045533cef7
Merge pull request #1321 from bojidar-bg/x-add-auto-automapper
...
Add option to automatically run the automapper
2018-11-15 09:30:22 +01:00
Ryozuki
674d3f00e0
add support for blue teleport gun
2018-11-03 10:26:20 +01:00
Ryozuki
ddf2e6af36
add tele-activator to the switch layer
2018-11-03 10:26:19 +01:00
Learath
abd49ddbf7
Restore old behaviour to be safe :(
2018-10-30 18:56:46 +01:00
Learath
0ecda0ced4
Fix crash introduced by 1e2dce0
. Close #1362
2018-10-30 18:13:32 +01:00
Bojidar Marinov
823e4ee0f3
Save automapper config as external-typed mapitem
2018-10-09 13:17:05 +03:00
Bojidar Marinov
351fee2666
Optimize automatic automap to automap only around changes.
...
Should work, no flaws found when testing with grass_main
2018-10-09 12:56:48 +03:00
Bojidar Marinov
c52a3c970e
Add option to automatically run the automapper
...
Also, put automapping config selection seperatelly from the automapper button.
Also, add seed parameter to the automapper.
2018-10-09 12:56:48 +03:00
Bojidar Marinov
1e2dce06ae
Fix crash when filling selection on tele/switch/speedup layers
2018-09-26 15:53:25 +03:00
Bojidar Marinov
50d53603e1
Add a toggle button for brush coloring
...
In some cases (very dark color, etc.) it is impossible to see the tiles.
2018-09-11 11:35:02 +03:00
Learath
c5d69f9f63
Fix crash with FillSelection
2018-08-19 20:05:42 +03:00
Bojidar Marinov
80c829681e
Don't copy alpha when coloring the brush
2018-08-09 13:07:49 +03:00
bors[bot]
8194274352
Merge #1236
...
1236: Copy tile layer color to brush and picker r=heinrich5991 a=bojidar-bg
![Comparision](https://user-images.githubusercontent.com/5276727/43340641-aaebcfc4-91e5-11e8-9d43-c18aff8cd6fc.png )
Before is on the left, after is on the right.
Co-authored-by: Bojidar Marinov <bojidar.marinov.bg@gmail.com>
2018-07-30 14:25:11 +00:00
Bojidar Marinov
0f6bd99d12
Copy tile layer color to brush and picker
2018-07-27 21:38:36 +03:00
Bojidar Marinov
aa091bb8f7
Allow multiple layers to be selected and edited at the same time.
2018-07-25 23:57:58 +03:00
yangfl
1620fc9b0f
Fix typo
2018-02-07 16:10:40 +08:00
gamertyp
b479dd412c
Removed a tab
2016-05-04 23:37:02 +02:00
gamertyp
e9378973de
Re-ordered the Gametiles-menu
2016-05-04 22:33:10 +02:00
Tim Schumacher
aeea3777a3
show button to mapper when placing unused tiles
2016-05-01 18:12:20 +02:00
Tim Schumacher
e61456f381
added auto game tile placer for hookthrough
2016-05-01 17:44:02 +02:00
Tim Schumacher
04887e44f8
remove useless function
2016-05-01 01:54:37 +02:00
Tim Schumacher
70ffbbbbf9
hookthrough shortcut now works for game and front
2016-05-01 01:47:29 +02:00
def
4761608329
Input fixes from TW master for mouse wheel
2016-04-30 20:11:26 +02:00
Tim Schumacher
d69133c877
prevent placing unused tiles in the editor
2016-04-29 19:23:34 +02:00
def
67bff95a72
Merge remote-tracking branch 'timakro/new_hookthrough'
2016-04-27 18:59:51 +02:00
def
618dc9a6b0
Alert if layer size too big in editor (thanks to Lady Saavik, fixes #404 )
2016-04-27 17:49:14 +02:00
Tim Schumacher
ef94797c02
forbid placing hookthrough shortcut in front layer
2016-02-09 17:02:14 +01:00
timgame
ba60cf509a
use index 5 for a shortcut hookthrough tile
2015-11-15 00:00:43 +01:00
def
fabe25dd45
Switches can be set with number 0 (even if they don't make much sense, fixes #265 )
2015-08-22 20:41:46 +02:00
def
6e8ada1ac8
Fix whitespaces a bit
2015-07-09 02:12:35 +02:00
def
d96ff538d3
Allow setting freeze number on switch layer in editor
2015-05-31 18:25:00 +02:00
def
b5d722672a
On switch layer fix delay number with FillSelection when creating new tiles instead of copying
2015-04-21 04:57:20 +02:00
def
05970cc2e2
Add BONUS tile, opposite of PENALTY (for Saavik's new map)
2015-03-10 22:57:40 +01:00
def
85c953d25b
Consistently allow rotations and flipping in editor
2014-10-01 18:55:53 +02:00
def
de3a786917
Fix: Shifting front layer works
2014-06-13 00:59:00 +02:00
def
58de05ffdb
Fix: Actually remove old tiles after moving
2014-06-01 13:16:25 +02:00
def
6adb99608e
Editor feature: Add possibility to set how far to shift layer
2014-06-01 01:32:54 +02:00
def
15ecbb71d1
fixed compiling using visual studio 2013 by renaming the round function
2014-04-22 23:46:55 +02:00
def
c98ad5bf22
Merge branch 'new' into DDRace64
...
Conflicts:
src/game/editor/layer_tiles.cpp
2014-03-23 23:18:43 +01:00
def
ecb3422280
Fix degrees (°)
2014-03-23 17:42:00 +01:00
HMH
d301010a95
Made texture rendering for layers less resourceintensive
2014-03-23 17:10:49 +01:00
HMH
12ac06f1f2
added functions for editing Tunelayer (mostly copied from other layers); put Snap(&Rect) into all Fillselection-functions (fix) and made if(Empty) more precise (fix); merged tunelayer into other functions
2014-03-23 17:10:48 +01:00
def
66d3595b44
Minor editor fixes by HMH
2014-03-19 10:26:38 +01:00
def
f765cc577b
Fix: Working Checktele-auto-setting
2014-02-15 01:19:38 +01:00
def
92ba863ff0
Automatic conversion of tiles to checkpoint teleports
2014-02-12 21:44:05 +01:00
def
42ed2807cb
Add penalty tile
2014-02-09 23:31:29 +01:00
def
391232017a
Add evil checkpoint teleports
2014-02-01 22:20:41 +01:00
def
e8fd827b6d
Fix crash in editor
2014-01-11 21:23:19 +01:00
def
3eaad43b6b
Merge remote-tracking branch 'upstream-teeworlds/0.6' into DDRace
...
Conflicts:
bam.lua
data/languages/index.txt
src/engine/server/server.cpp
src/engine/shared/network_server.cpp
src/game/client/components/chat.cpp
src/game/client/components/menus_settings.cpp
src/game/server/entities/character.cpp
src/game/server/gamecontext.cpp
src/game/version.h
2013-12-26 18:02:22 +01:00
def
6da8d2146c
New mapping entity: Specify number of jumps
2013-08-24 01:03:45 +02:00
def
bf518df74d
New teleport entities
2013-08-13 04:59:25 +02:00