Patiga
a9fc2207ac
Remove Parallax Zoom from map file
...
Parallax Zoom improves the appearance of maps visually when zooming.
Contrary to initial tests, it does not interfere with certain map
locations such as the shop on the map Timeshop.
The default value appears to be correct for all existing maps.
The value in the map file is non-trivial to manage, and provides little
benefit. See https://github.com/ddnet/ddnet/issues/6196 for further
discussion.
2023-10-29 23:43:19 +01:00
dobrykafe
35e5c114ba
stop sound preview in more places
2023-10-23 12:50:59 +02:00
dobrykafe
c304b3eef8
extract CEditor::OnDialogClose
2023-10-23 12:48:53 +02:00
dobrykafe
697bd8980d
stop sound preview in more places
2023-10-18 14:47:47 +02:00
dobrykafe
aafee689ca
stop/pause sound previews
2023-10-18 13:27:31 +02:00
Robert Müller
d4fed2360e
Merge pull request #7208 from dobrykafe/pr-editor-toolbar-sounds
...
Enhance editor toolbar sounds
2023-10-08 09:06:15 +00:00
furo
e1979d9c9b
Use icons for editor mode switching.
...
Make the icons bigger.
Make it the same size as "group"
2023-10-08 01:17:20 +02:00
dobrykafe
8adbbc433c
fix requested changes
2023-10-07 14:49:51 +02:00
dobrykafe
5b609c8e06
extract CEditor::DoAudioPreview
, also use in file dialog
2023-10-06 17:10:43 +02:00
dobrykafe
ca517f27b8
enhance editor toolbar sounds
2023-10-06 17:09:19 +02:00
Robert Müller
4e31052821
Fix clang-tidy clang-analyzer-deadcode.DeadStores
2023-10-06 14:06:55 +02:00
marmare314
95528ca0b9
refactor CEnvelope::FindTopBottom
...
- rename to GetValueRange
- return pair of floats instead of storing them as members
2023-10-06 11:39:26 +02:00
marmare314
08b825439e
use type enum in CEnvelope
2023-10-06 11:39:22 +02:00
marmare314
073f208808
split implementations from CEnvelope class
2023-10-06 00:32:12 +02:00
Dennis Felsing
d1cd0aeb20
Merge pull request #7287 from Marmare314/string-tooltip
...
store editor tooltip in optional string
2023-10-05 10:01:01 +00:00
marmare314
25da78a00e
store editor tooltip in optional string
2023-10-04 23:48:14 +02:00
Dennis Felsing
a07679d33a
Merge pull request #6990 from Marmare314/project-onto
...
implement project-onto operation for envelopes
2023-10-04 14:30:01 +00:00
Dennis Felsing
dbd9da3c7b
Merge pull request #7289 from Robyt3/Map-Version-Check
...
Ensure current map is not corrupted when loading another fails
2023-10-03 13:17:03 +00:00
Dennis Felsing
1a8e8f4638
Merge pull request #7291 from Robyt3/Dilate-PixelSize-Cleanup
...
Remove redundant argument of `Dilate` function
2023-10-03 12:28:41 +00:00
Robert Müller
2d56676f17
Improve editor map version check, reduce code indentation
...
Add error message in editor when loading a map that has an unsupported version.
Ensure error messages are not closed immediately when loading a map fails.
Remove unnecessary indentation by returning early.
2023-10-03 14:27:09 +02:00
Robert Müller
b7e1e61988
Remove redundant argument of Dilate
function
...
The pixel size (bytes per pixel) always has to be 4 for the `Dilate` function to work correctly. This is already checked before calling the function, so the redundant argument which is always `4` can be removed.
2023-10-03 13:52:37 +02:00
marmare314
227d074254
implement project-onto operation for envelopes
2023-10-02 23:45:08 +02:00
marmare314
ac6f6bd28e
take pointer to editor in CLayer
constructor
2023-10-02 23:15:31 +02:00
marmare314
a7748ba87e
revert quad selection correctly fixes #7248
2023-09-30 23:43:21 +02:00
furo
f07e7fef76
Add export button to sounds
2023-09-30 17:28:47 +02:00
Dennis Felsing
359d9ab00b
Merge pull request #7176 from Marmare314/export-image
...
add export image button
2023-09-30 11:01:26 +00:00
furo
57ad88d6ee
Add numpad shortcuts and button for zooming in envelope editor
2023-09-23 14:45:56 +02:00
Dennis Felsing
6b8997b64a
Merge pull request #7185 from furo321/editor-use-pack-functions
...
Use colour pack functions for editor
2023-09-15 22:37:03 +00:00
furo
25c3e1616e
Use colour pack functions for editor
2023-09-15 22:30:25 +02:00
furo
321622b66b
Prevent editor shortcuts when a dialog is open
2023-09-15 11:15:22 +02:00
marmare314
e4ddbaff49
add export image button
2023-09-14 17:51:10 +02:00
Robert Müller
f3eaa10d7a
Merge pull request #7102 from Marmare314/revert-6844
...
revert change to quad selection (resolves #7025 )
2023-09-08 15:21:53 +00:00
marmare314
ae7eda1628
revert change to quad selection (resolves 7025)
...
Some refactorings are kept and rotation being bound to `R` is also
not reverted.
2023-09-06 19:30:06 +02:00
furo
f71a2e017a
Add CTRL+F in load map prompt
2023-09-06 15:29:07 +02:00
Robert Müller
dde45f7a40
Add CImageInfo::PixelSize
function, use enum EImageFormat
...
Use `enum EImageFormat` type for image format literals and variables.
Add `PixelSize` function to get the number of bytes/color channels per pixel for a specified image format.
Remove unused store format argument of texture loading functions. All textures are automatically being stored as RGBA, so the argument was unused. Also remove the therefore unused `FORMAT_AUTO`.
Rename variables consistently to `PixelSize` and use `size_t`, instead of mixing different names like `BPP` and `ColorChannelCount`.
Validate image format loaded from maps using `CImageInfo::ImageFormatFromInt`. Add `FORMAT_ERROR` to represent invalid formats.
Remove redundant `PixelSize` parameter from graphics backends and commands, which can be derived from the texture format.
Fix memory leak when RGB image data is being converted to RGBA format when saving map in editor.
2023-09-03 20:40:28 +02:00
Dennis Felsing
54134d6d38
Merge pull request #7119 from Robyt3/UI-Progress-Spinner-Editor
...
Add progress spinner to UI, show progress spinner while saving map in editor
2023-09-01 23:43:16 +02:00
Robert Müller
eac1dc4533
Show progress spinner while saving map in editor
2023-09-01 19:26:34 +02:00
marmare314
59df1d86d4
move CEditorMap::HandleMapDrop
to CEditor
2023-09-01 18:57:36 +02:00
marmare314
d68029a252
extract CEditorSound
into separate header file
2023-08-29 22:08:12 +02:00
marmare314
5f60d68e8b
extract CEditorImage
into separate header
2023-08-29 22:08:12 +02:00
marmare314
a1ea2f1ff1
Split up io.cpp
2023-08-29 22:08:07 +02:00
Dennis Felsing
c7f3be7d75
Merge pull request #7082 from Marmare314/editor-seperate-mapitems
...
extract code from editor mapitems into separate files
2023-08-28 10:23:17 +00:00
Robert Müller
3988877e8e
Merge pull request #7002 from Marmare314/pixelart
...
Add pixelart tool to editor
2023-08-27 18:42:35 +00:00
marmare314
946be50807
Add tileart tool to editor
2023-08-27 16:07:56 +02:00
marmare314
e19b1e4da6
extract code from editor mapitems into separate files
2023-08-27 16:04:53 +02:00
marmare314
605a93787e
improve code style in proofmode, mapgrid and mapview
2023-08-27 11:38:15 +02:00
marmare314
c68350a08a
reset operation status after creating envelope context menu
...
fixes #7050
2023-08-26 17:14:57 +02:00
Robert Müller
6b6ee21338
Merge pull request #7017 from Marmare314/mapview
...
Add `CProofMode` and `CMapGrid` component
2023-08-26 08:54:38 +00:00
marmare314
467de92377
Add CProofMode
and CMapGrid
component
...
Also extract more code into `CMapView` and extend the `CEditorComponent`
interface.
2023-08-25 20:40:27 +02:00
Robert Müller
b6f0c59b26
Refactor editor entities layer explanations
...
Use `enum`. Organize explanations in separate functions for DDNet, FNG and Vanilla.
2023-08-25 17:49:13 +02:00