summaryrefslogtreecommitdiffstats
path: root/editor/plugins/sprite_frames_editor_plugin.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [Scene] Add SceneStringNames::pressedA Thousand Ships2024-05-141-27/+27
|
* Merge pull request #91909 from KoBeWi/have_fun_reviewing_thisRémi Verschelde2024-05-141-12/+12
|\ | | | | | | Use Core/Scene stringnames consistently
| * Use Core/Scene stringnames consistentlykobewi2024-05-131-12/+12
| |
* | Fix errors on pressing autoplay in sprite frames editorYuri Rubinsky2024-05-131-1/+1
|/
* Replace `find` with `contains/has` where applicableA Thousand Ships2024-05-081-1/+1
| | | | | | | * Replaces `find(...) != -1` with `contains` for `String` * Replaces `find(...) == -1` with `!contains` for `String` * Replaces `find(...) != -1` with `has` for containers * Replaces `find(...) == -1` with `!has` for containers
* Reduce and prevent unnecessary random-access to `List`A Thousand Ships2024-05-041-8/+8
| | | | | | | | | Random-access access to `List` when iterating is `O(n^2)` (`O(n)` when accessing a single element) * Removed subscript operator, in favor of a more explicit `get` * Added conversion from `Iterator` to `ConstIterator` * Remade existing operations into other solutions when applicable
* Avoid double editing when clicking AnimatedSpritekobewi2024-04-171-1/+5
|
* Reorganize some code to have 2D things grouped togetherAaron Franke2024-04-131-6/+6
|
* Fix SpriteFrames editor visibility problemskobewi2024-03-211-1/+3
|
* Merge pull request #88413 from LeulMulugeta/dont_reset_select_framesRémi Verschelde2024-03-051-12/+15
|\ | | | | | | Remember frames when selecting `SpriteFrame` frames
| * Remember frames when selecting SpriteFrame framesLeul Mulugeta2024-03-051-12/+15
| |
* | Add editor shortcuts to toggle bottom panel visibilityHugo Locurcio2024-03-051-1/+2
|/ | | | | | | | Default shortcuts use the first or second letter of each word. This also adds a new shortcut to toggle the last opened bottom panel. On editor startup, this defaults to the first panel in the list (which is the Output panel).
* Merge pull request #85494 from ↵Rémi Verschelde2024-03-041-98/+205
|\ | | | | | | | | | | Hobitus/Allow-multi-selection-of-frames-in-the-SpriteFrames-animation-editor Add multi-selection for `SpriteFramesEditor`
| * Added multi-selection for sprite_frame_editorDominic Marier2024-02-291-98/+205
| | | | | | | | | | | | use multi-selection for copy/paste move up or down frame duration set while multi-selected
* | Extract BottomPanel from EditorNodekit2024-02-201-2/+3
| |
* | Make auto translation inheritableMichael Alexsander2024-02-151-1/+1
| |
* | Extend minimum/maximum zoom level of TextureRegion editorHugo Locurcio2024-01-291-1/+1
| | | | | | | | This also applies a similar change to the SpriteFrames editor.
* | Reorganize code related to editor themingYuri Sizov2024-01-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | This change introduces a new EditorThemeManager class to abstract theme generatio and its subroutines. Logic related to EditorTheme, EditorColorMap, and editor icons has been extracted into their respective files with includes cleaned up. All related files have been moved to a separate folder to better scope them in the project. This includes relevant generated files as well.
* | Merge pull request #83577 from DennisManaa/fix-translation-for-item-listRémi Verschelde2024-01-041-0/+1
|\ \ | | | | | | | | | Add automatic translation of items to ItemList
| * | Implement automatic translation for ItemListDennisManaa2023-10-231-0/+1
| | |
* | | Add const references detected by clang-tidyWilson E. Alvarez2023-12-161-1/+1
| |/ |/|
* | Remove AnimatedSprite pointer when clearing editorkobewi2023-11-081-1/+2
|/
* Defer updating the animations Tree in SpriteFramesEditor to avoid crashes风青山2023-10-181-11/+27
| | | | | | | | | | | Previously, clicking the LMB while renaming an animation could cause `SpriteFramesEditor::_update_library(false)` to be called during `Tree::propagate_mouse_event()`. This may cause a crash. We can defer updates to the editor interface to avoid calling `Tree::create_item()` at the wrong time. Enables `SpriteFramesEditor::_select_animation()` to be able to undo/redo
* Merge pull request #79872 from dalexeev/sprite-frames-editor-2Rémi Verschelde2023-10-051-8/+6
|\ | | | | | | SpriteFrames Editor: Fix Frame Duration applied to wrong frame when switching frame
| * SpriteFrames Editor: Fix Frame Duration applied to wrong frame when ↵Danil Alexeev2023-07-251-8/+6
| | | | | | | | switching frame
* | Merge pull request #79692 from dalexeev/sprite-frames-editorRémi Verschelde2023-10-051-14/+8
|\ \ | | | | | | | | | SpriteFrames Editor: Fix FPS applied to two animations when switching animation
| * | SpriteFrames Editor: Fix FPS applied to two animations when switching animationDanil Alexeev2023-07-251-14/+8
| |/
* | Merge pull request #81939 from YuriSizov/gui-flat-and-depressedRémi Verschelde2023-09-251-22/+22
|\ \ | | | | | | | | | Replace flat buttons with flat-styled buttons with a visible pressed state
| * | Replace flat buttons with flat-styled buttons with a visible pressed stateYuri Sizov2023-09-191-22/+22
| | |
* | | Replace Ctrl in editor shortcuts with Cmd or Ctrl depending on platformajreckof2023-09-191-2/+3
|/ /
* | [Editor] Replace `ERR_FAIL_COND` with `ERR_FAIL_NULL` where applicableA Thousand Ships2023-09-151-1/+1
| |
* | Add EditorStringNames singletonkobewi2023-09-031-33/+34
| |
* | Use compile-time Unicode string conversionHugo Locurcio2023-08-071-1/+1
|/ | | | | Thanks to this syntax introduced in C++11, this reduces the amount of work that needs to be performed at run-time while making the code more terse.
* Merge pull request #79743 from TokageItLab/fix-name-list-aspYuri Sizov2023-07-241-6/+5
|\ | | | | | | Make animation name list scroll to new animation in `SpriteEditor`
| * Make animation name list scroll to new animation in SpriteEditorSilc Lizard (Tokage) Renew2023-07-211-6/+5
| | | | | | | | Co-authored-by: DarellLdark <darell.ldark@gmail.com>
* | Fix rename animation in SpriteFramesEditor/AnimationNodeStateMachineEditorRindbee2023-07-181-1/+4
|/ | | | | | | | | | | | When the name suffix grows, the old name is used if it is obtained first. Fix the case where the following error message would appear when renaming an animation. ``` ERROR: Animation '' doesn't exist. at: get_frame_count (scene/resources/sprite_frames.cpp:71) ```
* Extract and reorganize texture resource classesHendrik Brucker2023-07-141-0/+1
|
* Merge pull request #74341 from dalexeev/sprite-frames-texture-filterRémi Verschelde2023-05-221-0/+2
|\ | | | | | | Use nearest with mipmaps texture filter in SpriteFrames editor plugin
| * Use nearest with mipmaps texture filter in SpriteFrames editor pluginDanil Alexeev2023-03-041-0/+2
| |
* | Hide Animation Frames section when there are no animations and show messageHakim2023-05-191-5/+21
| |
* | Make SpriteFrames editor toolbar a FlowContainerkleonc2023-05-131-22/+36
| |
* | Improve includes of EditorNode (and everything else)Yuri Sizov2023-04-071-1/+1
| | | | | | | | | | | | Also start organizing editor-specific GUI components into a dedicated folder, `editor/gui`. Also move `editor_file_server` next to the rest of debugger classes.
* | Improve SpriteFrameEditor frame addition orderingNinni Pipping2023-03-301-95/+316
|/
* Set default name if SpriteFrames name is emptyEldor Zang2023-02-171-1/+5
|
* Fix ghost SpriteFramesEditor cause crashSilc Renew2023-02-061-17/+14
|
* Fix switching method in SpriteFramesEditorSilc Renew2023-01-311-20/+18
|
* Few improvements for SpriteFrames EditorDanil Alexeev2023-01-301-25/+32
|
* Make AnimatedSprite's playback API consistent with AnimationPlayerSilc Renew2023-01-261-102/+398
|
* Merge pull request #48570 from Calinou/animation-editors-new-nameRémi Verschelde2023-01-201-2/+2
|\ | | | | | | Tweak the name for new animations in the editor
| * Tweak the name for new animations in the editorHugo Locurcio2022-07-131-2/+2
| | | | | | | | | | | | | | | | | | | | - Use snake_case to "suggest" the naming that fits the Godot style guide. - Fully spell out "new_animation" since both editors can fit it in full. - Don't internationalize the new animation name to have consistent behavior between both editors. - Since the recommendation is to follow snake_case, special characters should also be avoided in the name to make animations easier to refer to in code.