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