summaryrefslogtreecommitdiffstats
path: root/editor/plugins/polygon_2d_editor_plugin.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge commit godotengine/godot@cb411fa960f0b7fdbd97dcdb4c90f9346360ee0eSpartan3222024-11-121-1/+33
|\
| * Merge pull request #97081 from aXu-AP/uv-editor-without-polygonThaddeus Crews2024-11-111-1/+33
| |\ | | | | | | | | | Open UV editor in point editing mode if no points
| | * Open uv editor in point editing mode if no pointsaXu-AP2024-09-171-1/+33
| | | | | | | | | | | | Open polygon editor in point editing mode if there's no polygon yet. Disable other modes until points are added.
* | | Merge commit godotengine/godot@8004c7524fb9f43425c4d6f614410a76678e0f7cSpartan3222024-10-301-16/+16
|\| |
| * | Rename internal Button icon to button_icon to match exposed methodsAaron Franke2024-10-291-16/+16
| |/
* | 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>
* Allow opening of polygon editor without textureaXu-AP2024-09-081-15/+8
| | | | There's no reason to deny access to polygon editor when there's no texture set.
* Fix Polygon2D UV editor error when opening grid settingsLars Pettersson2024-08-311-1/+1
|
* [Scene] Add SceneStringName::toggledYuri Rubinsky2024-08-281-2/+2
|
* Fix snapping when zoomed in Polygon2D UV editorkleonc2024-08-271-12/+8
|
* Remove spaces and punctuation from the beginning of translatable strings.bruvzg2024-08-221-1/+2
|
* Fix leaf Bone2Ds drawing in Polygon2D UV editorkleonc2024-08-071-30/+29
|
* Fix undoredo handling in some dialogskobewi2024-07-041-2/+28
|
* [Scene] Add `SceneStringNames::text/value_changed`A Thousand Ships2024-06-191-6/+6
|
* [Scene] Add `SceneStringNames::confirmed`A Thousand Ships2024-06-191-1/+1
|
* [Scene] Add `SceneStringNames::panel`A Thousand Ships2024-05-301-2/+2
|
* [Scene] Add `SceneStringNames::id_pressed`A Thousand Ships2024-05-301-1/+1
|
* [Scene] Add SceneStringNames::pressedA Thousand Ships2024-05-141-8/+8
|
* Use Core/Scene stringnames consistentlykobewi2024-05-131-3/+3
|
* Remove uv_editor_bounds editor settingkobewi2024-04-231-4/+5
|
* Use check_changed_settings_in_group() everywherekobewi2024-02-191-1/+6
|
* 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.
* Improve UV editor zoom behavioraXu-AP2024-01-101-76/+76
| | | | | | | Scrolling focuses towards mouse like in canvas editor. Center view on opening. Adjust scroll area to include polygons larger than texture. Change zoom slider to EditorZoomWidget.
* Fix UV editor not showing polygon correctlyaXu-AP2023-12-051-12/+44
| | | | Fix polygon not showing correctly if UVs have been moved around. Show the actual contents of the polygon instead.
* Merge pull request #84076 from aXu-AP/uv-editor-texture-transformRémi Verschelde2023-12-041-1/+4
|\ | | | | | | Fix UV editor not using texture transform
| * Fix UV editor not using texture transformaXu-AP2023-10-271-1/+4
| |
* | Fix 2D bone weight editor not accounting for offsetaXu-AP2023-10-271-2/+2
|/ | | | Skeleton was shown in wrong place in Polygon2D UV editor's bone painting mode.
* Fix Polygon2D undo on transforming verticesaXu-AP2023-10-201-8/+17
| | | | Fix: Action not committed to history when transforming all points in UV editor's Points mode.
* Merge pull request #81939 from YuriSizov/gui-flat-and-depressedRémi Verschelde2023-09-251-4/+6
|\ | | | | | | 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-4/+6
| |
* | Replace Ctrl in editor shortcuts with Cmd or Ctrl depending on platformajreckof2023-09-191-1/+2
|/
* Add EditorStringNames singletonkobewi2023-09-031-18/+18
|
* apply selected texture filter when editing UVAlex Drozd2023-06-181-0/+2
|
* Improve includes of EditorNode (and everything else)Yuri Sizov2023-04-071-0/+3
| | | | | | 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.
* 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.
* Add gesture to ViewPanner and simplify a bit its APIGilles Roudière2023-01-231-12/+4
|
* Convert en_GB spelling to en_US with codespellRémi Verschelde2023-01-231-1/+1
|
* Add EditorUndoRedoManager singletonkobewi2023-01-161-4/+4
|
* 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/+4
|
* Unify usage of undo_redo in editorkobewi2022-11-021-1/+7
|
* Unify usage of GLOBAL/EDITOR_GETkobewi2022-10-181-2/+2
|
* Fix key mapping changes when moving from macOS to other platformbruvzg2022-09-071-2/+2
| | | | | Removes separate `Command` key (use `Meta` instead). Adds an event flag to automatically remap `Command` <-> `Control` (cannot be set alongside `Control` or `Meta`).
* Improve naming of theme properties throughout GUI codeYuri Sizov2022-09-061-2/+2
| | | | | | | | | | | | | | 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-42/+42
| | | | | | | | | | 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-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-14/+14
|\ | | | | Rename `hint_tooltip` to `tooltip_text` & setter getter
| * Rename `hint_tooltip` to `tooltip_text` & setgetMicky2022-08-271-14/+14
| | | | | | | | | | | | | | | | `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-2/+2
|/