summaryrefslogtreecommitdiffstats
path: root/editor/plugins/texture_region_editor_plugin.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge commit godotengine/godot@8004c7524fb9f43425c4d6f614410a76678e0f7cSpartan3222024-10-301-4/+4
|\
| * Rename internal Button icon to button_icon to match exposed methodsAaron Franke2024-10-291-4/+4
| |
* | Fix copyright headers referring to GodotSpartan3222024-10-271-2/+2
| |
* | Rebrand preambles to RedotDubhghlas McLaughlin2024-10-111-0/+2
|/ | | | | | | | | | | | | | | | | | | | | | Credits: Co-authored-by: Skogi <skogi.b@gmail.com> Co-authored-by: Spartan322 <Megacake1234@gmail.com> Co-authored-by: swashberry <swashdev@pm.me> Co-authored-by: Christoffer Sundbom <christoffer_karlsson@live.se> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: McDubh <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: radenthefolf <radenthefolf@gmail.com> Co-authored-by: John Knight <80524176+Tekisasu-JohnK@users.noreply.github.com> Co-authored-by: Adam Vondersaar <adam.vondersaar@uphold.com> Co-authored-by: decryptedchaos <nixgod@gmail.com> Co-authored-by: zaftnotameni <122100803+zaftnotameni@users.noreply.github.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: wesam <108880473+wesamdev@users.noreply.github.com> Co-authored-by: Mister Puma <MisterPuma80@gmail.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: SingleError <isaaconeoneone@gmail.com> Co-authored-by: Bioblaze Payne <BioblazePayne@gmail.com>
* [Scene] Add `SceneStringNames::text/value_changed`A Thousand Ships2024-06-191-8/+8
|
* [Scene] Add `SceneStringNames::item_selected`A Thousand Ships2024-06-191-1/+1
|
* [Scene] Add `SceneStringNames::panel`A Thousand Ships2024-05-301-2/+2
|
* [Scene] Add SceneStringNames::pressedA Thousand Ships2024-05-141-4/+4
|
* Use Core/Scene stringnames consistentlykobewi2024-05-131-8/+8
|
* [Core] Add scalar versions of `Vector*` `min/max/clamp/snap(ped)`A Thousand Ships2024-05-021-2/+2
| | | | Convenience for a number of cases operating on single values
* Relax grid parameter constraints in texture region editorHaoyu Qiu2024-03-271-19/+51
|
* Use check_changed_settings_in_group() everywherekobewi2024-02-191-2/+7
|
* Merge pull request #87771 from jsjtxietian/region-mismatchRémi Verschelde2024-02-051-2/+2
|\ | | | | | | Fix `TextureRegionEditor::_pan_callback` deferred called with only one argument
| * Fix `TextureRegionEditor::_pan_callback` deferred called with only one argjsjtxietian2024-02-041-2/+2
| |
* | Extend minimum/maximum zoom level of TextureRegion editorHugo Locurcio2024-01-291-1/+6
|/ | | | 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.
* Fix texture region editor not selecting restored snap modeHaoyu Qiu2023-11-121-1/+1
|
* Prevent crash and error spam related to Sprite2D with a regionYuri Sizov2023-11-041-14/+15
|
* Add EditorStringNames singletonkobewi2023-09-031-9/+10
|
* Fix multiple usability issues in the texture region editorYuri Sizov2023-08-271-381/+373
| | | | | | | - Correctly display atlas textures when used by other objects. - Make region handles easier to hit in ninepatchable objects. - Correctly initialize and restore various visual properties. - Improve code quality.
* Unify and streamline connecting to Resource changeskobewi2023-07-171-5/+4
|
* Extract and reorganize texture resource classesHendrik Brucker2023-07-141-1/+1
|
* Properly remember snapping options per-projectkobewi2023-03-091-3/+9
|
* Use 8×8 default grid size for TextureRegion and 2D polygon editorsHugo Locurcio2023-02-211-1/+2
| | | | Power-of-two grid sizes are more suited to most game assets.
* Use `PropertyUsageFlags` enum in parse_propertyRaul Santos2023-01-311-1/+1
|
* Don't change region_rect when setting texturekobewi2023-01-261-0/+3
|
* Add gesture to ViewPanner and simplify a bit its APIGilles Roudière2023-01-231-12/+4
|
* Clean-up, harmonize, and improve StyleBox APIYuri Sizov2023-01-191-12/+12
| | | | | | - Make all margin properties follow the same naming convention (their getter and setter too). - Remove a virtual counterpart of `get_style_margin` from API. - Allow to override `get_minimum_size` from scripting and remove `get_center_size`.
* Merge pull request #64021 from ajreckof/change-shortcut-for-rect-tool-tilemapRémi Verschelde2023-01-161-1/+1
|\ | | | | | | Add `Key::CTRL_OR_CMD` and use it to fix shortcut for tilemap painting tools on macOS
| * replace the use of CTRL by CMD_OR_CTRL in three places where using CTRL ↵ajreckof2023-01-161-1/+1
| | | | | | | | | | | | prevented the use of the functionality on mac on Mac CTRL + Left click = Right click therefore when a functionality needs CTRL + Left click it is not possible on mac. It then forcibly needs to be CMD on mac
* | Add EditorUndoRedoManager singletonkobewi2023-01-161-1/+1
|/
* Fix crash when clicking Edit Region after reopening the sceneHaoyu Qiu2023-01-131-2/+11
|
* One Copyright Update to rule them allRémi Verschelde2023-01-051-29/+29
| | | | | | | | | | | | | | | | | | | | As many open source projects have started doing it, we're removing the current year from the copyright notice, so that we don't need to bump it every year. It seems like only the first year of publication is technically relevant for copyright notices, and even that seems to be something that many companies stopped listing altogether (in a version controlled codebase, the commits are a much better source of date of publication than a hardcoded copyright statement). We also now list Godot Engine contributors first as we're collectively the current maintainers of the project, and we clarify that the "exclusive" copyright of the co-founders covers the timespan before opensourcing (their further contributions are included as part of Godot Engine contributors). Also fixed "cf." Frenchism - it's meant as "refer to / see".
* Use forward-declarations in big editor classestrollodel2022-11-291-0/+2
|
* Cleanup remaining EditorUndoRedoManager usageskobewi2022-11-241-1/+1
|
* Add call_deferred() method to Callablekobewi2022-11-041-1/+1
|
* Merge pull request #67810 from MrBlockers/reged-fixesRémi Verschelde2022-11-021-8/+75
|\ | | | | | | Fix multiple issues with region editor
| * Fix multiple issues with region editorMrBlockers2022-10-251-8/+75
| | | | | | | | | | | | | | | | | | | | | | | | Make the filter mode of the texture preview match the node/resource being edited where applicable, and nearest neighbor with mipmaps as a fallback. Make the Edit Region button for Sprite3D only appear when region is enabled, to match behavior of Sprite2D. Fix the editor not correctly clearing reference to previously edited resources, resulting in a visual bug displaying the incorrect texture.
* | Unify usage of GLOBAL/EDITOR_GETkobewi2022-10-181-1/+1
|/
* Improve naming of theme properties throughout GUI codeYuri Sizov2022-09-061-1/+1
| | | | | | | | | | | | | | Rename ItemList's bg -> panel Rename ItemList's bg_focus -> focus Rename ProgressBar's bg -> background Rename ProgressBar's fg -> fill Rename Tree's bg -> panel Rename Tree's bg_focus -> focus Rename ScrollContainer's bg -> panel Rename FileDialog's *_icon_modulate -> *_icon_color Rename FileDialog's files_disabled -> file_disabled_color Rename CheckButton's on/off -> checked/unchecked Rename check_v_adjust -> check_v_offset
* Rename `CanvasItem.update()` to `queue_redraw()`Micky2022-08-291-19/+19
| | | | | | | | | | Affects a lot of classes. Very thoroughly checked signal connections and deferred calls to this method, add_do_method/add_undo_method calls, and so on. Also renames the internal `_update_callback()` to `_redraw_callback()` for consistency. Just a few comments have also been changed to say "redraw". In CPUParticles2D, there was a private variable with the same name. It has been renamed to `do_redraw`.
* Revert "Remove NOTIFICATION_ENTER_TREE when paired with ↵Rémi Verschelde2022-08-291-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | NOTIFICATION_THEME_CHANGED" This reverts commit 4b817a565cab8af648c88cfc7ab6481e86ee3625. Fixes #64988. Fixes #64997. This caused several regressions (#64988, #64997, https://github.com/godotengine/godot/issues/64997#issuecomment-1229970605) which point at a flaw in the current logic: - `Control::NOTIFICATION_ENTER_TREE` triggers a *deferred* notification with `NOTIFCATION_THEME_CHANGED` as introduced in #62845. - Some classes use their `THEME_CHANGED` to cache theme items in member variables (e.g. `style_normal`, etc.), and use those member variables in `ENTER_TREE`, `READY`, `DRAW`, etc. Since the `THEME_CHANGE` notification is now deferred, they end up accessing invalid state and this can lead to not applying theme properly (e.g. for EditorHelp) or crashing (e.g. for EditorLog or CodeEdit). So we need to go back to the drawing board and see if `THEME_CHANGED` can be called earlier so that the previous logic still works? Or can we refactor all engine code to make sure that: - `ENTER_TREE` and similar do not depend on theme properties cached in member variables. - Or `THEME_CHANGE` does trigger a general UI update to make sure that any bad theme handling in `ENTER_TREE` and co. gets fixed when `THEME_CHANGE` does arrive for the first time. But that means having a temporary invalid (and possibly still crashing) state, and doing some computations twice which might be heavy (e.g. `EditorHelp::_update_doc()`).
* Merge pull request #64885 from Mickeon/rename-tooltip-hintRémi Verschelde2022-08-281-3/+3
|\ | | | | Rename `hint_tooltip` to `tooltip_text` & setter getter
| * Rename `hint_tooltip` to `tooltip_text` & setgetMicky2022-08-271-3/+3
| | | | | | | | | | | | | | | | `hint_tooltip` -> `tooltip_text` `set_tooltip` -> `set_tooltip_text` `_get_tooltip` -> `get_tooltip_text` Updates documentation, too.
* | Remove NOTIFICATION_ENTER_TREE when paired with NOTIFICATION_THEME_CHANGEDAaron Record2022-08-271-1/+0
|/
* Add per-scene UndoRedokobewi2022-08-221-0/+1
|
* Extract EditorResourceConversionPlugin into its own source files and clean ↵Yuri Sizov2022-07-311-0/+2
| | | | up editor includes
* Remove Signal connect bindsJuan Linietsky2022-07-291-2/+2
| | | | | Remove the optional argument p_binds from `Object::connect` since it was deprecated by Callable.bind(). Changed all uses of it to Callable.bind()
* Add ok_button_text to AcceptDialog and cancel_button_text to ConfirmationDialogFireForge2022-07-091-1/+1
|
* Improve TextureRegionEditorkobewi2022-05-261-1/+11
|