Port to Godot 4 (#900)
* Initial conversion
* Hide some dialogs
* Update addons
* Fix errors in scripts
Temporarily commented out adding new file import types and certain Control methods that are not available in the Window class, such as get_global_mouse_position()
* Update shaders
* Fix some more errors and signals, rename "pressed" to "button_pressed"
* Even more error fixes and renaming corrections
* Fixed more errors, Pixelorama almost runs
* Update ValueSlider.gd
* Remove lock() and unlock(), more ImageTexture.create_from_image() static usage
* More static function using
* Re-add some of the dialog signals, fix window transparency
* Change instances of popup_hide to visibility_changed
* More more errors and warnings
* Fix more errors and warnings
* Get rid of errors in the output when opening Pixelorama in Godot
* Properly connect most signals without using strings
* Fix some scenes
* Don't load Main.tscn
* Emit signals directly instead of using strings
* Fix Keychain menu nodes
* Get rid of self. on most instances, as setters and getters are now always called
* Some more static typing
* Disable texture filters
* Fix zooming
* Fix int as enum warnings
* Fix tools and rename doubleclick to double_click
* Update tool scenes
* Fix tabs
* Fix create new image
* Use static typing on flood fill to speed it up
* Update static-checks.yml
* Reverts #729 for a speedup, hopefully the bug won't get re-introduced
* Fix TransparentChecker warning
* Re-add Default template
* Fix 3D cels
* Fix rotation
Project converted bug. Should be fixed by https://github.com/godotengine/godot/pull/79264
* Fix UITransparency alignment issue, thanks Variable
* Add missing OptionButton items
Hopefully that should be all of them
* Fix the appearance of CollapsibleContainer
* Change instances of world to world_3d
* Fix tool button backgrounds
* Fix Splash dialog
* Fix brush selection
* Update Main.gd
* Fix About Dialog
* Fix more zooming issues
* Fix canvas preview zooming
* Use signals for queue_redraw on project change
* Fix layer button's look
* Fix gradients
* Some gradient fixes and code cleanups, dithering is still broken
* Fix bucket
* Fix the rest of the undo_redo.add_(un)do_method() cases
* Fix guides
* Fix guide text
* Some small changes in Main
* Update Tools.gd
* Fix palette importing
* Get rid of TODOGODOT4s
* Fix the rest of the dialogs
* Update the rest of the scenes
* Fix onion skinning and frame tag dialogs
* Fix file brushes being imported twice
* Fix palette swatch crashing on double click
* Use nearest filter for some of the windows
* Remove old .tres font files
* Fix language switching
* Get rid of Keychain.action_get_first_key() on the extra shortcuts of tools
* Get rid of Keychain.MenuInputActions and directly set shortcuts to the menu items
This temporarily removes echoing support for undo and redo, this will be re-added once https://github.com/godotengine/godot/pull/36493 or https://github.com/godotengine/godot/pull/64317 is merged.
* Clean shortcut-related duplicate code in TopMenuContainer
* Remove DroidSansFallback now that system fonts can be used as fallback
* Remove 3.x settings from project.godot
* Format
* Format gdgifexporter
* Reset Keychain to its original state
* Remove textures from the dark and gray themes
* Remove all textures from the dark theme
* Better static typing in DrawingAlgos
* Use Vector2i for project size
* [Risky commit] Use Vector2i instead of Vector2 for tools
I tested it and everything seems to be working the same as before, but more testing would be appreciated.
* Format after previous commit
* Fix line angle constraint being rotated 180 degrees
This is not a regression from the previous commit(s), Godot 4 probably reversed the logic of `angle_to_point()`.
* Fix input map action not found errors when pressing Shift or Control
* Make AnimatePanel bigger, add spring interpolation
* Fix some layouts/extensions/preferences loading errors
* Fix dithering
* Update layout resources
Probably doesn't change anything at all, but I suppose it might be a good thing to do
* Small changes
* Disable filter in ResizeCanvas dialog
* Fix some preferences default button states
* Fix tile mode always having masking on
* Use integers in tile mode
* Fix checkboxes in preferences not working
* More statically typed arrays!
No need to have these # Array of X comments anymore!
* Fix "apply all" for multiple preview dialogs
* Update theme.tres
* Add HeaderSmall theme type variation
* Fix dynamics buttons
* Don't allow sub-zero zoom values
* Let zoom_out_max always remain Vector2(0.01, 0.01)
This fixes zooming on large canvases
* Bump version to v1.0-dev
* Fix ambient light not working on 3D cels
* Fix .obj loading
* Don't allow greater than max values in the zoom slider
* Set maximum zoom value to always be (500, 500)
* Set zoom slider minimum value to 1
* Some UI changes, mostly related to buttons and the timeline
* Change window titles to what they were before
* [COMPATIBILITY BROKEN WITH v0.x] Fix loading 3D cels
* Avoid changing Cel3DObject's file_path if it's the same
* Make preferences window bigger
* Fix png exporting
* Fix reference image initial size and filter setting
* Fix perspective line reverse scaling on zoom and facing 180 degrees away from cursor
* Format and some linting
* Remove most Images from the rest of the themes
* Remove all textures from all themes
* Fix drawing when the mouse gets released outside the canvas boundaries
* Format Keychain
* Implement #890
* Fix recorder
* Fix layout deletion
* Better static typing and fix empty_clicked signal-connected methods not having arguments
* Fix layout and extension directory creation if they don't already exist
* Change all instances of "HTML5" to "Web"
OS.get_name() now returns "Web" instead of "HTML5" in Godot 4
* Fix JavaScript detection
Opening files in the Web version does not yet work for some reason
* Fix formatting
* Fix lint errors
* Remove unneeded lines from rotation shaders
* Clean some rotation shader related code
* Remove ErrorManager from #891, as it's no longer needed in Godot 4
* Some docstrings
* More Vector2i and Recti replacing their float counterparts
* Remove the hardcoded shortcut from ValueSlider
Note that the brush size shortcut may not change properly because Keychain isn't updated to support Godot 4's input map properly yet.
* Fix bugs from the rebase, integer zooming is currently broken
* Format
* Fix bug where some imported images would fail to load when using smart slice
* Fix integer zooming (I think)
* Fix errors after #898
* Fix some UI issues with PreviewDialog
* Use ctrl/command instead of just ctrl in the shortcuts of the InputMap - gets rid of the need for _use_osx_shortcuts() in Main.gd
* Update Keychain and addons/README.md
* Update CI to Godot 4.1.1 (probably will not work)
* Remove XDGDataPaths.gd
* Make windows non-exclusive
* Attempt to fix macOS CI
* Attempt to fix CI
* Attempt to fix CI
* Minor fix in the dark theme, more will follow
* Silence enumerator/integer warning
* Attempt to fix macOS CI
* Another attempt to fix macOS CI
* Attempt to fix Windows & macOS CI
* fix: Recorder directory create (#903)
* Update Keychain so that the brush size shortcuts can be changed
This update generally lets users use modifier buttons (control, alt, shift, meta) with mouse buttons
* Change OSX to macOS
* Detect if multi-threading is enabled when exporting gifs
* Fix color picker not working on the top color mode
* Make some public methods private in Export.gd
* Remove Global.window_title variable
* Fix frame UI in the timeline breaking after 100 frames
* Static typing improvements for the timeline
* Better static typing for grids
* Fix typo
* Fix pixel grid not appearing
* Move preference updating code to Global using setters
This should make the code a bit more readable, as the logic for each property update can be found directly under the variable declaration, and not hidden in PreferencesDialog's preference_update() method. This also allows for changing these properties outside the preferences, if that will ever be needed. In theory it's also faster as we don't have to do all these string comparisons anymore, but I doubt this will be noticeable in practice.
* Remove RestoreDefaultButton.tscn
* Implement changing font size in the preferences
* Resize HeaderSmall font size along with the default font size
* A step towards fixing image loading in the Web version
Doesn't completely fix the issue, it requires a fix from Godot's side as well
* Implement missing input event actions for buttons
TODO: Add default shortcuts
* Do not change language and theme if they are already the defaults
Reduces the initial loading time a bit
* Remove update_hint_tooltips() as it's no longer needed, only keep it for tools
This was needed in order for hint tooltips to be successfully translated while taking the shortcuts into account. Godot 4 already it correctly for us now. Tools still need it because they contain multiple shortcut data in their tooltips.
* Change ExportDialog's PathDialog's file mode to be "open directory" and make them bigger
* Fix Vector2i + Vector2 errors in grid center snapping
* Update tooltips when the shortcut profile changes
* Fix copy-paste mistake
* Update tooltips during startup if the shortcut profile is not the default
* Fix gif warning label size in ExportDialog
* Fix BBCode in ExportDialog
* Fix some Godot 4.2 warnings
* Some CI fixes
* Static typing improvements and more inline functions
* Format
* Even more static typing, inline methods, docstrings etc
* Some more static typing improvements and inline setters
* Remove unneeded project type specifying
* Fix splash dialog error
* Fix enumerator warning
* Don't preload the font in the rules and guides
* Fix some integer division warnings
Sometimes we indeed need them to be floats
* Change some Rect2s to Rect2is
* Minor static typing improvements
* Update README, CHANGELOG, Translations
* Only load translation files when needed, reduces loading time a bit
* Update Keychain so it doesn't load languages during startup
* Lazy load all tool scenes, breaks compatibility with the extension API
Decreases initial loading time
* Format
* Very minor loading time speedups
* Remove unneeded project type specifying
* Even more static typing and docstring improvements
* Fix extension loading
* Palette docstrings
---------
Co-authored-by: ppphp <kevinniub@gmail.com>
2023-09-04 13:29:06 +00:00
|
|
|
@tool
|
|
|
|
class_name DockableContainer
|
2022-01-29 22:47:25 +00:00
|
|
|
extends Container
|
|
|
|
|
Port to Godot 4 (#900)
* Initial conversion
* Hide some dialogs
* Update addons
* Fix errors in scripts
Temporarily commented out adding new file import types and certain Control methods that are not available in the Window class, such as get_global_mouse_position()
* Update shaders
* Fix some more errors and signals, rename "pressed" to "button_pressed"
* Even more error fixes and renaming corrections
* Fixed more errors, Pixelorama almost runs
* Update ValueSlider.gd
* Remove lock() and unlock(), more ImageTexture.create_from_image() static usage
* More static function using
* Re-add some of the dialog signals, fix window transparency
* Change instances of popup_hide to visibility_changed
* More more errors and warnings
* Fix more errors and warnings
* Get rid of errors in the output when opening Pixelorama in Godot
* Properly connect most signals without using strings
* Fix some scenes
* Don't load Main.tscn
* Emit signals directly instead of using strings
* Fix Keychain menu nodes
* Get rid of self. on most instances, as setters and getters are now always called
* Some more static typing
* Disable texture filters
* Fix zooming
* Fix int as enum warnings
* Fix tools and rename doubleclick to double_click
* Update tool scenes
* Fix tabs
* Fix create new image
* Use static typing on flood fill to speed it up
* Update static-checks.yml
* Reverts #729 for a speedup, hopefully the bug won't get re-introduced
* Fix TransparentChecker warning
* Re-add Default template
* Fix 3D cels
* Fix rotation
Project converted bug. Should be fixed by https://github.com/godotengine/godot/pull/79264
* Fix UITransparency alignment issue, thanks Variable
* Add missing OptionButton items
Hopefully that should be all of them
* Fix the appearance of CollapsibleContainer
* Change instances of world to world_3d
* Fix tool button backgrounds
* Fix Splash dialog
* Fix brush selection
* Update Main.gd
* Fix About Dialog
* Fix more zooming issues
* Fix canvas preview zooming
* Use signals for queue_redraw on project change
* Fix layer button's look
* Fix gradients
* Some gradient fixes and code cleanups, dithering is still broken
* Fix bucket
* Fix the rest of the undo_redo.add_(un)do_method() cases
* Fix guides
* Fix guide text
* Some small changes in Main
* Update Tools.gd
* Fix palette importing
* Get rid of TODOGODOT4s
* Fix the rest of the dialogs
* Update the rest of the scenes
* Fix onion skinning and frame tag dialogs
* Fix file brushes being imported twice
* Fix palette swatch crashing on double click
* Use nearest filter for some of the windows
* Remove old .tres font files
* Fix language switching
* Get rid of Keychain.action_get_first_key() on the extra shortcuts of tools
* Get rid of Keychain.MenuInputActions and directly set shortcuts to the menu items
This temporarily removes echoing support for undo and redo, this will be re-added once https://github.com/godotengine/godot/pull/36493 or https://github.com/godotengine/godot/pull/64317 is merged.
* Clean shortcut-related duplicate code in TopMenuContainer
* Remove DroidSansFallback now that system fonts can be used as fallback
* Remove 3.x settings from project.godot
* Format
* Format gdgifexporter
* Reset Keychain to its original state
* Remove textures from the dark and gray themes
* Remove all textures from the dark theme
* Better static typing in DrawingAlgos
* Use Vector2i for project size
* [Risky commit] Use Vector2i instead of Vector2 for tools
I tested it and everything seems to be working the same as before, but more testing would be appreciated.
* Format after previous commit
* Fix line angle constraint being rotated 180 degrees
This is not a regression from the previous commit(s), Godot 4 probably reversed the logic of `angle_to_point()`.
* Fix input map action not found errors when pressing Shift or Control
* Make AnimatePanel bigger, add spring interpolation
* Fix some layouts/extensions/preferences loading errors
* Fix dithering
* Update layout resources
Probably doesn't change anything at all, but I suppose it might be a good thing to do
* Small changes
* Disable filter in ResizeCanvas dialog
* Fix some preferences default button states
* Fix tile mode always having masking on
* Use integers in tile mode
* Fix checkboxes in preferences not working
* More statically typed arrays!
No need to have these # Array of X comments anymore!
* Fix "apply all" for multiple preview dialogs
* Update theme.tres
* Add HeaderSmall theme type variation
* Fix dynamics buttons
* Don't allow sub-zero zoom values
* Let zoom_out_max always remain Vector2(0.01, 0.01)
This fixes zooming on large canvases
* Bump version to v1.0-dev
* Fix ambient light not working on 3D cels
* Fix .obj loading
* Don't allow greater than max values in the zoom slider
* Set maximum zoom value to always be (500, 500)
* Set zoom slider minimum value to 1
* Some UI changes, mostly related to buttons and the timeline
* Change window titles to what they were before
* [COMPATIBILITY BROKEN WITH v0.x] Fix loading 3D cels
* Avoid changing Cel3DObject's file_path if it's the same
* Make preferences window bigger
* Fix png exporting
* Fix reference image initial size and filter setting
* Fix perspective line reverse scaling on zoom and facing 180 degrees away from cursor
* Format and some linting
* Remove most Images from the rest of the themes
* Remove all textures from all themes
* Fix drawing when the mouse gets released outside the canvas boundaries
* Format Keychain
* Implement #890
* Fix recorder
* Fix layout deletion
* Better static typing and fix empty_clicked signal-connected methods not having arguments
* Fix layout and extension directory creation if they don't already exist
* Change all instances of "HTML5" to "Web"
OS.get_name() now returns "Web" instead of "HTML5" in Godot 4
* Fix JavaScript detection
Opening files in the Web version does not yet work for some reason
* Fix formatting
* Fix lint errors
* Remove unneeded lines from rotation shaders
* Clean some rotation shader related code
* Remove ErrorManager from #891, as it's no longer needed in Godot 4
* Some docstrings
* More Vector2i and Recti replacing their float counterparts
* Remove the hardcoded shortcut from ValueSlider
Note that the brush size shortcut may not change properly because Keychain isn't updated to support Godot 4's input map properly yet.
* Fix bugs from the rebase, integer zooming is currently broken
* Format
* Fix bug where some imported images would fail to load when using smart slice
* Fix integer zooming (I think)
* Fix errors after #898
* Fix some UI issues with PreviewDialog
* Use ctrl/command instead of just ctrl in the shortcuts of the InputMap - gets rid of the need for _use_osx_shortcuts() in Main.gd
* Update Keychain and addons/README.md
* Update CI to Godot 4.1.1 (probably will not work)
* Remove XDGDataPaths.gd
* Make windows non-exclusive
* Attempt to fix macOS CI
* Attempt to fix CI
* Attempt to fix CI
* Minor fix in the dark theme, more will follow
* Silence enumerator/integer warning
* Attempt to fix macOS CI
* Another attempt to fix macOS CI
* Attempt to fix Windows & macOS CI
* fix: Recorder directory create (#903)
* Update Keychain so that the brush size shortcuts can be changed
This update generally lets users use modifier buttons (control, alt, shift, meta) with mouse buttons
* Change OSX to macOS
* Detect if multi-threading is enabled when exporting gifs
* Fix color picker not working on the top color mode
* Make some public methods private in Export.gd
* Remove Global.window_title variable
* Fix frame UI in the timeline breaking after 100 frames
* Static typing improvements for the timeline
* Better static typing for grids
* Fix typo
* Fix pixel grid not appearing
* Move preference updating code to Global using setters
This should make the code a bit more readable, as the logic for each property update can be found directly under the variable declaration, and not hidden in PreferencesDialog's preference_update() method. This also allows for changing these properties outside the preferences, if that will ever be needed. In theory it's also faster as we don't have to do all these string comparisons anymore, but I doubt this will be noticeable in practice.
* Remove RestoreDefaultButton.tscn
* Implement changing font size in the preferences
* Resize HeaderSmall font size along with the default font size
* A step towards fixing image loading in the Web version
Doesn't completely fix the issue, it requires a fix from Godot's side as well
* Implement missing input event actions for buttons
TODO: Add default shortcuts
* Do not change language and theme if they are already the defaults
Reduces the initial loading time a bit
* Remove update_hint_tooltips() as it's no longer needed, only keep it for tools
This was needed in order for hint tooltips to be successfully translated while taking the shortcuts into account. Godot 4 already it correctly for us now. Tools still need it because they contain multiple shortcut data in their tooltips.
* Change ExportDialog's PathDialog's file mode to be "open directory" and make them bigger
* Fix Vector2i + Vector2 errors in grid center snapping
* Update tooltips when the shortcut profile changes
* Fix copy-paste mistake
* Update tooltips during startup if the shortcut profile is not the default
* Fix gif warning label size in ExportDialog
* Fix BBCode in ExportDialog
* Fix some Godot 4.2 warnings
* Some CI fixes
* Static typing improvements and more inline functions
* Format
* Even more static typing, inline methods, docstrings etc
* Some more static typing improvements and inline setters
* Remove unneeded project type specifying
* Fix splash dialog error
* Fix enumerator warning
* Don't preload the font in the rules and guides
* Fix some integer division warnings
Sometimes we indeed need them to be floats
* Change some Rect2s to Rect2is
* Minor static typing improvements
* Update README, CHANGELOG, Translations
* Only load translation files when needed, reduces loading time a bit
* Update Keychain so it doesn't load languages during startup
* Lazy load all tool scenes, breaks compatibility with the extension API
Decreases initial loading time
* Format
* Very minor loading time speedups
* Remove unneeded project type specifying
* Even more static typing and docstring improvements
* Fix extension loading
* Palette docstrings
---------
Co-authored-by: ppphp <kevinniub@gmail.com>
2023-09-04 13:29:06 +00:00
|
|
|
const SplitHandle := preload("split_handle.gd")
|
|
|
|
const DockablePanel := preload("dockable_panel.gd")
|
|
|
|
const DragNDropPanel := preload("drag_n_drop_panel.gd")
|
|
|
|
|
|
|
|
@export var tab_alignment := TabBar.ALIGNMENT_CENTER:
|
|
|
|
get:
|
|
|
|
return _tab_align
|
|
|
|
set(value):
|
|
|
|
_tab_align = value
|
|
|
|
for i in range(1, _panel_container.get_child_count()):
|
|
|
|
var panel := _panel_container.get_child(i) as DockablePanel
|
|
|
|
panel.tab_alignment = value
|
|
|
|
@export var use_hidden_tabs_for_min_size := false:
|
|
|
|
get:
|
|
|
|
return _use_hidden_tabs_for_min_size
|
|
|
|
set(value):
|
|
|
|
_use_hidden_tabs_for_min_size = value
|
|
|
|
for i in range(1, _panel_container.get_child_count()):
|
|
|
|
var panel := _panel_container.get_child(i) as DockablePanel
|
|
|
|
panel.use_hidden_tabs_for_min_size = value
|
|
|
|
@export var tabs_visible := true:
|
|
|
|
get:
|
|
|
|
return _tabs_visible
|
|
|
|
set(value):
|
2024-02-18 17:47:21 +00:00
|
|
|
_tabs_visible = value
|
|
|
|
for i in range(1, _panel_container.get_child_count()):
|
|
|
|
var panel := _panel_container.get_child(i) as DockablePanel
|
|
|
|
panel.show_tabs = _tabs_visible
|
|
|
|
## If [code]true[/code] and a panel only has one tab, it keeps that tab hidden even if
|
|
|
|
## [member tabs_visible] is [code]true[/code].
|
|
|
|
## Only takes effect is [member tabs_visible] is [code]true[/code].
|
|
|
|
@export var hide_single_tab := false:
|
2024-01-12 18:56:35 +00:00
|
|
|
get:
|
2024-02-18 17:47:21 +00:00
|
|
|
return _hide_single_tab
|
2024-01-12 18:56:35 +00:00
|
|
|
set(value):
|
2024-02-18 17:47:21 +00:00
|
|
|
_hide_single_tab = value
|
|
|
|
for i in range(1, _panel_container.get_child_count()):
|
|
|
|
var panel := _panel_container.get_child(i) as DockablePanel
|
|
|
|
panel.hide_single_tab = _hide_single_tab
|
Port to Godot 4 (#900)
* Initial conversion
* Hide some dialogs
* Update addons
* Fix errors in scripts
Temporarily commented out adding new file import types and certain Control methods that are not available in the Window class, such as get_global_mouse_position()
* Update shaders
* Fix some more errors and signals, rename "pressed" to "button_pressed"
* Even more error fixes and renaming corrections
* Fixed more errors, Pixelorama almost runs
* Update ValueSlider.gd
* Remove lock() and unlock(), more ImageTexture.create_from_image() static usage
* More static function using
* Re-add some of the dialog signals, fix window transparency
* Change instances of popup_hide to visibility_changed
* More more errors and warnings
* Fix more errors and warnings
* Get rid of errors in the output when opening Pixelorama in Godot
* Properly connect most signals without using strings
* Fix some scenes
* Don't load Main.tscn
* Emit signals directly instead of using strings
* Fix Keychain menu nodes
* Get rid of self. on most instances, as setters and getters are now always called
* Some more static typing
* Disable texture filters
* Fix zooming
* Fix int as enum warnings
* Fix tools and rename doubleclick to double_click
* Update tool scenes
* Fix tabs
* Fix create new image
* Use static typing on flood fill to speed it up
* Update static-checks.yml
* Reverts #729 for a speedup, hopefully the bug won't get re-introduced
* Fix TransparentChecker warning
* Re-add Default template
* Fix 3D cels
* Fix rotation
Project converted bug. Should be fixed by https://github.com/godotengine/godot/pull/79264
* Fix UITransparency alignment issue, thanks Variable
* Add missing OptionButton items
Hopefully that should be all of them
* Fix the appearance of CollapsibleContainer
* Change instances of world to world_3d
* Fix tool button backgrounds
* Fix Splash dialog
* Fix brush selection
* Update Main.gd
* Fix About Dialog
* Fix more zooming issues
* Fix canvas preview zooming
* Use signals for queue_redraw on project change
* Fix layer button's look
* Fix gradients
* Some gradient fixes and code cleanups, dithering is still broken
* Fix bucket
* Fix the rest of the undo_redo.add_(un)do_method() cases
* Fix guides
* Fix guide text
* Some small changes in Main
* Update Tools.gd
* Fix palette importing
* Get rid of TODOGODOT4s
* Fix the rest of the dialogs
* Update the rest of the scenes
* Fix onion skinning and frame tag dialogs
* Fix file brushes being imported twice
* Fix palette swatch crashing on double click
* Use nearest filter for some of the windows
* Remove old .tres font files
* Fix language switching
* Get rid of Keychain.action_get_first_key() on the extra shortcuts of tools
* Get rid of Keychain.MenuInputActions and directly set shortcuts to the menu items
This temporarily removes echoing support for undo and redo, this will be re-added once https://github.com/godotengine/godot/pull/36493 or https://github.com/godotengine/godot/pull/64317 is merged.
* Clean shortcut-related duplicate code in TopMenuContainer
* Remove DroidSansFallback now that system fonts can be used as fallback
* Remove 3.x settings from project.godot
* Format
* Format gdgifexporter
* Reset Keychain to its original state
* Remove textures from the dark and gray themes
* Remove all textures from the dark theme
* Better static typing in DrawingAlgos
* Use Vector2i for project size
* [Risky commit] Use Vector2i instead of Vector2 for tools
I tested it and everything seems to be working the same as before, but more testing would be appreciated.
* Format after previous commit
* Fix line angle constraint being rotated 180 degrees
This is not a regression from the previous commit(s), Godot 4 probably reversed the logic of `angle_to_point()`.
* Fix input map action not found errors when pressing Shift or Control
* Make AnimatePanel bigger, add spring interpolation
* Fix some layouts/extensions/preferences loading errors
* Fix dithering
* Update layout resources
Probably doesn't change anything at all, but I suppose it might be a good thing to do
* Small changes
* Disable filter in ResizeCanvas dialog
* Fix some preferences default button states
* Fix tile mode always having masking on
* Use integers in tile mode
* Fix checkboxes in preferences not working
* More statically typed arrays!
No need to have these # Array of X comments anymore!
* Fix "apply all" for multiple preview dialogs
* Update theme.tres
* Add HeaderSmall theme type variation
* Fix dynamics buttons
* Don't allow sub-zero zoom values
* Let zoom_out_max always remain Vector2(0.01, 0.01)
This fixes zooming on large canvases
* Bump version to v1.0-dev
* Fix ambient light not working on 3D cels
* Fix .obj loading
* Don't allow greater than max values in the zoom slider
* Set maximum zoom value to always be (500, 500)
* Set zoom slider minimum value to 1
* Some UI changes, mostly related to buttons and the timeline
* Change window titles to what they were before
* [COMPATIBILITY BROKEN WITH v0.x] Fix loading 3D cels
* Avoid changing Cel3DObject's file_path if it's the same
* Make preferences window bigger
* Fix png exporting
* Fix reference image initial size and filter setting
* Fix perspective line reverse scaling on zoom and facing 180 degrees away from cursor
* Format and some linting
* Remove most Images from the rest of the themes
* Remove all textures from all themes
* Fix drawing when the mouse gets released outside the canvas boundaries
* Format Keychain
* Implement #890
* Fix recorder
* Fix layout deletion
* Better static typing and fix empty_clicked signal-connected methods not having arguments
* Fix layout and extension directory creation if they don't already exist
* Change all instances of "HTML5" to "Web"
OS.get_name() now returns "Web" instead of "HTML5" in Godot 4
* Fix JavaScript detection
Opening files in the Web version does not yet work for some reason
* Fix formatting
* Fix lint errors
* Remove unneeded lines from rotation shaders
* Clean some rotation shader related code
* Remove ErrorManager from #891, as it's no longer needed in Godot 4
* Some docstrings
* More Vector2i and Recti replacing their float counterparts
* Remove the hardcoded shortcut from ValueSlider
Note that the brush size shortcut may not change properly because Keychain isn't updated to support Godot 4's input map properly yet.
* Fix bugs from the rebase, integer zooming is currently broken
* Format
* Fix bug where some imported images would fail to load when using smart slice
* Fix integer zooming (I think)
* Fix errors after #898
* Fix some UI issues with PreviewDialog
* Use ctrl/command instead of just ctrl in the shortcuts of the InputMap - gets rid of the need for _use_osx_shortcuts() in Main.gd
* Update Keychain and addons/README.md
* Update CI to Godot 4.1.1 (probably will not work)
* Remove XDGDataPaths.gd
* Make windows non-exclusive
* Attempt to fix macOS CI
* Attempt to fix CI
* Attempt to fix CI
* Minor fix in the dark theme, more will follow
* Silence enumerator/integer warning
* Attempt to fix macOS CI
* Another attempt to fix macOS CI
* Attempt to fix Windows & macOS CI
* fix: Recorder directory create (#903)
* Update Keychain so that the brush size shortcuts can be changed
This update generally lets users use modifier buttons (control, alt, shift, meta) with mouse buttons
* Change OSX to macOS
* Detect if multi-threading is enabled when exporting gifs
* Fix color picker not working on the top color mode
* Make some public methods private in Export.gd
* Remove Global.window_title variable
* Fix frame UI in the timeline breaking after 100 frames
* Static typing improvements for the timeline
* Better static typing for grids
* Fix typo
* Fix pixel grid not appearing
* Move preference updating code to Global using setters
This should make the code a bit more readable, as the logic for each property update can be found directly under the variable declaration, and not hidden in PreferencesDialog's preference_update() method. This also allows for changing these properties outside the preferences, if that will ever be needed. In theory it's also faster as we don't have to do all these string comparisons anymore, but I doubt this will be noticeable in practice.
* Remove RestoreDefaultButton.tscn
* Implement changing font size in the preferences
* Resize HeaderSmall font size along with the default font size
* A step towards fixing image loading in the Web version
Doesn't completely fix the issue, it requires a fix from Godot's side as well
* Implement missing input event actions for buttons
TODO: Add default shortcuts
* Do not change language and theme if they are already the defaults
Reduces the initial loading time a bit
* Remove update_hint_tooltips() as it's no longer needed, only keep it for tools
This was needed in order for hint tooltips to be successfully translated while taking the shortcuts into account. Godot 4 already it correctly for us now. Tools still need it because they contain multiple shortcut data in their tooltips.
* Change ExportDialog's PathDialog's file mode to be "open directory" and make them bigger
* Fix Vector2i + Vector2 errors in grid center snapping
* Update tooltips when the shortcut profile changes
* Fix copy-paste mistake
* Update tooltips during startup if the shortcut profile is not the default
* Fix gif warning label size in ExportDialog
* Fix BBCode in ExportDialog
* Fix some Godot 4.2 warnings
* Some CI fixes
* Static typing improvements and more inline functions
* Format
* Even more static typing, inline methods, docstrings etc
* Some more static typing improvements and inline setters
* Remove unneeded project type specifying
* Fix splash dialog error
* Fix enumerator warning
* Don't preload the font in the rules and guides
* Fix some integer division warnings
Sometimes we indeed need them to be floats
* Change some Rect2s to Rect2is
* Minor static typing improvements
* Update README, CHANGELOG, Translations
* Only load translation files when needed, reduces loading time a bit
* Update Keychain so it doesn't load languages during startup
* Lazy load all tool scenes, breaks compatibility with the extension API
Decreases initial loading time
* Format
* Very minor loading time speedups
* Remove unneeded project type specifying
* Even more static typing and docstring improvements
* Fix extension loading
* Palette docstrings
---------
Co-authored-by: ppphp <kevinniub@gmail.com>
2023-09-04 13:29:06 +00:00
|
|
|
@export var rearrange_group := 0
|
|
|
|
@export var layout := DockableLayout.new():
|
|
|
|
get:
|
|
|
|
return _layout
|
|
|
|
set(value):
|
|
|
|
set_layout(value)
|
|
|
|
## If `clone_layout_on_ready` is true, `layout` will be cloned checked `_ready`.
|
|
|
|
## This is useful for leaving layout Resources untouched in case you want to
|
|
|
|
## restore layout to its default later.
|
|
|
|
@export var clone_layout_on_ready := true
|
|
|
|
|
|
|
|
var _layout := DockableLayout.new()
|
|
|
|
var _panel_container := Container.new()
|
2024-10-11 09:13:13 +00:00
|
|
|
var _windows_container := Container.new()
|
Port to Godot 4 (#900)
* Initial conversion
* Hide some dialogs
* Update addons
* Fix errors in scripts
Temporarily commented out adding new file import types and certain Control methods that are not available in the Window class, such as get_global_mouse_position()
* Update shaders
* Fix some more errors and signals, rename "pressed" to "button_pressed"
* Even more error fixes and renaming corrections
* Fixed more errors, Pixelorama almost runs
* Update ValueSlider.gd
* Remove lock() and unlock(), more ImageTexture.create_from_image() static usage
* More static function using
* Re-add some of the dialog signals, fix window transparency
* Change instances of popup_hide to visibility_changed
* More more errors and warnings
* Fix more errors and warnings
* Get rid of errors in the output when opening Pixelorama in Godot
* Properly connect most signals without using strings
* Fix some scenes
* Don't load Main.tscn
* Emit signals directly instead of using strings
* Fix Keychain menu nodes
* Get rid of self. on most instances, as setters and getters are now always called
* Some more static typing
* Disable texture filters
* Fix zooming
* Fix int as enum warnings
* Fix tools and rename doubleclick to double_click
* Update tool scenes
* Fix tabs
* Fix create new image
* Use static typing on flood fill to speed it up
* Update static-checks.yml
* Reverts #729 for a speedup, hopefully the bug won't get re-introduced
* Fix TransparentChecker warning
* Re-add Default template
* Fix 3D cels
* Fix rotation
Project converted bug. Should be fixed by https://github.com/godotengine/godot/pull/79264
* Fix UITransparency alignment issue, thanks Variable
* Add missing OptionButton items
Hopefully that should be all of them
* Fix the appearance of CollapsibleContainer
* Change instances of world to world_3d
* Fix tool button backgrounds
* Fix Splash dialog
* Fix brush selection
* Update Main.gd
* Fix About Dialog
* Fix more zooming issues
* Fix canvas preview zooming
* Use signals for queue_redraw on project change
* Fix layer button's look
* Fix gradients
* Some gradient fixes and code cleanups, dithering is still broken
* Fix bucket
* Fix the rest of the undo_redo.add_(un)do_method() cases
* Fix guides
* Fix guide text
* Some small changes in Main
* Update Tools.gd
* Fix palette importing
* Get rid of TODOGODOT4s
* Fix the rest of the dialogs
* Update the rest of the scenes
* Fix onion skinning and frame tag dialogs
* Fix file brushes being imported twice
* Fix palette swatch crashing on double click
* Use nearest filter for some of the windows
* Remove old .tres font files
* Fix language switching
* Get rid of Keychain.action_get_first_key() on the extra shortcuts of tools
* Get rid of Keychain.MenuInputActions and directly set shortcuts to the menu items
This temporarily removes echoing support for undo and redo, this will be re-added once https://github.com/godotengine/godot/pull/36493 or https://github.com/godotengine/godot/pull/64317 is merged.
* Clean shortcut-related duplicate code in TopMenuContainer
* Remove DroidSansFallback now that system fonts can be used as fallback
* Remove 3.x settings from project.godot
* Format
* Format gdgifexporter
* Reset Keychain to its original state
* Remove textures from the dark and gray themes
* Remove all textures from the dark theme
* Better static typing in DrawingAlgos
* Use Vector2i for project size
* [Risky commit] Use Vector2i instead of Vector2 for tools
I tested it and everything seems to be working the same as before, but more testing would be appreciated.
* Format after previous commit
* Fix line angle constraint being rotated 180 degrees
This is not a regression from the previous commit(s), Godot 4 probably reversed the logic of `angle_to_point()`.
* Fix input map action not found errors when pressing Shift or Control
* Make AnimatePanel bigger, add spring interpolation
* Fix some layouts/extensions/preferences loading errors
* Fix dithering
* Update layout resources
Probably doesn't change anything at all, but I suppose it might be a good thing to do
* Small changes
* Disable filter in ResizeCanvas dialog
* Fix some preferences default button states
* Fix tile mode always having masking on
* Use integers in tile mode
* Fix checkboxes in preferences not working
* More statically typed arrays!
No need to have these # Array of X comments anymore!
* Fix "apply all" for multiple preview dialogs
* Update theme.tres
* Add HeaderSmall theme type variation
* Fix dynamics buttons
* Don't allow sub-zero zoom values
* Let zoom_out_max always remain Vector2(0.01, 0.01)
This fixes zooming on large canvases
* Bump version to v1.0-dev
* Fix ambient light not working on 3D cels
* Fix .obj loading
* Don't allow greater than max values in the zoom slider
* Set maximum zoom value to always be (500, 500)
* Set zoom slider minimum value to 1
* Some UI changes, mostly related to buttons and the timeline
* Change window titles to what they were before
* [COMPATIBILITY BROKEN WITH v0.x] Fix loading 3D cels
* Avoid changing Cel3DObject's file_path if it's the same
* Make preferences window bigger
* Fix png exporting
* Fix reference image initial size and filter setting
* Fix perspective line reverse scaling on zoom and facing 180 degrees away from cursor
* Format and some linting
* Remove most Images from the rest of the themes
* Remove all textures from all themes
* Fix drawing when the mouse gets released outside the canvas boundaries
* Format Keychain
* Implement #890
* Fix recorder
* Fix layout deletion
* Better static typing and fix empty_clicked signal-connected methods not having arguments
* Fix layout and extension directory creation if they don't already exist
* Change all instances of "HTML5" to "Web"
OS.get_name() now returns "Web" instead of "HTML5" in Godot 4
* Fix JavaScript detection
Opening files in the Web version does not yet work for some reason
* Fix formatting
* Fix lint errors
* Remove unneeded lines from rotation shaders
* Clean some rotation shader related code
* Remove ErrorManager from #891, as it's no longer needed in Godot 4
* Some docstrings
* More Vector2i and Recti replacing their float counterparts
* Remove the hardcoded shortcut from ValueSlider
Note that the brush size shortcut may not change properly because Keychain isn't updated to support Godot 4's input map properly yet.
* Fix bugs from the rebase, integer zooming is currently broken
* Format
* Fix bug where some imported images would fail to load when using smart slice
* Fix integer zooming (I think)
* Fix errors after #898
* Fix some UI issues with PreviewDialog
* Use ctrl/command instead of just ctrl in the shortcuts of the InputMap - gets rid of the need for _use_osx_shortcuts() in Main.gd
* Update Keychain and addons/README.md
* Update CI to Godot 4.1.1 (probably will not work)
* Remove XDGDataPaths.gd
* Make windows non-exclusive
* Attempt to fix macOS CI
* Attempt to fix CI
* Attempt to fix CI
* Minor fix in the dark theme, more will follow
* Silence enumerator/integer warning
* Attempt to fix macOS CI
* Another attempt to fix macOS CI
* Attempt to fix Windows & macOS CI
* fix: Recorder directory create (#903)
* Update Keychain so that the brush size shortcuts can be changed
This update generally lets users use modifier buttons (control, alt, shift, meta) with mouse buttons
* Change OSX to macOS
* Detect if multi-threading is enabled when exporting gifs
* Fix color picker not working on the top color mode
* Make some public methods private in Export.gd
* Remove Global.window_title variable
* Fix frame UI in the timeline breaking after 100 frames
* Static typing improvements for the timeline
* Better static typing for grids
* Fix typo
* Fix pixel grid not appearing
* Move preference updating code to Global using setters
This should make the code a bit more readable, as the logic for each property update can be found directly under the variable declaration, and not hidden in PreferencesDialog's preference_update() method. This also allows for changing these properties outside the preferences, if that will ever be needed. In theory it's also faster as we don't have to do all these string comparisons anymore, but I doubt this will be noticeable in practice.
* Remove RestoreDefaultButton.tscn
* Implement changing font size in the preferences
* Resize HeaderSmall font size along with the default font size
* A step towards fixing image loading in the Web version
Doesn't completely fix the issue, it requires a fix from Godot's side as well
* Implement missing input event actions for buttons
TODO: Add default shortcuts
* Do not change language and theme if they are already the defaults
Reduces the initial loading time a bit
* Remove update_hint_tooltips() as it's no longer needed, only keep it for tools
This was needed in order for hint tooltips to be successfully translated while taking the shortcuts into account. Godot 4 already it correctly for us now. Tools still need it because they contain multiple shortcut data in their tooltips.
* Change ExportDialog's PathDialog's file mode to be "open directory" and make them bigger
* Fix Vector2i + Vector2 errors in grid center snapping
* Update tooltips when the shortcut profile changes
* Fix copy-paste mistake
* Update tooltips during startup if the shortcut profile is not the default
* Fix gif warning label size in ExportDialog
* Fix BBCode in ExportDialog
* Fix some Godot 4.2 warnings
* Some CI fixes
* Static typing improvements and more inline functions
* Format
* Even more static typing, inline methods, docstrings etc
* Some more static typing improvements and inline setters
* Remove unneeded project type specifying
* Fix splash dialog error
* Fix enumerator warning
* Don't preload the font in the rules and guides
* Fix some integer division warnings
Sometimes we indeed need them to be floats
* Change some Rect2s to Rect2is
* Minor static typing improvements
* Update README, CHANGELOG, Translations
* Only load translation files when needed, reduces loading time a bit
* Update Keychain so it doesn't load languages during startup
* Lazy load all tool scenes, breaks compatibility with the extension API
Decreases initial loading time
* Format
* Very minor loading time speedups
* Remove unneeded project type specifying
* Even more static typing and docstring improvements
* Fix extension loading
* Palette docstrings
---------
Co-authored-by: ppphp <kevinniub@gmail.com>
2023-09-04 13:29:06 +00:00
|
|
|
var _split_container := Container.new()
|
|
|
|
var _drag_n_drop_panel := DragNDropPanel.new()
|
2022-01-29 22:47:25 +00:00
|
|
|
var _drag_panel: DockablePanel
|
Port to Godot 4 (#900)
* Initial conversion
* Hide some dialogs
* Update addons
* Fix errors in scripts
Temporarily commented out adding new file import types and certain Control methods that are not available in the Window class, such as get_global_mouse_position()
* Update shaders
* Fix some more errors and signals, rename "pressed" to "button_pressed"
* Even more error fixes and renaming corrections
* Fixed more errors, Pixelorama almost runs
* Update ValueSlider.gd
* Remove lock() and unlock(), more ImageTexture.create_from_image() static usage
* More static function using
* Re-add some of the dialog signals, fix window transparency
* Change instances of popup_hide to visibility_changed
* More more errors and warnings
* Fix more errors and warnings
* Get rid of errors in the output when opening Pixelorama in Godot
* Properly connect most signals without using strings
* Fix some scenes
* Don't load Main.tscn
* Emit signals directly instead of using strings
* Fix Keychain menu nodes
* Get rid of self. on most instances, as setters and getters are now always called
* Some more static typing
* Disable texture filters
* Fix zooming
* Fix int as enum warnings
* Fix tools and rename doubleclick to double_click
* Update tool scenes
* Fix tabs
* Fix create new image
* Use static typing on flood fill to speed it up
* Update static-checks.yml
* Reverts #729 for a speedup, hopefully the bug won't get re-introduced
* Fix TransparentChecker warning
* Re-add Default template
* Fix 3D cels
* Fix rotation
Project converted bug. Should be fixed by https://github.com/godotengine/godot/pull/79264
* Fix UITransparency alignment issue, thanks Variable
* Add missing OptionButton items
Hopefully that should be all of them
* Fix the appearance of CollapsibleContainer
* Change instances of world to world_3d
* Fix tool button backgrounds
* Fix Splash dialog
* Fix brush selection
* Update Main.gd
* Fix About Dialog
* Fix more zooming issues
* Fix canvas preview zooming
* Use signals for queue_redraw on project change
* Fix layer button's look
* Fix gradients
* Some gradient fixes and code cleanups, dithering is still broken
* Fix bucket
* Fix the rest of the undo_redo.add_(un)do_method() cases
* Fix guides
* Fix guide text
* Some small changes in Main
* Update Tools.gd
* Fix palette importing
* Get rid of TODOGODOT4s
* Fix the rest of the dialogs
* Update the rest of the scenes
* Fix onion skinning and frame tag dialogs
* Fix file brushes being imported twice
* Fix palette swatch crashing on double click
* Use nearest filter for some of the windows
* Remove old .tres font files
* Fix language switching
* Get rid of Keychain.action_get_first_key() on the extra shortcuts of tools
* Get rid of Keychain.MenuInputActions and directly set shortcuts to the menu items
This temporarily removes echoing support for undo and redo, this will be re-added once https://github.com/godotengine/godot/pull/36493 or https://github.com/godotengine/godot/pull/64317 is merged.
* Clean shortcut-related duplicate code in TopMenuContainer
* Remove DroidSansFallback now that system fonts can be used as fallback
* Remove 3.x settings from project.godot
* Format
* Format gdgifexporter
* Reset Keychain to its original state
* Remove textures from the dark and gray themes
* Remove all textures from the dark theme
* Better static typing in DrawingAlgos
* Use Vector2i for project size
* [Risky commit] Use Vector2i instead of Vector2 for tools
I tested it and everything seems to be working the same as before, but more testing would be appreciated.
* Format after previous commit
* Fix line angle constraint being rotated 180 degrees
This is not a regression from the previous commit(s), Godot 4 probably reversed the logic of `angle_to_point()`.
* Fix input map action not found errors when pressing Shift or Control
* Make AnimatePanel bigger, add spring interpolation
* Fix some layouts/extensions/preferences loading errors
* Fix dithering
* Update layout resources
Probably doesn't change anything at all, but I suppose it might be a good thing to do
* Small changes
* Disable filter in ResizeCanvas dialog
* Fix some preferences default button states
* Fix tile mode always having masking on
* Use integers in tile mode
* Fix checkboxes in preferences not working
* More statically typed arrays!
No need to have these # Array of X comments anymore!
* Fix "apply all" for multiple preview dialogs
* Update theme.tres
* Add HeaderSmall theme type variation
* Fix dynamics buttons
* Don't allow sub-zero zoom values
* Let zoom_out_max always remain Vector2(0.01, 0.01)
This fixes zooming on large canvases
* Bump version to v1.0-dev
* Fix ambient light not working on 3D cels
* Fix .obj loading
* Don't allow greater than max values in the zoom slider
* Set maximum zoom value to always be (500, 500)
* Set zoom slider minimum value to 1
* Some UI changes, mostly related to buttons and the timeline
* Change window titles to what they were before
* [COMPATIBILITY BROKEN WITH v0.x] Fix loading 3D cels
* Avoid changing Cel3DObject's file_path if it's the same
* Make preferences window bigger
* Fix png exporting
* Fix reference image initial size and filter setting
* Fix perspective line reverse scaling on zoom and facing 180 degrees away from cursor
* Format and some linting
* Remove most Images from the rest of the themes
* Remove all textures from all themes
* Fix drawing when the mouse gets released outside the canvas boundaries
* Format Keychain
* Implement #890
* Fix recorder
* Fix layout deletion
* Better static typing and fix empty_clicked signal-connected methods not having arguments
* Fix layout and extension directory creation if they don't already exist
* Change all instances of "HTML5" to "Web"
OS.get_name() now returns "Web" instead of "HTML5" in Godot 4
* Fix JavaScript detection
Opening files in the Web version does not yet work for some reason
* Fix formatting
* Fix lint errors
* Remove unneeded lines from rotation shaders
* Clean some rotation shader related code
* Remove ErrorManager from #891, as it's no longer needed in Godot 4
* Some docstrings
* More Vector2i and Recti replacing their float counterparts
* Remove the hardcoded shortcut from ValueSlider
Note that the brush size shortcut may not change properly because Keychain isn't updated to support Godot 4's input map properly yet.
* Fix bugs from the rebase, integer zooming is currently broken
* Format
* Fix bug where some imported images would fail to load when using smart slice
* Fix integer zooming (I think)
* Fix errors after #898
* Fix some UI issues with PreviewDialog
* Use ctrl/command instead of just ctrl in the shortcuts of the InputMap - gets rid of the need for _use_osx_shortcuts() in Main.gd
* Update Keychain and addons/README.md
* Update CI to Godot 4.1.1 (probably will not work)
* Remove XDGDataPaths.gd
* Make windows non-exclusive
* Attempt to fix macOS CI
* Attempt to fix CI
* Attempt to fix CI
* Minor fix in the dark theme, more will follow
* Silence enumerator/integer warning
* Attempt to fix macOS CI
* Another attempt to fix macOS CI
* Attempt to fix Windows & macOS CI
* fix: Recorder directory create (#903)
* Update Keychain so that the brush size shortcuts can be changed
This update generally lets users use modifier buttons (control, alt, shift, meta) with mouse buttons
* Change OSX to macOS
* Detect if multi-threading is enabled when exporting gifs
* Fix color picker not working on the top color mode
* Make some public methods private in Export.gd
* Remove Global.window_title variable
* Fix frame UI in the timeline breaking after 100 frames
* Static typing improvements for the timeline
* Better static typing for grids
* Fix typo
* Fix pixel grid not appearing
* Move preference updating code to Global using setters
This should make the code a bit more readable, as the logic for each property update can be found directly under the variable declaration, and not hidden in PreferencesDialog's preference_update() method. This also allows for changing these properties outside the preferences, if that will ever be needed. In theory it's also faster as we don't have to do all these string comparisons anymore, but I doubt this will be noticeable in practice.
* Remove RestoreDefaultButton.tscn
* Implement changing font size in the preferences
* Resize HeaderSmall font size along with the default font size
* A step towards fixing image loading in the Web version
Doesn't completely fix the issue, it requires a fix from Godot's side as well
* Implement missing input event actions for buttons
TODO: Add default shortcuts
* Do not change language and theme if they are already the defaults
Reduces the initial loading time a bit
* Remove update_hint_tooltips() as it's no longer needed, only keep it for tools
This was needed in order for hint tooltips to be successfully translated while taking the shortcuts into account. Godot 4 already it correctly for us now. Tools still need it because they contain multiple shortcut data in their tooltips.
* Change ExportDialog's PathDialog's file mode to be "open directory" and make them bigger
* Fix Vector2i + Vector2 errors in grid center snapping
* Update tooltips when the shortcut profile changes
* Fix copy-paste mistake
* Update tooltips during startup if the shortcut profile is not the default
* Fix gif warning label size in ExportDialog
* Fix BBCode in ExportDialog
* Fix some Godot 4.2 warnings
* Some CI fixes
* Static typing improvements and more inline functions
* Format
* Even more static typing, inline methods, docstrings etc
* Some more static typing improvements and inline setters
* Remove unneeded project type specifying
* Fix splash dialog error
* Fix enumerator warning
* Don't preload the font in the rules and guides
* Fix some integer division warnings
Sometimes we indeed need them to be floats
* Change some Rect2s to Rect2is
* Minor static typing improvements
* Update README, CHANGELOG, Translations
* Only load translation files when needed, reduces loading time a bit
* Update Keychain so it doesn't load languages during startup
* Lazy load all tool scenes, breaks compatibility with the extension API
Decreases initial loading time
* Format
* Very minor loading time speedups
* Remove unneeded project type specifying
* Even more static typing and docstring improvements
* Fix extension loading
* Palette docstrings
---------
Co-authored-by: ppphp <kevinniub@gmail.com>
2023-09-04 13:29:06 +00:00
|
|
|
var _tab_align := TabBar.ALIGNMENT_CENTER
|
|
|
|
var _tabs_visible := true
|
|
|
|
var _use_hidden_tabs_for_min_size := false
|
2024-02-18 17:47:21 +00:00
|
|
|
var _hide_single_tab := false
|
Port to Godot 4 (#900)
* Initial conversion
* Hide some dialogs
* Update addons
* Fix errors in scripts
Temporarily commented out adding new file import types and certain Control methods that are not available in the Window class, such as get_global_mouse_position()
* Update shaders
* Fix some more errors and signals, rename "pressed" to "button_pressed"
* Even more error fixes and renaming corrections
* Fixed more errors, Pixelorama almost runs
* Update ValueSlider.gd
* Remove lock() and unlock(), more ImageTexture.create_from_image() static usage
* More static function using
* Re-add some of the dialog signals, fix window transparency
* Change instances of popup_hide to visibility_changed
* More more errors and warnings
* Fix more errors and warnings
* Get rid of errors in the output when opening Pixelorama in Godot
* Properly connect most signals without using strings
* Fix some scenes
* Don't load Main.tscn
* Emit signals directly instead of using strings
* Fix Keychain menu nodes
* Get rid of self. on most instances, as setters and getters are now always called
* Some more static typing
* Disable texture filters
* Fix zooming
* Fix int as enum warnings
* Fix tools and rename doubleclick to double_click
* Update tool scenes
* Fix tabs
* Fix create new image
* Use static typing on flood fill to speed it up
* Update static-checks.yml
* Reverts #729 for a speedup, hopefully the bug won't get re-introduced
* Fix TransparentChecker warning
* Re-add Default template
* Fix 3D cels
* Fix rotation
Project converted bug. Should be fixed by https://github.com/godotengine/godot/pull/79264
* Fix UITransparency alignment issue, thanks Variable
* Add missing OptionButton items
Hopefully that should be all of them
* Fix the appearance of CollapsibleContainer
* Change instances of world to world_3d
* Fix tool button backgrounds
* Fix Splash dialog
* Fix brush selection
* Update Main.gd
* Fix About Dialog
* Fix more zooming issues
* Fix canvas preview zooming
* Use signals for queue_redraw on project change
* Fix layer button's look
* Fix gradients
* Some gradient fixes and code cleanups, dithering is still broken
* Fix bucket
* Fix the rest of the undo_redo.add_(un)do_method() cases
* Fix guides
* Fix guide text
* Some small changes in Main
* Update Tools.gd
* Fix palette importing
* Get rid of TODOGODOT4s
* Fix the rest of the dialogs
* Update the rest of the scenes
* Fix onion skinning and frame tag dialogs
* Fix file brushes being imported twice
* Fix palette swatch crashing on double click
* Use nearest filter for some of the windows
* Remove old .tres font files
* Fix language switching
* Get rid of Keychain.action_get_first_key() on the extra shortcuts of tools
* Get rid of Keychain.MenuInputActions and directly set shortcuts to the menu items
This temporarily removes echoing support for undo and redo, this will be re-added once https://github.com/godotengine/godot/pull/36493 or https://github.com/godotengine/godot/pull/64317 is merged.
* Clean shortcut-related duplicate code in TopMenuContainer
* Remove DroidSansFallback now that system fonts can be used as fallback
* Remove 3.x settings from project.godot
* Format
* Format gdgifexporter
* Reset Keychain to its original state
* Remove textures from the dark and gray themes
* Remove all textures from the dark theme
* Better static typing in DrawingAlgos
* Use Vector2i for project size
* [Risky commit] Use Vector2i instead of Vector2 for tools
I tested it and everything seems to be working the same as before, but more testing would be appreciated.
* Format after previous commit
* Fix line angle constraint being rotated 180 degrees
This is not a regression from the previous commit(s), Godot 4 probably reversed the logic of `angle_to_point()`.
* Fix input map action not found errors when pressing Shift or Control
* Make AnimatePanel bigger, add spring interpolation
* Fix some layouts/extensions/preferences loading errors
* Fix dithering
* Update layout resources
Probably doesn't change anything at all, but I suppose it might be a good thing to do
* Small changes
* Disable filter in ResizeCanvas dialog
* Fix some preferences default button states
* Fix tile mode always having masking on
* Use integers in tile mode
* Fix checkboxes in preferences not working
* More statically typed arrays!
No need to have these # Array of X comments anymore!
* Fix "apply all" for multiple preview dialogs
* Update theme.tres
* Add HeaderSmall theme type variation
* Fix dynamics buttons
* Don't allow sub-zero zoom values
* Let zoom_out_max always remain Vector2(0.01, 0.01)
This fixes zooming on large canvases
* Bump version to v1.0-dev
* Fix ambient light not working on 3D cels
* Fix .obj loading
* Don't allow greater than max values in the zoom slider
* Set maximum zoom value to always be (500, 500)
* Set zoom slider minimum value to 1
* Some UI changes, mostly related to buttons and the timeline
* Change window titles to what they were before
* [COMPATIBILITY BROKEN WITH v0.x] Fix loading 3D cels
* Avoid changing Cel3DObject's file_path if it's the same
* Make preferences window bigger
* Fix png exporting
* Fix reference image initial size and filter setting
* Fix perspective line reverse scaling on zoom and facing 180 degrees away from cursor
* Format and some linting
* Remove most Images from the rest of the themes
* Remove all textures from all themes
* Fix drawing when the mouse gets released outside the canvas boundaries
* Format Keychain
* Implement #890
* Fix recorder
* Fix layout deletion
* Better static typing and fix empty_clicked signal-connected methods not having arguments
* Fix layout and extension directory creation if they don't already exist
* Change all instances of "HTML5" to "Web"
OS.get_name() now returns "Web" instead of "HTML5" in Godot 4
* Fix JavaScript detection
Opening files in the Web version does not yet work for some reason
* Fix formatting
* Fix lint errors
* Remove unneeded lines from rotation shaders
* Clean some rotation shader related code
* Remove ErrorManager from #891, as it's no longer needed in Godot 4
* Some docstrings
* More Vector2i and Recti replacing their float counterparts
* Remove the hardcoded shortcut from ValueSlider
Note that the brush size shortcut may not change properly because Keychain isn't updated to support Godot 4's input map properly yet.
* Fix bugs from the rebase, integer zooming is currently broken
* Format
* Fix bug where some imported images would fail to load when using smart slice
* Fix integer zooming (I think)
* Fix errors after #898
* Fix some UI issues with PreviewDialog
* Use ctrl/command instead of just ctrl in the shortcuts of the InputMap - gets rid of the need for _use_osx_shortcuts() in Main.gd
* Update Keychain and addons/README.md
* Update CI to Godot 4.1.1 (probably will not work)
* Remove XDGDataPaths.gd
* Make windows non-exclusive
* Attempt to fix macOS CI
* Attempt to fix CI
* Attempt to fix CI
* Minor fix in the dark theme, more will follow
* Silence enumerator/integer warning
* Attempt to fix macOS CI
* Another attempt to fix macOS CI
* Attempt to fix Windows & macOS CI
* fix: Recorder directory create (#903)
* Update Keychain so that the brush size shortcuts can be changed
This update generally lets users use modifier buttons (control, alt, shift, meta) with mouse buttons
* Change OSX to macOS
* Detect if multi-threading is enabled when exporting gifs
* Fix color picker not working on the top color mode
* Make some public methods private in Export.gd
* Remove Global.window_title variable
* Fix frame UI in the timeline breaking after 100 frames
* Static typing improvements for the timeline
* Better static typing for grids
* Fix typo
* Fix pixel grid not appearing
* Move preference updating code to Global using setters
This should make the code a bit more readable, as the logic for each property update can be found directly under the variable declaration, and not hidden in PreferencesDialog's preference_update() method. This also allows for changing these properties outside the preferences, if that will ever be needed. In theory it's also faster as we don't have to do all these string comparisons anymore, but I doubt this will be noticeable in practice.
* Remove RestoreDefaultButton.tscn
* Implement changing font size in the preferences
* Resize HeaderSmall font size along with the default font size
* A step towards fixing image loading in the Web version
Doesn't completely fix the issue, it requires a fix from Godot's side as well
* Implement missing input event actions for buttons
TODO: Add default shortcuts
* Do not change language and theme if they are already the defaults
Reduces the initial loading time a bit
* Remove update_hint_tooltips() as it's no longer needed, only keep it for tools
This was needed in order for hint tooltips to be successfully translated while taking the shortcuts into account. Godot 4 already it correctly for us now. Tools still need it because they contain multiple shortcut data in their tooltips.
* Change ExportDialog's PathDialog's file mode to be "open directory" and make them bigger
* Fix Vector2i + Vector2 errors in grid center snapping
* Update tooltips when the shortcut profile changes
* Fix copy-paste mistake
* Update tooltips during startup if the shortcut profile is not the default
* Fix gif warning label size in ExportDialog
* Fix BBCode in ExportDialog
* Fix some Godot 4.2 warnings
* Some CI fixes
* Static typing improvements and more inline functions
* Format
* Even more static typing, inline methods, docstrings etc
* Some more static typing improvements and inline setters
* Remove unneeded project type specifying
* Fix splash dialog error
* Fix enumerator warning
* Don't preload the font in the rules and guides
* Fix some integer division warnings
Sometimes we indeed need them to be floats
* Change some Rect2s to Rect2is
* Minor static typing improvements
* Update README, CHANGELOG, Translations
* Only load translation files when needed, reduces loading time a bit
* Update Keychain so it doesn't load languages during startup
* Lazy load all tool scenes, breaks compatibility with the extension API
Decreases initial loading time
* Format
* Very minor loading time speedups
* Remove unneeded project type specifying
* Even more static typing and docstring improvements
* Fix extension loading
* Palette docstrings
---------
Co-authored-by: ppphp <kevinniub@gmail.com>
2023-09-04 13:29:06 +00:00
|
|
|
var _current_panel_index := 0
|
|
|
|
var _current_split_index := 0
|
|
|
|
var _children_names := {}
|
|
|
|
var _layout_dirty := false
|
|
|
|
|
|
|
|
|
|
|
|
func _init() -> void:
|
|
|
|
child_entered_tree.connect(_child_entered_tree)
|
|
|
|
child_exiting_tree.connect(_child_exiting_tree)
|
2022-01-29 22:47:25 +00:00
|
|
|
|
|
|
|
|
|
|
|
func _ready() -> void:
|
|
|
|
set_process_input(false)
|
|
|
|
_panel_container.name = "_panel_container"
|
Port to Godot 4 (#900)
* Initial conversion
* Hide some dialogs
* Update addons
* Fix errors in scripts
Temporarily commented out adding new file import types and certain Control methods that are not available in the Window class, such as get_global_mouse_position()
* Update shaders
* Fix some more errors and signals, rename "pressed" to "button_pressed"
* Even more error fixes and renaming corrections
* Fixed more errors, Pixelorama almost runs
* Update ValueSlider.gd
* Remove lock() and unlock(), more ImageTexture.create_from_image() static usage
* More static function using
* Re-add some of the dialog signals, fix window transparency
* Change instances of popup_hide to visibility_changed
* More more errors and warnings
* Fix more errors and warnings
* Get rid of errors in the output when opening Pixelorama in Godot
* Properly connect most signals without using strings
* Fix some scenes
* Don't load Main.tscn
* Emit signals directly instead of using strings
* Fix Keychain menu nodes
* Get rid of self. on most instances, as setters and getters are now always called
* Some more static typing
* Disable texture filters
* Fix zooming
* Fix int as enum warnings
* Fix tools and rename doubleclick to double_click
* Update tool scenes
* Fix tabs
* Fix create new image
* Use static typing on flood fill to speed it up
* Update static-checks.yml
* Reverts #729 for a speedup, hopefully the bug won't get re-introduced
* Fix TransparentChecker warning
* Re-add Default template
* Fix 3D cels
* Fix rotation
Project converted bug. Should be fixed by https://github.com/godotengine/godot/pull/79264
* Fix UITransparency alignment issue, thanks Variable
* Add missing OptionButton items
Hopefully that should be all of them
* Fix the appearance of CollapsibleContainer
* Change instances of world to world_3d
* Fix tool button backgrounds
* Fix Splash dialog
* Fix brush selection
* Update Main.gd
* Fix About Dialog
* Fix more zooming issues
* Fix canvas preview zooming
* Use signals for queue_redraw on project change
* Fix layer button's look
* Fix gradients
* Some gradient fixes and code cleanups, dithering is still broken
* Fix bucket
* Fix the rest of the undo_redo.add_(un)do_method() cases
* Fix guides
* Fix guide text
* Some small changes in Main
* Update Tools.gd
* Fix palette importing
* Get rid of TODOGODOT4s
* Fix the rest of the dialogs
* Update the rest of the scenes
* Fix onion skinning and frame tag dialogs
* Fix file brushes being imported twice
* Fix palette swatch crashing on double click
* Use nearest filter for some of the windows
* Remove old .tres font files
* Fix language switching
* Get rid of Keychain.action_get_first_key() on the extra shortcuts of tools
* Get rid of Keychain.MenuInputActions and directly set shortcuts to the menu items
This temporarily removes echoing support for undo and redo, this will be re-added once https://github.com/godotengine/godot/pull/36493 or https://github.com/godotengine/godot/pull/64317 is merged.
* Clean shortcut-related duplicate code in TopMenuContainer
* Remove DroidSansFallback now that system fonts can be used as fallback
* Remove 3.x settings from project.godot
* Format
* Format gdgifexporter
* Reset Keychain to its original state
* Remove textures from the dark and gray themes
* Remove all textures from the dark theme
* Better static typing in DrawingAlgos
* Use Vector2i for project size
* [Risky commit] Use Vector2i instead of Vector2 for tools
I tested it and everything seems to be working the same as before, but more testing would be appreciated.
* Format after previous commit
* Fix line angle constraint being rotated 180 degrees
This is not a regression from the previous commit(s), Godot 4 probably reversed the logic of `angle_to_point()`.
* Fix input map action not found errors when pressing Shift or Control
* Make AnimatePanel bigger, add spring interpolation
* Fix some layouts/extensions/preferences loading errors
* Fix dithering
* Update layout resources
Probably doesn't change anything at all, but I suppose it might be a good thing to do
* Small changes
* Disable filter in ResizeCanvas dialog
* Fix some preferences default button states
* Fix tile mode always having masking on
* Use integers in tile mode
* Fix checkboxes in preferences not working
* More statically typed arrays!
No need to have these # Array of X comments anymore!
* Fix "apply all" for multiple preview dialogs
* Update theme.tres
* Add HeaderSmall theme type variation
* Fix dynamics buttons
* Don't allow sub-zero zoom values
* Let zoom_out_max always remain Vector2(0.01, 0.01)
This fixes zooming on large canvases
* Bump version to v1.0-dev
* Fix ambient light not working on 3D cels
* Fix .obj loading
* Don't allow greater than max values in the zoom slider
* Set maximum zoom value to always be (500, 500)
* Set zoom slider minimum value to 1
* Some UI changes, mostly related to buttons and the timeline
* Change window titles to what they were before
* [COMPATIBILITY BROKEN WITH v0.x] Fix loading 3D cels
* Avoid changing Cel3DObject's file_path if it's the same
* Make preferences window bigger
* Fix png exporting
* Fix reference image initial size and filter setting
* Fix perspective line reverse scaling on zoom and facing 180 degrees away from cursor
* Format and some linting
* Remove most Images from the rest of the themes
* Remove all textures from all themes
* Fix drawing when the mouse gets released outside the canvas boundaries
* Format Keychain
* Implement #890
* Fix recorder
* Fix layout deletion
* Better static typing and fix empty_clicked signal-connected methods not having arguments
* Fix layout and extension directory creation if they don't already exist
* Change all instances of "HTML5" to "Web"
OS.get_name() now returns "Web" instead of "HTML5" in Godot 4
* Fix JavaScript detection
Opening files in the Web version does not yet work for some reason
* Fix formatting
* Fix lint errors
* Remove unneeded lines from rotation shaders
* Clean some rotation shader related code
* Remove ErrorManager from #891, as it's no longer needed in Godot 4
* Some docstrings
* More Vector2i and Recti replacing their float counterparts
* Remove the hardcoded shortcut from ValueSlider
Note that the brush size shortcut may not change properly because Keychain isn't updated to support Godot 4's input map properly yet.
* Fix bugs from the rebase, integer zooming is currently broken
* Format
* Fix bug where some imported images would fail to load when using smart slice
* Fix integer zooming (I think)
* Fix errors after #898
* Fix some UI issues with PreviewDialog
* Use ctrl/command instead of just ctrl in the shortcuts of the InputMap - gets rid of the need for _use_osx_shortcuts() in Main.gd
* Update Keychain and addons/README.md
* Update CI to Godot 4.1.1 (probably will not work)
* Remove XDGDataPaths.gd
* Make windows non-exclusive
* Attempt to fix macOS CI
* Attempt to fix CI
* Attempt to fix CI
* Minor fix in the dark theme, more will follow
* Silence enumerator/integer warning
* Attempt to fix macOS CI
* Another attempt to fix macOS CI
* Attempt to fix Windows & macOS CI
* fix: Recorder directory create (#903)
* Update Keychain so that the brush size shortcuts can be changed
This update generally lets users use modifier buttons (control, alt, shift, meta) with mouse buttons
* Change OSX to macOS
* Detect if multi-threading is enabled when exporting gifs
* Fix color picker not working on the top color mode
* Make some public methods private in Export.gd
* Remove Global.window_title variable
* Fix frame UI in the timeline breaking after 100 frames
* Static typing improvements for the timeline
* Better static typing for grids
* Fix typo
* Fix pixel grid not appearing
* Move preference updating code to Global using setters
This should make the code a bit more readable, as the logic for each property update can be found directly under the variable declaration, and not hidden in PreferencesDialog's preference_update() method. This also allows for changing these properties outside the preferences, if that will ever be needed. In theory it's also faster as we don't have to do all these string comparisons anymore, but I doubt this will be noticeable in practice.
* Remove RestoreDefaultButton.tscn
* Implement changing font size in the preferences
* Resize HeaderSmall font size along with the default font size
* A step towards fixing image loading in the Web version
Doesn't completely fix the issue, it requires a fix from Godot's side as well
* Implement missing input event actions for buttons
TODO: Add default shortcuts
* Do not change language and theme if they are already the defaults
Reduces the initial loading time a bit
* Remove update_hint_tooltips() as it's no longer needed, only keep it for tools
This was needed in order for hint tooltips to be successfully translated while taking the shortcuts into account. Godot 4 already it correctly for us now. Tools still need it because they contain multiple shortcut data in their tooltips.
* Change ExportDialog's PathDialog's file mode to be "open directory" and make them bigger
* Fix Vector2i + Vector2 errors in grid center snapping
* Update tooltips when the shortcut profile changes
* Fix copy-paste mistake
* Update tooltips during startup if the shortcut profile is not the default
* Fix gif warning label size in ExportDialog
* Fix BBCode in ExportDialog
* Fix some Godot 4.2 warnings
* Some CI fixes
* Static typing improvements and more inline functions
* Format
* Even more static typing, inline methods, docstrings etc
* Some more static typing improvements and inline setters
* Remove unneeded project type specifying
* Fix splash dialog error
* Fix enumerator warning
* Don't preload the font in the rules and guides
* Fix some integer division warnings
Sometimes we indeed need them to be floats
* Change some Rect2s to Rect2is
* Minor static typing improvements
* Update README, CHANGELOG, Translations
* Only load translation files when needed, reduces loading time a bit
* Update Keychain so it doesn't load languages during startup
* Lazy load all tool scenes, breaks compatibility with the extension API
Decreases initial loading time
* Format
* Very minor loading time speedups
* Remove unneeded project type specifying
* Even more static typing and docstring improvements
* Fix extension loading
* Palette docstrings
---------
Co-authored-by: ppphp <kevinniub@gmail.com>
2023-09-04 13:29:06 +00:00
|
|
|
add_child(_panel_container)
|
2022-01-29 22:47:25 +00:00
|
|
|
move_child(_panel_container, 0)
|
|
|
|
_split_container.name = "_split_container"
|
|
|
|
_split_container.mouse_filter = MOUSE_FILTER_PASS
|
|
|
|
_panel_container.add_child(_split_container)
|
2024-10-11 09:13:13 +00:00
|
|
|
_windows_container.name = "_windows_container"
|
|
|
|
get_parent().call_deferred("add_child", _windows_container)
|
2022-01-29 22:47:25 +00:00
|
|
|
|
|
|
|
_drag_n_drop_panel.name = "_drag_n_drop_panel"
|
|
|
|
_drag_n_drop_panel.mouse_filter = MOUSE_FILTER_PASS
|
|
|
|
_drag_n_drop_panel.visible = false
|
Port to Godot 4 (#900)
* Initial conversion
* Hide some dialogs
* Update addons
* Fix errors in scripts
Temporarily commented out adding new file import types and certain Control methods that are not available in the Window class, such as get_global_mouse_position()
* Update shaders
* Fix some more errors and signals, rename "pressed" to "button_pressed"
* Even more error fixes and renaming corrections
* Fixed more errors, Pixelorama almost runs
* Update ValueSlider.gd
* Remove lock() and unlock(), more ImageTexture.create_from_image() static usage
* More static function using
* Re-add some of the dialog signals, fix window transparency
* Change instances of popup_hide to visibility_changed
* More more errors and warnings
* Fix more errors and warnings
* Get rid of errors in the output when opening Pixelorama in Godot
* Properly connect most signals without using strings
* Fix some scenes
* Don't load Main.tscn
* Emit signals directly instead of using strings
* Fix Keychain menu nodes
* Get rid of self. on most instances, as setters and getters are now always called
* Some more static typing
* Disable texture filters
* Fix zooming
* Fix int as enum warnings
* Fix tools and rename doubleclick to double_click
* Update tool scenes
* Fix tabs
* Fix create new image
* Use static typing on flood fill to speed it up
* Update static-checks.yml
* Reverts #729 for a speedup, hopefully the bug won't get re-introduced
* Fix TransparentChecker warning
* Re-add Default template
* Fix 3D cels
* Fix rotation
Project converted bug. Should be fixed by https://github.com/godotengine/godot/pull/79264
* Fix UITransparency alignment issue, thanks Variable
* Add missing OptionButton items
Hopefully that should be all of them
* Fix the appearance of CollapsibleContainer
* Change instances of world to world_3d
* Fix tool button backgrounds
* Fix Splash dialog
* Fix brush selection
* Update Main.gd
* Fix About Dialog
* Fix more zooming issues
* Fix canvas preview zooming
* Use signals for queue_redraw on project change
* Fix layer button's look
* Fix gradients
* Some gradient fixes and code cleanups, dithering is still broken
* Fix bucket
* Fix the rest of the undo_redo.add_(un)do_method() cases
* Fix guides
* Fix guide text
* Some small changes in Main
* Update Tools.gd
* Fix palette importing
* Get rid of TODOGODOT4s
* Fix the rest of the dialogs
* Update the rest of the scenes
* Fix onion skinning and frame tag dialogs
* Fix file brushes being imported twice
* Fix palette swatch crashing on double click
* Use nearest filter for some of the windows
* Remove old .tres font files
* Fix language switching
* Get rid of Keychain.action_get_first_key() on the extra shortcuts of tools
* Get rid of Keychain.MenuInputActions and directly set shortcuts to the menu items
This temporarily removes echoing support for undo and redo, this will be re-added once https://github.com/godotengine/godot/pull/36493 or https://github.com/godotengine/godot/pull/64317 is merged.
* Clean shortcut-related duplicate code in TopMenuContainer
* Remove DroidSansFallback now that system fonts can be used as fallback
* Remove 3.x settings from project.godot
* Format
* Format gdgifexporter
* Reset Keychain to its original state
* Remove textures from the dark and gray themes
* Remove all textures from the dark theme
* Better static typing in DrawingAlgos
* Use Vector2i for project size
* [Risky commit] Use Vector2i instead of Vector2 for tools
I tested it and everything seems to be working the same as before, but more testing would be appreciated.
* Format after previous commit
* Fix line angle constraint being rotated 180 degrees
This is not a regression from the previous commit(s), Godot 4 probably reversed the logic of `angle_to_point()`.
* Fix input map action not found errors when pressing Shift or Control
* Make AnimatePanel bigger, add spring interpolation
* Fix some layouts/extensions/preferences loading errors
* Fix dithering
* Update layout resources
Probably doesn't change anything at all, but I suppose it might be a good thing to do
* Small changes
* Disable filter in ResizeCanvas dialog
* Fix some preferences default button states
* Fix tile mode always having masking on
* Use integers in tile mode
* Fix checkboxes in preferences not working
* More statically typed arrays!
No need to have these # Array of X comments anymore!
* Fix "apply all" for multiple preview dialogs
* Update theme.tres
* Add HeaderSmall theme type variation
* Fix dynamics buttons
* Don't allow sub-zero zoom values
* Let zoom_out_max always remain Vector2(0.01, 0.01)
This fixes zooming on large canvases
* Bump version to v1.0-dev
* Fix ambient light not working on 3D cels
* Fix .obj loading
* Don't allow greater than max values in the zoom slider
* Set maximum zoom value to always be (500, 500)
* Set zoom slider minimum value to 1
* Some UI changes, mostly related to buttons and the timeline
* Change window titles to what they were before
* [COMPATIBILITY BROKEN WITH v0.x] Fix loading 3D cels
* Avoid changing Cel3DObject's file_path if it's the same
* Make preferences window bigger
* Fix png exporting
* Fix reference image initial size and filter setting
* Fix perspective line reverse scaling on zoom and facing 180 degrees away from cursor
* Format and some linting
* Remove most Images from the rest of the themes
* Remove all textures from all themes
* Fix drawing when the mouse gets released outside the canvas boundaries
* Format Keychain
* Implement #890
* Fix recorder
* Fix layout deletion
* Better static typing and fix empty_clicked signal-connected methods not having arguments
* Fix layout and extension directory creation if they don't already exist
* Change all instances of "HTML5" to "Web"
OS.get_name() now returns "Web" instead of "HTML5" in Godot 4
* Fix JavaScript detection
Opening files in the Web version does not yet work for some reason
* Fix formatting
* Fix lint errors
* Remove unneeded lines from rotation shaders
* Clean some rotation shader related code
* Remove ErrorManager from #891, as it's no longer needed in Godot 4
* Some docstrings
* More Vector2i and Recti replacing their float counterparts
* Remove the hardcoded shortcut from ValueSlider
Note that the brush size shortcut may not change properly because Keychain isn't updated to support Godot 4's input map properly yet.
* Fix bugs from the rebase, integer zooming is currently broken
* Format
* Fix bug where some imported images would fail to load when using smart slice
* Fix integer zooming (I think)
* Fix errors after #898
* Fix some UI issues with PreviewDialog
* Use ctrl/command instead of just ctrl in the shortcuts of the InputMap - gets rid of the need for _use_osx_shortcuts() in Main.gd
* Update Keychain and addons/README.md
* Update CI to Godot 4.1.1 (probably will not work)
* Remove XDGDataPaths.gd
* Make windows non-exclusive
* Attempt to fix macOS CI
* Attempt to fix CI
* Attempt to fix CI
* Minor fix in the dark theme, more will follow
* Silence enumerator/integer warning
* Attempt to fix macOS CI
* Another attempt to fix macOS CI
* Attempt to fix Windows & macOS CI
* fix: Recorder directory create (#903)
* Update Keychain so that the brush size shortcuts can be changed
This update generally lets users use modifier buttons (control, alt, shift, meta) with mouse buttons
* Change OSX to macOS
* Detect if multi-threading is enabled when exporting gifs
* Fix color picker not working on the top color mode
* Make some public methods private in Export.gd
* Remove Global.window_title variable
* Fix frame UI in the timeline breaking after 100 frames
* Static typing improvements for the timeline
* Better static typing for grids
* Fix typo
* Fix pixel grid not appearing
* Move preference updating code to Global using setters
This should make the code a bit more readable, as the logic for each property update can be found directly under the variable declaration, and not hidden in PreferencesDialog's preference_update() method. This also allows for changing these properties outside the preferences, if that will ever be needed. In theory it's also faster as we don't have to do all these string comparisons anymore, but I doubt this will be noticeable in practice.
* Remove RestoreDefaultButton.tscn
* Implement changing font size in the preferences
* Resize HeaderSmall font size along with the default font size
* A step towards fixing image loading in the Web version
Doesn't completely fix the issue, it requires a fix from Godot's side as well
* Implement missing input event actions for buttons
TODO: Add default shortcuts
* Do not change language and theme if they are already the defaults
Reduces the initial loading time a bit
* Remove update_hint_tooltips() as it's no longer needed, only keep it for tools
This was needed in order for hint tooltips to be successfully translated while taking the shortcuts into account. Godot 4 already it correctly for us now. Tools still need it because they contain multiple shortcut data in their tooltips.
* Change ExportDialog's PathDialog's file mode to be "open directory" and make them bigger
* Fix Vector2i + Vector2 errors in grid center snapping
* Update tooltips when the shortcut profile changes
* Fix copy-paste mistake
* Update tooltips during startup if the shortcut profile is not the default
* Fix gif warning label size in ExportDialog
* Fix BBCode in ExportDialog
* Fix some Godot 4.2 warnings
* Some CI fixes
* Static typing improvements and more inline functions
* Format
* Even more static typing, inline methods, docstrings etc
* Some more static typing improvements and inline setters
* Remove unneeded project type specifying
* Fix splash dialog error
* Fix enumerator warning
* Don't preload the font in the rules and guides
* Fix some integer division warnings
Sometimes we indeed need them to be floats
* Change some Rect2s to Rect2is
* Minor static typing improvements
* Update README, CHANGELOG, Translations
* Only load translation files when needed, reduces loading time a bit
* Update Keychain so it doesn't load languages during startup
* Lazy load all tool scenes, breaks compatibility with the extension API
Decreases initial loading time
* Format
* Very minor loading time speedups
* Remove unneeded project type specifying
* Even more static typing and docstring improvements
* Fix extension loading
* Palette docstrings
---------
Co-authored-by: ppphp <kevinniub@gmail.com>
2023-09-04 13:29:06 +00:00
|
|
|
add_child(_drag_n_drop_panel)
|
2022-01-29 22:47:25 +00:00
|
|
|
|
|
|
|
if not _layout:
|
|
|
|
set_layout(null)
|
Port to Godot 4 (#900)
* Initial conversion
* Hide some dialogs
* Update addons
* Fix errors in scripts
Temporarily commented out adding new file import types and certain Control methods that are not available in the Window class, such as get_global_mouse_position()
* Update shaders
* Fix some more errors and signals, rename "pressed" to "button_pressed"
* Even more error fixes and renaming corrections
* Fixed more errors, Pixelorama almost runs
* Update ValueSlider.gd
* Remove lock() and unlock(), more ImageTexture.create_from_image() static usage
* More static function using
* Re-add some of the dialog signals, fix window transparency
* Change instances of popup_hide to visibility_changed
* More more errors and warnings
* Fix more errors and warnings
* Get rid of errors in the output when opening Pixelorama in Godot
* Properly connect most signals without using strings
* Fix some scenes
* Don't load Main.tscn
* Emit signals directly instead of using strings
* Fix Keychain menu nodes
* Get rid of self. on most instances, as setters and getters are now always called
* Some more static typing
* Disable texture filters
* Fix zooming
* Fix int as enum warnings
* Fix tools and rename doubleclick to double_click
* Update tool scenes
* Fix tabs
* Fix create new image
* Use static typing on flood fill to speed it up
* Update static-checks.yml
* Reverts #729 for a speedup, hopefully the bug won't get re-introduced
* Fix TransparentChecker warning
* Re-add Default template
* Fix 3D cels
* Fix rotation
Project converted bug. Should be fixed by https://github.com/godotengine/godot/pull/79264
* Fix UITransparency alignment issue, thanks Variable
* Add missing OptionButton items
Hopefully that should be all of them
* Fix the appearance of CollapsibleContainer
* Change instances of world to world_3d
* Fix tool button backgrounds
* Fix Splash dialog
* Fix brush selection
* Update Main.gd
* Fix About Dialog
* Fix more zooming issues
* Fix canvas preview zooming
* Use signals for queue_redraw on project change
* Fix layer button's look
* Fix gradients
* Some gradient fixes and code cleanups, dithering is still broken
* Fix bucket
* Fix the rest of the undo_redo.add_(un)do_method() cases
* Fix guides
* Fix guide text
* Some small changes in Main
* Update Tools.gd
* Fix palette importing
* Get rid of TODOGODOT4s
* Fix the rest of the dialogs
* Update the rest of the scenes
* Fix onion skinning and frame tag dialogs
* Fix file brushes being imported twice
* Fix palette swatch crashing on double click
* Use nearest filter for some of the windows
* Remove old .tres font files
* Fix language switching
* Get rid of Keychain.action_get_first_key() on the extra shortcuts of tools
* Get rid of Keychain.MenuInputActions and directly set shortcuts to the menu items
This temporarily removes echoing support for undo and redo, this will be re-added once https://github.com/godotengine/godot/pull/36493 or https://github.com/godotengine/godot/pull/64317 is merged.
* Clean shortcut-related duplicate code in TopMenuContainer
* Remove DroidSansFallback now that system fonts can be used as fallback
* Remove 3.x settings from project.godot
* Format
* Format gdgifexporter
* Reset Keychain to its original state
* Remove textures from the dark and gray themes
* Remove all textures from the dark theme
* Better static typing in DrawingAlgos
* Use Vector2i for project size
* [Risky commit] Use Vector2i instead of Vector2 for tools
I tested it and everything seems to be working the same as before, but more testing would be appreciated.
* Format after previous commit
* Fix line angle constraint being rotated 180 degrees
This is not a regression from the previous commit(s), Godot 4 probably reversed the logic of `angle_to_point()`.
* Fix input map action not found errors when pressing Shift or Control
* Make AnimatePanel bigger, add spring interpolation
* Fix some layouts/extensions/preferences loading errors
* Fix dithering
* Update layout resources
Probably doesn't change anything at all, but I suppose it might be a good thing to do
* Small changes
* Disable filter in ResizeCanvas dialog
* Fix some preferences default button states
* Fix tile mode always having masking on
* Use integers in tile mode
* Fix checkboxes in preferences not working
* More statically typed arrays!
No need to have these # Array of X comments anymore!
* Fix "apply all" for multiple preview dialogs
* Update theme.tres
* Add HeaderSmall theme type variation
* Fix dynamics buttons
* Don't allow sub-zero zoom values
* Let zoom_out_max always remain Vector2(0.01, 0.01)
This fixes zooming on large canvases
* Bump version to v1.0-dev
* Fix ambient light not working on 3D cels
* Fix .obj loading
* Don't allow greater than max values in the zoom slider
* Set maximum zoom value to always be (500, 500)
* Set zoom slider minimum value to 1
* Some UI changes, mostly related to buttons and the timeline
* Change window titles to what they were before
* [COMPATIBILITY BROKEN WITH v0.x] Fix loading 3D cels
* Avoid changing Cel3DObject's file_path if it's the same
* Make preferences window bigger
* Fix png exporting
* Fix reference image initial size and filter setting
* Fix perspective line reverse scaling on zoom and facing 180 degrees away from cursor
* Format and some linting
* Remove most Images from the rest of the themes
* Remove all textures from all themes
* Fix drawing when the mouse gets released outside the canvas boundaries
* Format Keychain
* Implement #890
* Fix recorder
* Fix layout deletion
* Better static typing and fix empty_clicked signal-connected methods not having arguments
* Fix layout and extension directory creation if they don't already exist
* Change all instances of "HTML5" to "Web"
OS.get_name() now returns "Web" instead of "HTML5" in Godot 4
* Fix JavaScript detection
Opening files in the Web version does not yet work for some reason
* Fix formatting
* Fix lint errors
* Remove unneeded lines from rotation shaders
* Clean some rotation shader related code
* Remove ErrorManager from #891, as it's no longer needed in Godot 4
* Some docstrings
* More Vector2i and Recti replacing their float counterparts
* Remove the hardcoded shortcut from ValueSlider
Note that the brush size shortcut may not change properly because Keychain isn't updated to support Godot 4's input map properly yet.
* Fix bugs from the rebase, integer zooming is currently broken
* Format
* Fix bug where some imported images would fail to load when using smart slice
* Fix integer zooming (I think)
* Fix errors after #898
* Fix some UI issues with PreviewDialog
* Use ctrl/command instead of just ctrl in the shortcuts of the InputMap - gets rid of the need for _use_osx_shortcuts() in Main.gd
* Update Keychain and addons/README.md
* Update CI to Godot 4.1.1 (probably will not work)
* Remove XDGDataPaths.gd
* Make windows non-exclusive
* Attempt to fix macOS CI
* Attempt to fix CI
* Attempt to fix CI
* Minor fix in the dark theme, more will follow
* Silence enumerator/integer warning
* Attempt to fix macOS CI
* Another attempt to fix macOS CI
* Attempt to fix Windows & macOS CI
* fix: Recorder directory create (#903)
* Update Keychain so that the brush size shortcuts can be changed
This update generally lets users use modifier buttons (control, alt, shift, meta) with mouse buttons
* Change OSX to macOS
* Detect if multi-threading is enabled when exporting gifs
* Fix color picker not working on the top color mode
* Make some public methods private in Export.gd
* Remove Global.window_title variable
* Fix frame UI in the timeline breaking after 100 frames
* Static typing improvements for the timeline
* Better static typing for grids
* Fix typo
* Fix pixel grid not appearing
* Move preference updating code to Global using setters
This should make the code a bit more readable, as the logic for each property update can be found directly under the variable declaration, and not hidden in PreferencesDialog's preference_update() method. This also allows for changing these properties outside the preferences, if that will ever be needed. In theory it's also faster as we don't have to do all these string comparisons anymore, but I doubt this will be noticeable in practice.
* Remove RestoreDefaultButton.tscn
* Implement changing font size in the preferences
* Resize HeaderSmall font size along with the default font size
* A step towards fixing image loading in the Web version
Doesn't completely fix the issue, it requires a fix from Godot's side as well
* Implement missing input event actions for buttons
TODO: Add default shortcuts
* Do not change language and theme if they are already the defaults
Reduces the initial loading time a bit
* Remove update_hint_tooltips() as it's no longer needed, only keep it for tools
This was needed in order for hint tooltips to be successfully translated while taking the shortcuts into account. Godot 4 already it correctly for us now. Tools still need it because they contain multiple shortcut data in their tooltips.
* Change ExportDialog's PathDialog's file mode to be "open directory" and make them bigger
* Fix Vector2i + Vector2 errors in grid center snapping
* Update tooltips when the shortcut profile changes
* Fix copy-paste mistake
* Update tooltips during startup if the shortcut profile is not the default
* Fix gif warning label size in ExportDialog
* Fix BBCode in ExportDialog
* Fix some Godot 4.2 warnings
* Some CI fixes
* Static typing improvements and more inline functions
* Format
* Even more static typing, inline methods, docstrings etc
* Some more static typing improvements and inline setters
* Remove unneeded project type specifying
* Fix splash dialog error
* Fix enumerator warning
* Don't preload the font in the rules and guides
* Fix some integer division warnings
Sometimes we indeed need them to be floats
* Change some Rect2s to Rect2is
* Minor static typing improvements
* Update README, CHANGELOG, Translations
* Only load translation files when needed, reduces loading time a bit
* Update Keychain so it doesn't load languages during startup
* Lazy load all tool scenes, breaks compatibility with the extension API
Decreases initial loading time
* Format
* Very minor loading time speedups
* Remove unneeded project type specifying
* Even more static typing and docstring improvements
* Fix extension loading
* Palette docstrings
---------
Co-authored-by: ppphp <kevinniub@gmail.com>
2023-09-04 13:29:06 +00:00
|
|
|
elif clone_layout_on_ready and not Engine.is_editor_hint():
|
2022-01-29 22:47:25 +00:00
|
|
|
set_layout(_layout.clone())
|
|
|
|
|
|
|
|
|
|
|
|
func _notification(what: int) -> void:
|
|
|
|
if what == NOTIFICATION_SORT_CHILDREN:
|
|
|
|
_resort()
|
|
|
|
elif (
|
|
|
|
what == NOTIFICATION_DRAG_BEGIN
|
|
|
|
and _can_handle_drag_data(get_viewport().gui_get_drag_data())
|
|
|
|
):
|
Port to Godot 4 (#900)
* Initial conversion
* Hide some dialogs
* Update addons
* Fix errors in scripts
Temporarily commented out adding new file import types and certain Control methods that are not available in the Window class, such as get_global_mouse_position()
* Update shaders
* Fix some more errors and signals, rename "pressed" to "button_pressed"
* Even more error fixes and renaming corrections
* Fixed more errors, Pixelorama almost runs
* Update ValueSlider.gd
* Remove lock() and unlock(), more ImageTexture.create_from_image() static usage
* More static function using
* Re-add some of the dialog signals, fix window transparency
* Change instances of popup_hide to visibility_changed
* More more errors and warnings
* Fix more errors and warnings
* Get rid of errors in the output when opening Pixelorama in Godot
* Properly connect most signals without using strings
* Fix some scenes
* Don't load Main.tscn
* Emit signals directly instead of using strings
* Fix Keychain menu nodes
* Get rid of self. on most instances, as setters and getters are now always called
* Some more static typing
* Disable texture filters
* Fix zooming
* Fix int as enum warnings
* Fix tools and rename doubleclick to double_click
* Update tool scenes
* Fix tabs
* Fix create new image
* Use static typing on flood fill to speed it up
* Update static-checks.yml
* Reverts #729 for a speedup, hopefully the bug won't get re-introduced
* Fix TransparentChecker warning
* Re-add Default template
* Fix 3D cels
* Fix rotation
Project converted bug. Should be fixed by https://github.com/godotengine/godot/pull/79264
* Fix UITransparency alignment issue, thanks Variable
* Add missing OptionButton items
Hopefully that should be all of them
* Fix the appearance of CollapsibleContainer
* Change instances of world to world_3d
* Fix tool button backgrounds
* Fix Splash dialog
* Fix brush selection
* Update Main.gd
* Fix About Dialog
* Fix more zooming issues
* Fix canvas preview zooming
* Use signals for queue_redraw on project change
* Fix layer button's look
* Fix gradients
* Some gradient fixes and code cleanups, dithering is still broken
* Fix bucket
* Fix the rest of the undo_redo.add_(un)do_method() cases
* Fix guides
* Fix guide text
* Some small changes in Main
* Update Tools.gd
* Fix palette importing
* Get rid of TODOGODOT4s
* Fix the rest of the dialogs
* Update the rest of the scenes
* Fix onion skinning and frame tag dialogs
* Fix file brushes being imported twice
* Fix palette swatch crashing on double click
* Use nearest filter for some of the windows
* Remove old .tres font files
* Fix language switching
* Get rid of Keychain.action_get_first_key() on the extra shortcuts of tools
* Get rid of Keychain.MenuInputActions and directly set shortcuts to the menu items
This temporarily removes echoing support for undo and redo, this will be re-added once https://github.com/godotengine/godot/pull/36493 or https://github.com/godotengine/godot/pull/64317 is merged.
* Clean shortcut-related duplicate code in TopMenuContainer
* Remove DroidSansFallback now that system fonts can be used as fallback
* Remove 3.x settings from project.godot
* Format
* Format gdgifexporter
* Reset Keychain to its original state
* Remove textures from the dark and gray themes
* Remove all textures from the dark theme
* Better static typing in DrawingAlgos
* Use Vector2i for project size
* [Risky commit] Use Vector2i instead of Vector2 for tools
I tested it and everything seems to be working the same as before, but more testing would be appreciated.
* Format after previous commit
* Fix line angle constraint being rotated 180 degrees
This is not a regression from the previous commit(s), Godot 4 probably reversed the logic of `angle_to_point()`.
* Fix input map action not found errors when pressing Shift or Control
* Make AnimatePanel bigger, add spring interpolation
* Fix some layouts/extensions/preferences loading errors
* Fix dithering
* Update layout resources
Probably doesn't change anything at all, but I suppose it might be a good thing to do
* Small changes
* Disable filter in ResizeCanvas dialog
* Fix some preferences default button states
* Fix tile mode always having masking on
* Use integers in tile mode
* Fix checkboxes in preferences not working
* More statically typed arrays!
No need to have these # Array of X comments anymore!
* Fix "apply all" for multiple preview dialogs
* Update theme.tres
* Add HeaderSmall theme type variation
* Fix dynamics buttons
* Don't allow sub-zero zoom values
* Let zoom_out_max always remain Vector2(0.01, 0.01)
This fixes zooming on large canvases
* Bump version to v1.0-dev
* Fix ambient light not working on 3D cels
* Fix .obj loading
* Don't allow greater than max values in the zoom slider
* Set maximum zoom value to always be (500, 500)
* Set zoom slider minimum value to 1
* Some UI changes, mostly related to buttons and the timeline
* Change window titles to what they were before
* [COMPATIBILITY BROKEN WITH v0.x] Fix loading 3D cels
* Avoid changing Cel3DObject's file_path if it's the same
* Make preferences window bigger
* Fix png exporting
* Fix reference image initial size and filter setting
* Fix perspective line reverse scaling on zoom and facing 180 degrees away from cursor
* Format and some linting
* Remove most Images from the rest of the themes
* Remove all textures from all themes
* Fix drawing when the mouse gets released outside the canvas boundaries
* Format Keychain
* Implement #890
* Fix recorder
* Fix layout deletion
* Better static typing and fix empty_clicked signal-connected methods not having arguments
* Fix layout and extension directory creation if they don't already exist
* Change all instances of "HTML5" to "Web"
OS.get_name() now returns "Web" instead of "HTML5" in Godot 4
* Fix JavaScript detection
Opening files in the Web version does not yet work for some reason
* Fix formatting
* Fix lint errors
* Remove unneeded lines from rotation shaders
* Clean some rotation shader related code
* Remove ErrorManager from #891, as it's no longer needed in Godot 4
* Some docstrings
* More Vector2i and Recti replacing their float counterparts
* Remove the hardcoded shortcut from ValueSlider
Note that the brush size shortcut may not change properly because Keychain isn't updated to support Godot 4's input map properly yet.
* Fix bugs from the rebase, integer zooming is currently broken
* Format
* Fix bug where some imported images would fail to load when using smart slice
* Fix integer zooming (I think)
* Fix errors after #898
* Fix some UI issues with PreviewDialog
* Use ctrl/command instead of just ctrl in the shortcuts of the InputMap - gets rid of the need for _use_osx_shortcuts() in Main.gd
* Update Keychain and addons/README.md
* Update CI to Godot 4.1.1 (probably will not work)
* Remove XDGDataPaths.gd
* Make windows non-exclusive
* Attempt to fix macOS CI
* Attempt to fix CI
* Attempt to fix CI
* Minor fix in the dark theme, more will follow
* Silence enumerator/integer warning
* Attempt to fix macOS CI
* Another attempt to fix macOS CI
* Attempt to fix Windows & macOS CI
* fix: Recorder directory create (#903)
* Update Keychain so that the brush size shortcuts can be changed
This update generally lets users use modifier buttons (control, alt, shift, meta) with mouse buttons
* Change OSX to macOS
* Detect if multi-threading is enabled when exporting gifs
* Fix color picker not working on the top color mode
* Make some public methods private in Export.gd
* Remove Global.window_title variable
* Fix frame UI in the timeline breaking after 100 frames
* Static typing improvements for the timeline
* Better static typing for grids
* Fix typo
* Fix pixel grid not appearing
* Move preference updating code to Global using setters
This should make the code a bit more readable, as the logic for each property update can be found directly under the variable declaration, and not hidden in PreferencesDialog's preference_update() method. This also allows for changing these properties outside the preferences, if that will ever be needed. In theory it's also faster as we don't have to do all these string comparisons anymore, but I doubt this will be noticeable in practice.
* Remove RestoreDefaultButton.tscn
* Implement changing font size in the preferences
* Resize HeaderSmall font size along with the default font size
* A step towards fixing image loading in the Web version
Doesn't completely fix the issue, it requires a fix from Godot's side as well
* Implement missing input event actions for buttons
TODO: Add default shortcuts
* Do not change language and theme if they are already the defaults
Reduces the initial loading time a bit
* Remove update_hint_tooltips() as it's no longer needed, only keep it for tools
This was needed in order for hint tooltips to be successfully translated while taking the shortcuts into account. Godot 4 already it correctly for us now. Tools still need it because they contain multiple shortcut data in their tooltips.
* Change ExportDialog's PathDialog's file mode to be "open directory" and make them bigger
* Fix Vector2i + Vector2 errors in grid center snapping
* Update tooltips when the shortcut profile changes
* Fix copy-paste mistake
* Update tooltips during startup if the shortcut profile is not the default
* Fix gif warning label size in ExportDialog
* Fix BBCode in ExportDialog
* Fix some Godot 4.2 warnings
* Some CI fixes
* Static typing improvements and more inline functions
* Format
* Even more static typing, inline methods, docstrings etc
* Some more static typing improvements and inline setters
* Remove unneeded project type specifying
* Fix splash dialog error
* Fix enumerator warning
* Don't preload the font in the rules and guides
* Fix some integer division warnings
Sometimes we indeed need them to be floats
* Change some Rect2s to Rect2is
* Minor static typing improvements
* Update README, CHANGELOG, Translations
* Only load translation files when needed, reduces loading time a bit
* Update Keychain so it doesn't load languages during startup
* Lazy load all tool scenes, breaks compatibility with the extension API
Decreases initial loading time
* Format
* Very minor loading time speedups
* Remove unneeded project type specifying
* Even more static typing and docstring improvements
* Fix extension loading
* Palette docstrings
---------
Co-authored-by: ppphp <kevinniub@gmail.com>
2023-09-04 13:29:06 +00:00
|
|
|
_drag_n_drop_panel.set_enabled(true, not _layout.root.is_empty())
|
2022-01-29 22:47:25 +00:00
|
|
|
set_process_input(true)
|
|
|
|
elif what == NOTIFICATION_DRAG_END:
|
2022-11-09 13:09:14 +00:00
|
|
|
_drag_n_drop_panel.set_enabled(false)
|
2022-01-29 22:47:25 +00:00
|
|
|
set_process_input(false)
|
|
|
|
|
|
|
|
|
|
|
|
func _input(event: InputEvent) -> void:
|
|
|
|
assert(get_viewport().gui_is_dragging(), "FIXME: should only be called when dragging")
|
|
|
|
if event is InputEventMouseMotion:
|
Port to Godot 4 (#900)
* Initial conversion
* Hide some dialogs
* Update addons
* Fix errors in scripts
Temporarily commented out adding new file import types and certain Control methods that are not available in the Window class, such as get_global_mouse_position()
* Update shaders
* Fix some more errors and signals, rename "pressed" to "button_pressed"
* Even more error fixes and renaming corrections
* Fixed more errors, Pixelorama almost runs
* Update ValueSlider.gd
* Remove lock() and unlock(), more ImageTexture.create_from_image() static usage
* More static function using
* Re-add some of the dialog signals, fix window transparency
* Change instances of popup_hide to visibility_changed
* More more errors and warnings
* Fix more errors and warnings
* Get rid of errors in the output when opening Pixelorama in Godot
* Properly connect most signals without using strings
* Fix some scenes
* Don't load Main.tscn
* Emit signals directly instead of using strings
* Fix Keychain menu nodes
* Get rid of self. on most instances, as setters and getters are now always called
* Some more static typing
* Disable texture filters
* Fix zooming
* Fix int as enum warnings
* Fix tools and rename doubleclick to double_click
* Update tool scenes
* Fix tabs
* Fix create new image
* Use static typing on flood fill to speed it up
* Update static-checks.yml
* Reverts #729 for a speedup, hopefully the bug won't get re-introduced
* Fix TransparentChecker warning
* Re-add Default template
* Fix 3D cels
* Fix rotation
Project converted bug. Should be fixed by https://github.com/godotengine/godot/pull/79264
* Fix UITransparency alignment issue, thanks Variable
* Add missing OptionButton items
Hopefully that should be all of them
* Fix the appearance of CollapsibleContainer
* Change instances of world to world_3d
* Fix tool button backgrounds
* Fix Splash dialog
* Fix brush selection
* Update Main.gd
* Fix About Dialog
* Fix more zooming issues
* Fix canvas preview zooming
* Use signals for queue_redraw on project change
* Fix layer button's look
* Fix gradients
* Some gradient fixes and code cleanups, dithering is still broken
* Fix bucket
* Fix the rest of the undo_redo.add_(un)do_method() cases
* Fix guides
* Fix guide text
* Some small changes in Main
* Update Tools.gd
* Fix palette importing
* Get rid of TODOGODOT4s
* Fix the rest of the dialogs
* Update the rest of the scenes
* Fix onion skinning and frame tag dialogs
* Fix file brushes being imported twice
* Fix palette swatch crashing on double click
* Use nearest filter for some of the windows
* Remove old .tres font files
* Fix language switching
* Get rid of Keychain.action_get_first_key() on the extra shortcuts of tools
* Get rid of Keychain.MenuInputActions and directly set shortcuts to the menu items
This temporarily removes echoing support for undo and redo, this will be re-added once https://github.com/godotengine/godot/pull/36493 or https://github.com/godotengine/godot/pull/64317 is merged.
* Clean shortcut-related duplicate code in TopMenuContainer
* Remove DroidSansFallback now that system fonts can be used as fallback
* Remove 3.x settings from project.godot
* Format
* Format gdgifexporter
* Reset Keychain to its original state
* Remove textures from the dark and gray themes
* Remove all textures from the dark theme
* Better static typing in DrawingAlgos
* Use Vector2i for project size
* [Risky commit] Use Vector2i instead of Vector2 for tools
I tested it and everything seems to be working the same as before, but more testing would be appreciated.
* Format after previous commit
* Fix line angle constraint being rotated 180 degrees
This is not a regression from the previous commit(s), Godot 4 probably reversed the logic of `angle_to_point()`.
* Fix input map action not found errors when pressing Shift or Control
* Make AnimatePanel bigger, add spring interpolation
* Fix some layouts/extensions/preferences loading errors
* Fix dithering
* Update layout resources
Probably doesn't change anything at all, but I suppose it might be a good thing to do
* Small changes
* Disable filter in ResizeCanvas dialog
* Fix some preferences default button states
* Fix tile mode always having masking on
* Use integers in tile mode
* Fix checkboxes in preferences not working
* More statically typed arrays!
No need to have these # Array of X comments anymore!
* Fix "apply all" for multiple preview dialogs
* Update theme.tres
* Add HeaderSmall theme type variation
* Fix dynamics buttons
* Don't allow sub-zero zoom values
* Let zoom_out_max always remain Vector2(0.01, 0.01)
This fixes zooming on large canvases
* Bump version to v1.0-dev
* Fix ambient light not working on 3D cels
* Fix .obj loading
* Don't allow greater than max values in the zoom slider
* Set maximum zoom value to always be (500, 500)
* Set zoom slider minimum value to 1
* Some UI changes, mostly related to buttons and the timeline
* Change window titles to what they were before
* [COMPATIBILITY BROKEN WITH v0.x] Fix loading 3D cels
* Avoid changing Cel3DObject's file_path if it's the same
* Make preferences window bigger
* Fix png exporting
* Fix reference image initial size and filter setting
* Fix perspective line reverse scaling on zoom and facing 180 degrees away from cursor
* Format and some linting
* Remove most Images from the rest of the themes
* Remove all textures from all themes
* Fix drawing when the mouse gets released outside the canvas boundaries
* Format Keychain
* Implement #890
* Fix recorder
* Fix layout deletion
* Better static typing and fix empty_clicked signal-connected methods not having arguments
* Fix layout and extension directory creation if they don't already exist
* Change all instances of "HTML5" to "Web"
OS.get_name() now returns "Web" instead of "HTML5" in Godot 4
* Fix JavaScript detection
Opening files in the Web version does not yet work for some reason
* Fix formatting
* Fix lint errors
* Remove unneeded lines from rotation shaders
* Clean some rotation shader related code
* Remove ErrorManager from #891, as it's no longer needed in Godot 4
* Some docstrings
* More Vector2i and Recti replacing their float counterparts
* Remove the hardcoded shortcut from ValueSlider
Note that the brush size shortcut may not change properly because Keychain isn't updated to support Godot 4's input map properly yet.
* Fix bugs from the rebase, integer zooming is currently broken
* Format
* Fix bug where some imported images would fail to load when using smart slice
* Fix integer zooming (I think)
* Fix errors after #898
* Fix some UI issues with PreviewDialog
* Use ctrl/command instead of just ctrl in the shortcuts of the InputMap - gets rid of the need for _use_osx_shortcuts() in Main.gd
* Update Keychain and addons/README.md
* Update CI to Godot 4.1.1 (probably will not work)
* Remove XDGDataPaths.gd
* Make windows non-exclusive
* Attempt to fix macOS CI
* Attempt to fix CI
* Attempt to fix CI
* Minor fix in the dark theme, more will follow
* Silence enumerator/integer warning
* Attempt to fix macOS CI
* Another attempt to fix macOS CI
* Attempt to fix Windows & macOS CI
* fix: Recorder directory create (#903)
* Update Keychain so that the brush size shortcuts can be changed
This update generally lets users use modifier buttons (control, alt, shift, meta) with mouse buttons
* Change OSX to macOS
* Detect if multi-threading is enabled when exporting gifs
* Fix color picker not working on the top color mode
* Make some public methods private in Export.gd
* Remove Global.window_title variable
* Fix frame UI in the timeline breaking after 100 frames
* Static typing improvements for the timeline
* Better static typing for grids
* Fix typo
* Fix pixel grid not appearing
* Move preference updating code to Global using setters
This should make the code a bit more readable, as the logic for each property update can be found directly under the variable declaration, and not hidden in PreferencesDialog's preference_update() method. This also allows for changing these properties outside the preferences, if that will ever be needed. In theory it's also faster as we don't have to do all these string comparisons anymore, but I doubt this will be noticeable in practice.
* Remove RestoreDefaultButton.tscn
* Implement changing font size in the preferences
* Resize HeaderSmall font size along with the default font size
* A step towards fixing image loading in the Web version
Doesn't completely fix the issue, it requires a fix from Godot's side as well
* Implement missing input event actions for buttons
TODO: Add default shortcuts
* Do not change language and theme if they are already the defaults
Reduces the initial loading time a bit
* Remove update_hint_tooltips() as it's no longer needed, only keep it for tools
This was needed in order for hint tooltips to be successfully translated while taking the shortcuts into account. Godot 4 already it correctly for us now. Tools still need it because they contain multiple shortcut data in their tooltips.
* Change ExportDialog's PathDialog's file mode to be "open directory" and make them bigger
* Fix Vector2i + Vector2 errors in grid center snapping
* Update tooltips when the shortcut profile changes
* Fix copy-paste mistake
* Update tooltips during startup if the shortcut profile is not the default
* Fix gif warning label size in ExportDialog
* Fix BBCode in ExportDialog
* Fix some Godot 4.2 warnings
* Some CI fixes
* Static typing improvements and more inline functions
* Format
* Even more static typing, inline methods, docstrings etc
* Some more static typing improvements and inline setters
* Remove unneeded project type specifying
* Fix splash dialog error
* Fix enumerator warning
* Don't preload the font in the rules and guides
* Fix some integer division warnings
Sometimes we indeed need them to be floats
* Change some Rect2s to Rect2is
* Minor static typing improvements
* Update README, CHANGELOG, Translations
* Only load translation files when needed, reduces loading time a bit
* Update Keychain so it doesn't load languages during startup
* Lazy load all tool scenes, breaks compatibility with the extension API
Decreases initial loading time
* Format
* Very minor loading time speedups
* Remove unneeded project type specifying
* Even more static typing and docstring improvements
* Fix extension loading
* Palette docstrings
---------
Co-authored-by: ppphp <kevinniub@gmail.com>
2023-09-04 13:29:06 +00:00
|
|
|
var local_position := get_local_mouse_position()
|
|
|
|
var panel: DockablePanel
|
2022-01-29 22:47:25 +00:00
|
|
|
for i in range(1, _panel_container.get_child_count()):
|
Port to Godot 4 (#900)
* Initial conversion
* Hide some dialogs
* Update addons
* Fix errors in scripts
Temporarily commented out adding new file import types and certain Control methods that are not available in the Window class, such as get_global_mouse_position()
* Update shaders
* Fix some more errors and signals, rename "pressed" to "button_pressed"
* Even more error fixes and renaming corrections
* Fixed more errors, Pixelorama almost runs
* Update ValueSlider.gd
* Remove lock() and unlock(), more ImageTexture.create_from_image() static usage
* More static function using
* Re-add some of the dialog signals, fix window transparency
* Change instances of popup_hide to visibility_changed
* More more errors and warnings
* Fix more errors and warnings
* Get rid of errors in the output when opening Pixelorama in Godot
* Properly connect most signals without using strings
* Fix some scenes
* Don't load Main.tscn
* Emit signals directly instead of using strings
* Fix Keychain menu nodes
* Get rid of self. on most instances, as setters and getters are now always called
* Some more static typing
* Disable texture filters
* Fix zooming
* Fix int as enum warnings
* Fix tools and rename doubleclick to double_click
* Update tool scenes
* Fix tabs
* Fix create new image
* Use static typing on flood fill to speed it up
* Update static-checks.yml
* Reverts #729 for a speedup, hopefully the bug won't get re-introduced
* Fix TransparentChecker warning
* Re-add Default template
* Fix 3D cels
* Fix rotation
Project converted bug. Should be fixed by https://github.com/godotengine/godot/pull/79264
* Fix UITransparency alignment issue, thanks Variable
* Add missing OptionButton items
Hopefully that should be all of them
* Fix the appearance of CollapsibleContainer
* Change instances of world to world_3d
* Fix tool button backgrounds
* Fix Splash dialog
* Fix brush selection
* Update Main.gd
* Fix About Dialog
* Fix more zooming issues
* Fix canvas preview zooming
* Use signals for queue_redraw on project change
* Fix layer button's look
* Fix gradients
* Some gradient fixes and code cleanups, dithering is still broken
* Fix bucket
* Fix the rest of the undo_redo.add_(un)do_method() cases
* Fix guides
* Fix guide text
* Some small changes in Main
* Update Tools.gd
* Fix palette importing
* Get rid of TODOGODOT4s
* Fix the rest of the dialogs
* Update the rest of the scenes
* Fix onion skinning and frame tag dialogs
* Fix file brushes being imported twice
* Fix palette swatch crashing on double click
* Use nearest filter for some of the windows
* Remove old .tres font files
* Fix language switching
* Get rid of Keychain.action_get_first_key() on the extra shortcuts of tools
* Get rid of Keychain.MenuInputActions and directly set shortcuts to the menu items
This temporarily removes echoing support for undo and redo, this will be re-added once https://github.com/godotengine/godot/pull/36493 or https://github.com/godotengine/godot/pull/64317 is merged.
* Clean shortcut-related duplicate code in TopMenuContainer
* Remove DroidSansFallback now that system fonts can be used as fallback
* Remove 3.x settings from project.godot
* Format
* Format gdgifexporter
* Reset Keychain to its original state
* Remove textures from the dark and gray themes
* Remove all textures from the dark theme
* Better static typing in DrawingAlgos
* Use Vector2i for project size
* [Risky commit] Use Vector2i instead of Vector2 for tools
I tested it and everything seems to be working the same as before, but more testing would be appreciated.
* Format after previous commit
* Fix line angle constraint being rotated 180 degrees
This is not a regression from the previous commit(s), Godot 4 probably reversed the logic of `angle_to_point()`.
* Fix input map action not found errors when pressing Shift or Control
* Make AnimatePanel bigger, add spring interpolation
* Fix some layouts/extensions/preferences loading errors
* Fix dithering
* Update layout resources
Probably doesn't change anything at all, but I suppose it might be a good thing to do
* Small changes
* Disable filter in ResizeCanvas dialog
* Fix some preferences default button states
* Fix tile mode always having masking on
* Use integers in tile mode
* Fix checkboxes in preferences not working
* More statically typed arrays!
No need to have these # Array of X comments anymore!
* Fix "apply all" for multiple preview dialogs
* Update theme.tres
* Add HeaderSmall theme type variation
* Fix dynamics buttons
* Don't allow sub-zero zoom values
* Let zoom_out_max always remain Vector2(0.01, 0.01)
This fixes zooming on large canvases
* Bump version to v1.0-dev
* Fix ambient light not working on 3D cels
* Fix .obj loading
* Don't allow greater than max values in the zoom slider
* Set maximum zoom value to always be (500, 500)
* Set zoom slider minimum value to 1
* Some UI changes, mostly related to buttons and the timeline
* Change window titles to what they were before
* [COMPATIBILITY BROKEN WITH v0.x] Fix loading 3D cels
* Avoid changing Cel3DObject's file_path if it's the same
* Make preferences window bigger
* Fix png exporting
* Fix reference image initial size and filter setting
* Fix perspective line reverse scaling on zoom and facing 180 degrees away from cursor
* Format and some linting
* Remove most Images from the rest of the themes
* Remove all textures from all themes
* Fix drawing when the mouse gets released outside the canvas boundaries
* Format Keychain
* Implement #890
* Fix recorder
* Fix layout deletion
* Better static typing and fix empty_clicked signal-connected methods not having arguments
* Fix layout and extension directory creation if they don't already exist
* Change all instances of "HTML5" to "Web"
OS.get_name() now returns "Web" instead of "HTML5" in Godot 4
* Fix JavaScript detection
Opening files in the Web version does not yet work for some reason
* Fix formatting
* Fix lint errors
* Remove unneeded lines from rotation shaders
* Clean some rotation shader related code
* Remove ErrorManager from #891, as it's no longer needed in Godot 4
* Some docstrings
* More Vector2i and Recti replacing their float counterparts
* Remove the hardcoded shortcut from ValueSlider
Note that the brush size shortcut may not change properly because Keychain isn't updated to support Godot 4's input map properly yet.
* Fix bugs from the rebase, integer zooming is currently broken
* Format
* Fix bug where some imported images would fail to load when using smart slice
* Fix integer zooming (I think)
* Fix errors after #898
* Fix some UI issues with PreviewDialog
* Use ctrl/command instead of just ctrl in the shortcuts of the InputMap - gets rid of the need for _use_osx_shortcuts() in Main.gd
* Update Keychain and addons/README.md
* Update CI to Godot 4.1.1 (probably will not work)
* Remove XDGDataPaths.gd
* Make windows non-exclusive
* Attempt to fix macOS CI
* Attempt to fix CI
* Attempt to fix CI
* Minor fix in the dark theme, more will follow
* Silence enumerator/integer warning
* Attempt to fix macOS CI
* Another attempt to fix macOS CI
* Attempt to fix Windows & macOS CI
* fix: Recorder directory create (#903)
* Update Keychain so that the brush size shortcuts can be changed
This update generally lets users use modifier buttons (control, alt, shift, meta) with mouse buttons
* Change OSX to macOS
* Detect if multi-threading is enabled when exporting gifs
* Fix color picker not working on the top color mode
* Make some public methods private in Export.gd
* Remove Global.window_title variable
* Fix frame UI in the timeline breaking after 100 frames
* Static typing improvements for the timeline
* Better static typing for grids
* Fix typo
* Fix pixel grid not appearing
* Move preference updating code to Global using setters
This should make the code a bit more readable, as the logic for each property update can be found directly under the variable declaration, and not hidden in PreferencesDialog's preference_update() method. This also allows for changing these properties outside the preferences, if that will ever be needed. In theory it's also faster as we don't have to do all these string comparisons anymore, but I doubt this will be noticeable in practice.
* Remove RestoreDefaultButton.tscn
* Implement changing font size in the preferences
* Resize HeaderSmall font size along with the default font size
* A step towards fixing image loading in the Web version
Doesn't completely fix the issue, it requires a fix from Godot's side as well
* Implement missing input event actions for buttons
TODO: Add default shortcuts
* Do not change language and theme if they are already the defaults
Reduces the initial loading time a bit
* Remove update_hint_tooltips() as it's no longer needed, only keep it for tools
This was needed in order for hint tooltips to be successfully translated while taking the shortcuts into account. Godot 4 already it correctly for us now. Tools still need it because they contain multiple shortcut data in their tooltips.
* Change ExportDialog's PathDialog's file mode to be "open directory" and make them bigger
* Fix Vector2i + Vector2 errors in grid center snapping
* Update tooltips when the shortcut profile changes
* Fix copy-paste mistake
* Update tooltips during startup if the shortcut profile is not the default
* Fix gif warning label size in ExportDialog
* Fix BBCode in ExportDialog
* Fix some Godot 4.2 warnings
* Some CI fixes
* Static typing improvements and more inline functions
* Format
* Even more static typing, inline methods, docstrings etc
* Some more static typing improvements and inline setters
* Remove unneeded project type specifying
* Fix splash dialog error
* Fix enumerator warning
* Don't preload the font in the rules and guides
* Fix some integer division warnings
Sometimes we indeed need them to be floats
* Change some Rect2s to Rect2is
* Minor static typing improvements
* Update README, CHANGELOG, Translations
* Only load translation files when needed, reduces loading time a bit
* Update Keychain so it doesn't load languages during startup
* Lazy load all tool scenes, breaks compatibility with the extension API
Decreases initial loading time
* Format
* Very minor loading time speedups
* Remove unneeded project type specifying
* Even more static typing and docstring improvements
* Fix extension loading
* Palette docstrings
---------
Co-authored-by: ppphp <kevinniub@gmail.com>
2023-09-04 13:29:06 +00:00
|
|
|
var p := _panel_container.get_child(i) as DockablePanel
|
2022-01-29 22:47:25 +00:00
|
|
|
if p.get_rect().has_point(local_position):
|
|
|
|
panel = p
|
|
|
|
break
|
|
|
|
_drag_panel = panel
|
|
|
|
if not panel:
|
|
|
|
return
|
|
|
|
fit_child_in_rect(_drag_n_drop_panel, panel.get_child_rect())
|
|
|
|
|
|
|
|
|
Port to Godot 4 (#900)
* Initial conversion
* Hide some dialogs
* Update addons
* Fix errors in scripts
Temporarily commented out adding new file import types and certain Control methods that are not available in the Window class, such as get_global_mouse_position()
* Update shaders
* Fix some more errors and signals, rename "pressed" to "button_pressed"
* Even more error fixes and renaming corrections
* Fixed more errors, Pixelorama almost runs
* Update ValueSlider.gd
* Remove lock() and unlock(), more ImageTexture.create_from_image() static usage
* More static function using
* Re-add some of the dialog signals, fix window transparency
* Change instances of popup_hide to visibility_changed
* More more errors and warnings
* Fix more errors and warnings
* Get rid of errors in the output when opening Pixelorama in Godot
* Properly connect most signals without using strings
* Fix some scenes
* Don't load Main.tscn
* Emit signals directly instead of using strings
* Fix Keychain menu nodes
* Get rid of self. on most instances, as setters and getters are now always called
* Some more static typing
* Disable texture filters
* Fix zooming
* Fix int as enum warnings
* Fix tools and rename doubleclick to double_click
* Update tool scenes
* Fix tabs
* Fix create new image
* Use static typing on flood fill to speed it up
* Update static-checks.yml
* Reverts #729 for a speedup, hopefully the bug won't get re-introduced
* Fix TransparentChecker warning
* Re-add Default template
* Fix 3D cels
* Fix rotation
Project converted bug. Should be fixed by https://github.com/godotengine/godot/pull/79264
* Fix UITransparency alignment issue, thanks Variable
* Add missing OptionButton items
Hopefully that should be all of them
* Fix the appearance of CollapsibleContainer
* Change instances of world to world_3d
* Fix tool button backgrounds
* Fix Splash dialog
* Fix brush selection
* Update Main.gd
* Fix About Dialog
* Fix more zooming issues
* Fix canvas preview zooming
* Use signals for queue_redraw on project change
* Fix layer button's look
* Fix gradients
* Some gradient fixes and code cleanups, dithering is still broken
* Fix bucket
* Fix the rest of the undo_redo.add_(un)do_method() cases
* Fix guides
* Fix guide text
* Some small changes in Main
* Update Tools.gd
* Fix palette importing
* Get rid of TODOGODOT4s
* Fix the rest of the dialogs
* Update the rest of the scenes
* Fix onion skinning and frame tag dialogs
* Fix file brushes being imported twice
* Fix palette swatch crashing on double click
* Use nearest filter for some of the windows
* Remove old .tres font files
* Fix language switching
* Get rid of Keychain.action_get_first_key() on the extra shortcuts of tools
* Get rid of Keychain.MenuInputActions and directly set shortcuts to the menu items
This temporarily removes echoing support for undo and redo, this will be re-added once https://github.com/godotengine/godot/pull/36493 or https://github.com/godotengine/godot/pull/64317 is merged.
* Clean shortcut-related duplicate code in TopMenuContainer
* Remove DroidSansFallback now that system fonts can be used as fallback
* Remove 3.x settings from project.godot
* Format
* Format gdgifexporter
* Reset Keychain to its original state
* Remove textures from the dark and gray themes
* Remove all textures from the dark theme
* Better static typing in DrawingAlgos
* Use Vector2i for project size
* [Risky commit] Use Vector2i instead of Vector2 for tools
I tested it and everything seems to be working the same as before, but more testing would be appreciated.
* Format after previous commit
* Fix line angle constraint being rotated 180 degrees
This is not a regression from the previous commit(s), Godot 4 probably reversed the logic of `angle_to_point()`.
* Fix input map action not found errors when pressing Shift or Control
* Make AnimatePanel bigger, add spring interpolation
* Fix some layouts/extensions/preferences loading errors
* Fix dithering
* Update layout resources
Probably doesn't change anything at all, but I suppose it might be a good thing to do
* Small changes
* Disable filter in ResizeCanvas dialog
* Fix some preferences default button states
* Fix tile mode always having masking on
* Use integers in tile mode
* Fix checkboxes in preferences not working
* More statically typed arrays!
No need to have these # Array of X comments anymore!
* Fix "apply all" for multiple preview dialogs
* Update theme.tres
* Add HeaderSmall theme type variation
* Fix dynamics buttons
* Don't allow sub-zero zoom values
* Let zoom_out_max always remain Vector2(0.01, 0.01)
This fixes zooming on large canvases
* Bump version to v1.0-dev
* Fix ambient light not working on 3D cels
* Fix .obj loading
* Don't allow greater than max values in the zoom slider
* Set maximum zoom value to always be (500, 500)
* Set zoom slider minimum value to 1
* Some UI changes, mostly related to buttons and the timeline
* Change window titles to what they were before
* [COMPATIBILITY BROKEN WITH v0.x] Fix loading 3D cels
* Avoid changing Cel3DObject's file_path if it's the same
* Make preferences window bigger
* Fix png exporting
* Fix reference image initial size and filter setting
* Fix perspective line reverse scaling on zoom and facing 180 degrees away from cursor
* Format and some linting
* Remove most Images from the rest of the themes
* Remove all textures from all themes
* Fix drawing when the mouse gets released outside the canvas boundaries
* Format Keychain
* Implement #890
* Fix recorder
* Fix layout deletion
* Better static typing and fix empty_clicked signal-connected methods not having arguments
* Fix layout and extension directory creation if they don't already exist
* Change all instances of "HTML5" to "Web"
OS.get_name() now returns "Web" instead of "HTML5" in Godot 4
* Fix JavaScript detection
Opening files in the Web version does not yet work for some reason
* Fix formatting
* Fix lint errors
* Remove unneeded lines from rotation shaders
* Clean some rotation shader related code
* Remove ErrorManager from #891, as it's no longer needed in Godot 4
* Some docstrings
* More Vector2i and Recti replacing their float counterparts
* Remove the hardcoded shortcut from ValueSlider
Note that the brush size shortcut may not change properly because Keychain isn't updated to support Godot 4's input map properly yet.
* Fix bugs from the rebase, integer zooming is currently broken
* Format
* Fix bug where some imported images would fail to load when using smart slice
* Fix integer zooming (I think)
* Fix errors after #898
* Fix some UI issues with PreviewDialog
* Use ctrl/command instead of just ctrl in the shortcuts of the InputMap - gets rid of the need for _use_osx_shortcuts() in Main.gd
* Update Keychain and addons/README.md
* Update CI to Godot 4.1.1 (probably will not work)
* Remove XDGDataPaths.gd
* Make windows non-exclusive
* Attempt to fix macOS CI
* Attempt to fix CI
* Attempt to fix CI
* Minor fix in the dark theme, more will follow
* Silence enumerator/integer warning
* Attempt to fix macOS CI
* Another attempt to fix macOS CI
* Attempt to fix Windows & macOS CI
* fix: Recorder directory create (#903)
* Update Keychain so that the brush size shortcuts can be changed
This update generally lets users use modifier buttons (control, alt, shift, meta) with mouse buttons
* Change OSX to macOS
* Detect if multi-threading is enabled when exporting gifs
* Fix color picker not working on the top color mode
* Make some public methods private in Export.gd
* Remove Global.window_title variable
* Fix frame UI in the timeline breaking after 100 frames
* Static typing improvements for the timeline
* Better static typing for grids
* Fix typo
* Fix pixel grid not appearing
* Move preference updating code to Global using setters
This should make the code a bit more readable, as the logic for each property update can be found directly under the variable declaration, and not hidden in PreferencesDialog's preference_update() method. This also allows for changing these properties outside the preferences, if that will ever be needed. In theory it's also faster as we don't have to do all these string comparisons anymore, but I doubt this will be noticeable in practice.
* Remove RestoreDefaultButton.tscn
* Implement changing font size in the preferences
* Resize HeaderSmall font size along with the default font size
* A step towards fixing image loading in the Web version
Doesn't completely fix the issue, it requires a fix from Godot's side as well
* Implement missing input event actions for buttons
TODO: Add default shortcuts
* Do not change language and theme if they are already the defaults
Reduces the initial loading time a bit
* Remove update_hint_tooltips() as it's no longer needed, only keep it for tools
This was needed in order for hint tooltips to be successfully translated while taking the shortcuts into account. Godot 4 already it correctly for us now. Tools still need it because they contain multiple shortcut data in their tooltips.
* Change ExportDialog's PathDialog's file mode to be "open directory" and make them bigger
* Fix Vector2i + Vector2 errors in grid center snapping
* Update tooltips when the shortcut profile changes
* Fix copy-paste mistake
* Update tooltips during startup if the shortcut profile is not the default
* Fix gif warning label size in ExportDialog
* Fix BBCode in ExportDialog
* Fix some Godot 4.2 warnings
* Some CI fixes
* Static typing improvements and more inline functions
* Format
* Even more static typing, inline methods, docstrings etc
* Some more static typing improvements and inline setters
* Remove unneeded project type specifying
* Fix splash dialog error
* Fix enumerator warning
* Don't preload the font in the rules and guides
* Fix some integer division warnings
Sometimes we indeed need them to be floats
* Change some Rect2s to Rect2is
* Minor static typing improvements
* Update README, CHANGELOG, Translations
* Only load translation files when needed, reduces loading time a bit
* Update Keychain so it doesn't load languages during startup
* Lazy load all tool scenes, breaks compatibility with the extension API
Decreases initial loading time
* Format
* Very minor loading time speedups
* Remove unneeded project type specifying
* Even more static typing and docstring improvements
* Fix extension loading
* Palette docstrings
---------
Co-authored-by: ppphp <kevinniub@gmail.com>
2023-09-04 13:29:06 +00:00
|
|
|
func _child_entered_tree(node: Node) -> void:
|
|
|
|
if node == _panel_container or node == _drag_n_drop_panel:
|
|
|
|
return
|
|
|
|
_drag_n_drop_panel.move_to_front()
|
2022-01-29 22:47:25 +00:00
|
|
|
_track_and_add_node(node)
|
|
|
|
|
|
|
|
|
Port to Godot 4 (#900)
* Initial conversion
* Hide some dialogs
* Update addons
* Fix errors in scripts
Temporarily commented out adding new file import types and certain Control methods that are not available in the Window class, such as get_global_mouse_position()
* Update shaders
* Fix some more errors and signals, rename "pressed" to "button_pressed"
* Even more error fixes and renaming corrections
* Fixed more errors, Pixelorama almost runs
* Update ValueSlider.gd
* Remove lock() and unlock(), more ImageTexture.create_from_image() static usage
* More static function using
* Re-add some of the dialog signals, fix window transparency
* Change instances of popup_hide to visibility_changed
* More more errors and warnings
* Fix more errors and warnings
* Get rid of errors in the output when opening Pixelorama in Godot
* Properly connect most signals without using strings
* Fix some scenes
* Don't load Main.tscn
* Emit signals directly instead of using strings
* Fix Keychain menu nodes
* Get rid of self. on most instances, as setters and getters are now always called
* Some more static typing
* Disable texture filters
* Fix zooming
* Fix int as enum warnings
* Fix tools and rename doubleclick to double_click
* Update tool scenes
* Fix tabs
* Fix create new image
* Use static typing on flood fill to speed it up
* Update static-checks.yml
* Reverts #729 for a speedup, hopefully the bug won't get re-introduced
* Fix TransparentChecker warning
* Re-add Default template
* Fix 3D cels
* Fix rotation
Project converted bug. Should be fixed by https://github.com/godotengine/godot/pull/79264
* Fix UITransparency alignment issue, thanks Variable
* Add missing OptionButton items
Hopefully that should be all of them
* Fix the appearance of CollapsibleContainer
* Change instances of world to world_3d
* Fix tool button backgrounds
* Fix Splash dialog
* Fix brush selection
* Update Main.gd
* Fix About Dialog
* Fix more zooming issues
* Fix canvas preview zooming
* Use signals for queue_redraw on project change
* Fix layer button's look
* Fix gradients
* Some gradient fixes and code cleanups, dithering is still broken
* Fix bucket
* Fix the rest of the undo_redo.add_(un)do_method() cases
* Fix guides
* Fix guide text
* Some small changes in Main
* Update Tools.gd
* Fix palette importing
* Get rid of TODOGODOT4s
* Fix the rest of the dialogs
* Update the rest of the scenes
* Fix onion skinning and frame tag dialogs
* Fix file brushes being imported twice
* Fix palette swatch crashing on double click
* Use nearest filter for some of the windows
* Remove old .tres font files
* Fix language switching
* Get rid of Keychain.action_get_first_key() on the extra shortcuts of tools
* Get rid of Keychain.MenuInputActions and directly set shortcuts to the menu items
This temporarily removes echoing support for undo and redo, this will be re-added once https://github.com/godotengine/godot/pull/36493 or https://github.com/godotengine/godot/pull/64317 is merged.
* Clean shortcut-related duplicate code in TopMenuContainer
* Remove DroidSansFallback now that system fonts can be used as fallback
* Remove 3.x settings from project.godot
* Format
* Format gdgifexporter
* Reset Keychain to its original state
* Remove textures from the dark and gray themes
* Remove all textures from the dark theme
* Better static typing in DrawingAlgos
* Use Vector2i for project size
* [Risky commit] Use Vector2i instead of Vector2 for tools
I tested it and everything seems to be working the same as before, but more testing would be appreciated.
* Format after previous commit
* Fix line angle constraint being rotated 180 degrees
This is not a regression from the previous commit(s), Godot 4 probably reversed the logic of `angle_to_point()`.
* Fix input map action not found errors when pressing Shift or Control
* Make AnimatePanel bigger, add spring interpolation
* Fix some layouts/extensions/preferences loading errors
* Fix dithering
* Update layout resources
Probably doesn't change anything at all, but I suppose it might be a good thing to do
* Small changes
* Disable filter in ResizeCanvas dialog
* Fix some preferences default button states
* Fix tile mode always having masking on
* Use integers in tile mode
* Fix checkboxes in preferences not working
* More statically typed arrays!
No need to have these # Array of X comments anymore!
* Fix "apply all" for multiple preview dialogs
* Update theme.tres
* Add HeaderSmall theme type variation
* Fix dynamics buttons
* Don't allow sub-zero zoom values
* Let zoom_out_max always remain Vector2(0.01, 0.01)
This fixes zooming on large canvases
* Bump version to v1.0-dev
* Fix ambient light not working on 3D cels
* Fix .obj loading
* Don't allow greater than max values in the zoom slider
* Set maximum zoom value to always be (500, 500)
* Set zoom slider minimum value to 1
* Some UI changes, mostly related to buttons and the timeline
* Change window titles to what they were before
* [COMPATIBILITY BROKEN WITH v0.x] Fix loading 3D cels
* Avoid changing Cel3DObject's file_path if it's the same
* Make preferences window bigger
* Fix png exporting
* Fix reference image initial size and filter setting
* Fix perspective line reverse scaling on zoom and facing 180 degrees away from cursor
* Format and some linting
* Remove most Images from the rest of the themes
* Remove all textures from all themes
* Fix drawing when the mouse gets released outside the canvas boundaries
* Format Keychain
* Implement #890
* Fix recorder
* Fix layout deletion
* Better static typing and fix empty_clicked signal-connected methods not having arguments
* Fix layout and extension directory creation if they don't already exist
* Change all instances of "HTML5" to "Web"
OS.get_name() now returns "Web" instead of "HTML5" in Godot 4
* Fix JavaScript detection
Opening files in the Web version does not yet work for some reason
* Fix formatting
* Fix lint errors
* Remove unneeded lines from rotation shaders
* Clean some rotation shader related code
* Remove ErrorManager from #891, as it's no longer needed in Godot 4
* Some docstrings
* More Vector2i and Recti replacing their float counterparts
* Remove the hardcoded shortcut from ValueSlider
Note that the brush size shortcut may not change properly because Keychain isn't updated to support Godot 4's input map properly yet.
* Fix bugs from the rebase, integer zooming is currently broken
* Format
* Fix bug where some imported images would fail to load when using smart slice
* Fix integer zooming (I think)
* Fix errors after #898
* Fix some UI issues with PreviewDialog
* Use ctrl/command instead of just ctrl in the shortcuts of the InputMap - gets rid of the need for _use_osx_shortcuts() in Main.gd
* Update Keychain and addons/README.md
* Update CI to Godot 4.1.1 (probably will not work)
* Remove XDGDataPaths.gd
* Make windows non-exclusive
* Attempt to fix macOS CI
* Attempt to fix CI
* Attempt to fix CI
* Minor fix in the dark theme, more will follow
* Silence enumerator/integer warning
* Attempt to fix macOS CI
* Another attempt to fix macOS CI
* Attempt to fix Windows & macOS CI
* fix: Recorder directory create (#903)
* Update Keychain so that the brush size shortcuts can be changed
This update generally lets users use modifier buttons (control, alt, shift, meta) with mouse buttons
* Change OSX to macOS
* Detect if multi-threading is enabled when exporting gifs
* Fix color picker not working on the top color mode
* Make some public methods private in Export.gd
* Remove Global.window_title variable
* Fix frame UI in the timeline breaking after 100 frames
* Static typing improvements for the timeline
* Better static typing for grids
* Fix typo
* Fix pixel grid not appearing
* Move preference updating code to Global using setters
This should make the code a bit more readable, as the logic for each property update can be found directly under the variable declaration, and not hidden in PreferencesDialog's preference_update() method. This also allows for changing these properties outside the preferences, if that will ever be needed. In theory it's also faster as we don't have to do all these string comparisons anymore, but I doubt this will be noticeable in practice.
* Remove RestoreDefaultButton.tscn
* Implement changing font size in the preferences
* Resize HeaderSmall font size along with the default font size
* A step towards fixing image loading in the Web version
Doesn't completely fix the issue, it requires a fix from Godot's side as well
* Implement missing input event actions for buttons
TODO: Add default shortcuts
* Do not change language and theme if they are already the defaults
Reduces the initial loading time a bit
* Remove update_hint_tooltips() as it's no longer needed, only keep it for tools
This was needed in order for hint tooltips to be successfully translated while taking the shortcuts into account. Godot 4 already it correctly for us now. Tools still need it because they contain multiple shortcut data in their tooltips.
* Change ExportDialog's PathDialog's file mode to be "open directory" and make them bigger
* Fix Vector2i + Vector2 errors in grid center snapping
* Update tooltips when the shortcut profile changes
* Fix copy-paste mistake
* Update tooltips during startup if the shortcut profile is not the default
* Fix gif warning label size in ExportDialog
* Fix BBCode in ExportDialog
* Fix some Godot 4.2 warnings
* Some CI fixes
* Static typing improvements and more inline functions
* Format
* Even more static typing, inline methods, docstrings etc
* Some more static typing improvements and inline setters
* Remove unneeded project type specifying
* Fix splash dialog error
* Fix enumerator warning
* Don't preload the font in the rules and guides
* Fix some integer division warnings
Sometimes we indeed need them to be floats
* Change some Rect2s to Rect2is
* Minor static typing improvements
* Update README, CHANGELOG, Translations
* Only load translation files when needed, reduces loading time a bit
* Update Keychain so it doesn't load languages during startup
* Lazy load all tool scenes, breaks compatibility with the extension API
Decreases initial loading time
* Format
* Very minor loading time speedups
* Remove unneeded project type specifying
* Even more static typing and docstring improvements
* Fix extension loading
* Palette docstrings
---------
Co-authored-by: ppphp <kevinniub@gmail.com>
2023-09-04 13:29:06 +00:00
|
|
|
func _child_exiting_tree(node: Node) -> void:
|
|
|
|
if node == _panel_container or node == _drag_n_drop_panel:
|
|
|
|
return
|
2022-01-29 22:47:25 +00:00
|
|
|
_untrack_node(node)
|
|
|
|
|
|
|
|
|
Port to Godot 4 (#900)
* Initial conversion
* Hide some dialogs
* Update addons
* Fix errors in scripts
Temporarily commented out adding new file import types and certain Control methods that are not available in the Window class, such as get_global_mouse_position()
* Update shaders
* Fix some more errors and signals, rename "pressed" to "button_pressed"
* Even more error fixes and renaming corrections
* Fixed more errors, Pixelorama almost runs
* Update ValueSlider.gd
* Remove lock() and unlock(), more ImageTexture.create_from_image() static usage
* More static function using
* Re-add some of the dialog signals, fix window transparency
* Change instances of popup_hide to visibility_changed
* More more errors and warnings
* Fix more errors and warnings
* Get rid of errors in the output when opening Pixelorama in Godot
* Properly connect most signals without using strings
* Fix some scenes
* Don't load Main.tscn
* Emit signals directly instead of using strings
* Fix Keychain menu nodes
* Get rid of self. on most instances, as setters and getters are now always called
* Some more static typing
* Disable texture filters
* Fix zooming
* Fix int as enum warnings
* Fix tools and rename doubleclick to double_click
* Update tool scenes
* Fix tabs
* Fix create new image
* Use static typing on flood fill to speed it up
* Update static-checks.yml
* Reverts #729 for a speedup, hopefully the bug won't get re-introduced
* Fix TransparentChecker warning
* Re-add Default template
* Fix 3D cels
* Fix rotation
Project converted bug. Should be fixed by https://github.com/godotengine/godot/pull/79264
* Fix UITransparency alignment issue, thanks Variable
* Add missing OptionButton items
Hopefully that should be all of them
* Fix the appearance of CollapsibleContainer
* Change instances of world to world_3d
* Fix tool button backgrounds
* Fix Splash dialog
* Fix brush selection
* Update Main.gd
* Fix About Dialog
* Fix more zooming issues
* Fix canvas preview zooming
* Use signals for queue_redraw on project change
* Fix layer button's look
* Fix gradients
* Some gradient fixes and code cleanups, dithering is still broken
* Fix bucket
* Fix the rest of the undo_redo.add_(un)do_method() cases
* Fix guides
* Fix guide text
* Some small changes in Main
* Update Tools.gd
* Fix palette importing
* Get rid of TODOGODOT4s
* Fix the rest of the dialogs
* Update the rest of the scenes
* Fix onion skinning and frame tag dialogs
* Fix file brushes being imported twice
* Fix palette swatch crashing on double click
* Use nearest filter for some of the windows
* Remove old .tres font files
* Fix language switching
* Get rid of Keychain.action_get_first_key() on the extra shortcuts of tools
* Get rid of Keychain.MenuInputActions and directly set shortcuts to the menu items
This temporarily removes echoing support for undo and redo, this will be re-added once https://github.com/godotengine/godot/pull/36493 or https://github.com/godotengine/godot/pull/64317 is merged.
* Clean shortcut-related duplicate code in TopMenuContainer
* Remove DroidSansFallback now that system fonts can be used as fallback
* Remove 3.x settings from project.godot
* Format
* Format gdgifexporter
* Reset Keychain to its original state
* Remove textures from the dark and gray themes
* Remove all textures from the dark theme
* Better static typing in DrawingAlgos
* Use Vector2i for project size
* [Risky commit] Use Vector2i instead of Vector2 for tools
I tested it and everything seems to be working the same as before, but more testing would be appreciated.
* Format after previous commit
* Fix line angle constraint being rotated 180 degrees
This is not a regression from the previous commit(s), Godot 4 probably reversed the logic of `angle_to_point()`.
* Fix input map action not found errors when pressing Shift or Control
* Make AnimatePanel bigger, add spring interpolation
* Fix some layouts/extensions/preferences loading errors
* Fix dithering
* Update layout resources
Probably doesn't change anything at all, but I suppose it might be a good thing to do
* Small changes
* Disable filter in ResizeCanvas dialog
* Fix some preferences default button states
* Fix tile mode always having masking on
* Use integers in tile mode
* Fix checkboxes in preferences not working
* More statically typed arrays!
No need to have these # Array of X comments anymore!
* Fix "apply all" for multiple preview dialogs
* Update theme.tres
* Add HeaderSmall theme type variation
* Fix dynamics buttons
* Don't allow sub-zero zoom values
* Let zoom_out_max always remain Vector2(0.01, 0.01)
This fixes zooming on large canvases
* Bump version to v1.0-dev
* Fix ambient light not working on 3D cels
* Fix .obj loading
* Don't allow greater than max values in the zoom slider
* Set maximum zoom value to always be (500, 500)
* Set zoom slider minimum value to 1
* Some UI changes, mostly related to buttons and the timeline
* Change window titles to what they were before
* [COMPATIBILITY BROKEN WITH v0.x] Fix loading 3D cels
* Avoid changing Cel3DObject's file_path if it's the same
* Make preferences window bigger
* Fix png exporting
* Fix reference image initial size and filter setting
* Fix perspective line reverse scaling on zoom and facing 180 degrees away from cursor
* Format and some linting
* Remove most Images from the rest of the themes
* Remove all textures from all themes
* Fix drawing when the mouse gets released outside the canvas boundaries
* Format Keychain
* Implement #890
* Fix recorder
* Fix layout deletion
* Better static typing and fix empty_clicked signal-connected methods not having arguments
* Fix layout and extension directory creation if they don't already exist
* Change all instances of "HTML5" to "Web"
OS.get_name() now returns "Web" instead of "HTML5" in Godot 4
* Fix JavaScript detection
Opening files in the Web version does not yet work for some reason
* Fix formatting
* Fix lint errors
* Remove unneeded lines from rotation shaders
* Clean some rotation shader related code
* Remove ErrorManager from #891, as it's no longer needed in Godot 4
* Some docstrings
* More Vector2i and Recti replacing their float counterparts
* Remove the hardcoded shortcut from ValueSlider
Note that the brush size shortcut may not change properly because Keychain isn't updated to support Godot 4's input map properly yet.
* Fix bugs from the rebase, integer zooming is currently broken
* Format
* Fix bug where some imported images would fail to load when using smart slice
* Fix integer zooming (I think)
* Fix errors after #898
* Fix some UI issues with PreviewDialog
* Use ctrl/command instead of just ctrl in the shortcuts of the InputMap - gets rid of the need for _use_osx_shortcuts() in Main.gd
* Update Keychain and addons/README.md
* Update CI to Godot 4.1.1 (probably will not work)
* Remove XDGDataPaths.gd
* Make windows non-exclusive
* Attempt to fix macOS CI
* Attempt to fix CI
* Attempt to fix CI
* Minor fix in the dark theme, more will follow
* Silence enumerator/integer warning
* Attempt to fix macOS CI
* Another attempt to fix macOS CI
* Attempt to fix Windows & macOS CI
* fix: Recorder directory create (#903)
* Update Keychain so that the brush size shortcuts can be changed
This update generally lets users use modifier buttons (control, alt, shift, meta) with mouse buttons
* Change OSX to macOS
* Detect if multi-threading is enabled when exporting gifs
* Fix color picker not working on the top color mode
* Make some public methods private in Export.gd
* Remove Global.window_title variable
* Fix frame UI in the timeline breaking after 100 frames
* Static typing improvements for the timeline
* Better static typing for grids
* Fix typo
* Fix pixel grid not appearing
* Move preference updating code to Global using setters
This should make the code a bit more readable, as the logic for each property update can be found directly under the variable declaration, and not hidden in PreferencesDialog's preference_update() method. This also allows for changing these properties outside the preferences, if that will ever be needed. In theory it's also faster as we don't have to do all these string comparisons anymore, but I doubt this will be noticeable in practice.
* Remove RestoreDefaultButton.tscn
* Implement changing font size in the preferences
* Resize HeaderSmall font size along with the default font size
* A step towards fixing image loading in the Web version
Doesn't completely fix the issue, it requires a fix from Godot's side as well
* Implement missing input event actions for buttons
TODO: Add default shortcuts
* Do not change language and theme if they are already the defaults
Reduces the initial loading time a bit
* Remove update_hint_tooltips() as it's no longer needed, only keep it for tools
This was needed in order for hint tooltips to be successfully translated while taking the shortcuts into account. Godot 4 already it correctly for us now. Tools still need it because they contain multiple shortcut data in their tooltips.
* Change ExportDialog's PathDialog's file mode to be "open directory" and make them bigger
* Fix Vector2i + Vector2 errors in grid center snapping
* Update tooltips when the shortcut profile changes
* Fix copy-paste mistake
* Update tooltips during startup if the shortcut profile is not the default
* Fix gif warning label size in ExportDialog
* Fix BBCode in ExportDialog
* Fix some Godot 4.2 warnings
* Some CI fixes
* Static typing improvements and more inline functions
* Format
* Even more static typing, inline methods, docstrings etc
* Some more static typing improvements and inline setters
* Remove unneeded project type specifying
* Fix splash dialog error
* Fix enumerator warning
* Don't preload the font in the rules and guides
* Fix some integer division warnings
Sometimes we indeed need them to be floats
* Change some Rect2s to Rect2is
* Minor static typing improvements
* Update README, CHANGELOG, Translations
* Only load translation files when needed, reduces loading time a bit
* Update Keychain so it doesn't load languages during startup
* Lazy load all tool scenes, breaks compatibility with the extension API
Decreases initial loading time
* Format
* Very minor loading time speedups
* Remove unneeded project type specifying
* Even more static typing and docstring improvements
* Fix extension loading
* Palette docstrings
---------
Co-authored-by: ppphp <kevinniub@gmail.com>
2023-09-04 13:29:06 +00:00
|
|
|
func _can_drop_data(_position: Vector2, data) -> bool:
|
|
|
|
return _can_handle_drag_data(data)
|
2022-01-29 22:47:25 +00:00
|
|
|
|
|
|
|
|
Port to Godot 4 (#900)
* Initial conversion
* Hide some dialogs
* Update addons
* Fix errors in scripts
Temporarily commented out adding new file import types and certain Control methods that are not available in the Window class, such as get_global_mouse_position()
* Update shaders
* Fix some more errors and signals, rename "pressed" to "button_pressed"
* Even more error fixes and renaming corrections
* Fixed more errors, Pixelorama almost runs
* Update ValueSlider.gd
* Remove lock() and unlock(), more ImageTexture.create_from_image() static usage
* More static function using
* Re-add some of the dialog signals, fix window transparency
* Change instances of popup_hide to visibility_changed
* More more errors and warnings
* Fix more errors and warnings
* Get rid of errors in the output when opening Pixelorama in Godot
* Properly connect most signals without using strings
* Fix some scenes
* Don't load Main.tscn
* Emit signals directly instead of using strings
* Fix Keychain menu nodes
* Get rid of self. on most instances, as setters and getters are now always called
* Some more static typing
* Disable texture filters
* Fix zooming
* Fix int as enum warnings
* Fix tools and rename doubleclick to double_click
* Update tool scenes
* Fix tabs
* Fix create new image
* Use static typing on flood fill to speed it up
* Update static-checks.yml
* Reverts #729 for a speedup, hopefully the bug won't get re-introduced
* Fix TransparentChecker warning
* Re-add Default template
* Fix 3D cels
* Fix rotation
Project converted bug. Should be fixed by https://github.com/godotengine/godot/pull/79264
* Fix UITransparency alignment issue, thanks Variable
* Add missing OptionButton items
Hopefully that should be all of them
* Fix the appearance of CollapsibleContainer
* Change instances of world to world_3d
* Fix tool button backgrounds
* Fix Splash dialog
* Fix brush selection
* Update Main.gd
* Fix About Dialog
* Fix more zooming issues
* Fix canvas preview zooming
* Use signals for queue_redraw on project change
* Fix layer button's look
* Fix gradients
* Some gradient fixes and code cleanups, dithering is still broken
* Fix bucket
* Fix the rest of the undo_redo.add_(un)do_method() cases
* Fix guides
* Fix guide text
* Some small changes in Main
* Update Tools.gd
* Fix palette importing
* Get rid of TODOGODOT4s
* Fix the rest of the dialogs
* Update the rest of the scenes
* Fix onion skinning and frame tag dialogs
* Fix file brushes being imported twice
* Fix palette swatch crashing on double click
* Use nearest filter for some of the windows
* Remove old .tres font files
* Fix language switching
* Get rid of Keychain.action_get_first_key() on the extra shortcuts of tools
* Get rid of Keychain.MenuInputActions and directly set shortcuts to the menu items
This temporarily removes echoing support for undo and redo, this will be re-added once https://github.com/godotengine/godot/pull/36493 or https://github.com/godotengine/godot/pull/64317 is merged.
* Clean shortcut-related duplicate code in TopMenuContainer
* Remove DroidSansFallback now that system fonts can be used as fallback
* Remove 3.x settings from project.godot
* Format
* Format gdgifexporter
* Reset Keychain to its original state
* Remove textures from the dark and gray themes
* Remove all textures from the dark theme
* Better static typing in DrawingAlgos
* Use Vector2i for project size
* [Risky commit] Use Vector2i instead of Vector2 for tools
I tested it and everything seems to be working the same as before, but more testing would be appreciated.
* Format after previous commit
* Fix line angle constraint being rotated 180 degrees
This is not a regression from the previous commit(s), Godot 4 probably reversed the logic of `angle_to_point()`.
* Fix input map action not found errors when pressing Shift or Control
* Make AnimatePanel bigger, add spring interpolation
* Fix some layouts/extensions/preferences loading errors
* Fix dithering
* Update layout resources
Probably doesn't change anything at all, but I suppose it might be a good thing to do
* Small changes
* Disable filter in ResizeCanvas dialog
* Fix some preferences default button states
* Fix tile mode always having masking on
* Use integers in tile mode
* Fix checkboxes in preferences not working
* More statically typed arrays!
No need to have these # Array of X comments anymore!
* Fix "apply all" for multiple preview dialogs
* Update theme.tres
* Add HeaderSmall theme type variation
* Fix dynamics buttons
* Don't allow sub-zero zoom values
* Let zoom_out_max always remain Vector2(0.01, 0.01)
This fixes zooming on large canvases
* Bump version to v1.0-dev
* Fix ambient light not working on 3D cels
* Fix .obj loading
* Don't allow greater than max values in the zoom slider
* Set maximum zoom value to always be (500, 500)
* Set zoom slider minimum value to 1
* Some UI changes, mostly related to buttons and the timeline
* Change window titles to what they were before
* [COMPATIBILITY BROKEN WITH v0.x] Fix loading 3D cels
* Avoid changing Cel3DObject's file_path if it's the same
* Make preferences window bigger
* Fix png exporting
* Fix reference image initial size and filter setting
* Fix perspective line reverse scaling on zoom and facing 180 degrees away from cursor
* Format and some linting
* Remove most Images from the rest of the themes
* Remove all textures from all themes
* Fix drawing when the mouse gets released outside the canvas boundaries
* Format Keychain
* Implement #890
* Fix recorder
* Fix layout deletion
* Better static typing and fix empty_clicked signal-connected methods not having arguments
* Fix layout and extension directory creation if they don't already exist
* Change all instances of "HTML5" to "Web"
OS.get_name() now returns "Web" instead of "HTML5" in Godot 4
* Fix JavaScript detection
Opening files in the Web version does not yet work for some reason
* Fix formatting
* Fix lint errors
* Remove unneeded lines from rotation shaders
* Clean some rotation shader related code
* Remove ErrorManager from #891, as it's no longer needed in Godot 4
* Some docstrings
* More Vector2i and Recti replacing their float counterparts
* Remove the hardcoded shortcut from ValueSlider
Note that the brush size shortcut may not change properly because Keychain isn't updated to support Godot 4's input map properly yet.
* Fix bugs from the rebase, integer zooming is currently broken
* Format
* Fix bug where some imported images would fail to load when using smart slice
* Fix integer zooming (I think)
* Fix errors after #898
* Fix some UI issues with PreviewDialog
* Use ctrl/command instead of just ctrl in the shortcuts of the InputMap - gets rid of the need for _use_osx_shortcuts() in Main.gd
* Update Keychain and addons/README.md
* Update CI to Godot 4.1.1 (probably will not work)
* Remove XDGDataPaths.gd
* Make windows non-exclusive
* Attempt to fix macOS CI
* Attempt to fix CI
* Attempt to fix CI
* Minor fix in the dark theme, more will follow
* Silence enumerator/integer warning
* Attempt to fix macOS CI
* Another attempt to fix macOS CI
* Attempt to fix Windows & macOS CI
* fix: Recorder directory create (#903)
* Update Keychain so that the brush size shortcuts can be changed
This update generally lets users use modifier buttons (control, alt, shift, meta) with mouse buttons
* Change OSX to macOS
* Detect if multi-threading is enabled when exporting gifs
* Fix color picker not working on the top color mode
* Make some public methods private in Export.gd
* Remove Global.window_title variable
* Fix frame UI in the timeline breaking after 100 frames
* Static typing improvements for the timeline
* Better static typing for grids
* Fix typo
* Fix pixel grid not appearing
* Move preference updating code to Global using setters
This should make the code a bit more readable, as the logic for each property update can be found directly under the variable declaration, and not hidden in PreferencesDialog's preference_update() method. This also allows for changing these properties outside the preferences, if that will ever be needed. In theory it's also faster as we don't have to do all these string comparisons anymore, but I doubt this will be noticeable in practice.
* Remove RestoreDefaultButton.tscn
* Implement changing font size in the preferences
* Resize HeaderSmall font size along with the default font size
* A step towards fixing image loading in the Web version
Doesn't completely fix the issue, it requires a fix from Godot's side as well
* Implement missing input event actions for buttons
TODO: Add default shortcuts
* Do not change language and theme if they are already the defaults
Reduces the initial loading time a bit
* Remove update_hint_tooltips() as it's no longer needed, only keep it for tools
This was needed in order for hint tooltips to be successfully translated while taking the shortcuts into account. Godot 4 already it correctly for us now. Tools still need it because they contain multiple shortcut data in their tooltips.
* Change ExportDialog's PathDialog's file mode to be "open directory" and make them bigger
* Fix Vector2i + Vector2 errors in grid center snapping
* Update tooltips when the shortcut profile changes
* Fix copy-paste mistake
* Update tooltips during startup if the shortcut profile is not the default
* Fix gif warning label size in ExportDialog
* Fix BBCode in ExportDialog
* Fix some Godot 4.2 warnings
* Some CI fixes
* Static typing improvements and more inline functions
* Format
* Even more static typing, inline methods, docstrings etc
* Some more static typing improvements and inline setters
* Remove unneeded project type specifying
* Fix splash dialog error
* Fix enumerator warning
* Don't preload the font in the rules and guides
* Fix some integer division warnings
Sometimes we indeed need them to be floats
* Change some Rect2s to Rect2is
* Minor static typing improvements
* Update README, CHANGELOG, Translations
* Only load translation files when needed, reduces loading time a bit
* Update Keychain so it doesn't load languages during startup
* Lazy load all tool scenes, breaks compatibility with the extension API
Decreases initial loading time
* Format
* Very minor loading time speedups
* Remove unneeded project type specifying
* Even more static typing and docstring improvements
* Fix extension loading
* Palette docstrings
---------
Co-authored-by: ppphp <kevinniub@gmail.com>
2023-09-04 13:29:06 +00:00
|
|
|
func _drop_data(_position: Vector2, data) -> void:
|
2023-12-01 17:01:11 +00:00
|
|
|
var from_node := get_node(data.from_path)
|
|
|
|
if from_node is TabBar:
|
|
|
|
from_node = from_node.get_parent()
|
2022-11-09 13:09:14 +00:00
|
|
|
if from_node == _drag_panel and _drag_panel.get_child_count() == 1:
|
2022-01-29 22:47:25 +00:00
|
|
|
return
|
2023-12-01 17:01:11 +00:00
|
|
|
var tab_index = data.tabc_element if data.has("tabc_element") else data.tab_index
|
|
|
|
var moved_tab = from_node.get_tab_control(tab_index)
|
Port to Godot 4 (#900)
* Initial conversion
* Hide some dialogs
* Update addons
* Fix errors in scripts
Temporarily commented out adding new file import types and certain Control methods that are not available in the Window class, such as get_global_mouse_position()
* Update shaders
* Fix some more errors and signals, rename "pressed" to "button_pressed"
* Even more error fixes and renaming corrections
* Fixed more errors, Pixelorama almost runs
* Update ValueSlider.gd
* Remove lock() and unlock(), more ImageTexture.create_from_image() static usage
* More static function using
* Re-add some of the dialog signals, fix window transparency
* Change instances of popup_hide to visibility_changed
* More more errors and warnings
* Fix more errors and warnings
* Get rid of errors in the output when opening Pixelorama in Godot
* Properly connect most signals without using strings
* Fix some scenes
* Don't load Main.tscn
* Emit signals directly instead of using strings
* Fix Keychain menu nodes
* Get rid of self. on most instances, as setters and getters are now always called
* Some more static typing
* Disable texture filters
* Fix zooming
* Fix int as enum warnings
* Fix tools and rename doubleclick to double_click
* Update tool scenes
* Fix tabs
* Fix create new image
* Use static typing on flood fill to speed it up
* Update static-checks.yml
* Reverts #729 for a speedup, hopefully the bug won't get re-introduced
* Fix TransparentChecker warning
* Re-add Default template
* Fix 3D cels
* Fix rotation
Project converted bug. Should be fixed by https://github.com/godotengine/godot/pull/79264
* Fix UITransparency alignment issue, thanks Variable
* Add missing OptionButton items
Hopefully that should be all of them
* Fix the appearance of CollapsibleContainer
* Change instances of world to world_3d
* Fix tool button backgrounds
* Fix Splash dialog
* Fix brush selection
* Update Main.gd
* Fix About Dialog
* Fix more zooming issues
* Fix canvas preview zooming
* Use signals for queue_redraw on project change
* Fix layer button's look
* Fix gradients
* Some gradient fixes and code cleanups, dithering is still broken
* Fix bucket
* Fix the rest of the undo_redo.add_(un)do_method() cases
* Fix guides
* Fix guide text
* Some small changes in Main
* Update Tools.gd
* Fix palette importing
* Get rid of TODOGODOT4s
* Fix the rest of the dialogs
* Update the rest of the scenes
* Fix onion skinning and frame tag dialogs
* Fix file brushes being imported twice
* Fix palette swatch crashing on double click
* Use nearest filter for some of the windows
* Remove old .tres font files
* Fix language switching
* Get rid of Keychain.action_get_first_key() on the extra shortcuts of tools
* Get rid of Keychain.MenuInputActions and directly set shortcuts to the menu items
This temporarily removes echoing support for undo and redo, this will be re-added once https://github.com/godotengine/godot/pull/36493 or https://github.com/godotengine/godot/pull/64317 is merged.
* Clean shortcut-related duplicate code in TopMenuContainer
* Remove DroidSansFallback now that system fonts can be used as fallback
* Remove 3.x settings from project.godot
* Format
* Format gdgifexporter
* Reset Keychain to its original state
* Remove textures from the dark and gray themes
* Remove all textures from the dark theme
* Better static typing in DrawingAlgos
* Use Vector2i for project size
* [Risky commit] Use Vector2i instead of Vector2 for tools
I tested it and everything seems to be working the same as before, but more testing would be appreciated.
* Format after previous commit
* Fix line angle constraint being rotated 180 degrees
This is not a regression from the previous commit(s), Godot 4 probably reversed the logic of `angle_to_point()`.
* Fix input map action not found errors when pressing Shift or Control
* Make AnimatePanel bigger, add spring interpolation
* Fix some layouts/extensions/preferences loading errors
* Fix dithering
* Update layout resources
Probably doesn't change anything at all, but I suppose it might be a good thing to do
* Small changes
* Disable filter in ResizeCanvas dialog
* Fix some preferences default button states
* Fix tile mode always having masking on
* Use integers in tile mode
* Fix checkboxes in preferences not working
* More statically typed arrays!
No need to have these # Array of X comments anymore!
* Fix "apply all" for multiple preview dialogs
* Update theme.tres
* Add HeaderSmall theme type variation
* Fix dynamics buttons
* Don't allow sub-zero zoom values
* Let zoom_out_max always remain Vector2(0.01, 0.01)
This fixes zooming on large canvases
* Bump version to v1.0-dev
* Fix ambient light not working on 3D cels
* Fix .obj loading
* Don't allow greater than max values in the zoom slider
* Set maximum zoom value to always be (500, 500)
* Set zoom slider minimum value to 1
* Some UI changes, mostly related to buttons and the timeline
* Change window titles to what they were before
* [COMPATIBILITY BROKEN WITH v0.x] Fix loading 3D cels
* Avoid changing Cel3DObject's file_path if it's the same
* Make preferences window bigger
* Fix png exporting
* Fix reference image initial size and filter setting
* Fix perspective line reverse scaling on zoom and facing 180 degrees away from cursor
* Format and some linting
* Remove most Images from the rest of the themes
* Remove all textures from all themes
* Fix drawing when the mouse gets released outside the canvas boundaries
* Format Keychain
* Implement #890
* Fix recorder
* Fix layout deletion
* Better static typing and fix empty_clicked signal-connected methods not having arguments
* Fix layout and extension directory creation if they don't already exist
* Change all instances of "HTML5" to "Web"
OS.get_name() now returns "Web" instead of "HTML5" in Godot 4
* Fix JavaScript detection
Opening files in the Web version does not yet work for some reason
* Fix formatting
* Fix lint errors
* Remove unneeded lines from rotation shaders
* Clean some rotation shader related code
* Remove ErrorManager from #891, as it's no longer needed in Godot 4
* Some docstrings
* More Vector2i and Recti replacing their float counterparts
* Remove the hardcoded shortcut from ValueSlider
Note that the brush size shortcut may not change properly because Keychain isn't updated to support Godot 4's input map properly yet.
* Fix bugs from the rebase, integer zooming is currently broken
* Format
* Fix bug where some imported images would fail to load when using smart slice
* Fix integer zooming (I think)
* Fix errors after #898
* Fix some UI issues with PreviewDialog
* Use ctrl/command instead of just ctrl in the shortcuts of the InputMap - gets rid of the need for _use_osx_shortcuts() in Main.gd
* Update Keychain and addons/README.md
* Update CI to Godot 4.1.1 (probably will not work)
* Remove XDGDataPaths.gd
* Make windows non-exclusive
* Attempt to fix macOS CI
* Attempt to fix CI
* Attempt to fix CI
* Minor fix in the dark theme, more will follow
* Silence enumerator/integer warning
* Attempt to fix macOS CI
* Another attempt to fix macOS CI
* Attempt to fix Windows & macOS CI
* fix: Recorder directory create (#903)
* Update Keychain so that the brush size shortcuts can be changed
This update generally lets users use modifier buttons (control, alt, shift, meta) with mouse buttons
* Change OSX to macOS
* Detect if multi-threading is enabled when exporting gifs
* Fix color picker not working on the top color mode
* Make some public methods private in Export.gd
* Remove Global.window_title variable
* Fix frame UI in the timeline breaking after 100 frames
* Static typing improvements for the timeline
* Better static typing for grids
* Fix typo
* Fix pixel grid not appearing
* Move preference updating code to Global using setters
This should make the code a bit more readable, as the logic for each property update can be found directly under the variable declaration, and not hidden in PreferencesDialog's preference_update() method. This also allows for changing these properties outside the preferences, if that will ever be needed. In theory it's also faster as we don't have to do all these string comparisons anymore, but I doubt this will be noticeable in practice.
* Remove RestoreDefaultButton.tscn
* Implement changing font size in the preferences
* Resize HeaderSmall font size along with the default font size
* A step towards fixing image loading in the Web version
Doesn't completely fix the issue, it requires a fix from Godot's side as well
* Implement missing input event actions for buttons
TODO: Add default shortcuts
* Do not change language and theme if they are already the defaults
Reduces the initial loading time a bit
* Remove update_hint_tooltips() as it's no longer needed, only keep it for tools
This was needed in order for hint tooltips to be successfully translated while taking the shortcuts into account. Godot 4 already it correctly for us now. Tools still need it because they contain multiple shortcut data in their tooltips.
* Change ExportDialog's PathDialog's file mode to be "open directory" and make them bigger
* Fix Vector2i + Vector2 errors in grid center snapping
* Update tooltips when the shortcut profile changes
* Fix copy-paste mistake
* Update tooltips during startup if the shortcut profile is not the default
* Fix gif warning label size in ExportDialog
* Fix BBCode in ExportDialog
* Fix some Godot 4.2 warnings
* Some CI fixes
* Static typing improvements and more inline functions
* Format
* Even more static typing, inline methods, docstrings etc
* Some more static typing improvements and inline setters
* Remove unneeded project type specifying
* Fix splash dialog error
* Fix enumerator warning
* Don't preload the font in the rules and guides
* Fix some integer division warnings
Sometimes we indeed need them to be floats
* Change some Rect2s to Rect2is
* Minor static typing improvements
* Update README, CHANGELOG, Translations
* Only load translation files when needed, reduces loading time a bit
* Update Keychain so it doesn't load languages during startup
* Lazy load all tool scenes, breaks compatibility with the extension API
Decreases initial loading time
* Format
* Very minor loading time speedups
* Remove unneeded project type specifying
* Even more static typing and docstring improvements
* Fix extension loading
* Palette docstrings
---------
Co-authored-by: ppphp <kevinniub@gmail.com>
2023-09-04 13:29:06 +00:00
|
|
|
if moved_tab is DockableReferenceControl:
|
2022-11-09 13:09:14 +00:00
|
|
|
moved_tab = moved_tab.reference_to
|
|
|
|
if not _is_managed_node(moved_tab):
|
|
|
|
moved_tab.get_parent().remove_child(moved_tab)
|
|
|
|
add_child(moved_tab)
|
2022-01-29 22:47:25 +00:00
|
|
|
|
2022-11-09 13:09:14 +00:00
|
|
|
if _drag_panel != null:
|
Port to Godot 4 (#900)
* Initial conversion
* Hide some dialogs
* Update addons
* Fix errors in scripts
Temporarily commented out adding new file import types and certain Control methods that are not available in the Window class, such as get_global_mouse_position()
* Update shaders
* Fix some more errors and signals, rename "pressed" to "button_pressed"
* Even more error fixes and renaming corrections
* Fixed more errors, Pixelorama almost runs
* Update ValueSlider.gd
* Remove lock() and unlock(), more ImageTexture.create_from_image() static usage
* More static function using
* Re-add some of the dialog signals, fix window transparency
* Change instances of popup_hide to visibility_changed
* More more errors and warnings
* Fix more errors and warnings
* Get rid of errors in the output when opening Pixelorama in Godot
* Properly connect most signals without using strings
* Fix some scenes
* Don't load Main.tscn
* Emit signals directly instead of using strings
* Fix Keychain menu nodes
* Get rid of self. on most instances, as setters and getters are now always called
* Some more static typing
* Disable texture filters
* Fix zooming
* Fix int as enum warnings
* Fix tools and rename doubleclick to double_click
* Update tool scenes
* Fix tabs
* Fix create new image
* Use static typing on flood fill to speed it up
* Update static-checks.yml
* Reverts #729 for a speedup, hopefully the bug won't get re-introduced
* Fix TransparentChecker warning
* Re-add Default template
* Fix 3D cels
* Fix rotation
Project converted bug. Should be fixed by https://github.com/godotengine/godot/pull/79264
* Fix UITransparency alignment issue, thanks Variable
* Add missing OptionButton items
Hopefully that should be all of them
* Fix the appearance of CollapsibleContainer
* Change instances of world to world_3d
* Fix tool button backgrounds
* Fix Splash dialog
* Fix brush selection
* Update Main.gd
* Fix About Dialog
* Fix more zooming issues
* Fix canvas preview zooming
* Use signals for queue_redraw on project change
* Fix layer button's look
* Fix gradients
* Some gradient fixes and code cleanups, dithering is still broken
* Fix bucket
* Fix the rest of the undo_redo.add_(un)do_method() cases
* Fix guides
* Fix guide text
* Some small changes in Main
* Update Tools.gd
* Fix palette importing
* Get rid of TODOGODOT4s
* Fix the rest of the dialogs
* Update the rest of the scenes
* Fix onion skinning and frame tag dialogs
* Fix file brushes being imported twice
* Fix palette swatch crashing on double click
* Use nearest filter for some of the windows
* Remove old .tres font files
* Fix language switching
* Get rid of Keychain.action_get_first_key() on the extra shortcuts of tools
* Get rid of Keychain.MenuInputActions and directly set shortcuts to the menu items
This temporarily removes echoing support for undo and redo, this will be re-added once https://github.com/godotengine/godot/pull/36493 or https://github.com/godotengine/godot/pull/64317 is merged.
* Clean shortcut-related duplicate code in TopMenuContainer
* Remove DroidSansFallback now that system fonts can be used as fallback
* Remove 3.x settings from project.godot
* Format
* Format gdgifexporter
* Reset Keychain to its original state
* Remove textures from the dark and gray themes
* Remove all textures from the dark theme
* Better static typing in DrawingAlgos
* Use Vector2i for project size
* [Risky commit] Use Vector2i instead of Vector2 for tools
I tested it and everything seems to be working the same as before, but more testing would be appreciated.
* Format after previous commit
* Fix line angle constraint being rotated 180 degrees
This is not a regression from the previous commit(s), Godot 4 probably reversed the logic of `angle_to_point()`.
* Fix input map action not found errors when pressing Shift or Control
* Make AnimatePanel bigger, add spring interpolation
* Fix some layouts/extensions/preferences loading errors
* Fix dithering
* Update layout resources
Probably doesn't change anything at all, but I suppose it might be a good thing to do
* Small changes
* Disable filter in ResizeCanvas dialog
* Fix some preferences default button states
* Fix tile mode always having masking on
* Use integers in tile mode
* Fix checkboxes in preferences not working
* More statically typed arrays!
No need to have these # Array of X comments anymore!
* Fix "apply all" for multiple preview dialogs
* Update theme.tres
* Add HeaderSmall theme type variation
* Fix dynamics buttons
* Don't allow sub-zero zoom values
* Let zoom_out_max always remain Vector2(0.01, 0.01)
This fixes zooming on large canvases
* Bump version to v1.0-dev
* Fix ambient light not working on 3D cels
* Fix .obj loading
* Don't allow greater than max values in the zoom slider
* Set maximum zoom value to always be (500, 500)
* Set zoom slider minimum value to 1
* Some UI changes, mostly related to buttons and the timeline
* Change window titles to what they were before
* [COMPATIBILITY BROKEN WITH v0.x] Fix loading 3D cels
* Avoid changing Cel3DObject's file_path if it's the same
* Make preferences window bigger
* Fix png exporting
* Fix reference image initial size and filter setting
* Fix perspective line reverse scaling on zoom and facing 180 degrees away from cursor
* Format and some linting
* Remove most Images from the rest of the themes
* Remove all textures from all themes
* Fix drawing when the mouse gets released outside the canvas boundaries
* Format Keychain
* Implement #890
* Fix recorder
* Fix layout deletion
* Better static typing and fix empty_clicked signal-connected methods not having arguments
* Fix layout and extension directory creation if they don't already exist
* Change all instances of "HTML5" to "Web"
OS.get_name() now returns "Web" instead of "HTML5" in Godot 4
* Fix JavaScript detection
Opening files in the Web version does not yet work for some reason
* Fix formatting
* Fix lint errors
* Remove unneeded lines from rotation shaders
* Clean some rotation shader related code
* Remove ErrorManager from #891, as it's no longer needed in Godot 4
* Some docstrings
* More Vector2i and Recti replacing their float counterparts
* Remove the hardcoded shortcut from ValueSlider
Note that the brush size shortcut may not change properly because Keychain isn't updated to support Godot 4's input map properly yet.
* Fix bugs from the rebase, integer zooming is currently broken
* Format
* Fix bug where some imported images would fail to load when using smart slice
* Fix integer zooming (I think)
* Fix errors after #898
* Fix some UI issues with PreviewDialog
* Use ctrl/command instead of just ctrl in the shortcuts of the InputMap - gets rid of the need for _use_osx_shortcuts() in Main.gd
* Update Keychain and addons/README.md
* Update CI to Godot 4.1.1 (probably will not work)
* Remove XDGDataPaths.gd
* Make windows non-exclusive
* Attempt to fix macOS CI
* Attempt to fix CI
* Attempt to fix CI
* Minor fix in the dark theme, more will follow
* Silence enumerator/integer warning
* Attempt to fix macOS CI
* Another attempt to fix macOS CI
* Attempt to fix Windows & macOS CI
* fix: Recorder directory create (#903)
* Update Keychain so that the brush size shortcuts can be changed
This update generally lets users use modifier buttons (control, alt, shift, meta) with mouse buttons
* Change OSX to macOS
* Detect if multi-threading is enabled when exporting gifs
* Fix color picker not working on the top color mode
* Make some public methods private in Export.gd
* Remove Global.window_title variable
* Fix frame UI in the timeline breaking after 100 frames
* Static typing improvements for the timeline
* Better static typing for grids
* Fix typo
* Fix pixel grid not appearing
* Move preference updating code to Global using setters
This should make the code a bit more readable, as the logic for each property update can be found directly under the variable declaration, and not hidden in PreferencesDialog's preference_update() method. This also allows for changing these properties outside the preferences, if that will ever be needed. In theory it's also faster as we don't have to do all these string comparisons anymore, but I doubt this will be noticeable in practice.
* Remove RestoreDefaultButton.tscn
* Implement changing font size in the preferences
* Resize HeaderSmall font size along with the default font size
* A step towards fixing image loading in the Web version
Doesn't completely fix the issue, it requires a fix from Godot's side as well
* Implement missing input event actions for buttons
TODO: Add default shortcuts
* Do not change language and theme if they are already the defaults
Reduces the initial loading time a bit
* Remove update_hint_tooltips() as it's no longer needed, only keep it for tools
This was needed in order for hint tooltips to be successfully translated while taking the shortcuts into account. Godot 4 already it correctly for us now. Tools still need it because they contain multiple shortcut data in their tooltips.
* Change ExportDialog's PathDialog's file mode to be "open directory" and make them bigger
* Fix Vector2i + Vector2 errors in grid center snapping
* Update tooltips when the shortcut profile changes
* Fix copy-paste mistake
* Update tooltips during startup if the shortcut profile is not the default
* Fix gif warning label size in ExportDialog
* Fix BBCode in ExportDialog
* Fix some Godot 4.2 warnings
* Some CI fixes
* Static typing improvements and more inline functions
* Format
* Even more static typing, inline methods, docstrings etc
* Some more static typing improvements and inline setters
* Remove unneeded project type specifying
* Fix splash dialog error
* Fix enumerator warning
* Don't preload the font in the rules and guides
* Fix some integer division warnings
Sometimes we indeed need them to be floats
* Change some Rect2s to Rect2is
* Minor static typing improvements
* Update README, CHANGELOG, Translations
* Only load translation files when needed, reduces loading time a bit
* Update Keychain so it doesn't load languages during startup
* Lazy load all tool scenes, breaks compatibility with the extension API
Decreases initial loading time
* Format
* Very minor loading time speedups
* Remove unneeded project type specifying
* Even more static typing and docstring improvements
* Fix extension loading
* Palette docstrings
---------
Co-authored-by: ppphp <kevinniub@gmail.com>
2023-09-04 13:29:06 +00:00
|
|
|
var margin := _drag_n_drop_panel.get_hover_margin()
|
2022-11-09 13:09:14 +00:00
|
|
|
_layout.split_leaf_with_node(_drag_panel.leaf, moved_tab, margin)
|
2022-01-29 22:47:25 +00:00
|
|
|
|
2022-11-09 13:09:14 +00:00
|
|
|
_layout_dirty = true
|
2022-01-29 22:47:25 +00:00
|
|
|
queue_sort()
|
|
|
|
|
|
|
|
|
2024-10-11 09:13:13 +00:00
|
|
|
func _add_floating_options(tab_container: DockablePanel) -> void:
|
|
|
|
var options := PopupMenu.new()
|
|
|
|
options.add_item("Make Floating")
|
|
|
|
options.id_pressed.connect(_toggle_floating.bind(tab_container))
|
|
|
|
options.size.y = 0
|
|
|
|
_windows_container.add_child(options)
|
|
|
|
tab_container.set_popup(options)
|
|
|
|
|
|
|
|
|
|
|
|
## Required when converting a window back to panel.
|
|
|
|
func _refresh_tabs_visible() -> void:
|
|
|
|
if tabs_visible:
|
|
|
|
tabs_visible = false
|
|
|
|
await get_tree().process_frame
|
|
|
|
await get_tree().process_frame
|
|
|
|
tabs_visible = true
|
|
|
|
|
|
|
|
|
|
|
|
func _toggle_floating(_id: int, tab_container: DockablePanel) -> void:
|
|
|
|
var node_name := tab_container.get_tab_title(tab_container.current_tab)
|
|
|
|
var node := get_node(node_name)
|
|
|
|
if is_instance_valid(node):
|
|
|
|
var tab_position := maxi(tab_container.leaf.find_child(node), 0)
|
|
|
|
_convert_to_window(node, {"tab_position": tab_position, "tab_container": tab_container})
|
|
|
|
else:
|
|
|
|
print("Node ", node_name, " not found!")
|
|
|
|
|
|
|
|
|
|
|
|
## Converts a panel to floating window.
|
|
|
|
func _convert_to_window(content: Control, previous_data := {}) -> void:
|
|
|
|
var old_owner := content.owner
|
|
|
|
var data := {}
|
|
|
|
if content.name in layout.windows:
|
|
|
|
data = layout.windows[content.name]
|
|
|
|
var window := FloatingWindow.new(content, data)
|
|
|
|
_windows_container.add_child(window)
|
|
|
|
window.show()
|
|
|
|
_refresh_tabs_visible()
|
|
|
|
window.close_requested.connect(_convert_to_panel.bind(window, old_owner, previous_data))
|
|
|
|
window.data_changed.connect(layout.save_window_properties)
|
|
|
|
|
|
|
|
|
|
|
|
## Converts a floating window into a panel.
|
|
|
|
func _convert_to_panel(window: FloatingWindow, old_owner: Node, previous_data := {}) -> void:
|
|
|
|
var content := window.window_content
|
|
|
|
window.remove_child(content)
|
|
|
|
window.destroy()
|
|
|
|
add_child(content)
|
|
|
|
content.owner = old_owner
|
|
|
|
if previous_data.has("tab_container") and is_instance_valid(previous_data["tab_container"]):
|
|
|
|
var tab_position := previous_data.get("tab_position", 0) as int
|
|
|
|
previous_data["tab_container"].leaf.insert_node(tab_position, content)
|
|
|
|
_refresh_tabs_visible()
|
|
|
|
|
|
|
|
|
2022-01-29 22:47:25 +00:00
|
|
|
func set_control_as_current_tab(control: Control) -> void:
|
|
|
|
assert(
|
|
|
|
control.get_parent_control() == self,
|
|
|
|
"Trying to focus a control not managed by this container"
|
|
|
|
)
|
|
|
|
if is_control_hidden(control):
|
|
|
|
push_warning("Trying to focus a hidden control")
|
|
|
|
return
|
Port to Godot 4 (#900)
* Initial conversion
* Hide some dialogs
* Update addons
* Fix errors in scripts
Temporarily commented out adding new file import types and certain Control methods that are not available in the Window class, such as get_global_mouse_position()
* Update shaders
* Fix some more errors and signals, rename "pressed" to "button_pressed"
* Even more error fixes and renaming corrections
* Fixed more errors, Pixelorama almost runs
* Update ValueSlider.gd
* Remove lock() and unlock(), more ImageTexture.create_from_image() static usage
* More static function using
* Re-add some of the dialog signals, fix window transparency
* Change instances of popup_hide to visibility_changed
* More more errors and warnings
* Fix more errors and warnings
* Get rid of errors in the output when opening Pixelorama in Godot
* Properly connect most signals without using strings
* Fix some scenes
* Don't load Main.tscn
* Emit signals directly instead of using strings
* Fix Keychain menu nodes
* Get rid of self. on most instances, as setters and getters are now always called
* Some more static typing
* Disable texture filters
* Fix zooming
* Fix int as enum warnings
* Fix tools and rename doubleclick to double_click
* Update tool scenes
* Fix tabs
* Fix create new image
* Use static typing on flood fill to speed it up
* Update static-checks.yml
* Reverts #729 for a speedup, hopefully the bug won't get re-introduced
* Fix TransparentChecker warning
* Re-add Default template
* Fix 3D cels
* Fix rotation
Project converted bug. Should be fixed by https://github.com/godotengine/godot/pull/79264
* Fix UITransparency alignment issue, thanks Variable
* Add missing OptionButton items
Hopefully that should be all of them
* Fix the appearance of CollapsibleContainer
* Change instances of world to world_3d
* Fix tool button backgrounds
* Fix Splash dialog
* Fix brush selection
* Update Main.gd
* Fix About Dialog
* Fix more zooming issues
* Fix canvas preview zooming
* Use signals for queue_redraw on project change
* Fix layer button's look
* Fix gradients
* Some gradient fixes and code cleanups, dithering is still broken
* Fix bucket
* Fix the rest of the undo_redo.add_(un)do_method() cases
* Fix guides
* Fix guide text
* Some small changes in Main
* Update Tools.gd
* Fix palette importing
* Get rid of TODOGODOT4s
* Fix the rest of the dialogs
* Update the rest of the scenes
* Fix onion skinning and frame tag dialogs
* Fix file brushes being imported twice
* Fix palette swatch crashing on double click
* Use nearest filter for some of the windows
* Remove old .tres font files
* Fix language switching
* Get rid of Keychain.action_get_first_key() on the extra shortcuts of tools
* Get rid of Keychain.MenuInputActions and directly set shortcuts to the menu items
This temporarily removes echoing support for undo and redo, this will be re-added once https://github.com/godotengine/godot/pull/36493 or https://github.com/godotengine/godot/pull/64317 is merged.
* Clean shortcut-related duplicate code in TopMenuContainer
* Remove DroidSansFallback now that system fonts can be used as fallback
* Remove 3.x settings from project.godot
* Format
* Format gdgifexporter
* Reset Keychain to its original state
* Remove textures from the dark and gray themes
* Remove all textures from the dark theme
* Better static typing in DrawingAlgos
* Use Vector2i for project size
* [Risky commit] Use Vector2i instead of Vector2 for tools
I tested it and everything seems to be working the same as before, but more testing would be appreciated.
* Format after previous commit
* Fix line angle constraint being rotated 180 degrees
This is not a regression from the previous commit(s), Godot 4 probably reversed the logic of `angle_to_point()`.
* Fix input map action not found errors when pressing Shift or Control
* Make AnimatePanel bigger, add spring interpolation
* Fix some layouts/extensions/preferences loading errors
* Fix dithering
* Update layout resources
Probably doesn't change anything at all, but I suppose it might be a good thing to do
* Small changes
* Disable filter in ResizeCanvas dialog
* Fix some preferences default button states
* Fix tile mode always having masking on
* Use integers in tile mode
* Fix checkboxes in preferences not working
* More statically typed arrays!
No need to have these # Array of X comments anymore!
* Fix "apply all" for multiple preview dialogs
* Update theme.tres
* Add HeaderSmall theme type variation
* Fix dynamics buttons
* Don't allow sub-zero zoom values
* Let zoom_out_max always remain Vector2(0.01, 0.01)
This fixes zooming on large canvases
* Bump version to v1.0-dev
* Fix ambient light not working on 3D cels
* Fix .obj loading
* Don't allow greater than max values in the zoom slider
* Set maximum zoom value to always be (500, 500)
* Set zoom slider minimum value to 1
* Some UI changes, mostly related to buttons and the timeline
* Change window titles to what they were before
* [COMPATIBILITY BROKEN WITH v0.x] Fix loading 3D cels
* Avoid changing Cel3DObject's file_path if it's the same
* Make preferences window bigger
* Fix png exporting
* Fix reference image initial size and filter setting
* Fix perspective line reverse scaling on zoom and facing 180 degrees away from cursor
* Format and some linting
* Remove most Images from the rest of the themes
* Remove all textures from all themes
* Fix drawing when the mouse gets released outside the canvas boundaries
* Format Keychain
* Implement #890
* Fix recorder
* Fix layout deletion
* Better static typing and fix empty_clicked signal-connected methods not having arguments
* Fix layout and extension directory creation if they don't already exist
* Change all instances of "HTML5" to "Web"
OS.get_name() now returns "Web" instead of "HTML5" in Godot 4
* Fix JavaScript detection
Opening files in the Web version does not yet work for some reason
* Fix formatting
* Fix lint errors
* Remove unneeded lines from rotation shaders
* Clean some rotation shader related code
* Remove ErrorManager from #891, as it's no longer needed in Godot 4
* Some docstrings
* More Vector2i and Recti replacing their float counterparts
* Remove the hardcoded shortcut from ValueSlider
Note that the brush size shortcut may not change properly because Keychain isn't updated to support Godot 4's input map properly yet.
* Fix bugs from the rebase, integer zooming is currently broken
* Format
* Fix bug where some imported images would fail to load when using smart slice
* Fix integer zooming (I think)
* Fix errors after #898
* Fix some UI issues with PreviewDialog
* Use ctrl/command instead of just ctrl in the shortcuts of the InputMap - gets rid of the need for _use_osx_shortcuts() in Main.gd
* Update Keychain and addons/README.md
* Update CI to Godot 4.1.1 (probably will not work)
* Remove XDGDataPaths.gd
* Make windows non-exclusive
* Attempt to fix macOS CI
* Attempt to fix CI
* Attempt to fix CI
* Minor fix in the dark theme, more will follow
* Silence enumerator/integer warning
* Attempt to fix macOS CI
* Another attempt to fix macOS CI
* Attempt to fix Windows & macOS CI
* fix: Recorder directory create (#903)
* Update Keychain so that the brush size shortcuts can be changed
This update generally lets users use modifier buttons (control, alt, shift, meta) with mouse buttons
* Change OSX to macOS
* Detect if multi-threading is enabled when exporting gifs
* Fix color picker not working on the top color mode
* Make some public methods private in Export.gd
* Remove Global.window_title variable
* Fix frame UI in the timeline breaking after 100 frames
* Static typing improvements for the timeline
* Better static typing for grids
* Fix typo
* Fix pixel grid not appearing
* Move preference updating code to Global using setters
This should make the code a bit more readable, as the logic for each property update can be found directly under the variable declaration, and not hidden in PreferencesDialog's preference_update() method. This also allows for changing these properties outside the preferences, if that will ever be needed. In theory it's also faster as we don't have to do all these string comparisons anymore, but I doubt this will be noticeable in practice.
* Remove RestoreDefaultButton.tscn
* Implement changing font size in the preferences
* Resize HeaderSmall font size along with the default font size
* A step towards fixing image loading in the Web version
Doesn't completely fix the issue, it requires a fix from Godot's side as well
* Implement missing input event actions for buttons
TODO: Add default shortcuts
* Do not change language and theme if they are already the defaults
Reduces the initial loading time a bit
* Remove update_hint_tooltips() as it's no longer needed, only keep it for tools
This was needed in order for hint tooltips to be successfully translated while taking the shortcuts into account. Godot 4 already it correctly for us now. Tools still need it because they contain multiple shortcut data in their tooltips.
* Change ExportDialog's PathDialog's file mode to be "open directory" and make them bigger
* Fix Vector2i + Vector2 errors in grid center snapping
* Update tooltips when the shortcut profile changes
* Fix copy-paste mistake
* Update tooltips during startup if the shortcut profile is not the default
* Fix gif warning label size in ExportDialog
* Fix BBCode in ExportDialog
* Fix some Godot 4.2 warnings
* Some CI fixes
* Static typing improvements and more inline functions
* Format
* Even more static typing, inline methods, docstrings etc
* Some more static typing improvements and inline setters
* Remove unneeded project type specifying
* Fix splash dialog error
* Fix enumerator warning
* Don't preload the font in the rules and guides
* Fix some integer division warnings
Sometimes we indeed need them to be floats
* Change some Rect2s to Rect2is
* Minor static typing improvements
* Update README, CHANGELOG, Translations
* Only load translation files when needed, reduces loading time a bit
* Update Keychain so it doesn't load languages during startup
* Lazy load all tool scenes, breaks compatibility with the extension API
Decreases initial loading time
* Format
* Very minor loading time speedups
* Remove unneeded project type specifying
* Even more static typing and docstring improvements
* Fix extension loading
* Palette docstrings
---------
Co-authored-by: ppphp <kevinniub@gmail.com>
2023-09-04 13:29:06 +00:00
|
|
|
var leaf := _layout.get_leaf_for_node(control)
|
2022-01-29 22:47:25 +00:00
|
|
|
if not leaf:
|
|
|
|
return
|
Port to Godot 4 (#900)
* Initial conversion
* Hide some dialogs
* Update addons
* Fix errors in scripts
Temporarily commented out adding new file import types and certain Control methods that are not available in the Window class, such as get_global_mouse_position()
* Update shaders
* Fix some more errors and signals, rename "pressed" to "button_pressed"
* Even more error fixes and renaming corrections
* Fixed more errors, Pixelorama almost runs
* Update ValueSlider.gd
* Remove lock() and unlock(), more ImageTexture.create_from_image() static usage
* More static function using
* Re-add some of the dialog signals, fix window transparency
* Change instances of popup_hide to visibility_changed
* More more errors and warnings
* Fix more errors and warnings
* Get rid of errors in the output when opening Pixelorama in Godot
* Properly connect most signals without using strings
* Fix some scenes
* Don't load Main.tscn
* Emit signals directly instead of using strings
* Fix Keychain menu nodes
* Get rid of self. on most instances, as setters and getters are now always called
* Some more static typing
* Disable texture filters
* Fix zooming
* Fix int as enum warnings
* Fix tools and rename doubleclick to double_click
* Update tool scenes
* Fix tabs
* Fix create new image
* Use static typing on flood fill to speed it up
* Update static-checks.yml
* Reverts #729 for a speedup, hopefully the bug won't get re-introduced
* Fix TransparentChecker warning
* Re-add Default template
* Fix 3D cels
* Fix rotation
Project converted bug. Should be fixed by https://github.com/godotengine/godot/pull/79264
* Fix UITransparency alignment issue, thanks Variable
* Add missing OptionButton items
Hopefully that should be all of them
* Fix the appearance of CollapsibleContainer
* Change instances of world to world_3d
* Fix tool button backgrounds
* Fix Splash dialog
* Fix brush selection
* Update Main.gd
* Fix About Dialog
* Fix more zooming issues
* Fix canvas preview zooming
* Use signals for queue_redraw on project change
* Fix layer button's look
* Fix gradients
* Some gradient fixes and code cleanups, dithering is still broken
* Fix bucket
* Fix the rest of the undo_redo.add_(un)do_method() cases
* Fix guides
* Fix guide text
* Some small changes in Main
* Update Tools.gd
* Fix palette importing
* Get rid of TODOGODOT4s
* Fix the rest of the dialogs
* Update the rest of the scenes
* Fix onion skinning and frame tag dialogs
* Fix file brushes being imported twice
* Fix palette swatch crashing on double click
* Use nearest filter for some of the windows
* Remove old .tres font files
* Fix language switching
* Get rid of Keychain.action_get_first_key() on the extra shortcuts of tools
* Get rid of Keychain.MenuInputActions and directly set shortcuts to the menu items
This temporarily removes echoing support for undo and redo, this will be re-added once https://github.com/godotengine/godot/pull/36493 or https://github.com/godotengine/godot/pull/64317 is merged.
* Clean shortcut-related duplicate code in TopMenuContainer
* Remove DroidSansFallback now that system fonts can be used as fallback
* Remove 3.x settings from project.godot
* Format
* Format gdgifexporter
* Reset Keychain to its original state
* Remove textures from the dark and gray themes
* Remove all textures from the dark theme
* Better static typing in DrawingAlgos
* Use Vector2i for project size
* [Risky commit] Use Vector2i instead of Vector2 for tools
I tested it and everything seems to be working the same as before, but more testing would be appreciated.
* Format after previous commit
* Fix line angle constraint being rotated 180 degrees
This is not a regression from the previous commit(s), Godot 4 probably reversed the logic of `angle_to_point()`.
* Fix input map action not found errors when pressing Shift or Control
* Make AnimatePanel bigger, add spring interpolation
* Fix some layouts/extensions/preferences loading errors
* Fix dithering
* Update layout resources
Probably doesn't change anything at all, but I suppose it might be a good thing to do
* Small changes
* Disable filter in ResizeCanvas dialog
* Fix some preferences default button states
* Fix tile mode always having masking on
* Use integers in tile mode
* Fix checkboxes in preferences not working
* More statically typed arrays!
No need to have these # Array of X comments anymore!
* Fix "apply all" for multiple preview dialogs
* Update theme.tres
* Add HeaderSmall theme type variation
* Fix dynamics buttons
* Don't allow sub-zero zoom values
* Let zoom_out_max always remain Vector2(0.01, 0.01)
This fixes zooming on large canvases
* Bump version to v1.0-dev
* Fix ambient light not working on 3D cels
* Fix .obj loading
* Don't allow greater than max values in the zoom slider
* Set maximum zoom value to always be (500, 500)
* Set zoom slider minimum value to 1
* Some UI changes, mostly related to buttons and the timeline
* Change window titles to what they were before
* [COMPATIBILITY BROKEN WITH v0.x] Fix loading 3D cels
* Avoid changing Cel3DObject's file_path if it's the same
* Make preferences window bigger
* Fix png exporting
* Fix reference image initial size and filter setting
* Fix perspective line reverse scaling on zoom and facing 180 degrees away from cursor
* Format and some linting
* Remove most Images from the rest of the themes
* Remove all textures from all themes
* Fix drawing when the mouse gets released outside the canvas boundaries
* Format Keychain
* Implement #890
* Fix recorder
* Fix layout deletion
* Better static typing and fix empty_clicked signal-connected methods not having arguments
* Fix layout and extension directory creation if they don't already exist
* Change all instances of "HTML5" to "Web"
OS.get_name() now returns "Web" instead of "HTML5" in Godot 4
* Fix JavaScript detection
Opening files in the Web version does not yet work for some reason
* Fix formatting
* Fix lint errors
* Remove unneeded lines from rotation shaders
* Clean some rotation shader related code
* Remove ErrorManager from #891, as it's no longer needed in Godot 4
* Some docstrings
* More Vector2i and Recti replacing their float counterparts
* Remove the hardcoded shortcut from ValueSlider
Note that the brush size shortcut may not change properly because Keychain isn't updated to support Godot 4's input map properly yet.
* Fix bugs from the rebase, integer zooming is currently broken
* Format
* Fix bug where some imported images would fail to load when using smart slice
* Fix integer zooming (I think)
* Fix errors after #898
* Fix some UI issues with PreviewDialog
* Use ctrl/command instead of just ctrl in the shortcuts of the InputMap - gets rid of the need for _use_osx_shortcuts() in Main.gd
* Update Keychain and addons/README.md
* Update CI to Godot 4.1.1 (probably will not work)
* Remove XDGDataPaths.gd
* Make windows non-exclusive
* Attempt to fix macOS CI
* Attempt to fix CI
* Attempt to fix CI
* Minor fix in the dark theme, more will follow
* Silence enumerator/integer warning
* Attempt to fix macOS CI
* Another attempt to fix macOS CI
* Attempt to fix Windows & macOS CI
* fix: Recorder directory create (#903)
* Update Keychain so that the brush size shortcuts can be changed
This update generally lets users use modifier buttons (control, alt, shift, meta) with mouse buttons
* Change OSX to macOS
* Detect if multi-threading is enabled when exporting gifs
* Fix color picker not working on the top color mode
* Make some public methods private in Export.gd
* Remove Global.window_title variable
* Fix frame UI in the timeline breaking after 100 frames
* Static typing improvements for the timeline
* Better static typing for grids
* Fix typo
* Fix pixel grid not appearing
* Move preference updating code to Global using setters
This should make the code a bit more readable, as the logic for each property update can be found directly under the variable declaration, and not hidden in PreferencesDialog's preference_update() method. This also allows for changing these properties outside the preferences, if that will ever be needed. In theory it's also faster as we don't have to do all these string comparisons anymore, but I doubt this will be noticeable in practice.
* Remove RestoreDefaultButton.tscn
* Implement changing font size in the preferences
* Resize HeaderSmall font size along with the default font size
* A step towards fixing image loading in the Web version
Doesn't completely fix the issue, it requires a fix from Godot's side as well
* Implement missing input event actions for buttons
TODO: Add default shortcuts
* Do not change language and theme if they are already the defaults
Reduces the initial loading time a bit
* Remove update_hint_tooltips() as it's no longer needed, only keep it for tools
This was needed in order for hint tooltips to be successfully translated while taking the shortcuts into account. Godot 4 already it correctly for us now. Tools still need it because they contain multiple shortcut data in their tooltips.
* Change ExportDialog's PathDialog's file mode to be "open directory" and make them bigger
* Fix Vector2i + Vector2 errors in grid center snapping
* Update tooltips when the shortcut profile changes
* Fix copy-paste mistake
* Update tooltips during startup if the shortcut profile is not the default
* Fix gif warning label size in ExportDialog
* Fix BBCode in ExportDialog
* Fix some Godot 4.2 warnings
* Some CI fixes
* Static typing improvements and more inline functions
* Format
* Even more static typing, inline methods, docstrings etc
* Some more static typing improvements and inline setters
* Remove unneeded project type specifying
* Fix splash dialog error
* Fix enumerator warning
* Don't preload the font in the rules and guides
* Fix some integer division warnings
Sometimes we indeed need them to be floats
* Change some Rect2s to Rect2is
* Minor static typing improvements
* Update README, CHANGELOG, Translations
* Only load translation files when needed, reduces loading time a bit
* Update Keychain so it doesn't load languages during startup
* Lazy load all tool scenes, breaks compatibility with the extension API
Decreases initial loading time
* Format
* Very minor loading time speedups
* Remove unneeded project type specifying
* Even more static typing and docstring improvements
* Fix extension loading
* Palette docstrings
---------
Co-authored-by: ppphp <kevinniub@gmail.com>
2023-09-04 13:29:06 +00:00
|
|
|
var position_in_leaf := leaf.find_child(control)
|
2022-01-29 22:47:25 +00:00
|
|
|
if position_in_leaf < 0:
|
|
|
|
return
|
Port to Godot 4 (#900)
* Initial conversion
* Hide some dialogs
* Update addons
* Fix errors in scripts
Temporarily commented out adding new file import types and certain Control methods that are not available in the Window class, such as get_global_mouse_position()
* Update shaders
* Fix some more errors and signals, rename "pressed" to "button_pressed"
* Even more error fixes and renaming corrections
* Fixed more errors, Pixelorama almost runs
* Update ValueSlider.gd
* Remove lock() and unlock(), more ImageTexture.create_from_image() static usage
* More static function using
* Re-add some of the dialog signals, fix window transparency
* Change instances of popup_hide to visibility_changed
* More more errors and warnings
* Fix more errors and warnings
* Get rid of errors in the output when opening Pixelorama in Godot
* Properly connect most signals without using strings
* Fix some scenes
* Don't load Main.tscn
* Emit signals directly instead of using strings
* Fix Keychain menu nodes
* Get rid of self. on most instances, as setters and getters are now always called
* Some more static typing
* Disable texture filters
* Fix zooming
* Fix int as enum warnings
* Fix tools and rename doubleclick to double_click
* Update tool scenes
* Fix tabs
* Fix create new image
* Use static typing on flood fill to speed it up
* Update static-checks.yml
* Reverts #729 for a speedup, hopefully the bug won't get re-introduced
* Fix TransparentChecker warning
* Re-add Default template
* Fix 3D cels
* Fix rotation
Project converted bug. Should be fixed by https://github.com/godotengine/godot/pull/79264
* Fix UITransparency alignment issue, thanks Variable
* Add missing OptionButton items
Hopefully that should be all of them
* Fix the appearance of CollapsibleContainer
* Change instances of world to world_3d
* Fix tool button backgrounds
* Fix Splash dialog
* Fix brush selection
* Update Main.gd
* Fix About Dialog
* Fix more zooming issues
* Fix canvas preview zooming
* Use signals for queue_redraw on project change
* Fix layer button's look
* Fix gradients
* Some gradient fixes and code cleanups, dithering is still broken
* Fix bucket
* Fix the rest of the undo_redo.add_(un)do_method() cases
* Fix guides
* Fix guide text
* Some small changes in Main
* Update Tools.gd
* Fix palette importing
* Get rid of TODOGODOT4s
* Fix the rest of the dialogs
* Update the rest of the scenes
* Fix onion skinning and frame tag dialogs
* Fix file brushes being imported twice
* Fix palette swatch crashing on double click
* Use nearest filter for some of the windows
* Remove old .tres font files
* Fix language switching
* Get rid of Keychain.action_get_first_key() on the extra shortcuts of tools
* Get rid of Keychain.MenuInputActions and directly set shortcuts to the menu items
This temporarily removes echoing support for undo and redo, this will be re-added once https://github.com/godotengine/godot/pull/36493 or https://github.com/godotengine/godot/pull/64317 is merged.
* Clean shortcut-related duplicate code in TopMenuContainer
* Remove DroidSansFallback now that system fonts can be used as fallback
* Remove 3.x settings from project.godot
* Format
* Format gdgifexporter
* Reset Keychain to its original state
* Remove textures from the dark and gray themes
* Remove all textures from the dark theme
* Better static typing in DrawingAlgos
* Use Vector2i for project size
* [Risky commit] Use Vector2i instead of Vector2 for tools
I tested it and everything seems to be working the same as before, but more testing would be appreciated.
* Format after previous commit
* Fix line angle constraint being rotated 180 degrees
This is not a regression from the previous commit(s), Godot 4 probably reversed the logic of `angle_to_point()`.
* Fix input map action not found errors when pressing Shift or Control
* Make AnimatePanel bigger, add spring interpolation
* Fix some layouts/extensions/preferences loading errors
* Fix dithering
* Update layout resources
Probably doesn't change anything at all, but I suppose it might be a good thing to do
* Small changes
* Disable filter in ResizeCanvas dialog
* Fix some preferences default button states
* Fix tile mode always having masking on
* Use integers in tile mode
* Fix checkboxes in preferences not working
* More statically typed arrays!
No need to have these # Array of X comments anymore!
* Fix "apply all" for multiple preview dialogs
* Update theme.tres
* Add HeaderSmall theme type variation
* Fix dynamics buttons
* Don't allow sub-zero zoom values
* Let zoom_out_max always remain Vector2(0.01, 0.01)
This fixes zooming on large canvases
* Bump version to v1.0-dev
* Fix ambient light not working on 3D cels
* Fix .obj loading
* Don't allow greater than max values in the zoom slider
* Set maximum zoom value to always be (500, 500)
* Set zoom slider minimum value to 1
* Some UI changes, mostly related to buttons and the timeline
* Change window titles to what they were before
* [COMPATIBILITY BROKEN WITH v0.x] Fix loading 3D cels
* Avoid changing Cel3DObject's file_path if it's the same
* Make preferences window bigger
* Fix png exporting
* Fix reference image initial size and filter setting
* Fix perspective line reverse scaling on zoom and facing 180 degrees away from cursor
* Format and some linting
* Remove most Images from the rest of the themes
* Remove all textures from all themes
* Fix drawing when the mouse gets released outside the canvas boundaries
* Format Keychain
* Implement #890
* Fix recorder
* Fix layout deletion
* Better static typing and fix empty_clicked signal-connected methods not having arguments
* Fix layout and extension directory creation if they don't already exist
* Change all instances of "HTML5" to "Web"
OS.get_name() now returns "Web" instead of "HTML5" in Godot 4
* Fix JavaScript detection
Opening files in the Web version does not yet work for some reason
* Fix formatting
* Fix lint errors
* Remove unneeded lines from rotation shaders
* Clean some rotation shader related code
* Remove ErrorManager from #891, as it's no longer needed in Godot 4
* Some docstrings
* More Vector2i and Recti replacing their float counterparts
* Remove the hardcoded shortcut from ValueSlider
Note that the brush size shortcut may not change properly because Keychain isn't updated to support Godot 4's input map properly yet.
* Fix bugs from the rebase, integer zooming is currently broken
* Format
* Fix bug where some imported images would fail to load when using smart slice
* Fix integer zooming (I think)
* Fix errors after #898
* Fix some UI issues with PreviewDialog
* Use ctrl/command instead of just ctrl in the shortcuts of the InputMap - gets rid of the need for _use_osx_shortcuts() in Main.gd
* Update Keychain and addons/README.md
* Update CI to Godot 4.1.1 (probably will not work)
* Remove XDGDataPaths.gd
* Make windows non-exclusive
* Attempt to fix macOS CI
* Attempt to fix CI
* Attempt to fix CI
* Minor fix in the dark theme, more will follow
* Silence enumerator/integer warning
* Attempt to fix macOS CI
* Another attempt to fix macOS CI
* Attempt to fix Windows & macOS CI
* fix: Recorder directory create (#903)
* Update Keychain so that the brush size shortcuts can be changed
This update generally lets users use modifier buttons (control, alt, shift, meta) with mouse buttons
* Change OSX to macOS
* Detect if multi-threading is enabled when exporting gifs
* Fix color picker not working on the top color mode
* Make some public methods private in Export.gd
* Remove Global.window_title variable
* Fix frame UI in the timeline breaking after 100 frames
* Static typing improvements for the timeline
* Better static typing for grids
* Fix typo
* Fix pixel grid not appearing
* Move preference updating code to Global using setters
This should make the code a bit more readable, as the logic for each property update can be found directly under the variable declaration, and not hidden in PreferencesDialog's preference_update() method. This also allows for changing these properties outside the preferences, if that will ever be needed. In theory it's also faster as we don't have to do all these string comparisons anymore, but I doubt this will be noticeable in practice.
* Remove RestoreDefaultButton.tscn
* Implement changing font size in the preferences
* Resize HeaderSmall font size along with the default font size
* A step towards fixing image loading in the Web version
Doesn't completely fix the issue, it requires a fix from Godot's side as well
* Implement missing input event actions for buttons
TODO: Add default shortcuts
* Do not change language and theme if they are already the defaults
Reduces the initial loading time a bit
* Remove update_hint_tooltips() as it's no longer needed, only keep it for tools
This was needed in order for hint tooltips to be successfully translated while taking the shortcuts into account. Godot 4 already it correctly for us now. Tools still need it because they contain multiple shortcut data in their tooltips.
* Change ExportDialog's PathDialog's file mode to be "open directory" and make them bigger
* Fix Vector2i + Vector2 errors in grid center snapping
* Update tooltips when the shortcut profile changes
* Fix copy-paste mistake
* Update tooltips during startup if the shortcut profile is not the default
* Fix gif warning label size in ExportDialog
* Fix BBCode in ExportDialog
* Fix some Godot 4.2 warnings
* Some CI fixes
* Static typing improvements and more inline functions
* Format
* Even more static typing, inline methods, docstrings etc
* Some more static typing improvements and inline setters
* Remove unneeded project type specifying
* Fix splash dialog error
* Fix enumerator warning
* Don't preload the font in the rules and guides
* Fix some integer division warnings
Sometimes we indeed need them to be floats
* Change some Rect2s to Rect2is
* Minor static typing improvements
* Update README, CHANGELOG, Translations
* Only load translation files when needed, reduces loading time a bit
* Update Keychain so it doesn't load languages during startup
* Lazy load all tool scenes, breaks compatibility with the extension API
Decreases initial loading time
* Format
* Very minor loading time speedups
* Remove unneeded project type specifying
* Even more static typing and docstring improvements
* Fix extension loading
* Palette docstrings
---------
Co-authored-by: ppphp <kevinniub@gmail.com>
2023-09-04 13:29:06 +00:00
|
|
|
var panel: DockablePanel
|
2022-01-29 22:47:25 +00:00
|
|
|
for i in range(1, _panel_container.get_child_count()):
|
Port to Godot 4 (#900)
* Initial conversion
* Hide some dialogs
* Update addons
* Fix errors in scripts
Temporarily commented out adding new file import types and certain Control methods that are not available in the Window class, such as get_global_mouse_position()
* Update shaders
* Fix some more errors and signals, rename "pressed" to "button_pressed"
* Even more error fixes and renaming corrections
* Fixed more errors, Pixelorama almost runs
* Update ValueSlider.gd
* Remove lock() and unlock(), more ImageTexture.create_from_image() static usage
* More static function using
* Re-add some of the dialog signals, fix window transparency
* Change instances of popup_hide to visibility_changed
* More more errors and warnings
* Fix more errors and warnings
* Get rid of errors in the output when opening Pixelorama in Godot
* Properly connect most signals without using strings
* Fix some scenes
* Don't load Main.tscn
* Emit signals directly instead of using strings
* Fix Keychain menu nodes
* Get rid of self. on most instances, as setters and getters are now always called
* Some more static typing
* Disable texture filters
* Fix zooming
* Fix int as enum warnings
* Fix tools and rename doubleclick to double_click
* Update tool scenes
* Fix tabs
* Fix create new image
* Use static typing on flood fill to speed it up
* Update static-checks.yml
* Reverts #729 for a speedup, hopefully the bug won't get re-introduced
* Fix TransparentChecker warning
* Re-add Default template
* Fix 3D cels
* Fix rotation
Project converted bug. Should be fixed by https://github.com/godotengine/godot/pull/79264
* Fix UITransparency alignment issue, thanks Variable
* Add missing OptionButton items
Hopefully that should be all of them
* Fix the appearance of CollapsibleContainer
* Change instances of world to world_3d
* Fix tool button backgrounds
* Fix Splash dialog
* Fix brush selection
* Update Main.gd
* Fix About Dialog
* Fix more zooming issues
* Fix canvas preview zooming
* Use signals for queue_redraw on project change
* Fix layer button's look
* Fix gradients
* Some gradient fixes and code cleanups, dithering is still broken
* Fix bucket
* Fix the rest of the undo_redo.add_(un)do_method() cases
* Fix guides
* Fix guide text
* Some small changes in Main
* Update Tools.gd
* Fix palette importing
* Get rid of TODOGODOT4s
* Fix the rest of the dialogs
* Update the rest of the scenes
* Fix onion skinning and frame tag dialogs
* Fix file brushes being imported twice
* Fix palette swatch crashing on double click
* Use nearest filter for some of the windows
* Remove old .tres font files
* Fix language switching
* Get rid of Keychain.action_get_first_key() on the extra shortcuts of tools
* Get rid of Keychain.MenuInputActions and directly set shortcuts to the menu items
This temporarily removes echoing support for undo and redo, this will be re-added once https://github.com/godotengine/godot/pull/36493 or https://github.com/godotengine/godot/pull/64317 is merged.
* Clean shortcut-related duplicate code in TopMenuContainer
* Remove DroidSansFallback now that system fonts can be used as fallback
* Remove 3.x settings from project.godot
* Format
* Format gdgifexporter
* Reset Keychain to its original state
* Remove textures from the dark and gray themes
* Remove all textures from the dark theme
* Better static typing in DrawingAlgos
* Use Vector2i for project size
* [Risky commit] Use Vector2i instead of Vector2 for tools
I tested it and everything seems to be working the same as before, but more testing would be appreciated.
* Format after previous commit
* Fix line angle constraint being rotated 180 degrees
This is not a regression from the previous commit(s), Godot 4 probably reversed the logic of `angle_to_point()`.
* Fix input map action not found errors when pressing Shift or Control
* Make AnimatePanel bigger, add spring interpolation
* Fix some layouts/extensions/preferences loading errors
* Fix dithering
* Update layout resources
Probably doesn't change anything at all, but I suppose it might be a good thing to do
* Small changes
* Disable filter in ResizeCanvas dialog
* Fix some preferences default button states
* Fix tile mode always having masking on
* Use integers in tile mode
* Fix checkboxes in preferences not working
* More statically typed arrays!
No need to have these # Array of X comments anymore!
* Fix "apply all" for multiple preview dialogs
* Update theme.tres
* Add HeaderSmall theme type variation
* Fix dynamics buttons
* Don't allow sub-zero zoom values
* Let zoom_out_max always remain Vector2(0.01, 0.01)
This fixes zooming on large canvases
* Bump version to v1.0-dev
* Fix ambient light not working on 3D cels
* Fix .obj loading
* Don't allow greater than max values in the zoom slider
* Set maximum zoom value to always be (500, 500)
* Set zoom slider minimum value to 1
* Some UI changes, mostly related to buttons and the timeline
* Change window titles to what they were before
* [COMPATIBILITY BROKEN WITH v0.x] Fix loading 3D cels
* Avoid changing Cel3DObject's file_path if it's the same
* Make preferences window bigger
* Fix png exporting
* Fix reference image initial size and filter setting
* Fix perspective line reverse scaling on zoom and facing 180 degrees away from cursor
* Format and some linting
* Remove most Images from the rest of the themes
* Remove all textures from all themes
* Fix drawing when the mouse gets released outside the canvas boundaries
* Format Keychain
* Implement #890
* Fix recorder
* Fix layout deletion
* Better static typing and fix empty_clicked signal-connected methods not having arguments
* Fix layout and extension directory creation if they don't already exist
* Change all instances of "HTML5" to "Web"
OS.get_name() now returns "Web" instead of "HTML5" in Godot 4
* Fix JavaScript detection
Opening files in the Web version does not yet work for some reason
* Fix formatting
* Fix lint errors
* Remove unneeded lines from rotation shaders
* Clean some rotation shader related code
* Remove ErrorManager from #891, as it's no longer needed in Godot 4
* Some docstrings
* More Vector2i and Recti replacing their float counterparts
* Remove the hardcoded shortcut from ValueSlider
Note that the brush size shortcut may not change properly because Keychain isn't updated to support Godot 4's input map properly yet.
* Fix bugs from the rebase, integer zooming is currently broken
* Format
* Fix bug where some imported images would fail to load when using smart slice
* Fix integer zooming (I think)
* Fix errors after #898
* Fix some UI issues with PreviewDialog
* Use ctrl/command instead of just ctrl in the shortcuts of the InputMap - gets rid of the need for _use_osx_shortcuts() in Main.gd
* Update Keychain and addons/README.md
* Update CI to Godot 4.1.1 (probably will not work)
* Remove XDGDataPaths.gd
* Make windows non-exclusive
* Attempt to fix macOS CI
* Attempt to fix CI
* Attempt to fix CI
* Minor fix in the dark theme, more will follow
* Silence enumerator/integer warning
* Attempt to fix macOS CI
* Another attempt to fix macOS CI
* Attempt to fix Windows & macOS CI
* fix: Recorder directory create (#903)
* Update Keychain so that the brush size shortcuts can be changed
This update generally lets users use modifier buttons (control, alt, shift, meta) with mouse buttons
* Change OSX to macOS
* Detect if multi-threading is enabled when exporting gifs
* Fix color picker not working on the top color mode
* Make some public methods private in Export.gd
* Remove Global.window_title variable
* Fix frame UI in the timeline breaking after 100 frames
* Static typing improvements for the timeline
* Better static typing for grids
* Fix typo
* Fix pixel grid not appearing
* Move preference updating code to Global using setters
This should make the code a bit more readable, as the logic for each property update can be found directly under the variable declaration, and not hidden in PreferencesDialog's preference_update() method. This also allows for changing these properties outside the preferences, if that will ever be needed. In theory it's also faster as we don't have to do all these string comparisons anymore, but I doubt this will be noticeable in practice.
* Remove RestoreDefaultButton.tscn
* Implement changing font size in the preferences
* Resize HeaderSmall font size along with the default font size
* A step towards fixing image loading in the Web version
Doesn't completely fix the issue, it requires a fix from Godot's side as well
* Implement missing input event actions for buttons
TODO: Add default shortcuts
* Do not change language and theme if they are already the defaults
Reduces the initial loading time a bit
* Remove update_hint_tooltips() as it's no longer needed, only keep it for tools
This was needed in order for hint tooltips to be successfully translated while taking the shortcuts into account. Godot 4 already it correctly for us now. Tools still need it because they contain multiple shortcut data in their tooltips.
* Change ExportDialog's PathDialog's file mode to be "open directory" and make them bigger
* Fix Vector2i + Vector2 errors in grid center snapping
* Update tooltips when the shortcut profile changes
* Fix copy-paste mistake
* Update tooltips during startup if the shortcut profile is not the default
* Fix gif warning label size in ExportDialog
* Fix BBCode in ExportDialog
* Fix some Godot 4.2 warnings
* Some CI fixes
* Static typing improvements and more inline functions
* Format
* Even more static typing, inline methods, docstrings etc
* Some more static typing improvements and inline setters
* Remove unneeded project type specifying
* Fix splash dialog error
* Fix enumerator warning
* Don't preload the font in the rules and guides
* Fix some integer division warnings
Sometimes we indeed need them to be floats
* Change some Rect2s to Rect2is
* Minor static typing improvements
* Update README, CHANGELOG, Translations
* Only load translation files when needed, reduces loading time a bit
* Update Keychain so it doesn't load languages during startup
* Lazy load all tool scenes, breaks compatibility with the extension API
Decreases initial loading time
* Format
* Very minor loading time speedups
* Remove unneeded project type specifying
* Even more static typing and docstring improvements
* Fix extension loading
* Palette docstrings
---------
Co-authored-by: ppphp <kevinniub@gmail.com>
2023-09-04 13:29:06 +00:00
|
|
|
var p := _panel_container.get_child(i) as DockablePanel
|
2022-01-29 22:47:25 +00:00
|
|
|
if p.leaf == leaf:
|
|
|
|
panel = p
|
|
|
|
break
|
|
|
|
if not panel:
|
|
|
|
return
|
Port to Godot 4 (#900)
* Initial conversion
* Hide some dialogs
* Update addons
* Fix errors in scripts
Temporarily commented out adding new file import types and certain Control methods that are not available in the Window class, such as get_global_mouse_position()
* Update shaders
* Fix some more errors and signals, rename "pressed" to "button_pressed"
* Even more error fixes and renaming corrections
* Fixed more errors, Pixelorama almost runs
* Update ValueSlider.gd
* Remove lock() and unlock(), more ImageTexture.create_from_image() static usage
* More static function using
* Re-add some of the dialog signals, fix window transparency
* Change instances of popup_hide to visibility_changed
* More more errors and warnings
* Fix more errors and warnings
* Get rid of errors in the output when opening Pixelorama in Godot
* Properly connect most signals without using strings
* Fix some scenes
* Don't load Main.tscn
* Emit signals directly instead of using strings
* Fix Keychain menu nodes
* Get rid of self. on most instances, as setters and getters are now always called
* Some more static typing
* Disable texture filters
* Fix zooming
* Fix int as enum warnings
* Fix tools and rename doubleclick to double_click
* Update tool scenes
* Fix tabs
* Fix create new image
* Use static typing on flood fill to speed it up
* Update static-checks.yml
* Reverts #729 for a speedup, hopefully the bug won't get re-introduced
* Fix TransparentChecker warning
* Re-add Default template
* Fix 3D cels
* Fix rotation
Project converted bug. Should be fixed by https://github.com/godotengine/godot/pull/79264
* Fix UITransparency alignment issue, thanks Variable
* Add missing OptionButton items
Hopefully that should be all of them
* Fix the appearance of CollapsibleContainer
* Change instances of world to world_3d
* Fix tool button backgrounds
* Fix Splash dialog
* Fix brush selection
* Update Main.gd
* Fix About Dialog
* Fix more zooming issues
* Fix canvas preview zooming
* Use signals for queue_redraw on project change
* Fix layer button's look
* Fix gradients
* Some gradient fixes and code cleanups, dithering is still broken
* Fix bucket
* Fix the rest of the undo_redo.add_(un)do_method() cases
* Fix guides
* Fix guide text
* Some small changes in Main
* Update Tools.gd
* Fix palette importing
* Get rid of TODOGODOT4s
* Fix the rest of the dialogs
* Update the rest of the scenes
* Fix onion skinning and frame tag dialogs
* Fix file brushes being imported twice
* Fix palette swatch crashing on double click
* Use nearest filter for some of the windows
* Remove old .tres font files
* Fix language switching
* Get rid of Keychain.action_get_first_key() on the extra shortcuts of tools
* Get rid of Keychain.MenuInputActions and directly set shortcuts to the menu items
This temporarily removes echoing support for undo and redo, this will be re-added once https://github.com/godotengine/godot/pull/36493 or https://github.com/godotengine/godot/pull/64317 is merged.
* Clean shortcut-related duplicate code in TopMenuContainer
* Remove DroidSansFallback now that system fonts can be used as fallback
* Remove 3.x settings from project.godot
* Format
* Format gdgifexporter
* Reset Keychain to its original state
* Remove textures from the dark and gray themes
* Remove all textures from the dark theme
* Better static typing in DrawingAlgos
* Use Vector2i for project size
* [Risky commit] Use Vector2i instead of Vector2 for tools
I tested it and everything seems to be working the same as before, but more testing would be appreciated.
* Format after previous commit
* Fix line angle constraint being rotated 180 degrees
This is not a regression from the previous commit(s), Godot 4 probably reversed the logic of `angle_to_point()`.
* Fix input map action not found errors when pressing Shift or Control
* Make AnimatePanel bigger, add spring interpolation
* Fix some layouts/extensions/preferences loading errors
* Fix dithering
* Update layout resources
Probably doesn't change anything at all, but I suppose it might be a good thing to do
* Small changes
* Disable filter in ResizeCanvas dialog
* Fix some preferences default button states
* Fix tile mode always having masking on
* Use integers in tile mode
* Fix checkboxes in preferences not working
* More statically typed arrays!
No need to have these # Array of X comments anymore!
* Fix "apply all" for multiple preview dialogs
* Update theme.tres
* Add HeaderSmall theme type variation
* Fix dynamics buttons
* Don't allow sub-zero zoom values
* Let zoom_out_max always remain Vector2(0.01, 0.01)
This fixes zooming on large canvases
* Bump version to v1.0-dev
* Fix ambient light not working on 3D cels
* Fix .obj loading
* Don't allow greater than max values in the zoom slider
* Set maximum zoom value to always be (500, 500)
* Set zoom slider minimum value to 1
* Some UI changes, mostly related to buttons and the timeline
* Change window titles to what they were before
* [COMPATIBILITY BROKEN WITH v0.x] Fix loading 3D cels
* Avoid changing Cel3DObject's file_path if it's the same
* Make preferences window bigger
* Fix png exporting
* Fix reference image initial size and filter setting
* Fix perspective line reverse scaling on zoom and facing 180 degrees away from cursor
* Format and some linting
* Remove most Images from the rest of the themes
* Remove all textures from all themes
* Fix drawing when the mouse gets released outside the canvas boundaries
* Format Keychain
* Implement #890
* Fix recorder
* Fix layout deletion
* Better static typing and fix empty_clicked signal-connected methods not having arguments
* Fix layout and extension directory creation if they don't already exist
* Change all instances of "HTML5" to "Web"
OS.get_name() now returns "Web" instead of "HTML5" in Godot 4
* Fix JavaScript detection
Opening files in the Web version does not yet work for some reason
* Fix formatting
* Fix lint errors
* Remove unneeded lines from rotation shaders
* Clean some rotation shader related code
* Remove ErrorManager from #891, as it's no longer needed in Godot 4
* Some docstrings
* More Vector2i and Recti replacing their float counterparts
* Remove the hardcoded shortcut from ValueSlider
Note that the brush size shortcut may not change properly because Keychain isn't updated to support Godot 4's input map properly yet.
* Fix bugs from the rebase, integer zooming is currently broken
* Format
* Fix bug where some imported images would fail to load when using smart slice
* Fix integer zooming (I think)
* Fix errors after #898
* Fix some UI issues with PreviewDialog
* Use ctrl/command instead of just ctrl in the shortcuts of the InputMap - gets rid of the need for _use_osx_shortcuts() in Main.gd
* Update Keychain and addons/README.md
* Update CI to Godot 4.1.1 (probably will not work)
* Remove XDGDataPaths.gd
* Make windows non-exclusive
* Attempt to fix macOS CI
* Attempt to fix CI
* Attempt to fix CI
* Minor fix in the dark theme, more will follow
* Silence enumerator/integer warning
* Attempt to fix macOS CI
* Another attempt to fix macOS CI
* Attempt to fix Windows & macOS CI
* fix: Recorder directory create (#903)
* Update Keychain so that the brush size shortcuts can be changed
This update generally lets users use modifier buttons (control, alt, shift, meta) with mouse buttons
* Change OSX to macOS
* Detect if multi-threading is enabled when exporting gifs
* Fix color picker not working on the top color mode
* Make some public methods private in Export.gd
* Remove Global.window_title variable
* Fix frame UI in the timeline breaking after 100 frames
* Static typing improvements for the timeline
* Better static typing for grids
* Fix typo
* Fix pixel grid not appearing
* Move preference updating code to Global using setters
This should make the code a bit more readable, as the logic for each property update can be found directly under the variable declaration, and not hidden in PreferencesDialog's preference_update() method. This also allows for changing these properties outside the preferences, if that will ever be needed. In theory it's also faster as we don't have to do all these string comparisons anymore, but I doubt this will be noticeable in practice.
* Remove RestoreDefaultButton.tscn
* Implement changing font size in the preferences
* Resize HeaderSmall font size along with the default font size
* A step towards fixing image loading in the Web version
Doesn't completely fix the issue, it requires a fix from Godot's side as well
* Implement missing input event actions for buttons
TODO: Add default shortcuts
* Do not change language and theme if they are already the defaults
Reduces the initial loading time a bit
* Remove update_hint_tooltips() as it's no longer needed, only keep it for tools
This was needed in order for hint tooltips to be successfully translated while taking the shortcuts into account. Godot 4 already it correctly for us now. Tools still need it because they contain multiple shortcut data in their tooltips.
* Change ExportDialog's PathDialog's file mode to be "open directory" and make them bigger
* Fix Vector2i + Vector2 errors in grid center snapping
* Update tooltips when the shortcut profile changes
* Fix copy-paste mistake
* Update tooltips during startup if the shortcut profile is not the default
* Fix gif warning label size in ExportDialog
* Fix BBCode in ExportDialog
* Fix some Godot 4.2 warnings
* Some CI fixes
* Static typing improvements and more inline functions
* Format
* Even more static typing, inline methods, docstrings etc
* Some more static typing improvements and inline setters
* Remove unneeded project type specifying
* Fix splash dialog error
* Fix enumerator warning
* Don't preload the font in the rules and guides
* Fix some integer division warnings
Sometimes we indeed need them to be floats
* Change some Rect2s to Rect2is
* Minor static typing improvements
* Update README, CHANGELOG, Translations
* Only load translation files when needed, reduces loading time a bit
* Update Keychain so it doesn't load languages during startup
* Lazy load all tool scenes, breaks compatibility with the extension API
Decreases initial loading time
* Format
* Very minor loading time speedups
* Remove unneeded project type specifying
* Even more static typing and docstring improvements
* Fix extension loading
* Palette docstrings
---------
Co-authored-by: ppphp <kevinniub@gmail.com>
2023-09-04 13:29:06 +00:00
|
|
|
panel.current_tab = clampi(position_in_leaf, 0, panel.get_tab_count() - 1)
|
2022-01-29 22:47:25 +00:00
|
|
|
|
|
|
|
|
Port to Godot 4 (#900)
* Initial conversion
* Hide some dialogs
* Update addons
* Fix errors in scripts
Temporarily commented out adding new file import types and certain Control methods that are not available in the Window class, such as get_global_mouse_position()
* Update shaders
* Fix some more errors and signals, rename "pressed" to "button_pressed"
* Even more error fixes and renaming corrections
* Fixed more errors, Pixelorama almost runs
* Update ValueSlider.gd
* Remove lock() and unlock(), more ImageTexture.create_from_image() static usage
* More static function using
* Re-add some of the dialog signals, fix window transparency
* Change instances of popup_hide to visibility_changed
* More more errors and warnings
* Fix more errors and warnings
* Get rid of errors in the output when opening Pixelorama in Godot
* Properly connect most signals without using strings
* Fix some scenes
* Don't load Main.tscn
* Emit signals directly instead of using strings
* Fix Keychain menu nodes
* Get rid of self. on most instances, as setters and getters are now always called
* Some more static typing
* Disable texture filters
* Fix zooming
* Fix int as enum warnings
* Fix tools and rename doubleclick to double_click
* Update tool scenes
* Fix tabs
* Fix create new image
* Use static typing on flood fill to speed it up
* Update static-checks.yml
* Reverts #729 for a speedup, hopefully the bug won't get re-introduced
* Fix TransparentChecker warning
* Re-add Default template
* Fix 3D cels
* Fix rotation
Project converted bug. Should be fixed by https://github.com/godotengine/godot/pull/79264
* Fix UITransparency alignment issue, thanks Variable
* Add missing OptionButton items
Hopefully that should be all of them
* Fix the appearance of CollapsibleContainer
* Change instances of world to world_3d
* Fix tool button backgrounds
* Fix Splash dialog
* Fix brush selection
* Update Main.gd
* Fix About Dialog
* Fix more zooming issues
* Fix canvas preview zooming
* Use signals for queue_redraw on project change
* Fix layer button's look
* Fix gradients
* Some gradient fixes and code cleanups, dithering is still broken
* Fix bucket
* Fix the rest of the undo_redo.add_(un)do_method() cases
* Fix guides
* Fix guide text
* Some small changes in Main
* Update Tools.gd
* Fix palette importing
* Get rid of TODOGODOT4s
* Fix the rest of the dialogs
* Update the rest of the scenes
* Fix onion skinning and frame tag dialogs
* Fix file brushes being imported twice
* Fix palette swatch crashing on double click
* Use nearest filter for some of the windows
* Remove old .tres font files
* Fix language switching
* Get rid of Keychain.action_get_first_key() on the extra shortcuts of tools
* Get rid of Keychain.MenuInputActions and directly set shortcuts to the menu items
This temporarily removes echoing support for undo and redo, this will be re-added once https://github.com/godotengine/godot/pull/36493 or https://github.com/godotengine/godot/pull/64317 is merged.
* Clean shortcut-related duplicate code in TopMenuContainer
* Remove DroidSansFallback now that system fonts can be used as fallback
* Remove 3.x settings from project.godot
* Format
* Format gdgifexporter
* Reset Keychain to its original state
* Remove textures from the dark and gray themes
* Remove all textures from the dark theme
* Better static typing in DrawingAlgos
* Use Vector2i for project size
* [Risky commit] Use Vector2i instead of Vector2 for tools
I tested it and everything seems to be working the same as before, but more testing would be appreciated.
* Format after previous commit
* Fix line angle constraint being rotated 180 degrees
This is not a regression from the previous commit(s), Godot 4 probably reversed the logic of `angle_to_point()`.
* Fix input map action not found errors when pressing Shift or Control
* Make AnimatePanel bigger, add spring interpolation
* Fix some layouts/extensions/preferences loading errors
* Fix dithering
* Update layout resources
Probably doesn't change anything at all, but I suppose it might be a good thing to do
* Small changes
* Disable filter in ResizeCanvas dialog
* Fix some preferences default button states
* Fix tile mode always having masking on
* Use integers in tile mode
* Fix checkboxes in preferences not working
* More statically typed arrays!
No need to have these # Array of X comments anymore!
* Fix "apply all" for multiple preview dialogs
* Update theme.tres
* Add HeaderSmall theme type variation
* Fix dynamics buttons
* Don't allow sub-zero zoom values
* Let zoom_out_max always remain Vector2(0.01, 0.01)
This fixes zooming on large canvases
* Bump version to v1.0-dev
* Fix ambient light not working on 3D cels
* Fix .obj loading
* Don't allow greater than max values in the zoom slider
* Set maximum zoom value to always be (500, 500)
* Set zoom slider minimum value to 1
* Some UI changes, mostly related to buttons and the timeline
* Change window titles to what they were before
* [COMPATIBILITY BROKEN WITH v0.x] Fix loading 3D cels
* Avoid changing Cel3DObject's file_path if it's the same
* Make preferences window bigger
* Fix png exporting
* Fix reference image initial size and filter setting
* Fix perspective line reverse scaling on zoom and facing 180 degrees away from cursor
* Format and some linting
* Remove most Images from the rest of the themes
* Remove all textures from all themes
* Fix drawing when the mouse gets released outside the canvas boundaries
* Format Keychain
* Implement #890
* Fix recorder
* Fix layout deletion
* Better static typing and fix empty_clicked signal-connected methods not having arguments
* Fix layout and extension directory creation if they don't already exist
* Change all instances of "HTML5" to "Web"
OS.get_name() now returns "Web" instead of "HTML5" in Godot 4
* Fix JavaScript detection
Opening files in the Web version does not yet work for some reason
* Fix formatting
* Fix lint errors
* Remove unneeded lines from rotation shaders
* Clean some rotation shader related code
* Remove ErrorManager from #891, as it's no longer needed in Godot 4
* Some docstrings
* More Vector2i and Recti replacing their float counterparts
* Remove the hardcoded shortcut from ValueSlider
Note that the brush size shortcut may not change properly because Keychain isn't updated to support Godot 4's input map properly yet.
* Fix bugs from the rebase, integer zooming is currently broken
* Format
* Fix bug where some imported images would fail to load when using smart slice
* Fix integer zooming (I think)
* Fix errors after #898
* Fix some UI issues with PreviewDialog
* Use ctrl/command instead of just ctrl in the shortcuts of the InputMap - gets rid of the need for _use_osx_shortcuts() in Main.gd
* Update Keychain and addons/README.md
* Update CI to Godot 4.1.1 (probably will not work)
* Remove XDGDataPaths.gd
* Make windows non-exclusive
* Attempt to fix macOS CI
* Attempt to fix CI
* Attempt to fix CI
* Minor fix in the dark theme, more will follow
* Silence enumerator/integer warning
* Attempt to fix macOS CI
* Another attempt to fix macOS CI
* Attempt to fix Windows & macOS CI
* fix: Recorder directory create (#903)
* Update Keychain so that the brush size shortcuts can be changed
This update generally lets users use modifier buttons (control, alt, shift, meta) with mouse buttons
* Change OSX to macOS
* Detect if multi-threading is enabled when exporting gifs
* Fix color picker not working on the top color mode
* Make some public methods private in Export.gd
* Remove Global.window_title variable
* Fix frame UI in the timeline breaking after 100 frames
* Static typing improvements for the timeline
* Better static typing for grids
* Fix typo
* Fix pixel grid not appearing
* Move preference updating code to Global using setters
This should make the code a bit more readable, as the logic for each property update can be found directly under the variable declaration, and not hidden in PreferencesDialog's preference_update() method. This also allows for changing these properties outside the preferences, if that will ever be needed. In theory it's also faster as we don't have to do all these string comparisons anymore, but I doubt this will be noticeable in practice.
* Remove RestoreDefaultButton.tscn
* Implement changing font size in the preferences
* Resize HeaderSmall font size along with the default font size
* A step towards fixing image loading in the Web version
Doesn't completely fix the issue, it requires a fix from Godot's side as well
* Implement missing input event actions for buttons
TODO: Add default shortcuts
* Do not change language and theme if they are already the defaults
Reduces the initial loading time a bit
* Remove update_hint_tooltips() as it's no longer needed, only keep it for tools
This was needed in order for hint tooltips to be successfully translated while taking the shortcuts into account. Godot 4 already it correctly for us now. Tools still need it because they contain multiple shortcut data in their tooltips.
* Change ExportDialog's PathDialog's file mode to be "open directory" and make them bigger
* Fix Vector2i + Vector2 errors in grid center snapping
* Update tooltips when the shortcut profile changes
* Fix copy-paste mistake
* Update tooltips during startup if the shortcut profile is not the default
* Fix gif warning label size in ExportDialog
* Fix BBCode in ExportDialog
* Fix some Godot 4.2 warnings
* Some CI fixes
* Static typing improvements and more inline functions
* Format
* Even more static typing, inline methods, docstrings etc
* Some more static typing improvements and inline setters
* Remove unneeded project type specifying
* Fix splash dialog error
* Fix enumerator warning
* Don't preload the font in the rules and guides
* Fix some integer division warnings
Sometimes we indeed need them to be floats
* Change some Rect2s to Rect2is
* Minor static typing improvements
* Update README, CHANGELOG, Translations
* Only load translation files when needed, reduces loading time a bit
* Update Keychain so it doesn't load languages during startup
* Lazy load all tool scenes, breaks compatibility with the extension API
Decreases initial loading time
* Format
* Very minor loading time speedups
* Remove unneeded project type specifying
* Even more static typing and docstring improvements
* Fix extension loading
* Palette docstrings
---------
Co-authored-by: ppphp <kevinniub@gmail.com>
2023-09-04 13:29:06 +00:00
|
|
|
func set_layout(value: DockableLayout) -> void:
|
2022-01-29 22:47:25 +00:00
|
|
|
if value == null:
|
Port to Godot 4 (#900)
* Initial conversion
* Hide some dialogs
* Update addons
* Fix errors in scripts
Temporarily commented out adding new file import types and certain Control methods that are not available in the Window class, such as get_global_mouse_position()
* Update shaders
* Fix some more errors and signals, rename "pressed" to "button_pressed"
* Even more error fixes and renaming corrections
* Fixed more errors, Pixelorama almost runs
* Update ValueSlider.gd
* Remove lock() and unlock(), more ImageTexture.create_from_image() static usage
* More static function using
* Re-add some of the dialog signals, fix window transparency
* Change instances of popup_hide to visibility_changed
* More more errors and warnings
* Fix more errors and warnings
* Get rid of errors in the output when opening Pixelorama in Godot
* Properly connect most signals without using strings
* Fix some scenes
* Don't load Main.tscn
* Emit signals directly instead of using strings
* Fix Keychain menu nodes
* Get rid of self. on most instances, as setters and getters are now always called
* Some more static typing
* Disable texture filters
* Fix zooming
* Fix int as enum warnings
* Fix tools and rename doubleclick to double_click
* Update tool scenes
* Fix tabs
* Fix create new image
* Use static typing on flood fill to speed it up
* Update static-checks.yml
* Reverts #729 for a speedup, hopefully the bug won't get re-introduced
* Fix TransparentChecker warning
* Re-add Default template
* Fix 3D cels
* Fix rotation
Project converted bug. Should be fixed by https://github.com/godotengine/godot/pull/79264
* Fix UITransparency alignment issue, thanks Variable
* Add missing OptionButton items
Hopefully that should be all of them
* Fix the appearance of CollapsibleContainer
* Change instances of world to world_3d
* Fix tool button backgrounds
* Fix Splash dialog
* Fix brush selection
* Update Main.gd
* Fix About Dialog
* Fix more zooming issues
* Fix canvas preview zooming
* Use signals for queue_redraw on project change
* Fix layer button's look
* Fix gradients
* Some gradient fixes and code cleanups, dithering is still broken
* Fix bucket
* Fix the rest of the undo_redo.add_(un)do_method() cases
* Fix guides
* Fix guide text
* Some small changes in Main
* Update Tools.gd
* Fix palette importing
* Get rid of TODOGODOT4s
* Fix the rest of the dialogs
* Update the rest of the scenes
* Fix onion skinning and frame tag dialogs
* Fix file brushes being imported twice
* Fix palette swatch crashing on double click
* Use nearest filter for some of the windows
* Remove old .tres font files
* Fix language switching
* Get rid of Keychain.action_get_first_key() on the extra shortcuts of tools
* Get rid of Keychain.MenuInputActions and directly set shortcuts to the menu items
This temporarily removes echoing support for undo and redo, this will be re-added once https://github.com/godotengine/godot/pull/36493 or https://github.com/godotengine/godot/pull/64317 is merged.
* Clean shortcut-related duplicate code in TopMenuContainer
* Remove DroidSansFallback now that system fonts can be used as fallback
* Remove 3.x settings from project.godot
* Format
* Format gdgifexporter
* Reset Keychain to its original state
* Remove textures from the dark and gray themes
* Remove all textures from the dark theme
* Better static typing in DrawingAlgos
* Use Vector2i for project size
* [Risky commit] Use Vector2i instead of Vector2 for tools
I tested it and everything seems to be working the same as before, but more testing would be appreciated.
* Format after previous commit
* Fix line angle constraint being rotated 180 degrees
This is not a regression from the previous commit(s), Godot 4 probably reversed the logic of `angle_to_point()`.
* Fix input map action not found errors when pressing Shift or Control
* Make AnimatePanel bigger, add spring interpolation
* Fix some layouts/extensions/preferences loading errors
* Fix dithering
* Update layout resources
Probably doesn't change anything at all, but I suppose it might be a good thing to do
* Small changes
* Disable filter in ResizeCanvas dialog
* Fix some preferences default button states
* Fix tile mode always having masking on
* Use integers in tile mode
* Fix checkboxes in preferences not working
* More statically typed arrays!
No need to have these # Array of X comments anymore!
* Fix "apply all" for multiple preview dialogs
* Update theme.tres
* Add HeaderSmall theme type variation
* Fix dynamics buttons
* Don't allow sub-zero zoom values
* Let zoom_out_max always remain Vector2(0.01, 0.01)
This fixes zooming on large canvases
* Bump version to v1.0-dev
* Fix ambient light not working on 3D cels
* Fix .obj loading
* Don't allow greater than max values in the zoom slider
* Set maximum zoom value to always be (500, 500)
* Set zoom slider minimum value to 1
* Some UI changes, mostly related to buttons and the timeline
* Change window titles to what they were before
* [COMPATIBILITY BROKEN WITH v0.x] Fix loading 3D cels
* Avoid changing Cel3DObject's file_path if it's the same
* Make preferences window bigger
* Fix png exporting
* Fix reference image initial size and filter setting
* Fix perspective line reverse scaling on zoom and facing 180 degrees away from cursor
* Format and some linting
* Remove most Images from the rest of the themes
* Remove all textures from all themes
* Fix drawing when the mouse gets released outside the canvas boundaries
* Format Keychain
* Implement #890
* Fix recorder
* Fix layout deletion
* Better static typing and fix empty_clicked signal-connected methods not having arguments
* Fix layout and extension directory creation if they don't already exist
* Change all instances of "HTML5" to "Web"
OS.get_name() now returns "Web" instead of "HTML5" in Godot 4
* Fix JavaScript detection
Opening files in the Web version does not yet work for some reason
* Fix formatting
* Fix lint errors
* Remove unneeded lines from rotation shaders
* Clean some rotation shader related code
* Remove ErrorManager from #891, as it's no longer needed in Godot 4
* Some docstrings
* More Vector2i and Recti replacing their float counterparts
* Remove the hardcoded shortcut from ValueSlider
Note that the brush size shortcut may not change properly because Keychain isn't updated to support Godot 4's input map properly yet.
* Fix bugs from the rebase, integer zooming is currently broken
* Format
* Fix bug where some imported images would fail to load when using smart slice
* Fix integer zooming (I think)
* Fix errors after #898
* Fix some UI issues with PreviewDialog
* Use ctrl/command instead of just ctrl in the shortcuts of the InputMap - gets rid of the need for _use_osx_shortcuts() in Main.gd
* Update Keychain and addons/README.md
* Update CI to Godot 4.1.1 (probably will not work)
* Remove XDGDataPaths.gd
* Make windows non-exclusive
* Attempt to fix macOS CI
* Attempt to fix CI
* Attempt to fix CI
* Minor fix in the dark theme, more will follow
* Silence enumerator/integer warning
* Attempt to fix macOS CI
* Another attempt to fix macOS CI
* Attempt to fix Windows & macOS CI
* fix: Recorder directory create (#903)
* Update Keychain so that the brush size shortcuts can be changed
This update generally lets users use modifier buttons (control, alt, shift, meta) with mouse buttons
* Change OSX to macOS
* Detect if multi-threading is enabled when exporting gifs
* Fix color picker not working on the top color mode
* Make some public methods private in Export.gd
* Remove Global.window_title variable
* Fix frame UI in the timeline breaking after 100 frames
* Static typing improvements for the timeline
* Better static typing for grids
* Fix typo
* Fix pixel grid not appearing
* Move preference updating code to Global using setters
This should make the code a bit more readable, as the logic for each property update can be found directly under the variable declaration, and not hidden in PreferencesDialog's preference_update() method. This also allows for changing these properties outside the preferences, if that will ever be needed. In theory it's also faster as we don't have to do all these string comparisons anymore, but I doubt this will be noticeable in practice.
* Remove RestoreDefaultButton.tscn
* Implement changing font size in the preferences
* Resize HeaderSmall font size along with the default font size
* A step towards fixing image loading in the Web version
Doesn't completely fix the issue, it requires a fix from Godot's side as well
* Implement missing input event actions for buttons
TODO: Add default shortcuts
* Do not change language and theme if they are already the defaults
Reduces the initial loading time a bit
* Remove update_hint_tooltips() as it's no longer needed, only keep it for tools
This was needed in order for hint tooltips to be successfully translated while taking the shortcuts into account. Godot 4 already it correctly for us now. Tools still need it because they contain multiple shortcut data in their tooltips.
* Change ExportDialog's PathDialog's file mode to be "open directory" and make them bigger
* Fix Vector2i + Vector2 errors in grid center snapping
* Update tooltips when the shortcut profile changes
* Fix copy-paste mistake
* Update tooltips during startup if the shortcut profile is not the default
* Fix gif warning label size in ExportDialog
* Fix BBCode in ExportDialog
* Fix some Godot 4.2 warnings
* Some CI fixes
* Static typing improvements and more inline functions
* Format
* Even more static typing, inline methods, docstrings etc
* Some more static typing improvements and inline setters
* Remove unneeded project type specifying
* Fix splash dialog error
* Fix enumerator warning
* Don't preload the font in the rules and guides
* Fix some integer division warnings
Sometimes we indeed need them to be floats
* Change some Rect2s to Rect2is
* Minor static typing improvements
* Update README, CHANGELOG, Translations
* Only load translation files when needed, reduces loading time a bit
* Update Keychain so it doesn't load languages during startup
* Lazy load all tool scenes, breaks compatibility with the extension API
Decreases initial loading time
* Format
* Very minor loading time speedups
* Remove unneeded project type specifying
* Even more static typing and docstring improvements
* Fix extension loading
* Palette docstrings
---------
Co-authored-by: ppphp <kevinniub@gmail.com>
2023-09-04 13:29:06 +00:00
|
|
|
value = DockableLayout.new()
|
2022-01-29 22:47:25 +00:00
|
|
|
if value == _layout:
|
|
|
|
return
|
Port to Godot 4 (#900)
* Initial conversion
* Hide some dialogs
* Update addons
* Fix errors in scripts
Temporarily commented out adding new file import types and certain Control methods that are not available in the Window class, such as get_global_mouse_position()
* Update shaders
* Fix some more errors and signals, rename "pressed" to "button_pressed"
* Even more error fixes and renaming corrections
* Fixed more errors, Pixelorama almost runs
* Update ValueSlider.gd
* Remove lock() and unlock(), more ImageTexture.create_from_image() static usage
* More static function using
* Re-add some of the dialog signals, fix window transparency
* Change instances of popup_hide to visibility_changed
* More more errors and warnings
* Fix more errors and warnings
* Get rid of errors in the output when opening Pixelorama in Godot
* Properly connect most signals without using strings
* Fix some scenes
* Don't load Main.tscn
* Emit signals directly instead of using strings
* Fix Keychain menu nodes
* Get rid of self. on most instances, as setters and getters are now always called
* Some more static typing
* Disable texture filters
* Fix zooming
* Fix int as enum warnings
* Fix tools and rename doubleclick to double_click
* Update tool scenes
* Fix tabs
* Fix create new image
* Use static typing on flood fill to speed it up
* Update static-checks.yml
* Reverts #729 for a speedup, hopefully the bug won't get re-introduced
* Fix TransparentChecker warning
* Re-add Default template
* Fix 3D cels
* Fix rotation
Project converted bug. Should be fixed by https://github.com/godotengine/godot/pull/79264
* Fix UITransparency alignment issue, thanks Variable
* Add missing OptionButton items
Hopefully that should be all of them
* Fix the appearance of CollapsibleContainer
* Change instances of world to world_3d
* Fix tool button backgrounds
* Fix Splash dialog
* Fix brush selection
* Update Main.gd
* Fix About Dialog
* Fix more zooming issues
* Fix canvas preview zooming
* Use signals for queue_redraw on project change
* Fix layer button's look
* Fix gradients
* Some gradient fixes and code cleanups, dithering is still broken
* Fix bucket
* Fix the rest of the undo_redo.add_(un)do_method() cases
* Fix guides
* Fix guide text
* Some small changes in Main
* Update Tools.gd
* Fix palette importing
* Get rid of TODOGODOT4s
* Fix the rest of the dialogs
* Update the rest of the scenes
* Fix onion skinning and frame tag dialogs
* Fix file brushes being imported twice
* Fix palette swatch crashing on double click
* Use nearest filter for some of the windows
* Remove old .tres font files
* Fix language switching
* Get rid of Keychain.action_get_first_key() on the extra shortcuts of tools
* Get rid of Keychain.MenuInputActions and directly set shortcuts to the menu items
This temporarily removes echoing support for undo and redo, this will be re-added once https://github.com/godotengine/godot/pull/36493 or https://github.com/godotengine/godot/pull/64317 is merged.
* Clean shortcut-related duplicate code in TopMenuContainer
* Remove DroidSansFallback now that system fonts can be used as fallback
* Remove 3.x settings from project.godot
* Format
* Format gdgifexporter
* Reset Keychain to its original state
* Remove textures from the dark and gray themes
* Remove all textures from the dark theme
* Better static typing in DrawingAlgos
* Use Vector2i for project size
* [Risky commit] Use Vector2i instead of Vector2 for tools
I tested it and everything seems to be working the same as before, but more testing would be appreciated.
* Format after previous commit
* Fix line angle constraint being rotated 180 degrees
This is not a regression from the previous commit(s), Godot 4 probably reversed the logic of `angle_to_point()`.
* Fix input map action not found errors when pressing Shift or Control
* Make AnimatePanel bigger, add spring interpolation
* Fix some layouts/extensions/preferences loading errors
* Fix dithering
* Update layout resources
Probably doesn't change anything at all, but I suppose it might be a good thing to do
* Small changes
* Disable filter in ResizeCanvas dialog
* Fix some preferences default button states
* Fix tile mode always having masking on
* Use integers in tile mode
* Fix checkboxes in preferences not working
* More statically typed arrays!
No need to have these # Array of X comments anymore!
* Fix "apply all" for multiple preview dialogs
* Update theme.tres
* Add HeaderSmall theme type variation
* Fix dynamics buttons
* Don't allow sub-zero zoom values
* Let zoom_out_max always remain Vector2(0.01, 0.01)
This fixes zooming on large canvases
* Bump version to v1.0-dev
* Fix ambient light not working on 3D cels
* Fix .obj loading
* Don't allow greater than max values in the zoom slider
* Set maximum zoom value to always be (500, 500)
* Set zoom slider minimum value to 1
* Some UI changes, mostly related to buttons and the timeline
* Change window titles to what they were before
* [COMPATIBILITY BROKEN WITH v0.x] Fix loading 3D cels
* Avoid changing Cel3DObject's file_path if it's the same
* Make preferences window bigger
* Fix png exporting
* Fix reference image initial size and filter setting
* Fix perspective line reverse scaling on zoom and facing 180 degrees away from cursor
* Format and some linting
* Remove most Images from the rest of the themes
* Remove all textures from all themes
* Fix drawing when the mouse gets released outside the canvas boundaries
* Format Keychain
* Implement #890
* Fix recorder
* Fix layout deletion
* Better static typing and fix empty_clicked signal-connected methods not having arguments
* Fix layout and extension directory creation if they don't already exist
* Change all instances of "HTML5" to "Web"
OS.get_name() now returns "Web" instead of "HTML5" in Godot 4
* Fix JavaScript detection
Opening files in the Web version does not yet work for some reason
* Fix formatting
* Fix lint errors
* Remove unneeded lines from rotation shaders
* Clean some rotation shader related code
* Remove ErrorManager from #891, as it's no longer needed in Godot 4
* Some docstrings
* More Vector2i and Recti replacing their float counterparts
* Remove the hardcoded shortcut from ValueSlider
Note that the brush size shortcut may not change properly because Keychain isn't updated to support Godot 4's input map properly yet.
* Fix bugs from the rebase, integer zooming is currently broken
* Format
* Fix bug where some imported images would fail to load when using smart slice
* Fix integer zooming (I think)
* Fix errors after #898
* Fix some UI issues with PreviewDialog
* Use ctrl/command instead of just ctrl in the shortcuts of the InputMap - gets rid of the need for _use_osx_shortcuts() in Main.gd
* Update Keychain and addons/README.md
* Update CI to Godot 4.1.1 (probably will not work)
* Remove XDGDataPaths.gd
* Make windows non-exclusive
* Attempt to fix macOS CI
* Attempt to fix CI
* Attempt to fix CI
* Minor fix in the dark theme, more will follow
* Silence enumerator/integer warning
* Attempt to fix macOS CI
* Another attempt to fix macOS CI
* Attempt to fix Windows & macOS CI
* fix: Recorder directory create (#903)
* Update Keychain so that the brush size shortcuts can be changed
This update generally lets users use modifier buttons (control, alt, shift, meta) with mouse buttons
* Change OSX to macOS
* Detect if multi-threading is enabled when exporting gifs
* Fix color picker not working on the top color mode
* Make some public methods private in Export.gd
* Remove Global.window_title variable
* Fix frame UI in the timeline breaking after 100 frames
* Static typing improvements for the timeline
* Better static typing for grids
* Fix typo
* Fix pixel grid not appearing
* Move preference updating code to Global using setters
This should make the code a bit more readable, as the logic for each property update can be found directly under the variable declaration, and not hidden in PreferencesDialog's preference_update() method. This also allows for changing these properties outside the preferences, if that will ever be needed. In theory it's also faster as we don't have to do all these string comparisons anymore, but I doubt this will be noticeable in practice.
* Remove RestoreDefaultButton.tscn
* Implement changing font size in the preferences
* Resize HeaderSmall font size along with the default font size
* A step towards fixing image loading in the Web version
Doesn't completely fix the issue, it requires a fix from Godot's side as well
* Implement missing input event actions for buttons
TODO: Add default shortcuts
* Do not change language and theme if they are already the defaults
Reduces the initial loading time a bit
* Remove update_hint_tooltips() as it's no longer needed, only keep it for tools
This was needed in order for hint tooltips to be successfully translated while taking the shortcuts into account. Godot 4 already it correctly for us now. Tools still need it because they contain multiple shortcut data in their tooltips.
* Change ExportDialog's PathDialog's file mode to be "open directory" and make them bigger
* Fix Vector2i + Vector2 errors in grid center snapping
* Update tooltips when the shortcut profile changes
* Fix copy-paste mistake
* Update tooltips during startup if the shortcut profile is not the default
* Fix gif warning label size in ExportDialog
* Fix BBCode in ExportDialog
* Fix some Godot 4.2 warnings
* Some CI fixes
* Static typing improvements and more inline functions
* Format
* Even more static typing, inline methods, docstrings etc
* Some more static typing improvements and inline setters
* Remove unneeded project type specifying
* Fix splash dialog error
* Fix enumerator warning
* Don't preload the font in the rules and guides
* Fix some integer division warnings
Sometimes we indeed need them to be floats
* Change some Rect2s to Rect2is
* Minor static typing improvements
* Update README, CHANGELOG, Translations
* Only load translation files when needed, reduces loading time a bit
* Update Keychain so it doesn't load languages during startup
* Lazy load all tool scenes, breaks compatibility with the extension API
Decreases initial loading time
* Format
* Very minor loading time speedups
* Remove unneeded project type specifying
* Even more static typing and docstring improvements
* Fix extension loading
* Palette docstrings
---------
Co-authored-by: ppphp <kevinniub@gmail.com>
2023-09-04 13:29:06 +00:00
|
|
|
if _layout and _layout.changed.is_connected(queue_sort):
|
|
|
|
_layout.changed.disconnect(queue_sort)
|
2022-01-29 22:47:25 +00:00
|
|
|
_layout = value
|
Port to Godot 4 (#900)
* Initial conversion
* Hide some dialogs
* Update addons
* Fix errors in scripts
Temporarily commented out adding new file import types and certain Control methods that are not available in the Window class, such as get_global_mouse_position()
* Update shaders
* Fix some more errors and signals, rename "pressed" to "button_pressed"
* Even more error fixes and renaming corrections
* Fixed more errors, Pixelorama almost runs
* Update ValueSlider.gd
* Remove lock() and unlock(), more ImageTexture.create_from_image() static usage
* More static function using
* Re-add some of the dialog signals, fix window transparency
* Change instances of popup_hide to visibility_changed
* More more errors and warnings
* Fix more errors and warnings
* Get rid of errors in the output when opening Pixelorama in Godot
* Properly connect most signals without using strings
* Fix some scenes
* Don't load Main.tscn
* Emit signals directly instead of using strings
* Fix Keychain menu nodes
* Get rid of self. on most instances, as setters and getters are now always called
* Some more static typing
* Disable texture filters
* Fix zooming
* Fix int as enum warnings
* Fix tools and rename doubleclick to double_click
* Update tool scenes
* Fix tabs
* Fix create new image
* Use static typing on flood fill to speed it up
* Update static-checks.yml
* Reverts #729 for a speedup, hopefully the bug won't get re-introduced
* Fix TransparentChecker warning
* Re-add Default template
* Fix 3D cels
* Fix rotation
Project converted bug. Should be fixed by https://github.com/godotengine/godot/pull/79264
* Fix UITransparency alignment issue, thanks Variable
* Add missing OptionButton items
Hopefully that should be all of them
* Fix the appearance of CollapsibleContainer
* Change instances of world to world_3d
* Fix tool button backgrounds
* Fix Splash dialog
* Fix brush selection
* Update Main.gd
* Fix About Dialog
* Fix more zooming issues
* Fix canvas preview zooming
* Use signals for queue_redraw on project change
* Fix layer button's look
* Fix gradients
* Some gradient fixes and code cleanups, dithering is still broken
* Fix bucket
* Fix the rest of the undo_redo.add_(un)do_method() cases
* Fix guides
* Fix guide text
* Some small changes in Main
* Update Tools.gd
* Fix palette importing
* Get rid of TODOGODOT4s
* Fix the rest of the dialogs
* Update the rest of the scenes
* Fix onion skinning and frame tag dialogs
* Fix file brushes being imported twice
* Fix palette swatch crashing on double click
* Use nearest filter for some of the windows
* Remove old .tres font files
* Fix language switching
* Get rid of Keychain.action_get_first_key() on the extra shortcuts of tools
* Get rid of Keychain.MenuInputActions and directly set shortcuts to the menu items
This temporarily removes echoing support for undo and redo, this will be re-added once https://github.com/godotengine/godot/pull/36493 or https://github.com/godotengine/godot/pull/64317 is merged.
* Clean shortcut-related duplicate code in TopMenuContainer
* Remove DroidSansFallback now that system fonts can be used as fallback
* Remove 3.x settings from project.godot
* Format
* Format gdgifexporter
* Reset Keychain to its original state
* Remove textures from the dark and gray themes
* Remove all textures from the dark theme
* Better static typing in DrawingAlgos
* Use Vector2i for project size
* [Risky commit] Use Vector2i instead of Vector2 for tools
I tested it and everything seems to be working the same as before, but more testing would be appreciated.
* Format after previous commit
* Fix line angle constraint being rotated 180 degrees
This is not a regression from the previous commit(s), Godot 4 probably reversed the logic of `angle_to_point()`.
* Fix input map action not found errors when pressing Shift or Control
* Make AnimatePanel bigger, add spring interpolation
* Fix some layouts/extensions/preferences loading errors
* Fix dithering
* Update layout resources
Probably doesn't change anything at all, but I suppose it might be a good thing to do
* Small changes
* Disable filter in ResizeCanvas dialog
* Fix some preferences default button states
* Fix tile mode always having masking on
* Use integers in tile mode
* Fix checkboxes in preferences not working
* More statically typed arrays!
No need to have these # Array of X comments anymore!
* Fix "apply all" for multiple preview dialogs
* Update theme.tres
* Add HeaderSmall theme type variation
* Fix dynamics buttons
* Don't allow sub-zero zoom values
* Let zoom_out_max always remain Vector2(0.01, 0.01)
This fixes zooming on large canvases
* Bump version to v1.0-dev
* Fix ambient light not working on 3D cels
* Fix .obj loading
* Don't allow greater than max values in the zoom slider
* Set maximum zoom value to always be (500, 500)
* Set zoom slider minimum value to 1
* Some UI changes, mostly related to buttons and the timeline
* Change window titles to what they were before
* [COMPATIBILITY BROKEN WITH v0.x] Fix loading 3D cels
* Avoid changing Cel3DObject's file_path if it's the same
* Make preferences window bigger
* Fix png exporting
* Fix reference image initial size and filter setting
* Fix perspective line reverse scaling on zoom and facing 180 degrees away from cursor
* Format and some linting
* Remove most Images from the rest of the themes
* Remove all textures from all themes
* Fix drawing when the mouse gets released outside the canvas boundaries
* Format Keychain
* Implement #890
* Fix recorder
* Fix layout deletion
* Better static typing and fix empty_clicked signal-connected methods not having arguments
* Fix layout and extension directory creation if they don't already exist
* Change all instances of "HTML5" to "Web"
OS.get_name() now returns "Web" instead of "HTML5" in Godot 4
* Fix JavaScript detection
Opening files in the Web version does not yet work for some reason
* Fix formatting
* Fix lint errors
* Remove unneeded lines from rotation shaders
* Clean some rotation shader related code
* Remove ErrorManager from #891, as it's no longer needed in Godot 4
* Some docstrings
* More Vector2i and Recti replacing their float counterparts
* Remove the hardcoded shortcut from ValueSlider
Note that the brush size shortcut may not change properly because Keychain isn't updated to support Godot 4's input map properly yet.
* Fix bugs from the rebase, integer zooming is currently broken
* Format
* Fix bug where some imported images would fail to load when using smart slice
* Fix integer zooming (I think)
* Fix errors after #898
* Fix some UI issues with PreviewDialog
* Use ctrl/command instead of just ctrl in the shortcuts of the InputMap - gets rid of the need for _use_osx_shortcuts() in Main.gd
* Update Keychain and addons/README.md
* Update CI to Godot 4.1.1 (probably will not work)
* Remove XDGDataPaths.gd
* Make windows non-exclusive
* Attempt to fix macOS CI
* Attempt to fix CI
* Attempt to fix CI
* Minor fix in the dark theme, more will follow
* Silence enumerator/integer warning
* Attempt to fix macOS CI
* Another attempt to fix macOS CI
* Attempt to fix Windows & macOS CI
* fix: Recorder directory create (#903)
* Update Keychain so that the brush size shortcuts can be changed
This update generally lets users use modifier buttons (control, alt, shift, meta) with mouse buttons
* Change OSX to macOS
* Detect if multi-threading is enabled when exporting gifs
* Fix color picker not working on the top color mode
* Make some public methods private in Export.gd
* Remove Global.window_title variable
* Fix frame UI in the timeline breaking after 100 frames
* Static typing improvements for the timeline
* Better static typing for grids
* Fix typo
* Fix pixel grid not appearing
* Move preference updating code to Global using setters
This should make the code a bit more readable, as the logic for each property update can be found directly under the variable declaration, and not hidden in PreferencesDialog's preference_update() method. This also allows for changing these properties outside the preferences, if that will ever be needed. In theory it's also faster as we don't have to do all these string comparisons anymore, but I doubt this will be noticeable in practice.
* Remove RestoreDefaultButton.tscn
* Implement changing font size in the preferences
* Resize HeaderSmall font size along with the default font size
* A step towards fixing image loading in the Web version
Doesn't completely fix the issue, it requires a fix from Godot's side as well
* Implement missing input event actions for buttons
TODO: Add default shortcuts
* Do not change language and theme if they are already the defaults
Reduces the initial loading time a bit
* Remove update_hint_tooltips() as it's no longer needed, only keep it for tools
This was needed in order for hint tooltips to be successfully translated while taking the shortcuts into account. Godot 4 already it correctly for us now. Tools still need it because they contain multiple shortcut data in their tooltips.
* Change ExportDialog's PathDialog's file mode to be "open directory" and make them bigger
* Fix Vector2i + Vector2 errors in grid center snapping
* Update tooltips when the shortcut profile changes
* Fix copy-paste mistake
* Update tooltips during startup if the shortcut profile is not the default
* Fix gif warning label size in ExportDialog
* Fix BBCode in ExportDialog
* Fix some Godot 4.2 warnings
* Some CI fixes
* Static typing improvements and more inline functions
* Format
* Even more static typing, inline methods, docstrings etc
* Some more static typing improvements and inline setters
* Remove unneeded project type specifying
* Fix splash dialog error
* Fix enumerator warning
* Don't preload the font in the rules and guides
* Fix some integer division warnings
Sometimes we indeed need them to be floats
* Change some Rect2s to Rect2is
* Minor static typing improvements
* Update README, CHANGELOG, Translations
* Only load translation files when needed, reduces loading time a bit
* Update Keychain so it doesn't load languages during startup
* Lazy load all tool scenes, breaks compatibility with the extension API
Decreases initial loading time
* Format
* Very minor loading time speedups
* Remove unneeded project type specifying
* Even more static typing and docstring improvements
* Fix extension loading
* Palette docstrings
---------
Co-authored-by: ppphp <kevinniub@gmail.com>
2023-09-04 13:29:06 +00:00
|
|
|
_layout.changed.connect(queue_sort)
|
2024-10-11 09:13:13 +00:00
|
|
|
for window in _windows_container.get_children():
|
|
|
|
if not window.name in _layout.windows and window is FloatingWindow:
|
|
|
|
window.prevent_data_erasure = true # We don't want to delete data.
|
|
|
|
window.close_requested.emit() # Removes the window.
|
|
|
|
continue
|
|
|
|
for window: String in _layout.windows.keys():
|
|
|
|
var panel := find_child(window, false)
|
|
|
|
# Only those windows get created which were not previously created.
|
|
|
|
if panel:
|
|
|
|
_convert_to_window(panel)
|
2022-01-29 22:47:25 +00:00
|
|
|
_layout_dirty = true
|
|
|
|
queue_sort()
|
|
|
|
|
|
|
|
|
|
|
|
func set_use_hidden_tabs_for_min_size(value: bool) -> void:
|
|
|
|
_use_hidden_tabs_for_min_size = value
|
|
|
|
for i in range(1, _panel_container.get_child_count()):
|
2024-10-11 09:13:13 +00:00
|
|
|
var panel := _panel_container.get_child(i) as DockablePanel
|
2022-01-29 22:47:25 +00:00
|
|
|
panel.use_hidden_tabs_for_min_size = value
|
|
|
|
|
|
|
|
|
|
|
|
func get_use_hidden_tabs_for_min_size() -> bool:
|
|
|
|
return _use_hidden_tabs_for_min_size
|
|
|
|
|
|
|
|
|
Port to Godot 4 (#900)
* Initial conversion
* Hide some dialogs
* Update addons
* Fix errors in scripts
Temporarily commented out adding new file import types and certain Control methods that are not available in the Window class, such as get_global_mouse_position()
* Update shaders
* Fix some more errors and signals, rename "pressed" to "button_pressed"
* Even more error fixes and renaming corrections
* Fixed more errors, Pixelorama almost runs
* Update ValueSlider.gd
* Remove lock() and unlock(), more ImageTexture.create_from_image() static usage
* More static function using
* Re-add some of the dialog signals, fix window transparency
* Change instances of popup_hide to visibility_changed
* More more errors and warnings
* Fix more errors and warnings
* Get rid of errors in the output when opening Pixelorama in Godot
* Properly connect most signals without using strings
* Fix some scenes
* Don't load Main.tscn
* Emit signals directly instead of using strings
* Fix Keychain menu nodes
* Get rid of self. on most instances, as setters and getters are now always called
* Some more static typing
* Disable texture filters
* Fix zooming
* Fix int as enum warnings
* Fix tools and rename doubleclick to double_click
* Update tool scenes
* Fix tabs
* Fix create new image
* Use static typing on flood fill to speed it up
* Update static-checks.yml
* Reverts #729 for a speedup, hopefully the bug won't get re-introduced
* Fix TransparentChecker warning
* Re-add Default template
* Fix 3D cels
* Fix rotation
Project converted bug. Should be fixed by https://github.com/godotengine/godot/pull/79264
* Fix UITransparency alignment issue, thanks Variable
* Add missing OptionButton items
Hopefully that should be all of them
* Fix the appearance of CollapsibleContainer
* Change instances of world to world_3d
* Fix tool button backgrounds
* Fix Splash dialog
* Fix brush selection
* Update Main.gd
* Fix About Dialog
* Fix more zooming issues
* Fix canvas preview zooming
* Use signals for queue_redraw on project change
* Fix layer button's look
* Fix gradients
* Some gradient fixes and code cleanups, dithering is still broken
* Fix bucket
* Fix the rest of the undo_redo.add_(un)do_method() cases
* Fix guides
* Fix guide text
* Some small changes in Main
* Update Tools.gd
* Fix palette importing
* Get rid of TODOGODOT4s
* Fix the rest of the dialogs
* Update the rest of the scenes
* Fix onion skinning and frame tag dialogs
* Fix file brushes being imported twice
* Fix palette swatch crashing on double click
* Use nearest filter for some of the windows
* Remove old .tres font files
* Fix language switching
* Get rid of Keychain.action_get_first_key() on the extra shortcuts of tools
* Get rid of Keychain.MenuInputActions and directly set shortcuts to the menu items
This temporarily removes echoing support for undo and redo, this will be re-added once https://github.com/godotengine/godot/pull/36493 or https://github.com/godotengine/godot/pull/64317 is merged.
* Clean shortcut-related duplicate code in TopMenuContainer
* Remove DroidSansFallback now that system fonts can be used as fallback
* Remove 3.x settings from project.godot
* Format
* Format gdgifexporter
* Reset Keychain to its original state
* Remove textures from the dark and gray themes
* Remove all textures from the dark theme
* Better static typing in DrawingAlgos
* Use Vector2i for project size
* [Risky commit] Use Vector2i instead of Vector2 for tools
I tested it and everything seems to be working the same as before, but more testing would be appreciated.
* Format after previous commit
* Fix line angle constraint being rotated 180 degrees
This is not a regression from the previous commit(s), Godot 4 probably reversed the logic of `angle_to_point()`.
* Fix input map action not found errors when pressing Shift or Control
* Make AnimatePanel bigger, add spring interpolation
* Fix some layouts/extensions/preferences loading errors
* Fix dithering
* Update layout resources
Probably doesn't change anything at all, but I suppose it might be a good thing to do
* Small changes
* Disable filter in ResizeCanvas dialog
* Fix some preferences default button states
* Fix tile mode always having masking on
* Use integers in tile mode
* Fix checkboxes in preferences not working
* More statically typed arrays!
No need to have these # Array of X comments anymore!
* Fix "apply all" for multiple preview dialogs
* Update theme.tres
* Add HeaderSmall theme type variation
* Fix dynamics buttons
* Don't allow sub-zero zoom values
* Let zoom_out_max always remain Vector2(0.01, 0.01)
This fixes zooming on large canvases
* Bump version to v1.0-dev
* Fix ambient light not working on 3D cels
* Fix .obj loading
* Don't allow greater than max values in the zoom slider
* Set maximum zoom value to always be (500, 500)
* Set zoom slider minimum value to 1
* Some UI changes, mostly related to buttons and the timeline
* Change window titles to what they were before
* [COMPATIBILITY BROKEN WITH v0.x] Fix loading 3D cels
* Avoid changing Cel3DObject's file_path if it's the same
* Make preferences window bigger
* Fix png exporting
* Fix reference image initial size and filter setting
* Fix perspective line reverse scaling on zoom and facing 180 degrees away from cursor
* Format and some linting
* Remove most Images from the rest of the themes
* Remove all textures from all themes
* Fix drawing when the mouse gets released outside the canvas boundaries
* Format Keychain
* Implement #890
* Fix recorder
* Fix layout deletion
* Better static typing and fix empty_clicked signal-connected methods not having arguments
* Fix layout and extension directory creation if they don't already exist
* Change all instances of "HTML5" to "Web"
OS.get_name() now returns "Web" instead of "HTML5" in Godot 4
* Fix JavaScript detection
Opening files in the Web version does not yet work for some reason
* Fix formatting
* Fix lint errors
* Remove unneeded lines from rotation shaders
* Clean some rotation shader related code
* Remove ErrorManager from #891, as it's no longer needed in Godot 4
* Some docstrings
* More Vector2i and Recti replacing their float counterparts
* Remove the hardcoded shortcut from ValueSlider
Note that the brush size shortcut may not change properly because Keychain isn't updated to support Godot 4's input map properly yet.
* Fix bugs from the rebase, integer zooming is currently broken
* Format
* Fix bug where some imported images would fail to load when using smart slice
* Fix integer zooming (I think)
* Fix errors after #898
* Fix some UI issues with PreviewDialog
* Use ctrl/command instead of just ctrl in the shortcuts of the InputMap - gets rid of the need for _use_osx_shortcuts() in Main.gd
* Update Keychain and addons/README.md
* Update CI to Godot 4.1.1 (probably will not work)
* Remove XDGDataPaths.gd
* Make windows non-exclusive
* Attempt to fix macOS CI
* Attempt to fix CI
* Attempt to fix CI
* Minor fix in the dark theme, more will follow
* Silence enumerator/integer warning
* Attempt to fix macOS CI
* Another attempt to fix macOS CI
* Attempt to fix Windows & macOS CI
* fix: Recorder directory create (#903)
* Update Keychain so that the brush size shortcuts can be changed
This update generally lets users use modifier buttons (control, alt, shift, meta) with mouse buttons
* Change OSX to macOS
* Detect if multi-threading is enabled when exporting gifs
* Fix color picker not working on the top color mode
* Make some public methods private in Export.gd
* Remove Global.window_title variable
* Fix frame UI in the timeline breaking after 100 frames
* Static typing improvements for the timeline
* Better static typing for grids
* Fix typo
* Fix pixel grid not appearing
* Move preference updating code to Global using setters
This should make the code a bit more readable, as the logic for each property update can be found directly under the variable declaration, and not hidden in PreferencesDialog's preference_update() method. This also allows for changing these properties outside the preferences, if that will ever be needed. In theory it's also faster as we don't have to do all these string comparisons anymore, but I doubt this will be noticeable in practice.
* Remove RestoreDefaultButton.tscn
* Implement changing font size in the preferences
* Resize HeaderSmall font size along with the default font size
* A step towards fixing image loading in the Web version
Doesn't completely fix the issue, it requires a fix from Godot's side as well
* Implement missing input event actions for buttons
TODO: Add default shortcuts
* Do not change language and theme if they are already the defaults
Reduces the initial loading time a bit
* Remove update_hint_tooltips() as it's no longer needed, only keep it for tools
This was needed in order for hint tooltips to be successfully translated while taking the shortcuts into account. Godot 4 already it correctly for us now. Tools still need it because they contain multiple shortcut data in their tooltips.
* Change ExportDialog's PathDialog's file mode to be "open directory" and make them bigger
* Fix Vector2i + Vector2 errors in grid center snapping
* Update tooltips when the shortcut profile changes
* Fix copy-paste mistake
* Update tooltips during startup if the shortcut profile is not the default
* Fix gif warning label size in ExportDialog
* Fix BBCode in ExportDialog
* Fix some Godot 4.2 warnings
* Some CI fixes
* Static typing improvements and more inline functions
* Format
* Even more static typing, inline methods, docstrings etc
* Some more static typing improvements and inline setters
* Remove unneeded project type specifying
* Fix splash dialog error
* Fix enumerator warning
* Don't preload the font in the rules and guides
* Fix some integer division warnings
Sometimes we indeed need them to be floats
* Change some Rect2s to Rect2is
* Minor static typing improvements
* Update README, CHANGELOG, Translations
* Only load translation files when needed, reduces loading time a bit
* Update Keychain so it doesn't load languages during startup
* Lazy load all tool scenes, breaks compatibility with the extension API
Decreases initial loading time
* Format
* Very minor loading time speedups
* Remove unneeded project type specifying
* Even more static typing and docstring improvements
* Fix extension loading
* Palette docstrings
---------
Co-authored-by: ppphp <kevinniub@gmail.com>
2023-09-04 13:29:06 +00:00
|
|
|
func set_control_hidden(child: Control, is_hidden: bool) -> void:
|
|
|
|
_layout.set_node_hidden(child, is_hidden)
|
2022-01-29 22:47:25 +00:00
|
|
|
|
|
|
|
|
|
|
|
func is_control_hidden(child: Control) -> bool:
|
|
|
|
return _layout.is_node_hidden(child)
|
|
|
|
|
|
|
|
|
Port to Godot 4 (#900)
* Initial conversion
* Hide some dialogs
* Update addons
* Fix errors in scripts
Temporarily commented out adding new file import types and certain Control methods that are not available in the Window class, such as get_global_mouse_position()
* Update shaders
* Fix some more errors and signals, rename "pressed" to "button_pressed"
* Even more error fixes and renaming corrections
* Fixed more errors, Pixelorama almost runs
* Update ValueSlider.gd
* Remove lock() and unlock(), more ImageTexture.create_from_image() static usage
* More static function using
* Re-add some of the dialog signals, fix window transparency
* Change instances of popup_hide to visibility_changed
* More more errors and warnings
* Fix more errors and warnings
* Get rid of errors in the output when opening Pixelorama in Godot
* Properly connect most signals without using strings
* Fix some scenes
* Don't load Main.tscn
* Emit signals directly instead of using strings
* Fix Keychain menu nodes
* Get rid of self. on most instances, as setters and getters are now always called
* Some more static typing
* Disable texture filters
* Fix zooming
* Fix int as enum warnings
* Fix tools and rename doubleclick to double_click
* Update tool scenes
* Fix tabs
* Fix create new image
* Use static typing on flood fill to speed it up
* Update static-checks.yml
* Reverts #729 for a speedup, hopefully the bug won't get re-introduced
* Fix TransparentChecker warning
* Re-add Default template
* Fix 3D cels
* Fix rotation
Project converted bug. Should be fixed by https://github.com/godotengine/godot/pull/79264
* Fix UITransparency alignment issue, thanks Variable
* Add missing OptionButton items
Hopefully that should be all of them
* Fix the appearance of CollapsibleContainer
* Change instances of world to world_3d
* Fix tool button backgrounds
* Fix Splash dialog
* Fix brush selection
* Update Main.gd
* Fix About Dialog
* Fix more zooming issues
* Fix canvas preview zooming
* Use signals for queue_redraw on project change
* Fix layer button's look
* Fix gradients
* Some gradient fixes and code cleanups, dithering is still broken
* Fix bucket
* Fix the rest of the undo_redo.add_(un)do_method() cases
* Fix guides
* Fix guide text
* Some small changes in Main
* Update Tools.gd
* Fix palette importing
* Get rid of TODOGODOT4s
* Fix the rest of the dialogs
* Update the rest of the scenes
* Fix onion skinning and frame tag dialogs
* Fix file brushes being imported twice
* Fix palette swatch crashing on double click
* Use nearest filter for some of the windows
* Remove old .tres font files
* Fix language switching
* Get rid of Keychain.action_get_first_key() on the extra shortcuts of tools
* Get rid of Keychain.MenuInputActions and directly set shortcuts to the menu items
This temporarily removes echoing support for undo and redo, this will be re-added once https://github.com/godotengine/godot/pull/36493 or https://github.com/godotengine/godot/pull/64317 is merged.
* Clean shortcut-related duplicate code in TopMenuContainer
* Remove DroidSansFallback now that system fonts can be used as fallback
* Remove 3.x settings from project.godot
* Format
* Format gdgifexporter
* Reset Keychain to its original state
* Remove textures from the dark and gray themes
* Remove all textures from the dark theme
* Better static typing in DrawingAlgos
* Use Vector2i for project size
* [Risky commit] Use Vector2i instead of Vector2 for tools
I tested it and everything seems to be working the same as before, but more testing would be appreciated.
* Format after previous commit
* Fix line angle constraint being rotated 180 degrees
This is not a regression from the previous commit(s), Godot 4 probably reversed the logic of `angle_to_point()`.
* Fix input map action not found errors when pressing Shift or Control
* Make AnimatePanel bigger, add spring interpolation
* Fix some layouts/extensions/preferences loading errors
* Fix dithering
* Update layout resources
Probably doesn't change anything at all, but I suppose it might be a good thing to do
* Small changes
* Disable filter in ResizeCanvas dialog
* Fix some preferences default button states
* Fix tile mode always having masking on
* Use integers in tile mode
* Fix checkboxes in preferences not working
* More statically typed arrays!
No need to have these # Array of X comments anymore!
* Fix "apply all" for multiple preview dialogs
* Update theme.tres
* Add HeaderSmall theme type variation
* Fix dynamics buttons
* Don't allow sub-zero zoom values
* Let zoom_out_max always remain Vector2(0.01, 0.01)
This fixes zooming on large canvases
* Bump version to v1.0-dev
* Fix ambient light not working on 3D cels
* Fix .obj loading
* Don't allow greater than max values in the zoom slider
* Set maximum zoom value to always be (500, 500)
* Set zoom slider minimum value to 1
* Some UI changes, mostly related to buttons and the timeline
* Change window titles to what they were before
* [COMPATIBILITY BROKEN WITH v0.x] Fix loading 3D cels
* Avoid changing Cel3DObject's file_path if it's the same
* Make preferences window bigger
* Fix png exporting
* Fix reference image initial size and filter setting
* Fix perspective line reverse scaling on zoom and facing 180 degrees away from cursor
* Format and some linting
* Remove most Images from the rest of the themes
* Remove all textures from all themes
* Fix drawing when the mouse gets released outside the canvas boundaries
* Format Keychain
* Implement #890
* Fix recorder
* Fix layout deletion
* Better static typing and fix empty_clicked signal-connected methods not having arguments
* Fix layout and extension directory creation if they don't already exist
* Change all instances of "HTML5" to "Web"
OS.get_name() now returns "Web" instead of "HTML5" in Godot 4
* Fix JavaScript detection
Opening files in the Web version does not yet work for some reason
* Fix formatting
* Fix lint errors
* Remove unneeded lines from rotation shaders
* Clean some rotation shader related code
* Remove ErrorManager from #891, as it's no longer needed in Godot 4
* Some docstrings
* More Vector2i and Recti replacing their float counterparts
* Remove the hardcoded shortcut from ValueSlider
Note that the brush size shortcut may not change properly because Keychain isn't updated to support Godot 4's input map properly yet.
* Fix bugs from the rebase, integer zooming is currently broken
* Format
* Fix bug where some imported images would fail to load when using smart slice
* Fix integer zooming (I think)
* Fix errors after #898
* Fix some UI issues with PreviewDialog
* Use ctrl/command instead of just ctrl in the shortcuts of the InputMap - gets rid of the need for _use_osx_shortcuts() in Main.gd
* Update Keychain and addons/README.md
* Update CI to Godot 4.1.1 (probably will not work)
* Remove XDGDataPaths.gd
* Make windows non-exclusive
* Attempt to fix macOS CI
* Attempt to fix CI
* Attempt to fix CI
* Minor fix in the dark theme, more will follow
* Silence enumerator/integer warning
* Attempt to fix macOS CI
* Another attempt to fix macOS CI
* Attempt to fix Windows & macOS CI
* fix: Recorder directory create (#903)
* Update Keychain so that the brush size shortcuts can be changed
This update generally lets users use modifier buttons (control, alt, shift, meta) with mouse buttons
* Change OSX to macOS
* Detect if multi-threading is enabled when exporting gifs
* Fix color picker not working on the top color mode
* Make some public methods private in Export.gd
* Remove Global.window_title variable
* Fix frame UI in the timeline breaking after 100 frames
* Static typing improvements for the timeline
* Better static typing for grids
* Fix typo
* Fix pixel grid not appearing
* Move preference updating code to Global using setters
This should make the code a bit more readable, as the logic for each property update can be found directly under the variable declaration, and not hidden in PreferencesDialog's preference_update() method. This also allows for changing these properties outside the preferences, if that will ever be needed. In theory it's also faster as we don't have to do all these string comparisons anymore, but I doubt this will be noticeable in practice.
* Remove RestoreDefaultButton.tscn
* Implement changing font size in the preferences
* Resize HeaderSmall font size along with the default font size
* A step towards fixing image loading in the Web version
Doesn't completely fix the issue, it requires a fix from Godot's side as well
* Implement missing input event actions for buttons
TODO: Add default shortcuts
* Do not change language and theme if they are already the defaults
Reduces the initial loading time a bit
* Remove update_hint_tooltips() as it's no longer needed, only keep it for tools
This was needed in order for hint tooltips to be successfully translated while taking the shortcuts into account. Godot 4 already it correctly for us now. Tools still need it because they contain multiple shortcut data in their tooltips.
* Change ExportDialog's PathDialog's file mode to be "open directory" and make them bigger
* Fix Vector2i + Vector2 errors in grid center snapping
* Update tooltips when the shortcut profile changes
* Fix copy-paste mistake
* Update tooltips during startup if the shortcut profile is not the default
* Fix gif warning label size in ExportDialog
* Fix BBCode in ExportDialog
* Fix some Godot 4.2 warnings
* Some CI fixes
* Static typing improvements and more inline functions
* Format
* Even more static typing, inline methods, docstrings etc
* Some more static typing improvements and inline setters
* Remove unneeded project type specifying
* Fix splash dialog error
* Fix enumerator warning
* Don't preload the font in the rules and guides
* Fix some integer division warnings
Sometimes we indeed need them to be floats
* Change some Rect2s to Rect2is
* Minor static typing improvements
* Update README, CHANGELOG, Translations
* Only load translation files when needed, reduces loading time a bit
* Update Keychain so it doesn't load languages during startup
* Lazy load all tool scenes, breaks compatibility with the extension API
Decreases initial loading time
* Format
* Very minor loading time speedups
* Remove unneeded project type specifying
* Even more static typing and docstring improvements
* Fix extension loading
* Palette docstrings
---------
Co-authored-by: ppphp <kevinniub@gmail.com>
2023-09-04 13:29:06 +00:00
|
|
|
func get_tabs() -> Array[Control]:
|
|
|
|
var tabs: Array[Control] = []
|
2022-01-29 22:47:25 +00:00
|
|
|
for i in get_child_count():
|
Port to Godot 4 (#900)
* Initial conversion
* Hide some dialogs
* Update addons
* Fix errors in scripts
Temporarily commented out adding new file import types and certain Control methods that are not available in the Window class, such as get_global_mouse_position()
* Update shaders
* Fix some more errors and signals, rename "pressed" to "button_pressed"
* Even more error fixes and renaming corrections
* Fixed more errors, Pixelorama almost runs
* Update ValueSlider.gd
* Remove lock() and unlock(), more ImageTexture.create_from_image() static usage
* More static function using
* Re-add some of the dialog signals, fix window transparency
* Change instances of popup_hide to visibility_changed
* More more errors and warnings
* Fix more errors and warnings
* Get rid of errors in the output when opening Pixelorama in Godot
* Properly connect most signals without using strings
* Fix some scenes
* Don't load Main.tscn
* Emit signals directly instead of using strings
* Fix Keychain menu nodes
* Get rid of self. on most instances, as setters and getters are now always called
* Some more static typing
* Disable texture filters
* Fix zooming
* Fix int as enum warnings
* Fix tools and rename doubleclick to double_click
* Update tool scenes
* Fix tabs
* Fix create new image
* Use static typing on flood fill to speed it up
* Update static-checks.yml
* Reverts #729 for a speedup, hopefully the bug won't get re-introduced
* Fix TransparentChecker warning
* Re-add Default template
* Fix 3D cels
* Fix rotation
Project converted bug. Should be fixed by https://github.com/godotengine/godot/pull/79264
* Fix UITransparency alignment issue, thanks Variable
* Add missing OptionButton items
Hopefully that should be all of them
* Fix the appearance of CollapsibleContainer
* Change instances of world to world_3d
* Fix tool button backgrounds
* Fix Splash dialog
* Fix brush selection
* Update Main.gd
* Fix About Dialog
* Fix more zooming issues
* Fix canvas preview zooming
* Use signals for queue_redraw on project change
* Fix layer button's look
* Fix gradients
* Some gradient fixes and code cleanups, dithering is still broken
* Fix bucket
* Fix the rest of the undo_redo.add_(un)do_method() cases
* Fix guides
* Fix guide text
* Some small changes in Main
* Update Tools.gd
* Fix palette importing
* Get rid of TODOGODOT4s
* Fix the rest of the dialogs
* Update the rest of the scenes
* Fix onion skinning and frame tag dialogs
* Fix file brushes being imported twice
* Fix palette swatch crashing on double click
* Use nearest filter for some of the windows
* Remove old .tres font files
* Fix language switching
* Get rid of Keychain.action_get_first_key() on the extra shortcuts of tools
* Get rid of Keychain.MenuInputActions and directly set shortcuts to the menu items
This temporarily removes echoing support for undo and redo, this will be re-added once https://github.com/godotengine/godot/pull/36493 or https://github.com/godotengine/godot/pull/64317 is merged.
* Clean shortcut-related duplicate code in TopMenuContainer
* Remove DroidSansFallback now that system fonts can be used as fallback
* Remove 3.x settings from project.godot
* Format
* Format gdgifexporter
* Reset Keychain to its original state
* Remove textures from the dark and gray themes
* Remove all textures from the dark theme
* Better static typing in DrawingAlgos
* Use Vector2i for project size
* [Risky commit] Use Vector2i instead of Vector2 for tools
I tested it and everything seems to be working the same as before, but more testing would be appreciated.
* Format after previous commit
* Fix line angle constraint being rotated 180 degrees
This is not a regression from the previous commit(s), Godot 4 probably reversed the logic of `angle_to_point()`.
* Fix input map action not found errors when pressing Shift or Control
* Make AnimatePanel bigger, add spring interpolation
* Fix some layouts/extensions/preferences loading errors
* Fix dithering
* Update layout resources
Probably doesn't change anything at all, but I suppose it might be a good thing to do
* Small changes
* Disable filter in ResizeCanvas dialog
* Fix some preferences default button states
* Fix tile mode always having masking on
* Use integers in tile mode
* Fix checkboxes in preferences not working
* More statically typed arrays!
No need to have these # Array of X comments anymore!
* Fix "apply all" for multiple preview dialogs
* Update theme.tres
* Add HeaderSmall theme type variation
* Fix dynamics buttons
* Don't allow sub-zero zoom values
* Let zoom_out_max always remain Vector2(0.01, 0.01)
This fixes zooming on large canvases
* Bump version to v1.0-dev
* Fix ambient light not working on 3D cels
* Fix .obj loading
* Don't allow greater than max values in the zoom slider
* Set maximum zoom value to always be (500, 500)
* Set zoom slider minimum value to 1
* Some UI changes, mostly related to buttons and the timeline
* Change window titles to what they were before
* [COMPATIBILITY BROKEN WITH v0.x] Fix loading 3D cels
* Avoid changing Cel3DObject's file_path if it's the same
* Make preferences window bigger
* Fix png exporting
* Fix reference image initial size and filter setting
* Fix perspective line reverse scaling on zoom and facing 180 degrees away from cursor
* Format and some linting
* Remove most Images from the rest of the themes
* Remove all textures from all themes
* Fix drawing when the mouse gets released outside the canvas boundaries
* Format Keychain
* Implement #890
* Fix recorder
* Fix layout deletion
* Better static typing and fix empty_clicked signal-connected methods not having arguments
* Fix layout and extension directory creation if they don't already exist
* Change all instances of "HTML5" to "Web"
OS.get_name() now returns "Web" instead of "HTML5" in Godot 4
* Fix JavaScript detection
Opening files in the Web version does not yet work for some reason
* Fix formatting
* Fix lint errors
* Remove unneeded lines from rotation shaders
* Clean some rotation shader related code
* Remove ErrorManager from #891, as it's no longer needed in Godot 4
* Some docstrings
* More Vector2i and Recti replacing their float counterparts
* Remove the hardcoded shortcut from ValueSlider
Note that the brush size shortcut may not change properly because Keychain isn't updated to support Godot 4's input map properly yet.
* Fix bugs from the rebase, integer zooming is currently broken
* Format
* Fix bug where some imported images would fail to load when using smart slice
* Fix integer zooming (I think)
* Fix errors after #898
* Fix some UI issues with PreviewDialog
* Use ctrl/command instead of just ctrl in the shortcuts of the InputMap - gets rid of the need for _use_osx_shortcuts() in Main.gd
* Update Keychain and addons/README.md
* Update CI to Godot 4.1.1 (probably will not work)
* Remove XDGDataPaths.gd
* Make windows non-exclusive
* Attempt to fix macOS CI
* Attempt to fix CI
* Attempt to fix CI
* Minor fix in the dark theme, more will follow
* Silence enumerator/integer warning
* Attempt to fix macOS CI
* Another attempt to fix macOS CI
* Attempt to fix Windows & macOS CI
* fix: Recorder directory create (#903)
* Update Keychain so that the brush size shortcuts can be changed
This update generally lets users use modifier buttons (control, alt, shift, meta) with mouse buttons
* Change OSX to macOS
* Detect if multi-threading is enabled when exporting gifs
* Fix color picker not working on the top color mode
* Make some public methods private in Export.gd
* Remove Global.window_title variable
* Fix frame UI in the timeline breaking after 100 frames
* Static typing improvements for the timeline
* Better static typing for grids
* Fix typo
* Fix pixel grid not appearing
* Move preference updating code to Global using setters
This should make the code a bit more readable, as the logic for each property update can be found directly under the variable declaration, and not hidden in PreferencesDialog's preference_update() method. This also allows for changing these properties outside the preferences, if that will ever be needed. In theory it's also faster as we don't have to do all these string comparisons anymore, but I doubt this will be noticeable in practice.
* Remove RestoreDefaultButton.tscn
* Implement changing font size in the preferences
* Resize HeaderSmall font size along with the default font size
* A step towards fixing image loading in the Web version
Doesn't completely fix the issue, it requires a fix from Godot's side as well
* Implement missing input event actions for buttons
TODO: Add default shortcuts
* Do not change language and theme if they are already the defaults
Reduces the initial loading time a bit
* Remove update_hint_tooltips() as it's no longer needed, only keep it for tools
This was needed in order for hint tooltips to be successfully translated while taking the shortcuts into account. Godot 4 already it correctly for us now. Tools still need it because they contain multiple shortcut data in their tooltips.
* Change ExportDialog's PathDialog's file mode to be "open directory" and make them bigger
* Fix Vector2i + Vector2 errors in grid center snapping
* Update tooltips when the shortcut profile changes
* Fix copy-paste mistake
* Update tooltips during startup if the shortcut profile is not the default
* Fix gif warning label size in ExportDialog
* Fix BBCode in ExportDialog
* Fix some Godot 4.2 warnings
* Some CI fixes
* Static typing improvements and more inline functions
* Format
* Even more static typing, inline methods, docstrings etc
* Some more static typing improvements and inline setters
* Remove unneeded project type specifying
* Fix splash dialog error
* Fix enumerator warning
* Don't preload the font in the rules and guides
* Fix some integer division warnings
Sometimes we indeed need them to be floats
* Change some Rect2s to Rect2is
* Minor static typing improvements
* Update README, CHANGELOG, Translations
* Only load translation files when needed, reduces loading time a bit
* Update Keychain so it doesn't load languages during startup
* Lazy load all tool scenes, breaks compatibility with the extension API
Decreases initial loading time
* Format
* Very minor loading time speedups
* Remove unneeded project type specifying
* Even more static typing and docstring improvements
* Fix extension loading
* Palette docstrings
---------
Co-authored-by: ppphp <kevinniub@gmail.com>
2023-09-04 13:29:06 +00:00
|
|
|
var child := get_child(i)
|
2022-01-29 22:47:25 +00:00
|
|
|
if _is_managed_node(child):
|
|
|
|
tabs.append(child)
|
|
|
|
return tabs
|
|
|
|
|
|
|
|
|
|
|
|
func get_tab_count() -> int:
|
Port to Godot 4 (#900)
* Initial conversion
* Hide some dialogs
* Update addons
* Fix errors in scripts
Temporarily commented out adding new file import types and certain Control methods that are not available in the Window class, such as get_global_mouse_position()
* Update shaders
* Fix some more errors and signals, rename "pressed" to "button_pressed"
* Even more error fixes and renaming corrections
* Fixed more errors, Pixelorama almost runs
* Update ValueSlider.gd
* Remove lock() and unlock(), more ImageTexture.create_from_image() static usage
* More static function using
* Re-add some of the dialog signals, fix window transparency
* Change instances of popup_hide to visibility_changed
* More more errors and warnings
* Fix more errors and warnings
* Get rid of errors in the output when opening Pixelorama in Godot
* Properly connect most signals without using strings
* Fix some scenes
* Don't load Main.tscn
* Emit signals directly instead of using strings
* Fix Keychain menu nodes
* Get rid of self. on most instances, as setters and getters are now always called
* Some more static typing
* Disable texture filters
* Fix zooming
* Fix int as enum warnings
* Fix tools and rename doubleclick to double_click
* Update tool scenes
* Fix tabs
* Fix create new image
* Use static typing on flood fill to speed it up
* Update static-checks.yml
* Reverts #729 for a speedup, hopefully the bug won't get re-introduced
* Fix TransparentChecker warning
* Re-add Default template
* Fix 3D cels
* Fix rotation
Project converted bug. Should be fixed by https://github.com/godotengine/godot/pull/79264
* Fix UITransparency alignment issue, thanks Variable
* Add missing OptionButton items
Hopefully that should be all of them
* Fix the appearance of CollapsibleContainer
* Change instances of world to world_3d
* Fix tool button backgrounds
* Fix Splash dialog
* Fix brush selection
* Update Main.gd
* Fix About Dialog
* Fix more zooming issues
* Fix canvas preview zooming
* Use signals for queue_redraw on project change
* Fix layer button's look
* Fix gradients
* Some gradient fixes and code cleanups, dithering is still broken
* Fix bucket
* Fix the rest of the undo_redo.add_(un)do_method() cases
* Fix guides
* Fix guide text
* Some small changes in Main
* Update Tools.gd
* Fix palette importing
* Get rid of TODOGODOT4s
* Fix the rest of the dialogs
* Update the rest of the scenes
* Fix onion skinning and frame tag dialogs
* Fix file brushes being imported twice
* Fix palette swatch crashing on double click
* Use nearest filter for some of the windows
* Remove old .tres font files
* Fix language switching
* Get rid of Keychain.action_get_first_key() on the extra shortcuts of tools
* Get rid of Keychain.MenuInputActions and directly set shortcuts to the menu items
This temporarily removes echoing support for undo and redo, this will be re-added once https://github.com/godotengine/godot/pull/36493 or https://github.com/godotengine/godot/pull/64317 is merged.
* Clean shortcut-related duplicate code in TopMenuContainer
* Remove DroidSansFallback now that system fonts can be used as fallback
* Remove 3.x settings from project.godot
* Format
* Format gdgifexporter
* Reset Keychain to its original state
* Remove textures from the dark and gray themes
* Remove all textures from the dark theme
* Better static typing in DrawingAlgos
* Use Vector2i for project size
* [Risky commit] Use Vector2i instead of Vector2 for tools
I tested it and everything seems to be working the same as before, but more testing would be appreciated.
* Format after previous commit
* Fix line angle constraint being rotated 180 degrees
This is not a regression from the previous commit(s), Godot 4 probably reversed the logic of `angle_to_point()`.
* Fix input map action not found errors when pressing Shift or Control
* Make AnimatePanel bigger, add spring interpolation
* Fix some layouts/extensions/preferences loading errors
* Fix dithering
* Update layout resources
Probably doesn't change anything at all, but I suppose it might be a good thing to do
* Small changes
* Disable filter in ResizeCanvas dialog
* Fix some preferences default button states
* Fix tile mode always having masking on
* Use integers in tile mode
* Fix checkboxes in preferences not working
* More statically typed arrays!
No need to have these # Array of X comments anymore!
* Fix "apply all" for multiple preview dialogs
* Update theme.tres
* Add HeaderSmall theme type variation
* Fix dynamics buttons
* Don't allow sub-zero zoom values
* Let zoom_out_max always remain Vector2(0.01, 0.01)
This fixes zooming on large canvases
* Bump version to v1.0-dev
* Fix ambient light not working on 3D cels
* Fix .obj loading
* Don't allow greater than max values in the zoom slider
* Set maximum zoom value to always be (500, 500)
* Set zoom slider minimum value to 1
* Some UI changes, mostly related to buttons and the timeline
* Change window titles to what they were before
* [COMPATIBILITY BROKEN WITH v0.x] Fix loading 3D cels
* Avoid changing Cel3DObject's file_path if it's the same
* Make preferences window bigger
* Fix png exporting
* Fix reference image initial size and filter setting
* Fix perspective line reverse scaling on zoom and facing 180 degrees away from cursor
* Format and some linting
* Remove most Images from the rest of the themes
* Remove all textures from all themes
* Fix drawing when the mouse gets released outside the canvas boundaries
* Format Keychain
* Implement #890
* Fix recorder
* Fix layout deletion
* Better static typing and fix empty_clicked signal-connected methods not having arguments
* Fix layout and extension directory creation if they don't already exist
* Change all instances of "HTML5" to "Web"
OS.get_name() now returns "Web" instead of "HTML5" in Godot 4
* Fix JavaScript detection
Opening files in the Web version does not yet work for some reason
* Fix formatting
* Fix lint errors
* Remove unneeded lines from rotation shaders
* Clean some rotation shader related code
* Remove ErrorManager from #891, as it's no longer needed in Godot 4
* Some docstrings
* More Vector2i and Recti replacing their float counterparts
* Remove the hardcoded shortcut from ValueSlider
Note that the brush size shortcut may not change properly because Keychain isn't updated to support Godot 4's input map properly yet.
* Fix bugs from the rebase, integer zooming is currently broken
* Format
* Fix bug where some imported images would fail to load when using smart slice
* Fix integer zooming (I think)
* Fix errors after #898
* Fix some UI issues with PreviewDialog
* Use ctrl/command instead of just ctrl in the shortcuts of the InputMap - gets rid of the need for _use_osx_shortcuts() in Main.gd
* Update Keychain and addons/README.md
* Update CI to Godot 4.1.1 (probably will not work)
* Remove XDGDataPaths.gd
* Make windows non-exclusive
* Attempt to fix macOS CI
* Attempt to fix CI
* Attempt to fix CI
* Minor fix in the dark theme, more will follow
* Silence enumerator/integer warning
* Attempt to fix macOS CI
* Another attempt to fix macOS CI
* Attempt to fix Windows & macOS CI
* fix: Recorder directory create (#903)
* Update Keychain so that the brush size shortcuts can be changed
This update generally lets users use modifier buttons (control, alt, shift, meta) with mouse buttons
* Change OSX to macOS
* Detect if multi-threading is enabled when exporting gifs
* Fix color picker not working on the top color mode
* Make some public methods private in Export.gd
* Remove Global.window_title variable
* Fix frame UI in the timeline breaking after 100 frames
* Static typing improvements for the timeline
* Better static typing for grids
* Fix typo
* Fix pixel grid not appearing
* Move preference updating code to Global using setters
This should make the code a bit more readable, as the logic for each property update can be found directly under the variable declaration, and not hidden in PreferencesDialog's preference_update() method. This also allows for changing these properties outside the preferences, if that will ever be needed. In theory it's also faster as we don't have to do all these string comparisons anymore, but I doubt this will be noticeable in practice.
* Remove RestoreDefaultButton.tscn
* Implement changing font size in the preferences
* Resize HeaderSmall font size along with the default font size
* A step towards fixing image loading in the Web version
Doesn't completely fix the issue, it requires a fix from Godot's side as well
* Implement missing input event actions for buttons
TODO: Add default shortcuts
* Do not change language and theme if they are already the defaults
Reduces the initial loading time a bit
* Remove update_hint_tooltips() as it's no longer needed, only keep it for tools
This was needed in order for hint tooltips to be successfully translated while taking the shortcuts into account. Godot 4 already it correctly for us now. Tools still need it because they contain multiple shortcut data in their tooltips.
* Change ExportDialog's PathDialog's file mode to be "open directory" and make them bigger
* Fix Vector2i + Vector2 errors in grid center snapping
* Update tooltips when the shortcut profile changes
* Fix copy-paste mistake
* Update tooltips during startup if the shortcut profile is not the default
* Fix gif warning label size in ExportDialog
* Fix BBCode in ExportDialog
* Fix some Godot 4.2 warnings
* Some CI fixes
* Static typing improvements and more inline functions
* Format
* Even more static typing, inline methods, docstrings etc
* Some more static typing improvements and inline setters
* Remove unneeded project type specifying
* Fix splash dialog error
* Fix enumerator warning
* Don't preload the font in the rules and guides
* Fix some integer division warnings
Sometimes we indeed need them to be floats
* Change some Rect2s to Rect2is
* Minor static typing improvements
* Update README, CHANGELOG, Translations
* Only load translation files when needed, reduces loading time a bit
* Update Keychain so it doesn't load languages during startup
* Lazy load all tool scenes, breaks compatibility with the extension API
Decreases initial loading time
* Format
* Very minor loading time speedups
* Remove unneeded project type specifying
* Even more static typing and docstring improvements
* Fix extension loading
* Palette docstrings
---------
Co-authored-by: ppphp <kevinniub@gmail.com>
2023-09-04 13:29:06 +00:00
|
|
|
var count := 0
|
2022-01-29 22:47:25 +00:00
|
|
|
for i in get_child_count():
|
Port to Godot 4 (#900)
* Initial conversion
* Hide some dialogs
* Update addons
* Fix errors in scripts
Temporarily commented out adding new file import types and certain Control methods that are not available in the Window class, such as get_global_mouse_position()
* Update shaders
* Fix some more errors and signals, rename "pressed" to "button_pressed"
* Even more error fixes and renaming corrections
* Fixed more errors, Pixelorama almost runs
* Update ValueSlider.gd
* Remove lock() and unlock(), more ImageTexture.create_from_image() static usage
* More static function using
* Re-add some of the dialog signals, fix window transparency
* Change instances of popup_hide to visibility_changed
* More more errors and warnings
* Fix more errors and warnings
* Get rid of errors in the output when opening Pixelorama in Godot
* Properly connect most signals without using strings
* Fix some scenes
* Don't load Main.tscn
* Emit signals directly instead of using strings
* Fix Keychain menu nodes
* Get rid of self. on most instances, as setters and getters are now always called
* Some more static typing
* Disable texture filters
* Fix zooming
* Fix int as enum warnings
* Fix tools and rename doubleclick to double_click
* Update tool scenes
* Fix tabs
* Fix create new image
* Use static typing on flood fill to speed it up
* Update static-checks.yml
* Reverts #729 for a speedup, hopefully the bug won't get re-introduced
* Fix TransparentChecker warning
* Re-add Default template
* Fix 3D cels
* Fix rotation
Project converted bug. Should be fixed by https://github.com/godotengine/godot/pull/79264
* Fix UITransparency alignment issue, thanks Variable
* Add missing OptionButton items
Hopefully that should be all of them
* Fix the appearance of CollapsibleContainer
* Change instances of world to world_3d
* Fix tool button backgrounds
* Fix Splash dialog
* Fix brush selection
* Update Main.gd
* Fix About Dialog
* Fix more zooming issues
* Fix canvas preview zooming
* Use signals for queue_redraw on project change
* Fix layer button's look
* Fix gradients
* Some gradient fixes and code cleanups, dithering is still broken
* Fix bucket
* Fix the rest of the undo_redo.add_(un)do_method() cases
* Fix guides
* Fix guide text
* Some small changes in Main
* Update Tools.gd
* Fix palette importing
* Get rid of TODOGODOT4s
* Fix the rest of the dialogs
* Update the rest of the scenes
* Fix onion skinning and frame tag dialogs
* Fix file brushes being imported twice
* Fix palette swatch crashing on double click
* Use nearest filter for some of the windows
* Remove old .tres font files
* Fix language switching
* Get rid of Keychain.action_get_first_key() on the extra shortcuts of tools
* Get rid of Keychain.MenuInputActions and directly set shortcuts to the menu items
This temporarily removes echoing support for undo and redo, this will be re-added once https://github.com/godotengine/godot/pull/36493 or https://github.com/godotengine/godot/pull/64317 is merged.
* Clean shortcut-related duplicate code in TopMenuContainer
* Remove DroidSansFallback now that system fonts can be used as fallback
* Remove 3.x settings from project.godot
* Format
* Format gdgifexporter
* Reset Keychain to its original state
* Remove textures from the dark and gray themes
* Remove all textures from the dark theme
* Better static typing in DrawingAlgos
* Use Vector2i for project size
* [Risky commit] Use Vector2i instead of Vector2 for tools
I tested it and everything seems to be working the same as before, but more testing would be appreciated.
* Format after previous commit
* Fix line angle constraint being rotated 180 degrees
This is not a regression from the previous commit(s), Godot 4 probably reversed the logic of `angle_to_point()`.
* Fix input map action not found errors when pressing Shift or Control
* Make AnimatePanel bigger, add spring interpolation
* Fix some layouts/extensions/preferences loading errors
* Fix dithering
* Update layout resources
Probably doesn't change anything at all, but I suppose it might be a good thing to do
* Small changes
* Disable filter in ResizeCanvas dialog
* Fix some preferences default button states
* Fix tile mode always having masking on
* Use integers in tile mode
* Fix checkboxes in preferences not working
* More statically typed arrays!
No need to have these # Array of X comments anymore!
* Fix "apply all" for multiple preview dialogs
* Update theme.tres
* Add HeaderSmall theme type variation
* Fix dynamics buttons
* Don't allow sub-zero zoom values
* Let zoom_out_max always remain Vector2(0.01, 0.01)
This fixes zooming on large canvases
* Bump version to v1.0-dev
* Fix ambient light not working on 3D cels
* Fix .obj loading
* Don't allow greater than max values in the zoom slider
* Set maximum zoom value to always be (500, 500)
* Set zoom slider minimum value to 1
* Some UI changes, mostly related to buttons and the timeline
* Change window titles to what they were before
* [COMPATIBILITY BROKEN WITH v0.x] Fix loading 3D cels
* Avoid changing Cel3DObject's file_path if it's the same
* Make preferences window bigger
* Fix png exporting
* Fix reference image initial size and filter setting
* Fix perspective line reverse scaling on zoom and facing 180 degrees away from cursor
* Format and some linting
* Remove most Images from the rest of the themes
* Remove all textures from all themes
* Fix drawing when the mouse gets released outside the canvas boundaries
* Format Keychain
* Implement #890
* Fix recorder
* Fix layout deletion
* Better static typing and fix empty_clicked signal-connected methods not having arguments
* Fix layout and extension directory creation if they don't already exist
* Change all instances of "HTML5" to "Web"
OS.get_name() now returns "Web" instead of "HTML5" in Godot 4
* Fix JavaScript detection
Opening files in the Web version does not yet work for some reason
* Fix formatting
* Fix lint errors
* Remove unneeded lines from rotation shaders
* Clean some rotation shader related code
* Remove ErrorManager from #891, as it's no longer needed in Godot 4
* Some docstrings
* More Vector2i and Recti replacing their float counterparts
* Remove the hardcoded shortcut from ValueSlider
Note that the brush size shortcut may not change properly because Keychain isn't updated to support Godot 4's input map properly yet.
* Fix bugs from the rebase, integer zooming is currently broken
* Format
* Fix bug where some imported images would fail to load when using smart slice
* Fix integer zooming (I think)
* Fix errors after #898
* Fix some UI issues with PreviewDialog
* Use ctrl/command instead of just ctrl in the shortcuts of the InputMap - gets rid of the need for _use_osx_shortcuts() in Main.gd
* Update Keychain and addons/README.md
* Update CI to Godot 4.1.1 (probably will not work)
* Remove XDGDataPaths.gd
* Make windows non-exclusive
* Attempt to fix macOS CI
* Attempt to fix CI
* Attempt to fix CI
* Minor fix in the dark theme, more will follow
* Silence enumerator/integer warning
* Attempt to fix macOS CI
* Another attempt to fix macOS CI
* Attempt to fix Windows & macOS CI
* fix: Recorder directory create (#903)
* Update Keychain so that the brush size shortcuts can be changed
This update generally lets users use modifier buttons (control, alt, shift, meta) with mouse buttons
* Change OSX to macOS
* Detect if multi-threading is enabled when exporting gifs
* Fix color picker not working on the top color mode
* Make some public methods private in Export.gd
* Remove Global.window_title variable
* Fix frame UI in the timeline breaking after 100 frames
* Static typing improvements for the timeline
* Better static typing for grids
* Fix typo
* Fix pixel grid not appearing
* Move preference updating code to Global using setters
This should make the code a bit more readable, as the logic for each property update can be found directly under the variable declaration, and not hidden in PreferencesDialog's preference_update() method. This also allows for changing these properties outside the preferences, if that will ever be needed. In theory it's also faster as we don't have to do all these string comparisons anymore, but I doubt this will be noticeable in practice.
* Remove RestoreDefaultButton.tscn
* Implement changing font size in the preferences
* Resize HeaderSmall font size along with the default font size
* A step towards fixing image loading in the Web version
Doesn't completely fix the issue, it requires a fix from Godot's side as well
* Implement missing input event actions for buttons
TODO: Add default shortcuts
* Do not change language and theme if they are already the defaults
Reduces the initial loading time a bit
* Remove update_hint_tooltips() as it's no longer needed, only keep it for tools
This was needed in order for hint tooltips to be successfully translated while taking the shortcuts into account. Godot 4 already it correctly for us now. Tools still need it because they contain multiple shortcut data in their tooltips.
* Change ExportDialog's PathDialog's file mode to be "open directory" and make them bigger
* Fix Vector2i + Vector2 errors in grid center snapping
* Update tooltips when the shortcut profile changes
* Fix copy-paste mistake
* Update tooltips during startup if the shortcut profile is not the default
* Fix gif warning label size in ExportDialog
* Fix BBCode in ExportDialog
* Fix some Godot 4.2 warnings
* Some CI fixes
* Static typing improvements and more inline functions
* Format
* Even more static typing, inline methods, docstrings etc
* Some more static typing improvements and inline setters
* Remove unneeded project type specifying
* Fix splash dialog error
* Fix enumerator warning
* Don't preload the font in the rules and guides
* Fix some integer division warnings
Sometimes we indeed need them to be floats
* Change some Rect2s to Rect2is
* Minor static typing improvements
* Update README, CHANGELOG, Translations
* Only load translation files when needed, reduces loading time a bit
* Update Keychain so it doesn't load languages during startup
* Lazy load all tool scenes, breaks compatibility with the extension API
Decreases initial loading time
* Format
* Very minor loading time speedups
* Remove unneeded project type specifying
* Even more static typing and docstring improvements
* Fix extension loading
* Palette docstrings
---------
Co-authored-by: ppphp <kevinniub@gmail.com>
2023-09-04 13:29:06 +00:00
|
|
|
var child := get_child(i)
|
2022-01-29 22:47:25 +00:00
|
|
|
if _is_managed_node(child):
|
|
|
|
count += 1
|
|
|
|
return count
|
|
|
|
|
|
|
|
|
Port to Godot 4 (#900)
* Initial conversion
* Hide some dialogs
* Update addons
* Fix errors in scripts
Temporarily commented out adding new file import types and certain Control methods that are not available in the Window class, such as get_global_mouse_position()
* Update shaders
* Fix some more errors and signals, rename "pressed" to "button_pressed"
* Even more error fixes and renaming corrections
* Fixed more errors, Pixelorama almost runs
* Update ValueSlider.gd
* Remove lock() and unlock(), more ImageTexture.create_from_image() static usage
* More static function using
* Re-add some of the dialog signals, fix window transparency
* Change instances of popup_hide to visibility_changed
* More more errors and warnings
* Fix more errors and warnings
* Get rid of errors in the output when opening Pixelorama in Godot
* Properly connect most signals without using strings
* Fix some scenes
* Don't load Main.tscn
* Emit signals directly instead of using strings
* Fix Keychain menu nodes
* Get rid of self. on most instances, as setters and getters are now always called
* Some more static typing
* Disable texture filters
* Fix zooming
* Fix int as enum warnings
* Fix tools and rename doubleclick to double_click
* Update tool scenes
* Fix tabs
* Fix create new image
* Use static typing on flood fill to speed it up
* Update static-checks.yml
* Reverts #729 for a speedup, hopefully the bug won't get re-introduced
* Fix TransparentChecker warning
* Re-add Default template
* Fix 3D cels
* Fix rotation
Project converted bug. Should be fixed by https://github.com/godotengine/godot/pull/79264
* Fix UITransparency alignment issue, thanks Variable
* Add missing OptionButton items
Hopefully that should be all of them
* Fix the appearance of CollapsibleContainer
* Change instances of world to world_3d
* Fix tool button backgrounds
* Fix Splash dialog
* Fix brush selection
* Update Main.gd
* Fix About Dialog
* Fix more zooming issues
* Fix canvas preview zooming
* Use signals for queue_redraw on project change
* Fix layer button's look
* Fix gradients
* Some gradient fixes and code cleanups, dithering is still broken
* Fix bucket
* Fix the rest of the undo_redo.add_(un)do_method() cases
* Fix guides
* Fix guide text
* Some small changes in Main
* Update Tools.gd
* Fix palette importing
* Get rid of TODOGODOT4s
* Fix the rest of the dialogs
* Update the rest of the scenes
* Fix onion skinning and frame tag dialogs
* Fix file brushes being imported twice
* Fix palette swatch crashing on double click
* Use nearest filter for some of the windows
* Remove old .tres font files
* Fix language switching
* Get rid of Keychain.action_get_first_key() on the extra shortcuts of tools
* Get rid of Keychain.MenuInputActions and directly set shortcuts to the menu items
This temporarily removes echoing support for undo and redo, this will be re-added once https://github.com/godotengine/godot/pull/36493 or https://github.com/godotengine/godot/pull/64317 is merged.
* Clean shortcut-related duplicate code in TopMenuContainer
* Remove DroidSansFallback now that system fonts can be used as fallback
* Remove 3.x settings from project.godot
* Format
* Format gdgifexporter
* Reset Keychain to its original state
* Remove textures from the dark and gray themes
* Remove all textures from the dark theme
* Better static typing in DrawingAlgos
* Use Vector2i for project size
* [Risky commit] Use Vector2i instead of Vector2 for tools
I tested it and everything seems to be working the same as before, but more testing would be appreciated.
* Format after previous commit
* Fix line angle constraint being rotated 180 degrees
This is not a regression from the previous commit(s), Godot 4 probably reversed the logic of `angle_to_point()`.
* Fix input map action not found errors when pressing Shift or Control
* Make AnimatePanel bigger, add spring interpolation
* Fix some layouts/extensions/preferences loading errors
* Fix dithering
* Update layout resources
Probably doesn't change anything at all, but I suppose it might be a good thing to do
* Small changes
* Disable filter in ResizeCanvas dialog
* Fix some preferences default button states
* Fix tile mode always having masking on
* Use integers in tile mode
* Fix checkboxes in preferences not working
* More statically typed arrays!
No need to have these # Array of X comments anymore!
* Fix "apply all" for multiple preview dialogs
* Update theme.tres
* Add HeaderSmall theme type variation
* Fix dynamics buttons
* Don't allow sub-zero zoom values
* Let zoom_out_max always remain Vector2(0.01, 0.01)
This fixes zooming on large canvases
* Bump version to v1.0-dev
* Fix ambient light not working on 3D cels
* Fix .obj loading
* Don't allow greater than max values in the zoom slider
* Set maximum zoom value to always be (500, 500)
* Set zoom slider minimum value to 1
* Some UI changes, mostly related to buttons and the timeline
* Change window titles to what they were before
* [COMPATIBILITY BROKEN WITH v0.x] Fix loading 3D cels
* Avoid changing Cel3DObject's file_path if it's the same
* Make preferences window bigger
* Fix png exporting
* Fix reference image initial size and filter setting
* Fix perspective line reverse scaling on zoom and facing 180 degrees away from cursor
* Format and some linting
* Remove most Images from the rest of the themes
* Remove all textures from all themes
* Fix drawing when the mouse gets released outside the canvas boundaries
* Format Keychain
* Implement #890
* Fix recorder
* Fix layout deletion
* Better static typing and fix empty_clicked signal-connected methods not having arguments
* Fix layout and extension directory creation if they don't already exist
* Change all instances of "HTML5" to "Web"
OS.get_name() now returns "Web" instead of "HTML5" in Godot 4
* Fix JavaScript detection
Opening files in the Web version does not yet work for some reason
* Fix formatting
* Fix lint errors
* Remove unneeded lines from rotation shaders
* Clean some rotation shader related code
* Remove ErrorManager from #891, as it's no longer needed in Godot 4
* Some docstrings
* More Vector2i and Recti replacing their float counterparts
* Remove the hardcoded shortcut from ValueSlider
Note that the brush size shortcut may not change properly because Keychain isn't updated to support Godot 4's input map properly yet.
* Fix bugs from the rebase, integer zooming is currently broken
* Format
* Fix bug where some imported images would fail to load when using smart slice
* Fix integer zooming (I think)
* Fix errors after #898
* Fix some UI issues with PreviewDialog
* Use ctrl/command instead of just ctrl in the shortcuts of the InputMap - gets rid of the need for _use_osx_shortcuts() in Main.gd
* Update Keychain and addons/README.md
* Update CI to Godot 4.1.1 (probably will not work)
* Remove XDGDataPaths.gd
* Make windows non-exclusive
* Attempt to fix macOS CI
* Attempt to fix CI
* Attempt to fix CI
* Minor fix in the dark theme, more will follow
* Silence enumerator/integer warning
* Attempt to fix macOS CI
* Another attempt to fix macOS CI
* Attempt to fix Windows & macOS CI
* fix: Recorder directory create (#903)
* Update Keychain so that the brush size shortcuts can be changed
This update generally lets users use modifier buttons (control, alt, shift, meta) with mouse buttons
* Change OSX to macOS
* Detect if multi-threading is enabled when exporting gifs
* Fix color picker not working on the top color mode
* Make some public methods private in Export.gd
* Remove Global.window_title variable
* Fix frame UI in the timeline breaking after 100 frames
* Static typing improvements for the timeline
* Better static typing for grids
* Fix typo
* Fix pixel grid not appearing
* Move preference updating code to Global using setters
This should make the code a bit more readable, as the logic for each property update can be found directly under the variable declaration, and not hidden in PreferencesDialog's preference_update() method. This also allows for changing these properties outside the preferences, if that will ever be needed. In theory it's also faster as we don't have to do all these string comparisons anymore, but I doubt this will be noticeable in practice.
* Remove RestoreDefaultButton.tscn
* Implement changing font size in the preferences
* Resize HeaderSmall font size along with the default font size
* A step towards fixing image loading in the Web version
Doesn't completely fix the issue, it requires a fix from Godot's side as well
* Implement missing input event actions for buttons
TODO: Add default shortcuts
* Do not change language and theme if they are already the defaults
Reduces the initial loading time a bit
* Remove update_hint_tooltips() as it's no longer needed, only keep it for tools
This was needed in order for hint tooltips to be successfully translated while taking the shortcuts into account. Godot 4 already it correctly for us now. Tools still need it because they contain multiple shortcut data in their tooltips.
* Change ExportDialog's PathDialog's file mode to be "open directory" and make them bigger
* Fix Vector2i + Vector2 errors in grid center snapping
* Update tooltips when the shortcut profile changes
* Fix copy-paste mistake
* Update tooltips during startup if the shortcut profile is not the default
* Fix gif warning label size in ExportDialog
* Fix BBCode in ExportDialog
* Fix some Godot 4.2 warnings
* Some CI fixes
* Static typing improvements and more inline functions
* Format
* Even more static typing, inline methods, docstrings etc
* Some more static typing improvements and inline setters
* Remove unneeded project type specifying
* Fix splash dialog error
* Fix enumerator warning
* Don't preload the font in the rules and guides
* Fix some integer division warnings
Sometimes we indeed need them to be floats
* Change some Rect2s to Rect2is
* Minor static typing improvements
* Update README, CHANGELOG, Translations
* Only load translation files when needed, reduces loading time a bit
* Update Keychain so it doesn't load languages during startup
* Lazy load all tool scenes, breaks compatibility with the extension API
Decreases initial loading time
* Format
* Very minor loading time speedups
* Remove unneeded project type specifying
* Even more static typing and docstring improvements
* Fix extension loading
* Palette docstrings
---------
Co-authored-by: ppphp <kevinniub@gmail.com>
2023-09-04 13:29:06 +00:00
|
|
|
func _can_handle_drag_data(data) -> bool:
|
2023-12-01 17:01:11 +00:00
|
|
|
if data is Dictionary and data.get("type") in ["tab_container_tab", "tabc_element"]:
|
Port to Godot 4 (#900)
* Initial conversion
* Hide some dialogs
* Update addons
* Fix errors in scripts
Temporarily commented out adding new file import types and certain Control methods that are not available in the Window class, such as get_global_mouse_position()
* Update shaders
* Fix some more errors and signals, rename "pressed" to "button_pressed"
* Even more error fixes and renaming corrections
* Fixed more errors, Pixelorama almost runs
* Update ValueSlider.gd
* Remove lock() and unlock(), more ImageTexture.create_from_image() static usage
* More static function using
* Re-add some of the dialog signals, fix window transparency
* Change instances of popup_hide to visibility_changed
* More more errors and warnings
* Fix more errors and warnings
* Get rid of errors in the output when opening Pixelorama in Godot
* Properly connect most signals without using strings
* Fix some scenes
* Don't load Main.tscn
* Emit signals directly instead of using strings
* Fix Keychain menu nodes
* Get rid of self. on most instances, as setters and getters are now always called
* Some more static typing
* Disable texture filters
* Fix zooming
* Fix int as enum warnings
* Fix tools and rename doubleclick to double_click
* Update tool scenes
* Fix tabs
* Fix create new image
* Use static typing on flood fill to speed it up
* Update static-checks.yml
* Reverts #729 for a speedup, hopefully the bug won't get re-introduced
* Fix TransparentChecker warning
* Re-add Default template
* Fix 3D cels
* Fix rotation
Project converted bug. Should be fixed by https://github.com/godotengine/godot/pull/79264
* Fix UITransparency alignment issue, thanks Variable
* Add missing OptionButton items
Hopefully that should be all of them
* Fix the appearance of CollapsibleContainer
* Change instances of world to world_3d
* Fix tool button backgrounds
* Fix Splash dialog
* Fix brush selection
* Update Main.gd
* Fix About Dialog
* Fix more zooming issues
* Fix canvas preview zooming
* Use signals for queue_redraw on project change
* Fix layer button's look
* Fix gradients
* Some gradient fixes and code cleanups, dithering is still broken
* Fix bucket
* Fix the rest of the undo_redo.add_(un)do_method() cases
* Fix guides
* Fix guide text
* Some small changes in Main
* Update Tools.gd
* Fix palette importing
* Get rid of TODOGODOT4s
* Fix the rest of the dialogs
* Update the rest of the scenes
* Fix onion skinning and frame tag dialogs
* Fix file brushes being imported twice
* Fix palette swatch crashing on double click
* Use nearest filter for some of the windows
* Remove old .tres font files
* Fix language switching
* Get rid of Keychain.action_get_first_key() on the extra shortcuts of tools
* Get rid of Keychain.MenuInputActions and directly set shortcuts to the menu items
This temporarily removes echoing support for undo and redo, this will be re-added once https://github.com/godotengine/godot/pull/36493 or https://github.com/godotengine/godot/pull/64317 is merged.
* Clean shortcut-related duplicate code in TopMenuContainer
* Remove DroidSansFallback now that system fonts can be used as fallback
* Remove 3.x settings from project.godot
* Format
* Format gdgifexporter
* Reset Keychain to its original state
* Remove textures from the dark and gray themes
* Remove all textures from the dark theme
* Better static typing in DrawingAlgos
* Use Vector2i for project size
* [Risky commit] Use Vector2i instead of Vector2 for tools
I tested it and everything seems to be working the same as before, but more testing would be appreciated.
* Format after previous commit
* Fix line angle constraint being rotated 180 degrees
This is not a regression from the previous commit(s), Godot 4 probably reversed the logic of `angle_to_point()`.
* Fix input map action not found errors when pressing Shift or Control
* Make AnimatePanel bigger, add spring interpolation
* Fix some layouts/extensions/preferences loading errors
* Fix dithering
* Update layout resources
Probably doesn't change anything at all, but I suppose it might be a good thing to do
* Small changes
* Disable filter in ResizeCanvas dialog
* Fix some preferences default button states
* Fix tile mode always having masking on
* Use integers in tile mode
* Fix checkboxes in preferences not working
* More statically typed arrays!
No need to have these # Array of X comments anymore!
* Fix "apply all" for multiple preview dialogs
* Update theme.tres
* Add HeaderSmall theme type variation
* Fix dynamics buttons
* Don't allow sub-zero zoom values
* Let zoom_out_max always remain Vector2(0.01, 0.01)
This fixes zooming on large canvases
* Bump version to v1.0-dev
* Fix ambient light not working on 3D cels
* Fix .obj loading
* Don't allow greater than max values in the zoom slider
* Set maximum zoom value to always be (500, 500)
* Set zoom slider minimum value to 1
* Some UI changes, mostly related to buttons and the timeline
* Change window titles to what they were before
* [COMPATIBILITY BROKEN WITH v0.x] Fix loading 3D cels
* Avoid changing Cel3DObject's file_path if it's the same
* Make preferences window bigger
* Fix png exporting
* Fix reference image initial size and filter setting
* Fix perspective line reverse scaling on zoom and facing 180 degrees away from cursor
* Format and some linting
* Remove most Images from the rest of the themes
* Remove all textures from all themes
* Fix drawing when the mouse gets released outside the canvas boundaries
* Format Keychain
* Implement #890
* Fix recorder
* Fix layout deletion
* Better static typing and fix empty_clicked signal-connected methods not having arguments
* Fix layout and extension directory creation if they don't already exist
* Change all instances of "HTML5" to "Web"
OS.get_name() now returns "Web" instead of "HTML5" in Godot 4
* Fix JavaScript detection
Opening files in the Web version does not yet work for some reason
* Fix formatting
* Fix lint errors
* Remove unneeded lines from rotation shaders
* Clean some rotation shader related code
* Remove ErrorManager from #891, as it's no longer needed in Godot 4
* Some docstrings
* More Vector2i and Recti replacing their float counterparts
* Remove the hardcoded shortcut from ValueSlider
Note that the brush size shortcut may not change properly because Keychain isn't updated to support Godot 4's input map properly yet.
* Fix bugs from the rebase, integer zooming is currently broken
* Format
* Fix bug where some imported images would fail to load when using smart slice
* Fix integer zooming (I think)
* Fix errors after #898
* Fix some UI issues with PreviewDialog
* Use ctrl/command instead of just ctrl in the shortcuts of the InputMap - gets rid of the need for _use_osx_shortcuts() in Main.gd
* Update Keychain and addons/README.md
* Update CI to Godot 4.1.1 (probably will not work)
* Remove XDGDataPaths.gd
* Make windows non-exclusive
* Attempt to fix macOS CI
* Attempt to fix CI
* Attempt to fix CI
* Minor fix in the dark theme, more will follow
* Silence enumerator/integer warning
* Attempt to fix macOS CI
* Another attempt to fix macOS CI
* Attempt to fix Windows & macOS CI
* fix: Recorder directory create (#903)
* Update Keychain so that the brush size shortcuts can be changed
This update generally lets users use modifier buttons (control, alt, shift, meta) with mouse buttons
* Change OSX to macOS
* Detect if multi-threading is enabled when exporting gifs
* Fix color picker not working on the top color mode
* Make some public methods private in Export.gd
* Remove Global.window_title variable
* Fix frame UI in the timeline breaking after 100 frames
* Static typing improvements for the timeline
* Better static typing for grids
* Fix typo
* Fix pixel grid not appearing
* Move preference updating code to Global using setters
This should make the code a bit more readable, as the logic for each property update can be found directly under the variable declaration, and not hidden in PreferencesDialog's preference_update() method. This also allows for changing these properties outside the preferences, if that will ever be needed. In theory it's also faster as we don't have to do all these string comparisons anymore, but I doubt this will be noticeable in practice.
* Remove RestoreDefaultButton.tscn
* Implement changing font size in the preferences
* Resize HeaderSmall font size along with the default font size
* A step towards fixing image loading in the Web version
Doesn't completely fix the issue, it requires a fix from Godot's side as well
* Implement missing input event actions for buttons
TODO: Add default shortcuts
* Do not change language and theme if they are already the defaults
Reduces the initial loading time a bit
* Remove update_hint_tooltips() as it's no longer needed, only keep it for tools
This was needed in order for hint tooltips to be successfully translated while taking the shortcuts into account. Godot 4 already it correctly for us now. Tools still need it because they contain multiple shortcut data in their tooltips.
* Change ExportDialog's PathDialog's file mode to be "open directory" and make them bigger
* Fix Vector2i + Vector2 errors in grid center snapping
* Update tooltips when the shortcut profile changes
* Fix copy-paste mistake
* Update tooltips during startup if the shortcut profile is not the default
* Fix gif warning label size in ExportDialog
* Fix BBCode in ExportDialog
* Fix some Godot 4.2 warnings
* Some CI fixes
* Static typing improvements and more inline functions
* Format
* Even more static typing, inline methods, docstrings etc
* Some more static typing improvements and inline setters
* Remove unneeded project type specifying
* Fix splash dialog error
* Fix enumerator warning
* Don't preload the font in the rules and guides
* Fix some integer division warnings
Sometimes we indeed need them to be floats
* Change some Rect2s to Rect2is
* Minor static typing improvements
* Update README, CHANGELOG, Translations
* Only load translation files when needed, reduces loading time a bit
* Update Keychain so it doesn't load languages during startup
* Lazy load all tool scenes, breaks compatibility with the extension API
Decreases initial loading time
* Format
* Very minor loading time speedups
* Remove unneeded project type specifying
* Even more static typing and docstring improvements
* Fix extension loading
* Palette docstrings
---------
Co-authored-by: ppphp <kevinniub@gmail.com>
2023-09-04 13:29:06 +00:00
|
|
|
var tabc := get_node_or_null(data.get("from_path"))
|
2022-01-29 22:47:25 +00:00
|
|
|
return (
|
|
|
|
tabc
|
|
|
|
and tabc.has_method("get_tabs_rearrange_group")
|
|
|
|
and tabc.get_tabs_rearrange_group() == rearrange_group
|
|
|
|
)
|
|
|
|
return false
|
|
|
|
|
|
|
|
|
|
|
|
func _is_managed_node(node: Node) -> bool:
|
|
|
|
return (
|
2022-11-09 13:09:14 +00:00
|
|
|
node.get_parent() == self
|
|
|
|
and node != _panel_container
|
2022-01-29 22:47:25 +00:00
|
|
|
and node != _drag_n_drop_panel
|
|
|
|
and node is Control
|
Port to Godot 4 (#900)
* Initial conversion
* Hide some dialogs
* Update addons
* Fix errors in scripts
Temporarily commented out adding new file import types and certain Control methods that are not available in the Window class, such as get_global_mouse_position()
* Update shaders
* Fix some more errors and signals, rename "pressed" to "button_pressed"
* Even more error fixes and renaming corrections
* Fixed more errors, Pixelorama almost runs
* Update ValueSlider.gd
* Remove lock() and unlock(), more ImageTexture.create_from_image() static usage
* More static function using
* Re-add some of the dialog signals, fix window transparency
* Change instances of popup_hide to visibility_changed
* More more errors and warnings
* Fix more errors and warnings
* Get rid of errors in the output when opening Pixelorama in Godot
* Properly connect most signals without using strings
* Fix some scenes
* Don't load Main.tscn
* Emit signals directly instead of using strings
* Fix Keychain menu nodes
* Get rid of self. on most instances, as setters and getters are now always called
* Some more static typing
* Disable texture filters
* Fix zooming
* Fix int as enum warnings
* Fix tools and rename doubleclick to double_click
* Update tool scenes
* Fix tabs
* Fix create new image
* Use static typing on flood fill to speed it up
* Update static-checks.yml
* Reverts #729 for a speedup, hopefully the bug won't get re-introduced
* Fix TransparentChecker warning
* Re-add Default template
* Fix 3D cels
* Fix rotation
Project converted bug. Should be fixed by https://github.com/godotengine/godot/pull/79264
* Fix UITransparency alignment issue, thanks Variable
* Add missing OptionButton items
Hopefully that should be all of them
* Fix the appearance of CollapsibleContainer
* Change instances of world to world_3d
* Fix tool button backgrounds
* Fix Splash dialog
* Fix brush selection
* Update Main.gd
* Fix About Dialog
* Fix more zooming issues
* Fix canvas preview zooming
* Use signals for queue_redraw on project change
* Fix layer button's look
* Fix gradients
* Some gradient fixes and code cleanups, dithering is still broken
* Fix bucket
* Fix the rest of the undo_redo.add_(un)do_method() cases
* Fix guides
* Fix guide text
* Some small changes in Main
* Update Tools.gd
* Fix palette importing
* Get rid of TODOGODOT4s
* Fix the rest of the dialogs
* Update the rest of the scenes
* Fix onion skinning and frame tag dialogs
* Fix file brushes being imported twice
* Fix palette swatch crashing on double click
* Use nearest filter for some of the windows
* Remove old .tres font files
* Fix language switching
* Get rid of Keychain.action_get_first_key() on the extra shortcuts of tools
* Get rid of Keychain.MenuInputActions and directly set shortcuts to the menu items
This temporarily removes echoing support for undo and redo, this will be re-added once https://github.com/godotengine/godot/pull/36493 or https://github.com/godotengine/godot/pull/64317 is merged.
* Clean shortcut-related duplicate code in TopMenuContainer
* Remove DroidSansFallback now that system fonts can be used as fallback
* Remove 3.x settings from project.godot
* Format
* Format gdgifexporter
* Reset Keychain to its original state
* Remove textures from the dark and gray themes
* Remove all textures from the dark theme
* Better static typing in DrawingAlgos
* Use Vector2i for project size
* [Risky commit] Use Vector2i instead of Vector2 for tools
I tested it and everything seems to be working the same as before, but more testing would be appreciated.
* Format after previous commit
* Fix line angle constraint being rotated 180 degrees
This is not a regression from the previous commit(s), Godot 4 probably reversed the logic of `angle_to_point()`.
* Fix input map action not found errors when pressing Shift or Control
* Make AnimatePanel bigger, add spring interpolation
* Fix some layouts/extensions/preferences loading errors
* Fix dithering
* Update layout resources
Probably doesn't change anything at all, but I suppose it might be a good thing to do
* Small changes
* Disable filter in ResizeCanvas dialog
* Fix some preferences default button states
* Fix tile mode always having masking on
* Use integers in tile mode
* Fix checkboxes in preferences not working
* More statically typed arrays!
No need to have these # Array of X comments anymore!
* Fix "apply all" for multiple preview dialogs
* Update theme.tres
* Add HeaderSmall theme type variation
* Fix dynamics buttons
* Don't allow sub-zero zoom values
* Let zoom_out_max always remain Vector2(0.01, 0.01)
This fixes zooming on large canvases
* Bump version to v1.0-dev
* Fix ambient light not working on 3D cels
* Fix .obj loading
* Don't allow greater than max values in the zoom slider
* Set maximum zoom value to always be (500, 500)
* Set zoom slider minimum value to 1
* Some UI changes, mostly related to buttons and the timeline
* Change window titles to what they were before
* [COMPATIBILITY BROKEN WITH v0.x] Fix loading 3D cels
* Avoid changing Cel3DObject's file_path if it's the same
* Make preferences window bigger
* Fix png exporting
* Fix reference image initial size and filter setting
* Fix perspective line reverse scaling on zoom and facing 180 degrees away from cursor
* Format and some linting
* Remove most Images from the rest of the themes
* Remove all textures from all themes
* Fix drawing when the mouse gets released outside the canvas boundaries
* Format Keychain
* Implement #890
* Fix recorder
* Fix layout deletion
* Better static typing and fix empty_clicked signal-connected methods not having arguments
* Fix layout and extension directory creation if they don't already exist
* Change all instances of "HTML5" to "Web"
OS.get_name() now returns "Web" instead of "HTML5" in Godot 4
* Fix JavaScript detection
Opening files in the Web version does not yet work for some reason
* Fix formatting
* Fix lint errors
* Remove unneeded lines from rotation shaders
* Clean some rotation shader related code
* Remove ErrorManager from #891, as it's no longer needed in Godot 4
* Some docstrings
* More Vector2i and Recti replacing their float counterparts
* Remove the hardcoded shortcut from ValueSlider
Note that the brush size shortcut may not change properly because Keychain isn't updated to support Godot 4's input map properly yet.
* Fix bugs from the rebase, integer zooming is currently broken
* Format
* Fix bug where some imported images would fail to load when using smart slice
* Fix integer zooming (I think)
* Fix errors after #898
* Fix some UI issues with PreviewDialog
* Use ctrl/command instead of just ctrl in the shortcuts of the InputMap - gets rid of the need for _use_osx_shortcuts() in Main.gd
* Update Keychain and addons/README.md
* Update CI to Godot 4.1.1 (probably will not work)
* Remove XDGDataPaths.gd
* Make windows non-exclusive
* Attempt to fix macOS CI
* Attempt to fix CI
* Attempt to fix CI
* Minor fix in the dark theme, more will follow
* Silence enumerator/integer warning
* Attempt to fix macOS CI
* Another attempt to fix macOS CI
* Attempt to fix Windows & macOS CI
* fix: Recorder directory create (#903)
* Update Keychain so that the brush size shortcuts can be changed
This update generally lets users use modifier buttons (control, alt, shift, meta) with mouse buttons
* Change OSX to macOS
* Detect if multi-threading is enabled when exporting gifs
* Fix color picker not working on the top color mode
* Make some public methods private in Export.gd
* Remove Global.window_title variable
* Fix frame UI in the timeline breaking after 100 frames
* Static typing improvements for the timeline
* Better static typing for grids
* Fix typo
* Fix pixel grid not appearing
* Move preference updating code to Global using setters
This should make the code a bit more readable, as the logic for each property update can be found directly under the variable declaration, and not hidden in PreferencesDialog's preference_update() method. This also allows for changing these properties outside the preferences, if that will ever be needed. In theory it's also faster as we don't have to do all these string comparisons anymore, but I doubt this will be noticeable in practice.
* Remove RestoreDefaultButton.tscn
* Implement changing font size in the preferences
* Resize HeaderSmall font size along with the default font size
* A step towards fixing image loading in the Web version
Doesn't completely fix the issue, it requires a fix from Godot's side as well
* Implement missing input event actions for buttons
TODO: Add default shortcuts
* Do not change language and theme if they are already the defaults
Reduces the initial loading time a bit
* Remove update_hint_tooltips() as it's no longer needed, only keep it for tools
This was needed in order for hint tooltips to be successfully translated while taking the shortcuts into account. Godot 4 already it correctly for us now. Tools still need it because they contain multiple shortcut data in their tooltips.
* Change ExportDialog's PathDialog's file mode to be "open directory" and make them bigger
* Fix Vector2i + Vector2 errors in grid center snapping
* Update tooltips when the shortcut profile changes
* Fix copy-paste mistake
* Update tooltips during startup if the shortcut profile is not the default
* Fix gif warning label size in ExportDialog
* Fix BBCode in ExportDialog
* Fix some Godot 4.2 warnings
* Some CI fixes
* Static typing improvements and more inline functions
* Format
* Even more static typing, inline methods, docstrings etc
* Some more static typing improvements and inline setters
* Remove unneeded project type specifying
* Fix splash dialog error
* Fix enumerator warning
* Don't preload the font in the rules and guides
* Fix some integer division warnings
Sometimes we indeed need them to be floats
* Change some Rect2s to Rect2is
* Minor static typing improvements
* Update README, CHANGELOG, Translations
* Only load translation files when needed, reduces loading time a bit
* Update Keychain so it doesn't load languages during startup
* Lazy load all tool scenes, breaks compatibility with the extension API
Decreases initial loading time
* Format
* Very minor loading time speedups
* Remove unneeded project type specifying
* Even more static typing and docstring improvements
* Fix extension loading
* Palette docstrings
---------
Co-authored-by: ppphp <kevinniub@gmail.com>
2023-09-04 13:29:06 +00:00
|
|
|
and not node.top_level
|
2022-01-29 22:47:25 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
func _update_layout_with_children() -> void:
|
Port to Godot 4 (#900)
* Initial conversion
* Hide some dialogs
* Update addons
* Fix errors in scripts
Temporarily commented out adding new file import types and certain Control methods that are not available in the Window class, such as get_global_mouse_position()
* Update shaders
* Fix some more errors and signals, rename "pressed" to "button_pressed"
* Even more error fixes and renaming corrections
* Fixed more errors, Pixelorama almost runs
* Update ValueSlider.gd
* Remove lock() and unlock(), more ImageTexture.create_from_image() static usage
* More static function using
* Re-add some of the dialog signals, fix window transparency
* Change instances of popup_hide to visibility_changed
* More more errors and warnings
* Fix more errors and warnings
* Get rid of errors in the output when opening Pixelorama in Godot
* Properly connect most signals without using strings
* Fix some scenes
* Don't load Main.tscn
* Emit signals directly instead of using strings
* Fix Keychain menu nodes
* Get rid of self. on most instances, as setters and getters are now always called
* Some more static typing
* Disable texture filters
* Fix zooming
* Fix int as enum warnings
* Fix tools and rename doubleclick to double_click
* Update tool scenes
* Fix tabs
* Fix create new image
* Use static typing on flood fill to speed it up
* Update static-checks.yml
* Reverts #729 for a speedup, hopefully the bug won't get re-introduced
* Fix TransparentChecker warning
* Re-add Default template
* Fix 3D cels
* Fix rotation
Project converted bug. Should be fixed by https://github.com/godotengine/godot/pull/79264
* Fix UITransparency alignment issue, thanks Variable
* Add missing OptionButton items
Hopefully that should be all of them
* Fix the appearance of CollapsibleContainer
* Change instances of world to world_3d
* Fix tool button backgrounds
* Fix Splash dialog
* Fix brush selection
* Update Main.gd
* Fix About Dialog
* Fix more zooming issues
* Fix canvas preview zooming
* Use signals for queue_redraw on project change
* Fix layer button's look
* Fix gradients
* Some gradient fixes and code cleanups, dithering is still broken
* Fix bucket
* Fix the rest of the undo_redo.add_(un)do_method() cases
* Fix guides
* Fix guide text
* Some small changes in Main
* Update Tools.gd
* Fix palette importing
* Get rid of TODOGODOT4s
* Fix the rest of the dialogs
* Update the rest of the scenes
* Fix onion skinning and frame tag dialogs
* Fix file brushes being imported twice
* Fix palette swatch crashing on double click
* Use nearest filter for some of the windows
* Remove old .tres font files
* Fix language switching
* Get rid of Keychain.action_get_first_key() on the extra shortcuts of tools
* Get rid of Keychain.MenuInputActions and directly set shortcuts to the menu items
This temporarily removes echoing support for undo and redo, this will be re-added once https://github.com/godotengine/godot/pull/36493 or https://github.com/godotengine/godot/pull/64317 is merged.
* Clean shortcut-related duplicate code in TopMenuContainer
* Remove DroidSansFallback now that system fonts can be used as fallback
* Remove 3.x settings from project.godot
* Format
* Format gdgifexporter
* Reset Keychain to its original state
* Remove textures from the dark and gray themes
* Remove all textures from the dark theme
* Better static typing in DrawingAlgos
* Use Vector2i for project size
* [Risky commit] Use Vector2i instead of Vector2 for tools
I tested it and everything seems to be working the same as before, but more testing would be appreciated.
* Format after previous commit
* Fix line angle constraint being rotated 180 degrees
This is not a regression from the previous commit(s), Godot 4 probably reversed the logic of `angle_to_point()`.
* Fix input map action not found errors when pressing Shift or Control
* Make AnimatePanel bigger, add spring interpolation
* Fix some layouts/extensions/preferences loading errors
* Fix dithering
* Update layout resources
Probably doesn't change anything at all, but I suppose it might be a good thing to do
* Small changes
* Disable filter in ResizeCanvas dialog
* Fix some preferences default button states
* Fix tile mode always having masking on
* Use integers in tile mode
* Fix checkboxes in preferences not working
* More statically typed arrays!
No need to have these # Array of X comments anymore!
* Fix "apply all" for multiple preview dialogs
* Update theme.tres
* Add HeaderSmall theme type variation
* Fix dynamics buttons
* Don't allow sub-zero zoom values
* Let zoom_out_max always remain Vector2(0.01, 0.01)
This fixes zooming on large canvases
* Bump version to v1.0-dev
* Fix ambient light not working on 3D cels
* Fix .obj loading
* Don't allow greater than max values in the zoom slider
* Set maximum zoom value to always be (500, 500)
* Set zoom slider minimum value to 1
* Some UI changes, mostly related to buttons and the timeline
* Change window titles to what they were before
* [COMPATIBILITY BROKEN WITH v0.x] Fix loading 3D cels
* Avoid changing Cel3DObject's file_path if it's the same
* Make preferences window bigger
* Fix png exporting
* Fix reference image initial size and filter setting
* Fix perspective line reverse scaling on zoom and facing 180 degrees away from cursor
* Format and some linting
* Remove most Images from the rest of the themes
* Remove all textures from all themes
* Fix drawing when the mouse gets released outside the canvas boundaries
* Format Keychain
* Implement #890
* Fix recorder
* Fix layout deletion
* Better static typing and fix empty_clicked signal-connected methods not having arguments
* Fix layout and extension directory creation if they don't already exist
* Change all instances of "HTML5" to "Web"
OS.get_name() now returns "Web" instead of "HTML5" in Godot 4
* Fix JavaScript detection
Opening files in the Web version does not yet work for some reason
* Fix formatting
* Fix lint errors
* Remove unneeded lines from rotation shaders
* Clean some rotation shader related code
* Remove ErrorManager from #891, as it's no longer needed in Godot 4
* Some docstrings
* More Vector2i and Recti replacing their float counterparts
* Remove the hardcoded shortcut from ValueSlider
Note that the brush size shortcut may not change properly because Keychain isn't updated to support Godot 4's input map properly yet.
* Fix bugs from the rebase, integer zooming is currently broken
* Format
* Fix bug where some imported images would fail to load when using smart slice
* Fix integer zooming (I think)
* Fix errors after #898
* Fix some UI issues with PreviewDialog
* Use ctrl/command instead of just ctrl in the shortcuts of the InputMap - gets rid of the need for _use_osx_shortcuts() in Main.gd
* Update Keychain and addons/README.md
* Update CI to Godot 4.1.1 (probably will not work)
* Remove XDGDataPaths.gd
* Make windows non-exclusive
* Attempt to fix macOS CI
* Attempt to fix CI
* Attempt to fix CI
* Minor fix in the dark theme, more will follow
* Silence enumerator/integer warning
* Attempt to fix macOS CI
* Another attempt to fix macOS CI
* Attempt to fix Windows & macOS CI
* fix: Recorder directory create (#903)
* Update Keychain so that the brush size shortcuts can be changed
This update generally lets users use modifier buttons (control, alt, shift, meta) with mouse buttons
* Change OSX to macOS
* Detect if multi-threading is enabled when exporting gifs
* Fix color picker not working on the top color mode
* Make some public methods private in Export.gd
* Remove Global.window_title variable
* Fix frame UI in the timeline breaking after 100 frames
* Static typing improvements for the timeline
* Better static typing for grids
* Fix typo
* Fix pixel grid not appearing
* Move preference updating code to Global using setters
This should make the code a bit more readable, as the logic for each property update can be found directly under the variable declaration, and not hidden in PreferencesDialog's preference_update() method. This also allows for changing these properties outside the preferences, if that will ever be needed. In theory it's also faster as we don't have to do all these string comparisons anymore, but I doubt this will be noticeable in practice.
* Remove RestoreDefaultButton.tscn
* Implement changing font size in the preferences
* Resize HeaderSmall font size along with the default font size
* A step towards fixing image loading in the Web version
Doesn't completely fix the issue, it requires a fix from Godot's side as well
* Implement missing input event actions for buttons
TODO: Add default shortcuts
* Do not change language and theme if they are already the defaults
Reduces the initial loading time a bit
* Remove update_hint_tooltips() as it's no longer needed, only keep it for tools
This was needed in order for hint tooltips to be successfully translated while taking the shortcuts into account. Godot 4 already it correctly for us now. Tools still need it because they contain multiple shortcut data in their tooltips.
* Change ExportDialog's PathDialog's file mode to be "open directory" and make them bigger
* Fix Vector2i + Vector2 errors in grid center snapping
* Update tooltips when the shortcut profile changes
* Fix copy-paste mistake
* Update tooltips during startup if the shortcut profile is not the default
* Fix gif warning label size in ExportDialog
* Fix BBCode in ExportDialog
* Fix some Godot 4.2 warnings
* Some CI fixes
* Static typing improvements and more inline functions
* Format
* Even more static typing, inline methods, docstrings etc
* Some more static typing improvements and inline setters
* Remove unneeded project type specifying
* Fix splash dialog error
* Fix enumerator warning
* Don't preload the font in the rules and guides
* Fix some integer division warnings
Sometimes we indeed need them to be floats
* Change some Rect2s to Rect2is
* Minor static typing improvements
* Update README, CHANGELOG, Translations
* Only load translation files when needed, reduces loading time a bit
* Update Keychain so it doesn't load languages during startup
* Lazy load all tool scenes, breaks compatibility with the extension API
Decreases initial loading time
* Format
* Very minor loading time speedups
* Remove unneeded project type specifying
* Even more static typing and docstring improvements
* Fix extension loading
* Palette docstrings
---------
Co-authored-by: ppphp <kevinniub@gmail.com>
2023-09-04 13:29:06 +00:00
|
|
|
var names := PackedStringArray()
|
2022-01-29 22:47:25 +00:00
|
|
|
_children_names.clear()
|
|
|
|
for i in range(1, get_child_count() - 1):
|
Port to Godot 4 (#900)
* Initial conversion
* Hide some dialogs
* Update addons
* Fix errors in scripts
Temporarily commented out adding new file import types and certain Control methods that are not available in the Window class, such as get_global_mouse_position()
* Update shaders
* Fix some more errors and signals, rename "pressed" to "button_pressed"
* Even more error fixes and renaming corrections
* Fixed more errors, Pixelorama almost runs
* Update ValueSlider.gd
* Remove lock() and unlock(), more ImageTexture.create_from_image() static usage
* More static function using
* Re-add some of the dialog signals, fix window transparency
* Change instances of popup_hide to visibility_changed
* More more errors and warnings
* Fix more errors and warnings
* Get rid of errors in the output when opening Pixelorama in Godot
* Properly connect most signals without using strings
* Fix some scenes
* Don't load Main.tscn
* Emit signals directly instead of using strings
* Fix Keychain menu nodes
* Get rid of self. on most instances, as setters and getters are now always called
* Some more static typing
* Disable texture filters
* Fix zooming
* Fix int as enum warnings
* Fix tools and rename doubleclick to double_click
* Update tool scenes
* Fix tabs
* Fix create new image
* Use static typing on flood fill to speed it up
* Update static-checks.yml
* Reverts #729 for a speedup, hopefully the bug won't get re-introduced
* Fix TransparentChecker warning
* Re-add Default template
* Fix 3D cels
* Fix rotation
Project converted bug. Should be fixed by https://github.com/godotengine/godot/pull/79264
* Fix UITransparency alignment issue, thanks Variable
* Add missing OptionButton items
Hopefully that should be all of them
* Fix the appearance of CollapsibleContainer
* Change instances of world to world_3d
* Fix tool button backgrounds
* Fix Splash dialog
* Fix brush selection
* Update Main.gd
* Fix About Dialog
* Fix more zooming issues
* Fix canvas preview zooming
* Use signals for queue_redraw on project change
* Fix layer button's look
* Fix gradients
* Some gradient fixes and code cleanups, dithering is still broken
* Fix bucket
* Fix the rest of the undo_redo.add_(un)do_method() cases
* Fix guides
* Fix guide text
* Some small changes in Main
* Update Tools.gd
* Fix palette importing
* Get rid of TODOGODOT4s
* Fix the rest of the dialogs
* Update the rest of the scenes
* Fix onion skinning and frame tag dialogs
* Fix file brushes being imported twice
* Fix palette swatch crashing on double click
* Use nearest filter for some of the windows
* Remove old .tres font files
* Fix language switching
* Get rid of Keychain.action_get_first_key() on the extra shortcuts of tools
* Get rid of Keychain.MenuInputActions and directly set shortcuts to the menu items
This temporarily removes echoing support for undo and redo, this will be re-added once https://github.com/godotengine/godot/pull/36493 or https://github.com/godotengine/godot/pull/64317 is merged.
* Clean shortcut-related duplicate code in TopMenuContainer
* Remove DroidSansFallback now that system fonts can be used as fallback
* Remove 3.x settings from project.godot
* Format
* Format gdgifexporter
* Reset Keychain to its original state
* Remove textures from the dark and gray themes
* Remove all textures from the dark theme
* Better static typing in DrawingAlgos
* Use Vector2i for project size
* [Risky commit] Use Vector2i instead of Vector2 for tools
I tested it and everything seems to be working the same as before, but more testing would be appreciated.
* Format after previous commit
* Fix line angle constraint being rotated 180 degrees
This is not a regression from the previous commit(s), Godot 4 probably reversed the logic of `angle_to_point()`.
* Fix input map action not found errors when pressing Shift or Control
* Make AnimatePanel bigger, add spring interpolation
* Fix some layouts/extensions/preferences loading errors
* Fix dithering
* Update layout resources
Probably doesn't change anything at all, but I suppose it might be a good thing to do
* Small changes
* Disable filter in ResizeCanvas dialog
* Fix some preferences default button states
* Fix tile mode always having masking on
* Use integers in tile mode
* Fix checkboxes in preferences not working
* More statically typed arrays!
No need to have these # Array of X comments anymore!
* Fix "apply all" for multiple preview dialogs
* Update theme.tres
* Add HeaderSmall theme type variation
* Fix dynamics buttons
* Don't allow sub-zero zoom values
* Let zoom_out_max always remain Vector2(0.01, 0.01)
This fixes zooming on large canvases
* Bump version to v1.0-dev
* Fix ambient light not working on 3D cels
* Fix .obj loading
* Don't allow greater than max values in the zoom slider
* Set maximum zoom value to always be (500, 500)
* Set zoom slider minimum value to 1
* Some UI changes, mostly related to buttons and the timeline
* Change window titles to what they were before
* [COMPATIBILITY BROKEN WITH v0.x] Fix loading 3D cels
* Avoid changing Cel3DObject's file_path if it's the same
* Make preferences window bigger
* Fix png exporting
* Fix reference image initial size and filter setting
* Fix perspective line reverse scaling on zoom and facing 180 degrees away from cursor
* Format and some linting
* Remove most Images from the rest of the themes
* Remove all textures from all themes
* Fix drawing when the mouse gets released outside the canvas boundaries
* Format Keychain
* Implement #890
* Fix recorder
* Fix layout deletion
* Better static typing and fix empty_clicked signal-connected methods not having arguments
* Fix layout and extension directory creation if they don't already exist
* Change all instances of "HTML5" to "Web"
OS.get_name() now returns "Web" instead of "HTML5" in Godot 4
* Fix JavaScript detection
Opening files in the Web version does not yet work for some reason
* Fix formatting
* Fix lint errors
* Remove unneeded lines from rotation shaders
* Clean some rotation shader related code
* Remove ErrorManager from #891, as it's no longer needed in Godot 4
* Some docstrings
* More Vector2i and Recti replacing their float counterparts
* Remove the hardcoded shortcut from ValueSlider
Note that the brush size shortcut may not change properly because Keychain isn't updated to support Godot 4's input map properly yet.
* Fix bugs from the rebase, integer zooming is currently broken
* Format
* Fix bug where some imported images would fail to load when using smart slice
* Fix integer zooming (I think)
* Fix errors after #898
* Fix some UI issues with PreviewDialog
* Use ctrl/command instead of just ctrl in the shortcuts of the InputMap - gets rid of the need for _use_osx_shortcuts() in Main.gd
* Update Keychain and addons/README.md
* Update CI to Godot 4.1.1 (probably will not work)
* Remove XDGDataPaths.gd
* Make windows non-exclusive
* Attempt to fix macOS CI
* Attempt to fix CI
* Attempt to fix CI
* Minor fix in the dark theme, more will follow
* Silence enumerator/integer warning
* Attempt to fix macOS CI
* Another attempt to fix macOS CI
* Attempt to fix Windows & macOS CI
* fix: Recorder directory create (#903)
* Update Keychain so that the brush size shortcuts can be changed
This update generally lets users use modifier buttons (control, alt, shift, meta) with mouse buttons
* Change OSX to macOS
* Detect if multi-threading is enabled when exporting gifs
* Fix color picker not working on the top color mode
* Make some public methods private in Export.gd
* Remove Global.window_title variable
* Fix frame UI in the timeline breaking after 100 frames
* Static typing improvements for the timeline
* Better static typing for grids
* Fix typo
* Fix pixel grid not appearing
* Move preference updating code to Global using setters
This should make the code a bit more readable, as the logic for each property update can be found directly under the variable declaration, and not hidden in PreferencesDialog's preference_update() method. This also allows for changing these properties outside the preferences, if that will ever be needed. In theory it's also faster as we don't have to do all these string comparisons anymore, but I doubt this will be noticeable in practice.
* Remove RestoreDefaultButton.tscn
* Implement changing font size in the preferences
* Resize HeaderSmall font size along with the default font size
* A step towards fixing image loading in the Web version
Doesn't completely fix the issue, it requires a fix from Godot's side as well
* Implement missing input event actions for buttons
TODO: Add default shortcuts
* Do not change language and theme if they are already the defaults
Reduces the initial loading time a bit
* Remove update_hint_tooltips() as it's no longer needed, only keep it for tools
This was needed in order for hint tooltips to be successfully translated while taking the shortcuts into account. Godot 4 already it correctly for us now. Tools still need it because they contain multiple shortcut data in their tooltips.
* Change ExportDialog's PathDialog's file mode to be "open directory" and make them bigger
* Fix Vector2i + Vector2 errors in grid center snapping
* Update tooltips when the shortcut profile changes
* Fix copy-paste mistake
* Update tooltips during startup if the shortcut profile is not the default
* Fix gif warning label size in ExportDialog
* Fix BBCode in ExportDialog
* Fix some Godot 4.2 warnings
* Some CI fixes
* Static typing improvements and more inline functions
* Format
* Even more static typing, inline methods, docstrings etc
* Some more static typing improvements and inline setters
* Remove unneeded project type specifying
* Fix splash dialog error
* Fix enumerator warning
* Don't preload the font in the rules and guides
* Fix some integer division warnings
Sometimes we indeed need them to be floats
* Change some Rect2s to Rect2is
* Minor static typing improvements
* Update README, CHANGELOG, Translations
* Only load translation files when needed, reduces loading time a bit
* Update Keychain so it doesn't load languages during startup
* Lazy load all tool scenes, breaks compatibility with the extension API
Decreases initial loading time
* Format
* Very minor loading time speedups
* Remove unneeded project type specifying
* Even more static typing and docstring improvements
* Fix extension loading
* Palette docstrings
---------
Co-authored-by: ppphp <kevinniub@gmail.com>
2023-09-04 13:29:06 +00:00
|
|
|
var c := get_child(i)
|
2022-01-29 22:47:25 +00:00
|
|
|
if _track_node(c):
|
|
|
|
names.append(c.name)
|
|
|
|
_layout.update_nodes(names)
|
|
|
|
_layout_dirty = false
|
|
|
|
|
|
|
|
|
|
|
|
func _track_node(node: Node) -> bool:
|
|
|
|
if not _is_managed_node(node):
|
|
|
|
return false
|
|
|
|
_children_names[node] = node.name
|
|
|
|
_children_names[node.name] = node
|
Port to Godot 4 (#900)
* Initial conversion
* Hide some dialogs
* Update addons
* Fix errors in scripts
Temporarily commented out adding new file import types and certain Control methods that are not available in the Window class, such as get_global_mouse_position()
* Update shaders
* Fix some more errors and signals, rename "pressed" to "button_pressed"
* Even more error fixes and renaming corrections
* Fixed more errors, Pixelorama almost runs
* Update ValueSlider.gd
* Remove lock() and unlock(), more ImageTexture.create_from_image() static usage
* More static function using
* Re-add some of the dialog signals, fix window transparency
* Change instances of popup_hide to visibility_changed
* More more errors and warnings
* Fix more errors and warnings
* Get rid of errors in the output when opening Pixelorama in Godot
* Properly connect most signals without using strings
* Fix some scenes
* Don't load Main.tscn
* Emit signals directly instead of using strings
* Fix Keychain menu nodes
* Get rid of self. on most instances, as setters and getters are now always called
* Some more static typing
* Disable texture filters
* Fix zooming
* Fix int as enum warnings
* Fix tools and rename doubleclick to double_click
* Update tool scenes
* Fix tabs
* Fix create new image
* Use static typing on flood fill to speed it up
* Update static-checks.yml
* Reverts #729 for a speedup, hopefully the bug won't get re-introduced
* Fix TransparentChecker warning
* Re-add Default template
* Fix 3D cels
* Fix rotation
Project converted bug. Should be fixed by https://github.com/godotengine/godot/pull/79264
* Fix UITransparency alignment issue, thanks Variable
* Add missing OptionButton items
Hopefully that should be all of them
* Fix the appearance of CollapsibleContainer
* Change instances of world to world_3d
* Fix tool button backgrounds
* Fix Splash dialog
* Fix brush selection
* Update Main.gd
* Fix About Dialog
* Fix more zooming issues
* Fix canvas preview zooming
* Use signals for queue_redraw on project change
* Fix layer button's look
* Fix gradients
* Some gradient fixes and code cleanups, dithering is still broken
* Fix bucket
* Fix the rest of the undo_redo.add_(un)do_method() cases
* Fix guides
* Fix guide text
* Some small changes in Main
* Update Tools.gd
* Fix palette importing
* Get rid of TODOGODOT4s
* Fix the rest of the dialogs
* Update the rest of the scenes
* Fix onion skinning and frame tag dialogs
* Fix file brushes being imported twice
* Fix palette swatch crashing on double click
* Use nearest filter for some of the windows
* Remove old .tres font files
* Fix language switching
* Get rid of Keychain.action_get_first_key() on the extra shortcuts of tools
* Get rid of Keychain.MenuInputActions and directly set shortcuts to the menu items
This temporarily removes echoing support for undo and redo, this will be re-added once https://github.com/godotengine/godot/pull/36493 or https://github.com/godotengine/godot/pull/64317 is merged.
* Clean shortcut-related duplicate code in TopMenuContainer
* Remove DroidSansFallback now that system fonts can be used as fallback
* Remove 3.x settings from project.godot
* Format
* Format gdgifexporter
* Reset Keychain to its original state
* Remove textures from the dark and gray themes
* Remove all textures from the dark theme
* Better static typing in DrawingAlgos
* Use Vector2i for project size
* [Risky commit] Use Vector2i instead of Vector2 for tools
I tested it and everything seems to be working the same as before, but more testing would be appreciated.
* Format after previous commit
* Fix line angle constraint being rotated 180 degrees
This is not a regression from the previous commit(s), Godot 4 probably reversed the logic of `angle_to_point()`.
* Fix input map action not found errors when pressing Shift or Control
* Make AnimatePanel bigger, add spring interpolation
* Fix some layouts/extensions/preferences loading errors
* Fix dithering
* Update layout resources
Probably doesn't change anything at all, but I suppose it might be a good thing to do
* Small changes
* Disable filter in ResizeCanvas dialog
* Fix some preferences default button states
* Fix tile mode always having masking on
* Use integers in tile mode
* Fix checkboxes in preferences not working
* More statically typed arrays!
No need to have these # Array of X comments anymore!
* Fix "apply all" for multiple preview dialogs
* Update theme.tres
* Add HeaderSmall theme type variation
* Fix dynamics buttons
* Don't allow sub-zero zoom values
* Let zoom_out_max always remain Vector2(0.01, 0.01)
This fixes zooming on large canvases
* Bump version to v1.0-dev
* Fix ambient light not working on 3D cels
* Fix .obj loading
* Don't allow greater than max values in the zoom slider
* Set maximum zoom value to always be (500, 500)
* Set zoom slider minimum value to 1
* Some UI changes, mostly related to buttons and the timeline
* Change window titles to what they were before
* [COMPATIBILITY BROKEN WITH v0.x] Fix loading 3D cels
* Avoid changing Cel3DObject's file_path if it's the same
* Make preferences window bigger
* Fix png exporting
* Fix reference image initial size and filter setting
* Fix perspective line reverse scaling on zoom and facing 180 degrees away from cursor
* Format and some linting
* Remove most Images from the rest of the themes
* Remove all textures from all themes
* Fix drawing when the mouse gets released outside the canvas boundaries
* Format Keychain
* Implement #890
* Fix recorder
* Fix layout deletion
* Better static typing and fix empty_clicked signal-connected methods not having arguments
* Fix layout and extension directory creation if they don't already exist
* Change all instances of "HTML5" to "Web"
OS.get_name() now returns "Web" instead of "HTML5" in Godot 4
* Fix JavaScript detection
Opening files in the Web version does not yet work for some reason
* Fix formatting
* Fix lint errors
* Remove unneeded lines from rotation shaders
* Clean some rotation shader related code
* Remove ErrorManager from #891, as it's no longer needed in Godot 4
* Some docstrings
* More Vector2i and Recti replacing their float counterparts
* Remove the hardcoded shortcut from ValueSlider
Note that the brush size shortcut may not change properly because Keychain isn't updated to support Godot 4's input map properly yet.
* Fix bugs from the rebase, integer zooming is currently broken
* Format
* Fix bug where some imported images would fail to load when using smart slice
* Fix integer zooming (I think)
* Fix errors after #898
* Fix some UI issues with PreviewDialog
* Use ctrl/command instead of just ctrl in the shortcuts of the InputMap - gets rid of the need for _use_osx_shortcuts() in Main.gd
* Update Keychain and addons/README.md
* Update CI to Godot 4.1.1 (probably will not work)
* Remove XDGDataPaths.gd
* Make windows non-exclusive
* Attempt to fix macOS CI
* Attempt to fix CI
* Attempt to fix CI
* Minor fix in the dark theme, more will follow
* Silence enumerator/integer warning
* Attempt to fix macOS CI
* Another attempt to fix macOS CI
* Attempt to fix Windows & macOS CI
* fix: Recorder directory create (#903)
* Update Keychain so that the brush size shortcuts can be changed
This update generally lets users use modifier buttons (control, alt, shift, meta) with mouse buttons
* Change OSX to macOS
* Detect if multi-threading is enabled when exporting gifs
* Fix color picker not working on the top color mode
* Make some public methods private in Export.gd
* Remove Global.window_title variable
* Fix frame UI in the timeline breaking after 100 frames
* Static typing improvements for the timeline
* Better static typing for grids
* Fix typo
* Fix pixel grid not appearing
* Move preference updating code to Global using setters
This should make the code a bit more readable, as the logic for each property update can be found directly under the variable declaration, and not hidden in PreferencesDialog's preference_update() method. This also allows for changing these properties outside the preferences, if that will ever be needed. In theory it's also faster as we don't have to do all these string comparisons anymore, but I doubt this will be noticeable in practice.
* Remove RestoreDefaultButton.tscn
* Implement changing font size in the preferences
* Resize HeaderSmall font size along with the default font size
* A step towards fixing image loading in the Web version
Doesn't completely fix the issue, it requires a fix from Godot's side as well
* Implement missing input event actions for buttons
TODO: Add default shortcuts
* Do not change language and theme if they are already the defaults
Reduces the initial loading time a bit
* Remove update_hint_tooltips() as it's no longer needed, only keep it for tools
This was needed in order for hint tooltips to be successfully translated while taking the shortcuts into account. Godot 4 already it correctly for us now. Tools still need it because they contain multiple shortcut data in their tooltips.
* Change ExportDialog's PathDialog's file mode to be "open directory" and make them bigger
* Fix Vector2i + Vector2 errors in grid center snapping
* Update tooltips when the shortcut profile changes
* Fix copy-paste mistake
* Update tooltips during startup if the shortcut profile is not the default
* Fix gif warning label size in ExportDialog
* Fix BBCode in ExportDialog
* Fix some Godot 4.2 warnings
* Some CI fixes
* Static typing improvements and more inline functions
* Format
* Even more static typing, inline methods, docstrings etc
* Some more static typing improvements and inline setters
* Remove unneeded project type specifying
* Fix splash dialog error
* Fix enumerator warning
* Don't preload the font in the rules and guides
* Fix some integer division warnings
Sometimes we indeed need them to be floats
* Change some Rect2s to Rect2is
* Minor static typing improvements
* Update README, CHANGELOG, Translations
* Only load translation files when needed, reduces loading time a bit
* Update Keychain so it doesn't load languages during startup
* Lazy load all tool scenes, breaks compatibility with the extension API
Decreases initial loading time
* Format
* Very minor loading time speedups
* Remove unneeded project type specifying
* Even more static typing and docstring improvements
* Fix extension loading
* Palette docstrings
---------
Co-authored-by: ppphp <kevinniub@gmail.com>
2023-09-04 13:29:06 +00:00
|
|
|
if not node.renamed.is_connected(_on_child_renamed):
|
|
|
|
node.renamed.connect(_on_child_renamed.bind(node))
|
|
|
|
if not node.tree_exiting.is_connected(_untrack_node):
|
|
|
|
node.tree_exiting.connect(_untrack_node.bind(node))
|
2022-01-29 22:47:25 +00:00
|
|
|
return true
|
|
|
|
|
|
|
|
|
|
|
|
func _track_and_add_node(node: Node) -> void:
|
|
|
|
var tracked_name = _children_names.get(node)
|
|
|
|
if not _track_node(node):
|
|
|
|
return
|
|
|
|
if tracked_name and tracked_name != node.name:
|
|
|
|
_layout.rename_node(tracked_name, node.name)
|
|
|
|
_layout_dirty = true
|
|
|
|
|
|
|
|
|
|
|
|
func _untrack_node(node: Node) -> void:
|
|
|
|
_children_names.erase(node)
|
|
|
|
_children_names.erase(node.name)
|
Port to Godot 4 (#900)
* Initial conversion
* Hide some dialogs
* Update addons
* Fix errors in scripts
Temporarily commented out adding new file import types and certain Control methods that are not available in the Window class, such as get_global_mouse_position()
* Update shaders
* Fix some more errors and signals, rename "pressed" to "button_pressed"
* Even more error fixes and renaming corrections
* Fixed more errors, Pixelorama almost runs
* Update ValueSlider.gd
* Remove lock() and unlock(), more ImageTexture.create_from_image() static usage
* More static function using
* Re-add some of the dialog signals, fix window transparency
* Change instances of popup_hide to visibility_changed
* More more errors and warnings
* Fix more errors and warnings
* Get rid of errors in the output when opening Pixelorama in Godot
* Properly connect most signals without using strings
* Fix some scenes
* Don't load Main.tscn
* Emit signals directly instead of using strings
* Fix Keychain menu nodes
* Get rid of self. on most instances, as setters and getters are now always called
* Some more static typing
* Disable texture filters
* Fix zooming
* Fix int as enum warnings
* Fix tools and rename doubleclick to double_click
* Update tool scenes
* Fix tabs
* Fix create new image
* Use static typing on flood fill to speed it up
* Update static-checks.yml
* Reverts #729 for a speedup, hopefully the bug won't get re-introduced
* Fix TransparentChecker warning
* Re-add Default template
* Fix 3D cels
* Fix rotation
Project converted bug. Should be fixed by https://github.com/godotengine/godot/pull/79264
* Fix UITransparency alignment issue, thanks Variable
* Add missing OptionButton items
Hopefully that should be all of them
* Fix the appearance of CollapsibleContainer
* Change instances of world to world_3d
* Fix tool button backgrounds
* Fix Splash dialog
* Fix brush selection
* Update Main.gd
* Fix About Dialog
* Fix more zooming issues
* Fix canvas preview zooming
* Use signals for queue_redraw on project change
* Fix layer button's look
* Fix gradients
* Some gradient fixes and code cleanups, dithering is still broken
* Fix bucket
* Fix the rest of the undo_redo.add_(un)do_method() cases
* Fix guides
* Fix guide text
* Some small changes in Main
* Update Tools.gd
* Fix palette importing
* Get rid of TODOGODOT4s
* Fix the rest of the dialogs
* Update the rest of the scenes
* Fix onion skinning and frame tag dialogs
* Fix file brushes being imported twice
* Fix palette swatch crashing on double click
* Use nearest filter for some of the windows
* Remove old .tres font files
* Fix language switching
* Get rid of Keychain.action_get_first_key() on the extra shortcuts of tools
* Get rid of Keychain.MenuInputActions and directly set shortcuts to the menu items
This temporarily removes echoing support for undo and redo, this will be re-added once https://github.com/godotengine/godot/pull/36493 or https://github.com/godotengine/godot/pull/64317 is merged.
* Clean shortcut-related duplicate code in TopMenuContainer
* Remove DroidSansFallback now that system fonts can be used as fallback
* Remove 3.x settings from project.godot
* Format
* Format gdgifexporter
* Reset Keychain to its original state
* Remove textures from the dark and gray themes
* Remove all textures from the dark theme
* Better static typing in DrawingAlgos
* Use Vector2i for project size
* [Risky commit] Use Vector2i instead of Vector2 for tools
I tested it and everything seems to be working the same as before, but more testing would be appreciated.
* Format after previous commit
* Fix line angle constraint being rotated 180 degrees
This is not a regression from the previous commit(s), Godot 4 probably reversed the logic of `angle_to_point()`.
* Fix input map action not found errors when pressing Shift or Control
* Make AnimatePanel bigger, add spring interpolation
* Fix some layouts/extensions/preferences loading errors
* Fix dithering
* Update layout resources
Probably doesn't change anything at all, but I suppose it might be a good thing to do
* Small changes
* Disable filter in ResizeCanvas dialog
* Fix some preferences default button states
* Fix tile mode always having masking on
* Use integers in tile mode
* Fix checkboxes in preferences not working
* More statically typed arrays!
No need to have these # Array of X comments anymore!
* Fix "apply all" for multiple preview dialogs
* Update theme.tres
* Add HeaderSmall theme type variation
* Fix dynamics buttons
* Don't allow sub-zero zoom values
* Let zoom_out_max always remain Vector2(0.01, 0.01)
This fixes zooming on large canvases
* Bump version to v1.0-dev
* Fix ambient light not working on 3D cels
* Fix .obj loading
* Don't allow greater than max values in the zoom slider
* Set maximum zoom value to always be (500, 500)
* Set zoom slider minimum value to 1
* Some UI changes, mostly related to buttons and the timeline
* Change window titles to what they were before
* [COMPATIBILITY BROKEN WITH v0.x] Fix loading 3D cels
* Avoid changing Cel3DObject's file_path if it's the same
* Make preferences window bigger
* Fix png exporting
* Fix reference image initial size and filter setting
* Fix perspective line reverse scaling on zoom and facing 180 degrees away from cursor
* Format and some linting
* Remove most Images from the rest of the themes
* Remove all textures from all themes
* Fix drawing when the mouse gets released outside the canvas boundaries
* Format Keychain
* Implement #890
* Fix recorder
* Fix layout deletion
* Better static typing and fix empty_clicked signal-connected methods not having arguments
* Fix layout and extension directory creation if they don't already exist
* Change all instances of "HTML5" to "Web"
OS.get_name() now returns "Web" instead of "HTML5" in Godot 4
* Fix JavaScript detection
Opening files in the Web version does not yet work for some reason
* Fix formatting
* Fix lint errors
* Remove unneeded lines from rotation shaders
* Clean some rotation shader related code
* Remove ErrorManager from #891, as it's no longer needed in Godot 4
* Some docstrings
* More Vector2i and Recti replacing their float counterparts
* Remove the hardcoded shortcut from ValueSlider
Note that the brush size shortcut may not change properly because Keychain isn't updated to support Godot 4's input map properly yet.
* Fix bugs from the rebase, integer zooming is currently broken
* Format
* Fix bug where some imported images would fail to load when using smart slice
* Fix integer zooming (I think)
* Fix errors after #898
* Fix some UI issues with PreviewDialog
* Use ctrl/command instead of just ctrl in the shortcuts of the InputMap - gets rid of the need for _use_osx_shortcuts() in Main.gd
* Update Keychain and addons/README.md
* Update CI to Godot 4.1.1 (probably will not work)
* Remove XDGDataPaths.gd
* Make windows non-exclusive
* Attempt to fix macOS CI
* Attempt to fix CI
* Attempt to fix CI
* Minor fix in the dark theme, more will follow
* Silence enumerator/integer warning
* Attempt to fix macOS CI
* Another attempt to fix macOS CI
* Attempt to fix Windows & macOS CI
* fix: Recorder directory create (#903)
* Update Keychain so that the brush size shortcuts can be changed
This update generally lets users use modifier buttons (control, alt, shift, meta) with mouse buttons
* Change OSX to macOS
* Detect if multi-threading is enabled when exporting gifs
* Fix color picker not working on the top color mode
* Make some public methods private in Export.gd
* Remove Global.window_title variable
* Fix frame UI in the timeline breaking after 100 frames
* Static typing improvements for the timeline
* Better static typing for grids
* Fix typo
* Fix pixel grid not appearing
* Move preference updating code to Global using setters
This should make the code a bit more readable, as the logic for each property update can be found directly under the variable declaration, and not hidden in PreferencesDialog's preference_update() method. This also allows for changing these properties outside the preferences, if that will ever be needed. In theory it's also faster as we don't have to do all these string comparisons anymore, but I doubt this will be noticeable in practice.
* Remove RestoreDefaultButton.tscn
* Implement changing font size in the preferences
* Resize HeaderSmall font size along with the default font size
* A step towards fixing image loading in the Web version
Doesn't completely fix the issue, it requires a fix from Godot's side as well
* Implement missing input event actions for buttons
TODO: Add default shortcuts
* Do not change language and theme if they are already the defaults
Reduces the initial loading time a bit
* Remove update_hint_tooltips() as it's no longer needed, only keep it for tools
This was needed in order for hint tooltips to be successfully translated while taking the shortcuts into account. Godot 4 already it correctly for us now. Tools still need it because they contain multiple shortcut data in their tooltips.
* Change ExportDialog's PathDialog's file mode to be "open directory" and make them bigger
* Fix Vector2i + Vector2 errors in grid center snapping
* Update tooltips when the shortcut profile changes
* Fix copy-paste mistake
* Update tooltips during startup if the shortcut profile is not the default
* Fix gif warning label size in ExportDialog
* Fix BBCode in ExportDialog
* Fix some Godot 4.2 warnings
* Some CI fixes
* Static typing improvements and more inline functions
* Format
* Even more static typing, inline methods, docstrings etc
* Some more static typing improvements and inline setters
* Remove unneeded project type specifying
* Fix splash dialog error
* Fix enumerator warning
* Don't preload the font in the rules and guides
* Fix some integer division warnings
Sometimes we indeed need them to be floats
* Change some Rect2s to Rect2is
* Minor static typing improvements
* Update README, CHANGELOG, Translations
* Only load translation files when needed, reduces loading time a bit
* Update Keychain so it doesn't load languages during startup
* Lazy load all tool scenes, breaks compatibility with the extension API
Decreases initial loading time
* Format
* Very minor loading time speedups
* Remove unneeded project type specifying
* Even more static typing and docstring improvements
* Fix extension loading
* Palette docstrings
---------
Co-authored-by: ppphp <kevinniub@gmail.com>
2023-09-04 13:29:06 +00:00
|
|
|
if node.renamed.is_connected(_on_child_renamed):
|
|
|
|
node.renamed.disconnect(_on_child_renamed)
|
|
|
|
if node.tree_exiting.is_connected(_untrack_node):
|
|
|
|
node.tree_exiting.disconnect(_untrack_node)
|
2022-01-29 22:47:25 +00:00
|
|
|
_layout_dirty = true
|
|
|
|
|
|
|
|
|
|
|
|
func _resort() -> void:
|
|
|
|
assert(_panel_container, "FIXME: resorting without _panel_container")
|
Port to Godot 4 (#900)
* Initial conversion
* Hide some dialogs
* Update addons
* Fix errors in scripts
Temporarily commented out adding new file import types and certain Control methods that are not available in the Window class, such as get_global_mouse_position()
* Update shaders
* Fix some more errors and signals, rename "pressed" to "button_pressed"
* Even more error fixes and renaming corrections
* Fixed more errors, Pixelorama almost runs
* Update ValueSlider.gd
* Remove lock() and unlock(), more ImageTexture.create_from_image() static usage
* More static function using
* Re-add some of the dialog signals, fix window transparency
* Change instances of popup_hide to visibility_changed
* More more errors and warnings
* Fix more errors and warnings
* Get rid of errors in the output when opening Pixelorama in Godot
* Properly connect most signals without using strings
* Fix some scenes
* Don't load Main.tscn
* Emit signals directly instead of using strings
* Fix Keychain menu nodes
* Get rid of self. on most instances, as setters and getters are now always called
* Some more static typing
* Disable texture filters
* Fix zooming
* Fix int as enum warnings
* Fix tools and rename doubleclick to double_click
* Update tool scenes
* Fix tabs
* Fix create new image
* Use static typing on flood fill to speed it up
* Update static-checks.yml
* Reverts #729 for a speedup, hopefully the bug won't get re-introduced
* Fix TransparentChecker warning
* Re-add Default template
* Fix 3D cels
* Fix rotation
Project converted bug. Should be fixed by https://github.com/godotengine/godot/pull/79264
* Fix UITransparency alignment issue, thanks Variable
* Add missing OptionButton items
Hopefully that should be all of them
* Fix the appearance of CollapsibleContainer
* Change instances of world to world_3d
* Fix tool button backgrounds
* Fix Splash dialog
* Fix brush selection
* Update Main.gd
* Fix About Dialog
* Fix more zooming issues
* Fix canvas preview zooming
* Use signals for queue_redraw on project change
* Fix layer button's look
* Fix gradients
* Some gradient fixes and code cleanups, dithering is still broken
* Fix bucket
* Fix the rest of the undo_redo.add_(un)do_method() cases
* Fix guides
* Fix guide text
* Some small changes in Main
* Update Tools.gd
* Fix palette importing
* Get rid of TODOGODOT4s
* Fix the rest of the dialogs
* Update the rest of the scenes
* Fix onion skinning and frame tag dialogs
* Fix file brushes being imported twice
* Fix palette swatch crashing on double click
* Use nearest filter for some of the windows
* Remove old .tres font files
* Fix language switching
* Get rid of Keychain.action_get_first_key() on the extra shortcuts of tools
* Get rid of Keychain.MenuInputActions and directly set shortcuts to the menu items
This temporarily removes echoing support for undo and redo, this will be re-added once https://github.com/godotengine/godot/pull/36493 or https://github.com/godotengine/godot/pull/64317 is merged.
* Clean shortcut-related duplicate code in TopMenuContainer
* Remove DroidSansFallback now that system fonts can be used as fallback
* Remove 3.x settings from project.godot
* Format
* Format gdgifexporter
* Reset Keychain to its original state
* Remove textures from the dark and gray themes
* Remove all textures from the dark theme
* Better static typing in DrawingAlgos
* Use Vector2i for project size
* [Risky commit] Use Vector2i instead of Vector2 for tools
I tested it and everything seems to be working the same as before, but more testing would be appreciated.
* Format after previous commit
* Fix line angle constraint being rotated 180 degrees
This is not a regression from the previous commit(s), Godot 4 probably reversed the logic of `angle_to_point()`.
* Fix input map action not found errors when pressing Shift or Control
* Make AnimatePanel bigger, add spring interpolation
* Fix some layouts/extensions/preferences loading errors
* Fix dithering
* Update layout resources
Probably doesn't change anything at all, but I suppose it might be a good thing to do
* Small changes
* Disable filter in ResizeCanvas dialog
* Fix some preferences default button states
* Fix tile mode always having masking on
* Use integers in tile mode
* Fix checkboxes in preferences not working
* More statically typed arrays!
No need to have these # Array of X comments anymore!
* Fix "apply all" for multiple preview dialogs
* Update theme.tres
* Add HeaderSmall theme type variation
* Fix dynamics buttons
* Don't allow sub-zero zoom values
* Let zoom_out_max always remain Vector2(0.01, 0.01)
This fixes zooming on large canvases
* Bump version to v1.0-dev
* Fix ambient light not working on 3D cels
* Fix .obj loading
* Don't allow greater than max values in the zoom slider
* Set maximum zoom value to always be (500, 500)
* Set zoom slider minimum value to 1
* Some UI changes, mostly related to buttons and the timeline
* Change window titles to what they were before
* [COMPATIBILITY BROKEN WITH v0.x] Fix loading 3D cels
* Avoid changing Cel3DObject's file_path if it's the same
* Make preferences window bigger
* Fix png exporting
* Fix reference image initial size and filter setting
* Fix perspective line reverse scaling on zoom and facing 180 degrees away from cursor
* Format and some linting
* Remove most Images from the rest of the themes
* Remove all textures from all themes
* Fix drawing when the mouse gets released outside the canvas boundaries
* Format Keychain
* Implement #890
* Fix recorder
* Fix layout deletion
* Better static typing and fix empty_clicked signal-connected methods not having arguments
* Fix layout and extension directory creation if they don't already exist
* Change all instances of "HTML5" to "Web"
OS.get_name() now returns "Web" instead of "HTML5" in Godot 4
* Fix JavaScript detection
Opening files in the Web version does not yet work for some reason
* Fix formatting
* Fix lint errors
* Remove unneeded lines from rotation shaders
* Clean some rotation shader related code
* Remove ErrorManager from #891, as it's no longer needed in Godot 4
* Some docstrings
* More Vector2i and Recti replacing their float counterparts
* Remove the hardcoded shortcut from ValueSlider
Note that the brush size shortcut may not change properly because Keychain isn't updated to support Godot 4's input map properly yet.
* Fix bugs from the rebase, integer zooming is currently broken
* Format
* Fix bug where some imported images would fail to load when using smart slice
* Fix integer zooming (I think)
* Fix errors after #898
* Fix some UI issues with PreviewDialog
* Use ctrl/command instead of just ctrl in the shortcuts of the InputMap - gets rid of the need for _use_osx_shortcuts() in Main.gd
* Update Keychain and addons/README.md
* Update CI to Godot 4.1.1 (probably will not work)
* Remove XDGDataPaths.gd
* Make windows non-exclusive
* Attempt to fix macOS CI
* Attempt to fix CI
* Attempt to fix CI
* Minor fix in the dark theme, more will follow
* Silence enumerator/integer warning
* Attempt to fix macOS CI
* Another attempt to fix macOS CI
* Attempt to fix Windows & macOS CI
* fix: Recorder directory create (#903)
* Update Keychain so that the brush size shortcuts can be changed
This update generally lets users use modifier buttons (control, alt, shift, meta) with mouse buttons
* Change OSX to macOS
* Detect if multi-threading is enabled when exporting gifs
* Fix color picker not working on the top color mode
* Make some public methods private in Export.gd
* Remove Global.window_title variable
* Fix frame UI in the timeline breaking after 100 frames
* Static typing improvements for the timeline
* Better static typing for grids
* Fix typo
* Fix pixel grid not appearing
* Move preference updating code to Global using setters
This should make the code a bit more readable, as the logic for each property update can be found directly under the variable declaration, and not hidden in PreferencesDialog's preference_update() method. This also allows for changing these properties outside the preferences, if that will ever be needed. In theory it's also faster as we don't have to do all these string comparisons anymore, but I doubt this will be noticeable in practice.
* Remove RestoreDefaultButton.tscn
* Implement changing font size in the preferences
* Resize HeaderSmall font size along with the default font size
* A step towards fixing image loading in the Web version
Doesn't completely fix the issue, it requires a fix from Godot's side as well
* Implement missing input event actions for buttons
TODO: Add default shortcuts
* Do not change language and theme if they are already the defaults
Reduces the initial loading time a bit
* Remove update_hint_tooltips() as it's no longer needed, only keep it for tools
This was needed in order for hint tooltips to be successfully translated while taking the shortcuts into account. Godot 4 already it correctly for us now. Tools still need it because they contain multiple shortcut data in their tooltips.
* Change ExportDialog's PathDialog's file mode to be "open directory" and make them bigger
* Fix Vector2i + Vector2 errors in grid center snapping
* Update tooltips when the shortcut profile changes
* Fix copy-paste mistake
* Update tooltips during startup if the shortcut profile is not the default
* Fix gif warning label size in ExportDialog
* Fix BBCode in ExportDialog
* Fix some Godot 4.2 warnings
* Some CI fixes
* Static typing improvements and more inline functions
* Format
* Even more static typing, inline methods, docstrings etc
* Some more static typing improvements and inline setters
* Remove unneeded project type specifying
* Fix splash dialog error
* Fix enumerator warning
* Don't preload the font in the rules and guides
* Fix some integer division warnings
Sometimes we indeed need them to be floats
* Change some Rect2s to Rect2is
* Minor static typing improvements
* Update README, CHANGELOG, Translations
* Only load translation files when needed, reduces loading time a bit
* Update Keychain so it doesn't load languages during startup
* Lazy load all tool scenes, breaks compatibility with the extension API
Decreases initial loading time
* Format
* Very minor loading time speedups
* Remove unneeded project type specifying
* Even more static typing and docstring improvements
* Fix extension loading
* Palette docstrings
---------
Co-authored-by: ppphp <kevinniub@gmail.com>
2023-09-04 13:29:06 +00:00
|
|
|
if _panel_container.get_index() != 0:
|
2022-01-29 22:47:25 +00:00
|
|
|
move_child(_panel_container, 0)
|
Port to Godot 4 (#900)
* Initial conversion
* Hide some dialogs
* Update addons
* Fix errors in scripts
Temporarily commented out adding new file import types and certain Control methods that are not available in the Window class, such as get_global_mouse_position()
* Update shaders
* Fix some more errors and signals, rename "pressed" to "button_pressed"
* Even more error fixes and renaming corrections
* Fixed more errors, Pixelorama almost runs
* Update ValueSlider.gd
* Remove lock() and unlock(), more ImageTexture.create_from_image() static usage
* More static function using
* Re-add some of the dialog signals, fix window transparency
* Change instances of popup_hide to visibility_changed
* More more errors and warnings
* Fix more errors and warnings
* Get rid of errors in the output when opening Pixelorama in Godot
* Properly connect most signals without using strings
* Fix some scenes
* Don't load Main.tscn
* Emit signals directly instead of using strings
* Fix Keychain menu nodes
* Get rid of self. on most instances, as setters and getters are now always called
* Some more static typing
* Disable texture filters
* Fix zooming
* Fix int as enum warnings
* Fix tools and rename doubleclick to double_click
* Update tool scenes
* Fix tabs
* Fix create new image
* Use static typing on flood fill to speed it up
* Update static-checks.yml
* Reverts #729 for a speedup, hopefully the bug won't get re-introduced
* Fix TransparentChecker warning
* Re-add Default template
* Fix 3D cels
* Fix rotation
Project converted bug. Should be fixed by https://github.com/godotengine/godot/pull/79264
* Fix UITransparency alignment issue, thanks Variable
* Add missing OptionButton items
Hopefully that should be all of them
* Fix the appearance of CollapsibleContainer
* Change instances of world to world_3d
* Fix tool button backgrounds
* Fix Splash dialog
* Fix brush selection
* Update Main.gd
* Fix About Dialog
* Fix more zooming issues
* Fix canvas preview zooming
* Use signals for queue_redraw on project change
* Fix layer button's look
* Fix gradients
* Some gradient fixes and code cleanups, dithering is still broken
* Fix bucket
* Fix the rest of the undo_redo.add_(un)do_method() cases
* Fix guides
* Fix guide text
* Some small changes in Main
* Update Tools.gd
* Fix palette importing
* Get rid of TODOGODOT4s
* Fix the rest of the dialogs
* Update the rest of the scenes
* Fix onion skinning and frame tag dialogs
* Fix file brushes being imported twice
* Fix palette swatch crashing on double click
* Use nearest filter for some of the windows
* Remove old .tres font files
* Fix language switching
* Get rid of Keychain.action_get_first_key() on the extra shortcuts of tools
* Get rid of Keychain.MenuInputActions and directly set shortcuts to the menu items
This temporarily removes echoing support for undo and redo, this will be re-added once https://github.com/godotengine/godot/pull/36493 or https://github.com/godotengine/godot/pull/64317 is merged.
* Clean shortcut-related duplicate code in TopMenuContainer
* Remove DroidSansFallback now that system fonts can be used as fallback
* Remove 3.x settings from project.godot
* Format
* Format gdgifexporter
* Reset Keychain to its original state
* Remove textures from the dark and gray themes
* Remove all textures from the dark theme
* Better static typing in DrawingAlgos
* Use Vector2i for project size
* [Risky commit] Use Vector2i instead of Vector2 for tools
I tested it and everything seems to be working the same as before, but more testing would be appreciated.
* Format after previous commit
* Fix line angle constraint being rotated 180 degrees
This is not a regression from the previous commit(s), Godot 4 probably reversed the logic of `angle_to_point()`.
* Fix input map action not found errors when pressing Shift or Control
* Make AnimatePanel bigger, add spring interpolation
* Fix some layouts/extensions/preferences loading errors
* Fix dithering
* Update layout resources
Probably doesn't change anything at all, but I suppose it might be a good thing to do
* Small changes
* Disable filter in ResizeCanvas dialog
* Fix some preferences default button states
* Fix tile mode always having masking on
* Use integers in tile mode
* Fix checkboxes in preferences not working
* More statically typed arrays!
No need to have these # Array of X comments anymore!
* Fix "apply all" for multiple preview dialogs
* Update theme.tres
* Add HeaderSmall theme type variation
* Fix dynamics buttons
* Don't allow sub-zero zoom values
* Let zoom_out_max always remain Vector2(0.01, 0.01)
This fixes zooming on large canvases
* Bump version to v1.0-dev
* Fix ambient light not working on 3D cels
* Fix .obj loading
* Don't allow greater than max values in the zoom slider
* Set maximum zoom value to always be (500, 500)
* Set zoom slider minimum value to 1
* Some UI changes, mostly related to buttons and the timeline
* Change window titles to what they were before
* [COMPATIBILITY BROKEN WITH v0.x] Fix loading 3D cels
* Avoid changing Cel3DObject's file_path if it's the same
* Make preferences window bigger
* Fix png exporting
* Fix reference image initial size and filter setting
* Fix perspective line reverse scaling on zoom and facing 180 degrees away from cursor
* Format and some linting
* Remove most Images from the rest of the themes
* Remove all textures from all themes
* Fix drawing when the mouse gets released outside the canvas boundaries
* Format Keychain
* Implement #890
* Fix recorder
* Fix layout deletion
* Better static typing and fix empty_clicked signal-connected methods not having arguments
* Fix layout and extension directory creation if they don't already exist
* Change all instances of "HTML5" to "Web"
OS.get_name() now returns "Web" instead of "HTML5" in Godot 4
* Fix JavaScript detection
Opening files in the Web version does not yet work for some reason
* Fix formatting
* Fix lint errors
* Remove unneeded lines from rotation shaders
* Clean some rotation shader related code
* Remove ErrorManager from #891, as it's no longer needed in Godot 4
* Some docstrings
* More Vector2i and Recti replacing their float counterparts
* Remove the hardcoded shortcut from ValueSlider
Note that the brush size shortcut may not change properly because Keychain isn't updated to support Godot 4's input map properly yet.
* Fix bugs from the rebase, integer zooming is currently broken
* Format
* Fix bug where some imported images would fail to load when using smart slice
* Fix integer zooming (I think)
* Fix errors after #898
* Fix some UI issues with PreviewDialog
* Use ctrl/command instead of just ctrl in the shortcuts of the InputMap - gets rid of the need for _use_osx_shortcuts() in Main.gd
* Update Keychain and addons/README.md
* Update CI to Godot 4.1.1 (probably will not work)
* Remove XDGDataPaths.gd
* Make windows non-exclusive
* Attempt to fix macOS CI
* Attempt to fix CI
* Attempt to fix CI
* Minor fix in the dark theme, more will follow
* Silence enumerator/integer warning
* Attempt to fix macOS CI
* Another attempt to fix macOS CI
* Attempt to fix Windows & macOS CI
* fix: Recorder directory create (#903)
* Update Keychain so that the brush size shortcuts can be changed
This update generally lets users use modifier buttons (control, alt, shift, meta) with mouse buttons
* Change OSX to macOS
* Detect if multi-threading is enabled when exporting gifs
* Fix color picker not working on the top color mode
* Make some public methods private in Export.gd
* Remove Global.window_title variable
* Fix frame UI in the timeline breaking after 100 frames
* Static typing improvements for the timeline
* Better static typing for grids
* Fix typo
* Fix pixel grid not appearing
* Move preference updating code to Global using setters
This should make the code a bit more readable, as the logic for each property update can be found directly under the variable declaration, and not hidden in PreferencesDialog's preference_update() method. This also allows for changing these properties outside the preferences, if that will ever be needed. In theory it's also faster as we don't have to do all these string comparisons anymore, but I doubt this will be noticeable in practice.
* Remove RestoreDefaultButton.tscn
* Implement changing font size in the preferences
* Resize HeaderSmall font size along with the default font size
* A step towards fixing image loading in the Web version
Doesn't completely fix the issue, it requires a fix from Godot's side as well
* Implement missing input event actions for buttons
TODO: Add default shortcuts
* Do not change language and theme if they are already the defaults
Reduces the initial loading time a bit
* Remove update_hint_tooltips() as it's no longer needed, only keep it for tools
This was needed in order for hint tooltips to be successfully translated while taking the shortcuts into account. Godot 4 already it correctly for us now. Tools still need it because they contain multiple shortcut data in their tooltips.
* Change ExportDialog's PathDialog's file mode to be "open directory" and make them bigger
* Fix Vector2i + Vector2 errors in grid center snapping
* Update tooltips when the shortcut profile changes
* Fix copy-paste mistake
* Update tooltips during startup if the shortcut profile is not the default
* Fix gif warning label size in ExportDialog
* Fix BBCode in ExportDialog
* Fix some Godot 4.2 warnings
* Some CI fixes
* Static typing improvements and more inline functions
* Format
* Even more static typing, inline methods, docstrings etc
* Some more static typing improvements and inline setters
* Remove unneeded project type specifying
* Fix splash dialog error
* Fix enumerator warning
* Don't preload the font in the rules and guides
* Fix some integer division warnings
Sometimes we indeed need them to be floats
* Change some Rect2s to Rect2is
* Minor static typing improvements
* Update README, CHANGELOG, Translations
* Only load translation files when needed, reduces loading time a bit
* Update Keychain so it doesn't load languages during startup
* Lazy load all tool scenes, breaks compatibility with the extension API
Decreases initial loading time
* Format
* Very minor loading time speedups
* Remove unneeded project type specifying
* Even more static typing and docstring improvements
* Fix extension loading
* Palette docstrings
---------
Co-authored-by: ppphp <kevinniub@gmail.com>
2023-09-04 13:29:06 +00:00
|
|
|
if _drag_n_drop_panel.get_index() < get_child_count() - 1:
|
|
|
|
_drag_n_drop_panel.move_to_front()
|
2022-01-29 22:47:25 +00:00
|
|
|
|
|
|
|
if _layout_dirty:
|
|
|
|
_update_layout_with_children()
|
|
|
|
|
Port to Godot 4 (#900)
* Initial conversion
* Hide some dialogs
* Update addons
* Fix errors in scripts
Temporarily commented out adding new file import types and certain Control methods that are not available in the Window class, such as get_global_mouse_position()
* Update shaders
* Fix some more errors and signals, rename "pressed" to "button_pressed"
* Even more error fixes and renaming corrections
* Fixed more errors, Pixelorama almost runs
* Update ValueSlider.gd
* Remove lock() and unlock(), more ImageTexture.create_from_image() static usage
* More static function using
* Re-add some of the dialog signals, fix window transparency
* Change instances of popup_hide to visibility_changed
* More more errors and warnings
* Fix more errors and warnings
* Get rid of errors in the output when opening Pixelorama in Godot
* Properly connect most signals without using strings
* Fix some scenes
* Don't load Main.tscn
* Emit signals directly instead of using strings
* Fix Keychain menu nodes
* Get rid of self. on most instances, as setters and getters are now always called
* Some more static typing
* Disable texture filters
* Fix zooming
* Fix int as enum warnings
* Fix tools and rename doubleclick to double_click
* Update tool scenes
* Fix tabs
* Fix create new image
* Use static typing on flood fill to speed it up
* Update static-checks.yml
* Reverts #729 for a speedup, hopefully the bug won't get re-introduced
* Fix TransparentChecker warning
* Re-add Default template
* Fix 3D cels
* Fix rotation
Project converted bug. Should be fixed by https://github.com/godotengine/godot/pull/79264
* Fix UITransparency alignment issue, thanks Variable
* Add missing OptionButton items
Hopefully that should be all of them
* Fix the appearance of CollapsibleContainer
* Change instances of world to world_3d
* Fix tool button backgrounds
* Fix Splash dialog
* Fix brush selection
* Update Main.gd
* Fix About Dialog
* Fix more zooming issues
* Fix canvas preview zooming
* Use signals for queue_redraw on project change
* Fix layer button's look
* Fix gradients
* Some gradient fixes and code cleanups, dithering is still broken
* Fix bucket
* Fix the rest of the undo_redo.add_(un)do_method() cases
* Fix guides
* Fix guide text
* Some small changes in Main
* Update Tools.gd
* Fix palette importing
* Get rid of TODOGODOT4s
* Fix the rest of the dialogs
* Update the rest of the scenes
* Fix onion skinning and frame tag dialogs
* Fix file brushes being imported twice
* Fix palette swatch crashing on double click
* Use nearest filter for some of the windows
* Remove old .tres font files
* Fix language switching
* Get rid of Keychain.action_get_first_key() on the extra shortcuts of tools
* Get rid of Keychain.MenuInputActions and directly set shortcuts to the menu items
This temporarily removes echoing support for undo and redo, this will be re-added once https://github.com/godotengine/godot/pull/36493 or https://github.com/godotengine/godot/pull/64317 is merged.
* Clean shortcut-related duplicate code in TopMenuContainer
* Remove DroidSansFallback now that system fonts can be used as fallback
* Remove 3.x settings from project.godot
* Format
* Format gdgifexporter
* Reset Keychain to its original state
* Remove textures from the dark and gray themes
* Remove all textures from the dark theme
* Better static typing in DrawingAlgos
* Use Vector2i for project size
* [Risky commit] Use Vector2i instead of Vector2 for tools
I tested it and everything seems to be working the same as before, but more testing would be appreciated.
* Format after previous commit
* Fix line angle constraint being rotated 180 degrees
This is not a regression from the previous commit(s), Godot 4 probably reversed the logic of `angle_to_point()`.
* Fix input map action not found errors when pressing Shift or Control
* Make AnimatePanel bigger, add spring interpolation
* Fix some layouts/extensions/preferences loading errors
* Fix dithering
* Update layout resources
Probably doesn't change anything at all, but I suppose it might be a good thing to do
* Small changes
* Disable filter in ResizeCanvas dialog
* Fix some preferences default button states
* Fix tile mode always having masking on
* Use integers in tile mode
* Fix checkboxes in preferences not working
* More statically typed arrays!
No need to have these # Array of X comments anymore!
* Fix "apply all" for multiple preview dialogs
* Update theme.tres
* Add HeaderSmall theme type variation
* Fix dynamics buttons
* Don't allow sub-zero zoom values
* Let zoom_out_max always remain Vector2(0.01, 0.01)
This fixes zooming on large canvases
* Bump version to v1.0-dev
* Fix ambient light not working on 3D cels
* Fix .obj loading
* Don't allow greater than max values in the zoom slider
* Set maximum zoom value to always be (500, 500)
* Set zoom slider minimum value to 1
* Some UI changes, mostly related to buttons and the timeline
* Change window titles to what they were before
* [COMPATIBILITY BROKEN WITH v0.x] Fix loading 3D cels
* Avoid changing Cel3DObject's file_path if it's the same
* Make preferences window bigger
* Fix png exporting
* Fix reference image initial size and filter setting
* Fix perspective line reverse scaling on zoom and facing 180 degrees away from cursor
* Format and some linting
* Remove most Images from the rest of the themes
* Remove all textures from all themes
* Fix drawing when the mouse gets released outside the canvas boundaries
* Format Keychain
* Implement #890
* Fix recorder
* Fix layout deletion
* Better static typing and fix empty_clicked signal-connected methods not having arguments
* Fix layout and extension directory creation if they don't already exist
* Change all instances of "HTML5" to "Web"
OS.get_name() now returns "Web" instead of "HTML5" in Godot 4
* Fix JavaScript detection
Opening files in the Web version does not yet work for some reason
* Fix formatting
* Fix lint errors
* Remove unneeded lines from rotation shaders
* Clean some rotation shader related code
* Remove ErrorManager from #891, as it's no longer needed in Godot 4
* Some docstrings
* More Vector2i and Recti replacing their float counterparts
* Remove the hardcoded shortcut from ValueSlider
Note that the brush size shortcut may not change properly because Keychain isn't updated to support Godot 4's input map properly yet.
* Fix bugs from the rebase, integer zooming is currently broken
* Format
* Fix bug where some imported images would fail to load when using smart slice
* Fix integer zooming (I think)
* Fix errors after #898
* Fix some UI issues with PreviewDialog
* Use ctrl/command instead of just ctrl in the shortcuts of the InputMap - gets rid of the need for _use_osx_shortcuts() in Main.gd
* Update Keychain and addons/README.md
* Update CI to Godot 4.1.1 (probably will not work)
* Remove XDGDataPaths.gd
* Make windows non-exclusive
* Attempt to fix macOS CI
* Attempt to fix CI
* Attempt to fix CI
* Minor fix in the dark theme, more will follow
* Silence enumerator/integer warning
* Attempt to fix macOS CI
* Another attempt to fix macOS CI
* Attempt to fix Windows & macOS CI
* fix: Recorder directory create (#903)
* Update Keychain so that the brush size shortcuts can be changed
This update generally lets users use modifier buttons (control, alt, shift, meta) with mouse buttons
* Change OSX to macOS
* Detect if multi-threading is enabled when exporting gifs
* Fix color picker not working on the top color mode
* Make some public methods private in Export.gd
* Remove Global.window_title variable
* Fix frame UI in the timeline breaking after 100 frames
* Static typing improvements for the timeline
* Better static typing for grids
* Fix typo
* Fix pixel grid not appearing
* Move preference updating code to Global using setters
This should make the code a bit more readable, as the logic for each property update can be found directly under the variable declaration, and not hidden in PreferencesDialog's preference_update() method. This also allows for changing these properties outside the preferences, if that will ever be needed. In theory it's also faster as we don't have to do all these string comparisons anymore, but I doubt this will be noticeable in practice.
* Remove RestoreDefaultButton.tscn
* Implement changing font size in the preferences
* Resize HeaderSmall font size along with the default font size
* A step towards fixing image loading in the Web version
Doesn't completely fix the issue, it requires a fix from Godot's side as well
* Implement missing input event actions for buttons
TODO: Add default shortcuts
* Do not change language and theme if they are already the defaults
Reduces the initial loading time a bit
* Remove update_hint_tooltips() as it's no longer needed, only keep it for tools
This was needed in order for hint tooltips to be successfully translated while taking the shortcuts into account. Godot 4 already it correctly for us now. Tools still need it because they contain multiple shortcut data in their tooltips.
* Change ExportDialog's PathDialog's file mode to be "open directory" and make them bigger
* Fix Vector2i + Vector2 errors in grid center snapping
* Update tooltips when the shortcut profile changes
* Fix copy-paste mistake
* Update tooltips during startup if the shortcut profile is not the default
* Fix gif warning label size in ExportDialog
* Fix BBCode in ExportDialog
* Fix some Godot 4.2 warnings
* Some CI fixes
* Static typing improvements and more inline functions
* Format
* Even more static typing, inline methods, docstrings etc
* Some more static typing improvements and inline setters
* Remove unneeded project type specifying
* Fix splash dialog error
* Fix enumerator warning
* Don't preload the font in the rules and guides
* Fix some integer division warnings
Sometimes we indeed need them to be floats
* Change some Rect2s to Rect2is
* Minor static typing improvements
* Update README, CHANGELOG, Translations
* Only load translation files when needed, reduces loading time a bit
* Update Keychain so it doesn't load languages during startup
* Lazy load all tool scenes, breaks compatibility with the extension API
Decreases initial loading time
* Format
* Very minor loading time speedups
* Remove unneeded project type specifying
* Even more static typing and docstring improvements
* Fix extension loading
* Palette docstrings
---------
Co-authored-by: ppphp <kevinniub@gmail.com>
2023-09-04 13:29:06 +00:00
|
|
|
var rect := Rect2(Vector2.ZERO, size)
|
2022-01-29 22:47:25 +00:00
|
|
|
fit_child_in_rect(_panel_container, rect)
|
|
|
|
_panel_container.fit_child_in_rect(_split_container, rect)
|
|
|
|
|
|
|
|
_current_panel_index = 1
|
|
|
|
_current_split_index = 0
|
|
|
|
|
Port to Godot 4 (#900)
* Initial conversion
* Hide some dialogs
* Update addons
* Fix errors in scripts
Temporarily commented out adding new file import types and certain Control methods that are not available in the Window class, such as get_global_mouse_position()
* Update shaders
* Fix some more errors and signals, rename "pressed" to "button_pressed"
* Even more error fixes and renaming corrections
* Fixed more errors, Pixelorama almost runs
* Update ValueSlider.gd
* Remove lock() and unlock(), more ImageTexture.create_from_image() static usage
* More static function using
* Re-add some of the dialog signals, fix window transparency
* Change instances of popup_hide to visibility_changed
* More more errors and warnings
* Fix more errors and warnings
* Get rid of errors in the output when opening Pixelorama in Godot
* Properly connect most signals without using strings
* Fix some scenes
* Don't load Main.tscn
* Emit signals directly instead of using strings
* Fix Keychain menu nodes
* Get rid of self. on most instances, as setters and getters are now always called
* Some more static typing
* Disable texture filters
* Fix zooming
* Fix int as enum warnings
* Fix tools and rename doubleclick to double_click
* Update tool scenes
* Fix tabs
* Fix create new image
* Use static typing on flood fill to speed it up
* Update static-checks.yml
* Reverts #729 for a speedup, hopefully the bug won't get re-introduced
* Fix TransparentChecker warning
* Re-add Default template
* Fix 3D cels
* Fix rotation
Project converted bug. Should be fixed by https://github.com/godotengine/godot/pull/79264
* Fix UITransparency alignment issue, thanks Variable
* Add missing OptionButton items
Hopefully that should be all of them
* Fix the appearance of CollapsibleContainer
* Change instances of world to world_3d
* Fix tool button backgrounds
* Fix Splash dialog
* Fix brush selection
* Update Main.gd
* Fix About Dialog
* Fix more zooming issues
* Fix canvas preview zooming
* Use signals for queue_redraw on project change
* Fix layer button's look
* Fix gradients
* Some gradient fixes and code cleanups, dithering is still broken
* Fix bucket
* Fix the rest of the undo_redo.add_(un)do_method() cases
* Fix guides
* Fix guide text
* Some small changes in Main
* Update Tools.gd
* Fix palette importing
* Get rid of TODOGODOT4s
* Fix the rest of the dialogs
* Update the rest of the scenes
* Fix onion skinning and frame tag dialogs
* Fix file brushes being imported twice
* Fix palette swatch crashing on double click
* Use nearest filter for some of the windows
* Remove old .tres font files
* Fix language switching
* Get rid of Keychain.action_get_first_key() on the extra shortcuts of tools
* Get rid of Keychain.MenuInputActions and directly set shortcuts to the menu items
This temporarily removes echoing support for undo and redo, this will be re-added once https://github.com/godotengine/godot/pull/36493 or https://github.com/godotengine/godot/pull/64317 is merged.
* Clean shortcut-related duplicate code in TopMenuContainer
* Remove DroidSansFallback now that system fonts can be used as fallback
* Remove 3.x settings from project.godot
* Format
* Format gdgifexporter
* Reset Keychain to its original state
* Remove textures from the dark and gray themes
* Remove all textures from the dark theme
* Better static typing in DrawingAlgos
* Use Vector2i for project size
* [Risky commit] Use Vector2i instead of Vector2 for tools
I tested it and everything seems to be working the same as before, but more testing would be appreciated.
* Format after previous commit
* Fix line angle constraint being rotated 180 degrees
This is not a regression from the previous commit(s), Godot 4 probably reversed the logic of `angle_to_point()`.
* Fix input map action not found errors when pressing Shift or Control
* Make AnimatePanel bigger, add spring interpolation
* Fix some layouts/extensions/preferences loading errors
* Fix dithering
* Update layout resources
Probably doesn't change anything at all, but I suppose it might be a good thing to do
* Small changes
* Disable filter in ResizeCanvas dialog
* Fix some preferences default button states
* Fix tile mode always having masking on
* Use integers in tile mode
* Fix checkboxes in preferences not working
* More statically typed arrays!
No need to have these # Array of X comments anymore!
* Fix "apply all" for multiple preview dialogs
* Update theme.tres
* Add HeaderSmall theme type variation
* Fix dynamics buttons
* Don't allow sub-zero zoom values
* Let zoom_out_max always remain Vector2(0.01, 0.01)
This fixes zooming on large canvases
* Bump version to v1.0-dev
* Fix ambient light not working on 3D cels
* Fix .obj loading
* Don't allow greater than max values in the zoom slider
* Set maximum zoom value to always be (500, 500)
* Set zoom slider minimum value to 1
* Some UI changes, mostly related to buttons and the timeline
* Change window titles to what they were before
* [COMPATIBILITY BROKEN WITH v0.x] Fix loading 3D cels
* Avoid changing Cel3DObject's file_path if it's the same
* Make preferences window bigger
* Fix png exporting
* Fix reference image initial size and filter setting
* Fix perspective line reverse scaling on zoom and facing 180 degrees away from cursor
* Format and some linting
* Remove most Images from the rest of the themes
* Remove all textures from all themes
* Fix drawing when the mouse gets released outside the canvas boundaries
* Format Keychain
* Implement #890
* Fix recorder
* Fix layout deletion
* Better static typing and fix empty_clicked signal-connected methods not having arguments
* Fix layout and extension directory creation if they don't already exist
* Change all instances of "HTML5" to "Web"
OS.get_name() now returns "Web" instead of "HTML5" in Godot 4
* Fix JavaScript detection
Opening files in the Web version does not yet work for some reason
* Fix formatting
* Fix lint errors
* Remove unneeded lines from rotation shaders
* Clean some rotation shader related code
* Remove ErrorManager from #891, as it's no longer needed in Godot 4
* Some docstrings
* More Vector2i and Recti replacing their float counterparts
* Remove the hardcoded shortcut from ValueSlider
Note that the brush size shortcut may not change properly because Keychain isn't updated to support Godot 4's input map properly yet.
* Fix bugs from the rebase, integer zooming is currently broken
* Format
* Fix bug where some imported images would fail to load when using smart slice
* Fix integer zooming (I think)
* Fix errors after #898
* Fix some UI issues with PreviewDialog
* Use ctrl/command instead of just ctrl in the shortcuts of the InputMap - gets rid of the need for _use_osx_shortcuts() in Main.gd
* Update Keychain and addons/README.md
* Update CI to Godot 4.1.1 (probably will not work)
* Remove XDGDataPaths.gd
* Make windows non-exclusive
* Attempt to fix macOS CI
* Attempt to fix CI
* Attempt to fix CI
* Minor fix in the dark theme, more will follow
* Silence enumerator/integer warning
* Attempt to fix macOS CI
* Another attempt to fix macOS CI
* Attempt to fix Windows & macOS CI
* fix: Recorder directory create (#903)
* Update Keychain so that the brush size shortcuts can be changed
This update generally lets users use modifier buttons (control, alt, shift, meta) with mouse buttons
* Change OSX to macOS
* Detect if multi-threading is enabled when exporting gifs
* Fix color picker not working on the top color mode
* Make some public methods private in Export.gd
* Remove Global.window_title variable
* Fix frame UI in the timeline breaking after 100 frames
* Static typing improvements for the timeline
* Better static typing for grids
* Fix typo
* Fix pixel grid not appearing
* Move preference updating code to Global using setters
This should make the code a bit more readable, as the logic for each property update can be found directly under the variable declaration, and not hidden in PreferencesDialog's preference_update() method. This also allows for changing these properties outside the preferences, if that will ever be needed. In theory it's also faster as we don't have to do all these string comparisons anymore, but I doubt this will be noticeable in practice.
* Remove RestoreDefaultButton.tscn
* Implement changing font size in the preferences
* Resize HeaderSmall font size along with the default font size
* A step towards fixing image loading in the Web version
Doesn't completely fix the issue, it requires a fix from Godot's side as well
* Implement missing input event actions for buttons
TODO: Add default shortcuts
* Do not change language and theme if they are already the defaults
Reduces the initial loading time a bit
* Remove update_hint_tooltips() as it's no longer needed, only keep it for tools
This was needed in order for hint tooltips to be successfully translated while taking the shortcuts into account. Godot 4 already it correctly for us now. Tools still need it because they contain multiple shortcut data in their tooltips.
* Change ExportDialog's PathDialog's file mode to be "open directory" and make them bigger
* Fix Vector2i + Vector2 errors in grid center snapping
* Update tooltips when the shortcut profile changes
* Fix copy-paste mistake
* Update tooltips during startup if the shortcut profile is not the default
* Fix gif warning label size in ExportDialog
* Fix BBCode in ExportDialog
* Fix some Godot 4.2 warnings
* Some CI fixes
* Static typing improvements and more inline functions
* Format
* Even more static typing, inline methods, docstrings etc
* Some more static typing improvements and inline setters
* Remove unneeded project type specifying
* Fix splash dialog error
* Fix enumerator warning
* Don't preload the font in the rules and guides
* Fix some integer division warnings
Sometimes we indeed need them to be floats
* Change some Rect2s to Rect2is
* Minor static typing improvements
* Update README, CHANGELOG, Translations
* Only load translation files when needed, reduces loading time a bit
* Update Keychain so it doesn't load languages during startup
* Lazy load all tool scenes, breaks compatibility with the extension API
Decreases initial loading time
* Format
* Very minor loading time speedups
* Remove unneeded project type specifying
* Even more static typing and docstring improvements
* Fix extension loading
* Palette docstrings
---------
Co-authored-by: ppphp <kevinniub@gmail.com>
2023-09-04 13:29:06 +00:00
|
|
|
var children_list := []
|
2022-01-29 22:47:25 +00:00
|
|
|
_calculate_panel_and_split_list(children_list, _layout.root)
|
|
|
|
_fit_panel_and_split_list_to_rect(children_list, rect)
|
|
|
|
|
|
|
|
_untrack_children_after(_panel_container, _current_panel_index)
|
|
|
|
_untrack_children_after(_split_container, _current_split_index)
|
|
|
|
|
|
|
|
|
Port to Godot 4 (#900)
* Initial conversion
* Hide some dialogs
* Update addons
* Fix errors in scripts
Temporarily commented out adding new file import types and certain Control methods that are not available in the Window class, such as get_global_mouse_position()
* Update shaders
* Fix some more errors and signals, rename "pressed" to "button_pressed"
* Even more error fixes and renaming corrections
* Fixed more errors, Pixelorama almost runs
* Update ValueSlider.gd
* Remove lock() and unlock(), more ImageTexture.create_from_image() static usage
* More static function using
* Re-add some of the dialog signals, fix window transparency
* Change instances of popup_hide to visibility_changed
* More more errors and warnings
* Fix more errors and warnings
* Get rid of errors in the output when opening Pixelorama in Godot
* Properly connect most signals without using strings
* Fix some scenes
* Don't load Main.tscn
* Emit signals directly instead of using strings
* Fix Keychain menu nodes
* Get rid of self. on most instances, as setters and getters are now always called
* Some more static typing
* Disable texture filters
* Fix zooming
* Fix int as enum warnings
* Fix tools and rename doubleclick to double_click
* Update tool scenes
* Fix tabs
* Fix create new image
* Use static typing on flood fill to speed it up
* Update static-checks.yml
* Reverts #729 for a speedup, hopefully the bug won't get re-introduced
* Fix TransparentChecker warning
* Re-add Default template
* Fix 3D cels
* Fix rotation
Project converted bug. Should be fixed by https://github.com/godotengine/godot/pull/79264
* Fix UITransparency alignment issue, thanks Variable
* Add missing OptionButton items
Hopefully that should be all of them
* Fix the appearance of CollapsibleContainer
* Change instances of world to world_3d
* Fix tool button backgrounds
* Fix Splash dialog
* Fix brush selection
* Update Main.gd
* Fix About Dialog
* Fix more zooming issues
* Fix canvas preview zooming
* Use signals for queue_redraw on project change
* Fix layer button's look
* Fix gradients
* Some gradient fixes and code cleanups, dithering is still broken
* Fix bucket
* Fix the rest of the undo_redo.add_(un)do_method() cases
* Fix guides
* Fix guide text
* Some small changes in Main
* Update Tools.gd
* Fix palette importing
* Get rid of TODOGODOT4s
* Fix the rest of the dialogs
* Update the rest of the scenes
* Fix onion skinning and frame tag dialogs
* Fix file brushes being imported twice
* Fix palette swatch crashing on double click
* Use nearest filter for some of the windows
* Remove old .tres font files
* Fix language switching
* Get rid of Keychain.action_get_first_key() on the extra shortcuts of tools
* Get rid of Keychain.MenuInputActions and directly set shortcuts to the menu items
This temporarily removes echoing support for undo and redo, this will be re-added once https://github.com/godotengine/godot/pull/36493 or https://github.com/godotengine/godot/pull/64317 is merged.
* Clean shortcut-related duplicate code in TopMenuContainer
* Remove DroidSansFallback now that system fonts can be used as fallback
* Remove 3.x settings from project.godot
* Format
* Format gdgifexporter
* Reset Keychain to its original state
* Remove textures from the dark and gray themes
* Remove all textures from the dark theme
* Better static typing in DrawingAlgos
* Use Vector2i for project size
* [Risky commit] Use Vector2i instead of Vector2 for tools
I tested it and everything seems to be working the same as before, but more testing would be appreciated.
* Format after previous commit
* Fix line angle constraint being rotated 180 degrees
This is not a regression from the previous commit(s), Godot 4 probably reversed the logic of `angle_to_point()`.
* Fix input map action not found errors when pressing Shift or Control
* Make AnimatePanel bigger, add spring interpolation
* Fix some layouts/extensions/preferences loading errors
* Fix dithering
* Update layout resources
Probably doesn't change anything at all, but I suppose it might be a good thing to do
* Small changes
* Disable filter in ResizeCanvas dialog
* Fix some preferences default button states
* Fix tile mode always having masking on
* Use integers in tile mode
* Fix checkboxes in preferences not working
* More statically typed arrays!
No need to have these # Array of X comments anymore!
* Fix "apply all" for multiple preview dialogs
* Update theme.tres
* Add HeaderSmall theme type variation
* Fix dynamics buttons
* Don't allow sub-zero zoom values
* Let zoom_out_max always remain Vector2(0.01, 0.01)
This fixes zooming on large canvases
* Bump version to v1.0-dev
* Fix ambient light not working on 3D cels
* Fix .obj loading
* Don't allow greater than max values in the zoom slider
* Set maximum zoom value to always be (500, 500)
* Set zoom slider minimum value to 1
* Some UI changes, mostly related to buttons and the timeline
* Change window titles to what they were before
* [COMPATIBILITY BROKEN WITH v0.x] Fix loading 3D cels
* Avoid changing Cel3DObject's file_path if it's the same
* Make preferences window bigger
* Fix png exporting
* Fix reference image initial size and filter setting
* Fix perspective line reverse scaling on zoom and facing 180 degrees away from cursor
* Format and some linting
* Remove most Images from the rest of the themes
* Remove all textures from all themes
* Fix drawing when the mouse gets released outside the canvas boundaries
* Format Keychain
* Implement #890
* Fix recorder
* Fix layout deletion
* Better static typing and fix empty_clicked signal-connected methods not having arguments
* Fix layout and extension directory creation if they don't already exist
* Change all instances of "HTML5" to "Web"
OS.get_name() now returns "Web" instead of "HTML5" in Godot 4
* Fix JavaScript detection
Opening files in the Web version does not yet work for some reason
* Fix formatting
* Fix lint errors
* Remove unneeded lines from rotation shaders
* Clean some rotation shader related code
* Remove ErrorManager from #891, as it's no longer needed in Godot 4
* Some docstrings
* More Vector2i and Recti replacing their float counterparts
* Remove the hardcoded shortcut from ValueSlider
Note that the brush size shortcut may not change properly because Keychain isn't updated to support Godot 4's input map properly yet.
* Fix bugs from the rebase, integer zooming is currently broken
* Format
* Fix bug where some imported images would fail to load when using smart slice
* Fix integer zooming (I think)
* Fix errors after #898
* Fix some UI issues with PreviewDialog
* Use ctrl/command instead of just ctrl in the shortcuts of the InputMap - gets rid of the need for _use_osx_shortcuts() in Main.gd
* Update Keychain and addons/README.md
* Update CI to Godot 4.1.1 (probably will not work)
* Remove XDGDataPaths.gd
* Make windows non-exclusive
* Attempt to fix macOS CI
* Attempt to fix CI
* Attempt to fix CI
* Minor fix in the dark theme, more will follow
* Silence enumerator/integer warning
* Attempt to fix macOS CI
* Another attempt to fix macOS CI
* Attempt to fix Windows & macOS CI
* fix: Recorder directory create (#903)
* Update Keychain so that the brush size shortcuts can be changed
This update generally lets users use modifier buttons (control, alt, shift, meta) with mouse buttons
* Change OSX to macOS
* Detect if multi-threading is enabled when exporting gifs
* Fix color picker not working on the top color mode
* Make some public methods private in Export.gd
* Remove Global.window_title variable
* Fix frame UI in the timeline breaking after 100 frames
* Static typing improvements for the timeline
* Better static typing for grids
* Fix typo
* Fix pixel grid not appearing
* Move preference updating code to Global using setters
This should make the code a bit more readable, as the logic for each property update can be found directly under the variable declaration, and not hidden in PreferencesDialog's preference_update() method. This also allows for changing these properties outside the preferences, if that will ever be needed. In theory it's also faster as we don't have to do all these string comparisons anymore, but I doubt this will be noticeable in practice.
* Remove RestoreDefaultButton.tscn
* Implement changing font size in the preferences
* Resize HeaderSmall font size along with the default font size
* A step towards fixing image loading in the Web version
Doesn't completely fix the issue, it requires a fix from Godot's side as well
* Implement missing input event actions for buttons
TODO: Add default shortcuts
* Do not change language and theme if they are already the defaults
Reduces the initial loading time a bit
* Remove update_hint_tooltips() as it's no longer needed, only keep it for tools
This was needed in order for hint tooltips to be successfully translated while taking the shortcuts into account. Godot 4 already it correctly for us now. Tools still need it because they contain multiple shortcut data in their tooltips.
* Change ExportDialog's PathDialog's file mode to be "open directory" and make them bigger
* Fix Vector2i + Vector2 errors in grid center snapping
* Update tooltips when the shortcut profile changes
* Fix copy-paste mistake
* Update tooltips during startup if the shortcut profile is not the default
* Fix gif warning label size in ExportDialog
* Fix BBCode in ExportDialog
* Fix some Godot 4.2 warnings
* Some CI fixes
* Static typing improvements and more inline functions
* Format
* Even more static typing, inline methods, docstrings etc
* Some more static typing improvements and inline setters
* Remove unneeded project type specifying
* Fix splash dialog error
* Fix enumerator warning
* Don't preload the font in the rules and guides
* Fix some integer division warnings
Sometimes we indeed need them to be floats
* Change some Rect2s to Rect2is
* Minor static typing improvements
* Update README, CHANGELOG, Translations
* Only load translation files when needed, reduces loading time a bit
* Update Keychain so it doesn't load languages during startup
* Lazy load all tool scenes, breaks compatibility with the extension API
Decreases initial loading time
* Format
* Very minor loading time speedups
* Remove unneeded project type specifying
* Even more static typing and docstring improvements
* Fix extension loading
* Palette docstrings
---------
Co-authored-by: ppphp <kevinniub@gmail.com>
2023-09-04 13:29:06 +00:00
|
|
|
## Calculate DockablePanel and SplitHandle minimum sizes, skipping empty
|
|
|
|
## branches.
|
|
|
|
##
|
|
|
|
## Returns a DockablePanel checked non-empty leaves, a SplitHandle checked non-empty
|
|
|
|
## splits, `null` if the whole branch is empty and no space should be used.
|
|
|
|
##
|
|
|
|
## `result` will be filled with the non-empty nodes in this post-order tree
|
|
|
|
## traversal.
|
|
|
|
func _calculate_panel_and_split_list(result: Array, layout_node: DockableLayoutNode):
|
|
|
|
if layout_node is DockableLayoutPanel:
|
|
|
|
var nodes: Array[Control] = []
|
2022-01-29 22:47:25 +00:00
|
|
|
for n in layout_node.names:
|
|
|
|
var node: Control = _children_names.get(n)
|
|
|
|
if node:
|
|
|
|
assert(node is Control, "FIXME: node is not a control %s" % node)
|
|
|
|
assert(
|
|
|
|
node.get_parent_control() == self,
|
|
|
|
"FIXME: node is not child of container %s" % node
|
|
|
|
)
|
|
|
|
if is_control_hidden(node):
|
|
|
|
node.visible = false
|
|
|
|
else:
|
|
|
|
nodes.append(node)
|
Port to Godot 4 (#900)
* Initial conversion
* Hide some dialogs
* Update addons
* Fix errors in scripts
Temporarily commented out adding new file import types and certain Control methods that are not available in the Window class, such as get_global_mouse_position()
* Update shaders
* Fix some more errors and signals, rename "pressed" to "button_pressed"
* Even more error fixes and renaming corrections
* Fixed more errors, Pixelorama almost runs
* Update ValueSlider.gd
* Remove lock() and unlock(), more ImageTexture.create_from_image() static usage
* More static function using
* Re-add some of the dialog signals, fix window transparency
* Change instances of popup_hide to visibility_changed
* More more errors and warnings
* Fix more errors and warnings
* Get rid of errors in the output when opening Pixelorama in Godot
* Properly connect most signals without using strings
* Fix some scenes
* Don't load Main.tscn
* Emit signals directly instead of using strings
* Fix Keychain menu nodes
* Get rid of self. on most instances, as setters and getters are now always called
* Some more static typing
* Disable texture filters
* Fix zooming
* Fix int as enum warnings
* Fix tools and rename doubleclick to double_click
* Update tool scenes
* Fix tabs
* Fix create new image
* Use static typing on flood fill to speed it up
* Update static-checks.yml
* Reverts #729 for a speedup, hopefully the bug won't get re-introduced
* Fix TransparentChecker warning
* Re-add Default template
* Fix 3D cels
* Fix rotation
Project converted bug. Should be fixed by https://github.com/godotengine/godot/pull/79264
* Fix UITransparency alignment issue, thanks Variable
* Add missing OptionButton items
Hopefully that should be all of them
* Fix the appearance of CollapsibleContainer
* Change instances of world to world_3d
* Fix tool button backgrounds
* Fix Splash dialog
* Fix brush selection
* Update Main.gd
* Fix About Dialog
* Fix more zooming issues
* Fix canvas preview zooming
* Use signals for queue_redraw on project change
* Fix layer button's look
* Fix gradients
* Some gradient fixes and code cleanups, dithering is still broken
* Fix bucket
* Fix the rest of the undo_redo.add_(un)do_method() cases
* Fix guides
* Fix guide text
* Some small changes in Main
* Update Tools.gd
* Fix palette importing
* Get rid of TODOGODOT4s
* Fix the rest of the dialogs
* Update the rest of the scenes
* Fix onion skinning and frame tag dialogs
* Fix file brushes being imported twice
* Fix palette swatch crashing on double click
* Use nearest filter for some of the windows
* Remove old .tres font files
* Fix language switching
* Get rid of Keychain.action_get_first_key() on the extra shortcuts of tools
* Get rid of Keychain.MenuInputActions and directly set shortcuts to the menu items
This temporarily removes echoing support for undo and redo, this will be re-added once https://github.com/godotengine/godot/pull/36493 or https://github.com/godotengine/godot/pull/64317 is merged.
* Clean shortcut-related duplicate code in TopMenuContainer
* Remove DroidSansFallback now that system fonts can be used as fallback
* Remove 3.x settings from project.godot
* Format
* Format gdgifexporter
* Reset Keychain to its original state
* Remove textures from the dark and gray themes
* Remove all textures from the dark theme
* Better static typing in DrawingAlgos
* Use Vector2i for project size
* [Risky commit] Use Vector2i instead of Vector2 for tools
I tested it and everything seems to be working the same as before, but more testing would be appreciated.
* Format after previous commit
* Fix line angle constraint being rotated 180 degrees
This is not a regression from the previous commit(s), Godot 4 probably reversed the logic of `angle_to_point()`.
* Fix input map action not found errors when pressing Shift or Control
* Make AnimatePanel bigger, add spring interpolation
* Fix some layouts/extensions/preferences loading errors
* Fix dithering
* Update layout resources
Probably doesn't change anything at all, but I suppose it might be a good thing to do
* Small changes
* Disable filter in ResizeCanvas dialog
* Fix some preferences default button states
* Fix tile mode always having masking on
* Use integers in tile mode
* Fix checkboxes in preferences not working
* More statically typed arrays!
No need to have these # Array of X comments anymore!
* Fix "apply all" for multiple preview dialogs
* Update theme.tres
* Add HeaderSmall theme type variation
* Fix dynamics buttons
* Don't allow sub-zero zoom values
* Let zoom_out_max always remain Vector2(0.01, 0.01)
This fixes zooming on large canvases
* Bump version to v1.0-dev
* Fix ambient light not working on 3D cels
* Fix .obj loading
* Don't allow greater than max values in the zoom slider
* Set maximum zoom value to always be (500, 500)
* Set zoom slider minimum value to 1
* Some UI changes, mostly related to buttons and the timeline
* Change window titles to what they were before
* [COMPATIBILITY BROKEN WITH v0.x] Fix loading 3D cels
* Avoid changing Cel3DObject's file_path if it's the same
* Make preferences window bigger
* Fix png exporting
* Fix reference image initial size and filter setting
* Fix perspective line reverse scaling on zoom and facing 180 degrees away from cursor
* Format and some linting
* Remove most Images from the rest of the themes
* Remove all textures from all themes
* Fix drawing when the mouse gets released outside the canvas boundaries
* Format Keychain
* Implement #890
* Fix recorder
* Fix layout deletion
* Better static typing and fix empty_clicked signal-connected methods not having arguments
* Fix layout and extension directory creation if they don't already exist
* Change all instances of "HTML5" to "Web"
OS.get_name() now returns "Web" instead of "HTML5" in Godot 4
* Fix JavaScript detection
Opening files in the Web version does not yet work for some reason
* Fix formatting
* Fix lint errors
* Remove unneeded lines from rotation shaders
* Clean some rotation shader related code
* Remove ErrorManager from #891, as it's no longer needed in Godot 4
* Some docstrings
* More Vector2i and Recti replacing their float counterparts
* Remove the hardcoded shortcut from ValueSlider
Note that the brush size shortcut may not change properly because Keychain isn't updated to support Godot 4's input map properly yet.
* Fix bugs from the rebase, integer zooming is currently broken
* Format
* Fix bug where some imported images would fail to load when using smart slice
* Fix integer zooming (I think)
* Fix errors after #898
* Fix some UI issues with PreviewDialog
* Use ctrl/command instead of just ctrl in the shortcuts of the InputMap - gets rid of the need for _use_osx_shortcuts() in Main.gd
* Update Keychain and addons/README.md
* Update CI to Godot 4.1.1 (probably will not work)
* Remove XDGDataPaths.gd
* Make windows non-exclusive
* Attempt to fix macOS CI
* Attempt to fix CI
* Attempt to fix CI
* Minor fix in the dark theme, more will follow
* Silence enumerator/integer warning
* Attempt to fix macOS CI
* Another attempt to fix macOS CI
* Attempt to fix Windows & macOS CI
* fix: Recorder directory create (#903)
* Update Keychain so that the brush size shortcuts can be changed
This update generally lets users use modifier buttons (control, alt, shift, meta) with mouse buttons
* Change OSX to macOS
* Detect if multi-threading is enabled when exporting gifs
* Fix color picker not working on the top color mode
* Make some public methods private in Export.gd
* Remove Global.window_title variable
* Fix frame UI in the timeline breaking after 100 frames
* Static typing improvements for the timeline
* Better static typing for grids
* Fix typo
* Fix pixel grid not appearing
* Move preference updating code to Global using setters
This should make the code a bit more readable, as the logic for each property update can be found directly under the variable declaration, and not hidden in PreferencesDialog's preference_update() method. This also allows for changing these properties outside the preferences, if that will ever be needed. In theory it's also faster as we don't have to do all these string comparisons anymore, but I doubt this will be noticeable in practice.
* Remove RestoreDefaultButton.tscn
* Implement changing font size in the preferences
* Resize HeaderSmall font size along with the default font size
* A step towards fixing image loading in the Web version
Doesn't completely fix the issue, it requires a fix from Godot's side as well
* Implement missing input event actions for buttons
TODO: Add default shortcuts
* Do not change language and theme if they are already the defaults
Reduces the initial loading time a bit
* Remove update_hint_tooltips() as it's no longer needed, only keep it for tools
This was needed in order for hint tooltips to be successfully translated while taking the shortcuts into account. Godot 4 already it correctly for us now. Tools still need it because they contain multiple shortcut data in their tooltips.
* Change ExportDialog's PathDialog's file mode to be "open directory" and make them bigger
* Fix Vector2i + Vector2 errors in grid center snapping
* Update tooltips when the shortcut profile changes
* Fix copy-paste mistake
* Update tooltips during startup if the shortcut profile is not the default
* Fix gif warning label size in ExportDialog
* Fix BBCode in ExportDialog
* Fix some Godot 4.2 warnings
* Some CI fixes
* Static typing improvements and more inline functions
* Format
* Even more static typing, inline methods, docstrings etc
* Some more static typing improvements and inline setters
* Remove unneeded project type specifying
* Fix splash dialog error
* Fix enumerator warning
* Don't preload the font in the rules and guides
* Fix some integer division warnings
Sometimes we indeed need them to be floats
* Change some Rect2s to Rect2is
* Minor static typing improvements
* Update README, CHANGELOG, Translations
* Only load translation files when needed, reduces loading time a bit
* Update Keychain so it doesn't load languages during startup
* Lazy load all tool scenes, breaks compatibility with the extension API
Decreases initial loading time
* Format
* Very minor loading time speedups
* Remove unneeded project type specifying
* Even more static typing and docstring improvements
* Fix extension loading
* Palette docstrings
---------
Co-authored-by: ppphp <kevinniub@gmail.com>
2023-09-04 13:29:06 +00:00
|
|
|
if nodes.is_empty():
|
2022-01-29 22:47:25 +00:00
|
|
|
return null
|
|
|
|
else:
|
Port to Godot 4 (#900)
* Initial conversion
* Hide some dialogs
* Update addons
* Fix errors in scripts
Temporarily commented out adding new file import types and certain Control methods that are not available in the Window class, such as get_global_mouse_position()
* Update shaders
* Fix some more errors and signals, rename "pressed" to "button_pressed"
* Even more error fixes and renaming corrections
* Fixed more errors, Pixelorama almost runs
* Update ValueSlider.gd
* Remove lock() and unlock(), more ImageTexture.create_from_image() static usage
* More static function using
* Re-add some of the dialog signals, fix window transparency
* Change instances of popup_hide to visibility_changed
* More more errors and warnings
* Fix more errors and warnings
* Get rid of errors in the output when opening Pixelorama in Godot
* Properly connect most signals without using strings
* Fix some scenes
* Don't load Main.tscn
* Emit signals directly instead of using strings
* Fix Keychain menu nodes
* Get rid of self. on most instances, as setters and getters are now always called
* Some more static typing
* Disable texture filters
* Fix zooming
* Fix int as enum warnings
* Fix tools and rename doubleclick to double_click
* Update tool scenes
* Fix tabs
* Fix create new image
* Use static typing on flood fill to speed it up
* Update static-checks.yml
* Reverts #729 for a speedup, hopefully the bug won't get re-introduced
* Fix TransparentChecker warning
* Re-add Default template
* Fix 3D cels
* Fix rotation
Project converted bug. Should be fixed by https://github.com/godotengine/godot/pull/79264
* Fix UITransparency alignment issue, thanks Variable
* Add missing OptionButton items
Hopefully that should be all of them
* Fix the appearance of CollapsibleContainer
* Change instances of world to world_3d
* Fix tool button backgrounds
* Fix Splash dialog
* Fix brush selection
* Update Main.gd
* Fix About Dialog
* Fix more zooming issues
* Fix canvas preview zooming
* Use signals for queue_redraw on project change
* Fix layer button's look
* Fix gradients
* Some gradient fixes and code cleanups, dithering is still broken
* Fix bucket
* Fix the rest of the undo_redo.add_(un)do_method() cases
* Fix guides
* Fix guide text
* Some small changes in Main
* Update Tools.gd
* Fix palette importing
* Get rid of TODOGODOT4s
* Fix the rest of the dialogs
* Update the rest of the scenes
* Fix onion skinning and frame tag dialogs
* Fix file brushes being imported twice
* Fix palette swatch crashing on double click
* Use nearest filter for some of the windows
* Remove old .tres font files
* Fix language switching
* Get rid of Keychain.action_get_first_key() on the extra shortcuts of tools
* Get rid of Keychain.MenuInputActions and directly set shortcuts to the menu items
This temporarily removes echoing support for undo and redo, this will be re-added once https://github.com/godotengine/godot/pull/36493 or https://github.com/godotengine/godot/pull/64317 is merged.
* Clean shortcut-related duplicate code in TopMenuContainer
* Remove DroidSansFallback now that system fonts can be used as fallback
* Remove 3.x settings from project.godot
* Format
* Format gdgifexporter
* Reset Keychain to its original state
* Remove textures from the dark and gray themes
* Remove all textures from the dark theme
* Better static typing in DrawingAlgos
* Use Vector2i for project size
* [Risky commit] Use Vector2i instead of Vector2 for tools
I tested it and everything seems to be working the same as before, but more testing would be appreciated.
* Format after previous commit
* Fix line angle constraint being rotated 180 degrees
This is not a regression from the previous commit(s), Godot 4 probably reversed the logic of `angle_to_point()`.
* Fix input map action not found errors when pressing Shift or Control
* Make AnimatePanel bigger, add spring interpolation
* Fix some layouts/extensions/preferences loading errors
* Fix dithering
* Update layout resources
Probably doesn't change anything at all, but I suppose it might be a good thing to do
* Small changes
* Disable filter in ResizeCanvas dialog
* Fix some preferences default button states
* Fix tile mode always having masking on
* Use integers in tile mode
* Fix checkboxes in preferences not working
* More statically typed arrays!
No need to have these # Array of X comments anymore!
* Fix "apply all" for multiple preview dialogs
* Update theme.tres
* Add HeaderSmall theme type variation
* Fix dynamics buttons
* Don't allow sub-zero zoom values
* Let zoom_out_max always remain Vector2(0.01, 0.01)
This fixes zooming on large canvases
* Bump version to v1.0-dev
* Fix ambient light not working on 3D cels
* Fix .obj loading
* Don't allow greater than max values in the zoom slider
* Set maximum zoom value to always be (500, 500)
* Set zoom slider minimum value to 1
* Some UI changes, mostly related to buttons and the timeline
* Change window titles to what they were before
* [COMPATIBILITY BROKEN WITH v0.x] Fix loading 3D cels
* Avoid changing Cel3DObject's file_path if it's the same
* Make preferences window bigger
* Fix png exporting
* Fix reference image initial size and filter setting
* Fix perspective line reverse scaling on zoom and facing 180 degrees away from cursor
* Format and some linting
* Remove most Images from the rest of the themes
* Remove all textures from all themes
* Fix drawing when the mouse gets released outside the canvas boundaries
* Format Keychain
* Implement #890
* Fix recorder
* Fix layout deletion
* Better static typing and fix empty_clicked signal-connected methods not having arguments
* Fix layout and extension directory creation if they don't already exist
* Change all instances of "HTML5" to "Web"
OS.get_name() now returns "Web" instead of "HTML5" in Godot 4
* Fix JavaScript detection
Opening files in the Web version does not yet work for some reason
* Fix formatting
* Fix lint errors
* Remove unneeded lines from rotation shaders
* Clean some rotation shader related code
* Remove ErrorManager from #891, as it's no longer needed in Godot 4
* Some docstrings
* More Vector2i and Recti replacing their float counterparts
* Remove the hardcoded shortcut from ValueSlider
Note that the brush size shortcut may not change properly because Keychain isn't updated to support Godot 4's input map properly yet.
* Fix bugs from the rebase, integer zooming is currently broken
* Format
* Fix bug where some imported images would fail to load when using smart slice
* Fix integer zooming (I think)
* Fix errors after #898
* Fix some UI issues with PreviewDialog
* Use ctrl/command instead of just ctrl in the shortcuts of the InputMap - gets rid of the need for _use_osx_shortcuts() in Main.gd
* Update Keychain and addons/README.md
* Update CI to Godot 4.1.1 (probably will not work)
* Remove XDGDataPaths.gd
* Make windows non-exclusive
* Attempt to fix macOS CI
* Attempt to fix CI
* Attempt to fix CI
* Minor fix in the dark theme, more will follow
* Silence enumerator/integer warning
* Attempt to fix macOS CI
* Another attempt to fix macOS CI
* Attempt to fix Windows & macOS CI
* fix: Recorder directory create (#903)
* Update Keychain so that the brush size shortcuts can be changed
This update generally lets users use modifier buttons (control, alt, shift, meta) with mouse buttons
* Change OSX to macOS
* Detect if multi-threading is enabled when exporting gifs
* Fix color picker not working on the top color mode
* Make some public methods private in Export.gd
* Remove Global.window_title variable
* Fix frame UI in the timeline breaking after 100 frames
* Static typing improvements for the timeline
* Better static typing for grids
* Fix typo
* Fix pixel grid not appearing
* Move preference updating code to Global using setters
This should make the code a bit more readable, as the logic for each property update can be found directly under the variable declaration, and not hidden in PreferencesDialog's preference_update() method. This also allows for changing these properties outside the preferences, if that will ever be needed. In theory it's also faster as we don't have to do all these string comparisons anymore, but I doubt this will be noticeable in practice.
* Remove RestoreDefaultButton.tscn
* Implement changing font size in the preferences
* Resize HeaderSmall font size along with the default font size
* A step towards fixing image loading in the Web version
Doesn't completely fix the issue, it requires a fix from Godot's side as well
* Implement missing input event actions for buttons
TODO: Add default shortcuts
* Do not change language and theme if they are already the defaults
Reduces the initial loading time a bit
* Remove update_hint_tooltips() as it's no longer needed, only keep it for tools
This was needed in order for hint tooltips to be successfully translated while taking the shortcuts into account. Godot 4 already it correctly for us now. Tools still need it because they contain multiple shortcut data in their tooltips.
* Change ExportDialog's PathDialog's file mode to be "open directory" and make them bigger
* Fix Vector2i + Vector2 errors in grid center snapping
* Update tooltips when the shortcut profile changes
* Fix copy-paste mistake
* Update tooltips during startup if the shortcut profile is not the default
* Fix gif warning label size in ExportDialog
* Fix BBCode in ExportDialog
* Fix some Godot 4.2 warnings
* Some CI fixes
* Static typing improvements and more inline functions
* Format
* Even more static typing, inline methods, docstrings etc
* Some more static typing improvements and inline setters
* Remove unneeded project type specifying
* Fix splash dialog error
* Fix enumerator warning
* Don't preload the font in the rules and guides
* Fix some integer division warnings
Sometimes we indeed need them to be floats
* Change some Rect2s to Rect2is
* Minor static typing improvements
* Update README, CHANGELOG, Translations
* Only load translation files when needed, reduces loading time a bit
* Update Keychain so it doesn't load languages during startup
* Lazy load all tool scenes, breaks compatibility with the extension API
Decreases initial loading time
* Format
* Very minor loading time speedups
* Remove unneeded project type specifying
* Even more static typing and docstring improvements
* Fix extension loading
* Palette docstrings
---------
Co-authored-by: ppphp <kevinniub@gmail.com>
2023-09-04 13:29:06 +00:00
|
|
|
var panel := _get_panel(_current_panel_index)
|
2022-01-29 22:47:25 +00:00
|
|
|
_current_panel_index += 1
|
|
|
|
panel.track_nodes(nodes, layout_node)
|
|
|
|
result.append(panel)
|
|
|
|
return panel
|
Port to Godot 4 (#900)
* Initial conversion
* Hide some dialogs
* Update addons
* Fix errors in scripts
Temporarily commented out adding new file import types and certain Control methods that are not available in the Window class, such as get_global_mouse_position()
* Update shaders
* Fix some more errors and signals, rename "pressed" to "button_pressed"
* Even more error fixes and renaming corrections
* Fixed more errors, Pixelorama almost runs
* Update ValueSlider.gd
* Remove lock() and unlock(), more ImageTexture.create_from_image() static usage
* More static function using
* Re-add some of the dialog signals, fix window transparency
* Change instances of popup_hide to visibility_changed
* More more errors and warnings
* Fix more errors and warnings
* Get rid of errors in the output when opening Pixelorama in Godot
* Properly connect most signals without using strings
* Fix some scenes
* Don't load Main.tscn
* Emit signals directly instead of using strings
* Fix Keychain menu nodes
* Get rid of self. on most instances, as setters and getters are now always called
* Some more static typing
* Disable texture filters
* Fix zooming
* Fix int as enum warnings
* Fix tools and rename doubleclick to double_click
* Update tool scenes
* Fix tabs
* Fix create new image
* Use static typing on flood fill to speed it up
* Update static-checks.yml
* Reverts #729 for a speedup, hopefully the bug won't get re-introduced
* Fix TransparentChecker warning
* Re-add Default template
* Fix 3D cels
* Fix rotation
Project converted bug. Should be fixed by https://github.com/godotengine/godot/pull/79264
* Fix UITransparency alignment issue, thanks Variable
* Add missing OptionButton items
Hopefully that should be all of them
* Fix the appearance of CollapsibleContainer
* Change instances of world to world_3d
* Fix tool button backgrounds
* Fix Splash dialog
* Fix brush selection
* Update Main.gd
* Fix About Dialog
* Fix more zooming issues
* Fix canvas preview zooming
* Use signals for queue_redraw on project change
* Fix layer button's look
* Fix gradients
* Some gradient fixes and code cleanups, dithering is still broken
* Fix bucket
* Fix the rest of the undo_redo.add_(un)do_method() cases
* Fix guides
* Fix guide text
* Some small changes in Main
* Update Tools.gd
* Fix palette importing
* Get rid of TODOGODOT4s
* Fix the rest of the dialogs
* Update the rest of the scenes
* Fix onion skinning and frame tag dialogs
* Fix file brushes being imported twice
* Fix palette swatch crashing on double click
* Use nearest filter for some of the windows
* Remove old .tres font files
* Fix language switching
* Get rid of Keychain.action_get_first_key() on the extra shortcuts of tools
* Get rid of Keychain.MenuInputActions and directly set shortcuts to the menu items
This temporarily removes echoing support for undo and redo, this will be re-added once https://github.com/godotengine/godot/pull/36493 or https://github.com/godotengine/godot/pull/64317 is merged.
* Clean shortcut-related duplicate code in TopMenuContainer
* Remove DroidSansFallback now that system fonts can be used as fallback
* Remove 3.x settings from project.godot
* Format
* Format gdgifexporter
* Reset Keychain to its original state
* Remove textures from the dark and gray themes
* Remove all textures from the dark theme
* Better static typing in DrawingAlgos
* Use Vector2i for project size
* [Risky commit] Use Vector2i instead of Vector2 for tools
I tested it and everything seems to be working the same as before, but more testing would be appreciated.
* Format after previous commit
* Fix line angle constraint being rotated 180 degrees
This is not a regression from the previous commit(s), Godot 4 probably reversed the logic of `angle_to_point()`.
* Fix input map action not found errors when pressing Shift or Control
* Make AnimatePanel bigger, add spring interpolation
* Fix some layouts/extensions/preferences loading errors
* Fix dithering
* Update layout resources
Probably doesn't change anything at all, but I suppose it might be a good thing to do
* Small changes
* Disable filter in ResizeCanvas dialog
* Fix some preferences default button states
* Fix tile mode always having masking on
* Use integers in tile mode
* Fix checkboxes in preferences not working
* More statically typed arrays!
No need to have these # Array of X comments anymore!
* Fix "apply all" for multiple preview dialogs
* Update theme.tres
* Add HeaderSmall theme type variation
* Fix dynamics buttons
* Don't allow sub-zero zoom values
* Let zoom_out_max always remain Vector2(0.01, 0.01)
This fixes zooming on large canvases
* Bump version to v1.0-dev
* Fix ambient light not working on 3D cels
* Fix .obj loading
* Don't allow greater than max values in the zoom slider
* Set maximum zoom value to always be (500, 500)
* Set zoom slider minimum value to 1
* Some UI changes, mostly related to buttons and the timeline
* Change window titles to what they were before
* [COMPATIBILITY BROKEN WITH v0.x] Fix loading 3D cels
* Avoid changing Cel3DObject's file_path if it's the same
* Make preferences window bigger
* Fix png exporting
* Fix reference image initial size and filter setting
* Fix perspective line reverse scaling on zoom and facing 180 degrees away from cursor
* Format and some linting
* Remove most Images from the rest of the themes
* Remove all textures from all themes
* Fix drawing when the mouse gets released outside the canvas boundaries
* Format Keychain
* Implement #890
* Fix recorder
* Fix layout deletion
* Better static typing and fix empty_clicked signal-connected methods not having arguments
* Fix layout and extension directory creation if they don't already exist
* Change all instances of "HTML5" to "Web"
OS.get_name() now returns "Web" instead of "HTML5" in Godot 4
* Fix JavaScript detection
Opening files in the Web version does not yet work for some reason
* Fix formatting
* Fix lint errors
* Remove unneeded lines from rotation shaders
* Clean some rotation shader related code
* Remove ErrorManager from #891, as it's no longer needed in Godot 4
* Some docstrings
* More Vector2i and Recti replacing their float counterparts
* Remove the hardcoded shortcut from ValueSlider
Note that the brush size shortcut may not change properly because Keychain isn't updated to support Godot 4's input map properly yet.
* Fix bugs from the rebase, integer zooming is currently broken
* Format
* Fix bug where some imported images would fail to load when using smart slice
* Fix integer zooming (I think)
* Fix errors after #898
* Fix some UI issues with PreviewDialog
* Use ctrl/command instead of just ctrl in the shortcuts of the InputMap - gets rid of the need for _use_osx_shortcuts() in Main.gd
* Update Keychain and addons/README.md
* Update CI to Godot 4.1.1 (probably will not work)
* Remove XDGDataPaths.gd
* Make windows non-exclusive
* Attempt to fix macOS CI
* Attempt to fix CI
* Attempt to fix CI
* Minor fix in the dark theme, more will follow
* Silence enumerator/integer warning
* Attempt to fix macOS CI
* Another attempt to fix macOS CI
* Attempt to fix Windows & macOS CI
* fix: Recorder directory create (#903)
* Update Keychain so that the brush size shortcuts can be changed
This update generally lets users use modifier buttons (control, alt, shift, meta) with mouse buttons
* Change OSX to macOS
* Detect if multi-threading is enabled when exporting gifs
* Fix color picker not working on the top color mode
* Make some public methods private in Export.gd
* Remove Global.window_title variable
* Fix frame UI in the timeline breaking after 100 frames
* Static typing improvements for the timeline
* Better static typing for grids
* Fix typo
* Fix pixel grid not appearing
* Move preference updating code to Global using setters
This should make the code a bit more readable, as the logic for each property update can be found directly under the variable declaration, and not hidden in PreferencesDialog's preference_update() method. This also allows for changing these properties outside the preferences, if that will ever be needed. In theory it's also faster as we don't have to do all these string comparisons anymore, but I doubt this will be noticeable in practice.
* Remove RestoreDefaultButton.tscn
* Implement changing font size in the preferences
* Resize HeaderSmall font size along with the default font size
* A step towards fixing image loading in the Web version
Doesn't completely fix the issue, it requires a fix from Godot's side as well
* Implement missing input event actions for buttons
TODO: Add default shortcuts
* Do not change language and theme if they are already the defaults
Reduces the initial loading time a bit
* Remove update_hint_tooltips() as it's no longer needed, only keep it for tools
This was needed in order for hint tooltips to be successfully translated while taking the shortcuts into account. Godot 4 already it correctly for us now. Tools still need it because they contain multiple shortcut data in their tooltips.
* Change ExportDialog's PathDialog's file mode to be "open directory" and make them bigger
* Fix Vector2i + Vector2 errors in grid center snapping
* Update tooltips when the shortcut profile changes
* Fix copy-paste mistake
* Update tooltips during startup if the shortcut profile is not the default
* Fix gif warning label size in ExportDialog
* Fix BBCode in ExportDialog
* Fix some Godot 4.2 warnings
* Some CI fixes
* Static typing improvements and more inline functions
* Format
* Even more static typing, inline methods, docstrings etc
* Some more static typing improvements and inline setters
* Remove unneeded project type specifying
* Fix splash dialog error
* Fix enumerator warning
* Don't preload the font in the rules and guides
* Fix some integer division warnings
Sometimes we indeed need them to be floats
* Change some Rect2s to Rect2is
* Minor static typing improvements
* Update README, CHANGELOG, Translations
* Only load translation files when needed, reduces loading time a bit
* Update Keychain so it doesn't load languages during startup
* Lazy load all tool scenes, breaks compatibility with the extension API
Decreases initial loading time
* Format
* Very minor loading time speedups
* Remove unneeded project type specifying
* Even more static typing and docstring improvements
* Fix extension loading
* Palette docstrings
---------
Co-authored-by: ppphp <kevinniub@gmail.com>
2023-09-04 13:29:06 +00:00
|
|
|
elif layout_node is DockableLayoutSplit:
|
2022-01-29 22:47:25 +00:00
|
|
|
# by processing `second` before `first`, traversing `result` from back
|
|
|
|
# to front yields a nice pre-order tree traversal
|
|
|
|
var second_result = _calculate_panel_and_split_list(result, layout_node.second)
|
|
|
|
var first_result = _calculate_panel_and_split_list(result, layout_node.first)
|
|
|
|
if first_result and second_result:
|
Port to Godot 4 (#900)
* Initial conversion
* Hide some dialogs
* Update addons
* Fix errors in scripts
Temporarily commented out adding new file import types and certain Control methods that are not available in the Window class, such as get_global_mouse_position()
* Update shaders
* Fix some more errors and signals, rename "pressed" to "button_pressed"
* Even more error fixes and renaming corrections
* Fixed more errors, Pixelorama almost runs
* Update ValueSlider.gd
* Remove lock() and unlock(), more ImageTexture.create_from_image() static usage
* More static function using
* Re-add some of the dialog signals, fix window transparency
* Change instances of popup_hide to visibility_changed
* More more errors and warnings
* Fix more errors and warnings
* Get rid of errors in the output when opening Pixelorama in Godot
* Properly connect most signals without using strings
* Fix some scenes
* Don't load Main.tscn
* Emit signals directly instead of using strings
* Fix Keychain menu nodes
* Get rid of self. on most instances, as setters and getters are now always called
* Some more static typing
* Disable texture filters
* Fix zooming
* Fix int as enum warnings
* Fix tools and rename doubleclick to double_click
* Update tool scenes
* Fix tabs
* Fix create new image
* Use static typing on flood fill to speed it up
* Update static-checks.yml
* Reverts #729 for a speedup, hopefully the bug won't get re-introduced
* Fix TransparentChecker warning
* Re-add Default template
* Fix 3D cels
* Fix rotation
Project converted bug. Should be fixed by https://github.com/godotengine/godot/pull/79264
* Fix UITransparency alignment issue, thanks Variable
* Add missing OptionButton items
Hopefully that should be all of them
* Fix the appearance of CollapsibleContainer
* Change instances of world to world_3d
* Fix tool button backgrounds
* Fix Splash dialog
* Fix brush selection
* Update Main.gd
* Fix About Dialog
* Fix more zooming issues
* Fix canvas preview zooming
* Use signals for queue_redraw on project change
* Fix layer button's look
* Fix gradients
* Some gradient fixes and code cleanups, dithering is still broken
* Fix bucket
* Fix the rest of the undo_redo.add_(un)do_method() cases
* Fix guides
* Fix guide text
* Some small changes in Main
* Update Tools.gd
* Fix palette importing
* Get rid of TODOGODOT4s
* Fix the rest of the dialogs
* Update the rest of the scenes
* Fix onion skinning and frame tag dialogs
* Fix file brushes being imported twice
* Fix palette swatch crashing on double click
* Use nearest filter for some of the windows
* Remove old .tres font files
* Fix language switching
* Get rid of Keychain.action_get_first_key() on the extra shortcuts of tools
* Get rid of Keychain.MenuInputActions and directly set shortcuts to the menu items
This temporarily removes echoing support for undo and redo, this will be re-added once https://github.com/godotengine/godot/pull/36493 or https://github.com/godotengine/godot/pull/64317 is merged.
* Clean shortcut-related duplicate code in TopMenuContainer
* Remove DroidSansFallback now that system fonts can be used as fallback
* Remove 3.x settings from project.godot
* Format
* Format gdgifexporter
* Reset Keychain to its original state
* Remove textures from the dark and gray themes
* Remove all textures from the dark theme
* Better static typing in DrawingAlgos
* Use Vector2i for project size
* [Risky commit] Use Vector2i instead of Vector2 for tools
I tested it and everything seems to be working the same as before, but more testing would be appreciated.
* Format after previous commit
* Fix line angle constraint being rotated 180 degrees
This is not a regression from the previous commit(s), Godot 4 probably reversed the logic of `angle_to_point()`.
* Fix input map action not found errors when pressing Shift or Control
* Make AnimatePanel bigger, add spring interpolation
* Fix some layouts/extensions/preferences loading errors
* Fix dithering
* Update layout resources
Probably doesn't change anything at all, but I suppose it might be a good thing to do
* Small changes
* Disable filter in ResizeCanvas dialog
* Fix some preferences default button states
* Fix tile mode always having masking on
* Use integers in tile mode
* Fix checkboxes in preferences not working
* More statically typed arrays!
No need to have these # Array of X comments anymore!
* Fix "apply all" for multiple preview dialogs
* Update theme.tres
* Add HeaderSmall theme type variation
* Fix dynamics buttons
* Don't allow sub-zero zoom values
* Let zoom_out_max always remain Vector2(0.01, 0.01)
This fixes zooming on large canvases
* Bump version to v1.0-dev
* Fix ambient light not working on 3D cels
* Fix .obj loading
* Don't allow greater than max values in the zoom slider
* Set maximum zoom value to always be (500, 500)
* Set zoom slider minimum value to 1
* Some UI changes, mostly related to buttons and the timeline
* Change window titles to what they were before
* [COMPATIBILITY BROKEN WITH v0.x] Fix loading 3D cels
* Avoid changing Cel3DObject's file_path if it's the same
* Make preferences window bigger
* Fix png exporting
* Fix reference image initial size and filter setting
* Fix perspective line reverse scaling on zoom and facing 180 degrees away from cursor
* Format and some linting
* Remove most Images from the rest of the themes
* Remove all textures from all themes
* Fix drawing when the mouse gets released outside the canvas boundaries
* Format Keychain
* Implement #890
* Fix recorder
* Fix layout deletion
* Better static typing and fix empty_clicked signal-connected methods not having arguments
* Fix layout and extension directory creation if they don't already exist
* Change all instances of "HTML5" to "Web"
OS.get_name() now returns "Web" instead of "HTML5" in Godot 4
* Fix JavaScript detection
Opening files in the Web version does not yet work for some reason
* Fix formatting
* Fix lint errors
* Remove unneeded lines from rotation shaders
* Clean some rotation shader related code
* Remove ErrorManager from #891, as it's no longer needed in Godot 4
* Some docstrings
* More Vector2i and Recti replacing their float counterparts
* Remove the hardcoded shortcut from ValueSlider
Note that the brush size shortcut may not change properly because Keychain isn't updated to support Godot 4's input map properly yet.
* Fix bugs from the rebase, integer zooming is currently broken
* Format
* Fix bug where some imported images would fail to load when using smart slice
* Fix integer zooming (I think)
* Fix errors after #898
* Fix some UI issues with PreviewDialog
* Use ctrl/command instead of just ctrl in the shortcuts of the InputMap - gets rid of the need for _use_osx_shortcuts() in Main.gd
* Update Keychain and addons/README.md
* Update CI to Godot 4.1.1 (probably will not work)
* Remove XDGDataPaths.gd
* Make windows non-exclusive
* Attempt to fix macOS CI
* Attempt to fix CI
* Attempt to fix CI
* Minor fix in the dark theme, more will follow
* Silence enumerator/integer warning
* Attempt to fix macOS CI
* Another attempt to fix macOS CI
* Attempt to fix Windows & macOS CI
* fix: Recorder directory create (#903)
* Update Keychain so that the brush size shortcuts can be changed
This update generally lets users use modifier buttons (control, alt, shift, meta) with mouse buttons
* Change OSX to macOS
* Detect if multi-threading is enabled when exporting gifs
* Fix color picker not working on the top color mode
* Make some public methods private in Export.gd
* Remove Global.window_title variable
* Fix frame UI in the timeline breaking after 100 frames
* Static typing improvements for the timeline
* Better static typing for grids
* Fix typo
* Fix pixel grid not appearing
* Move preference updating code to Global using setters
This should make the code a bit more readable, as the logic for each property update can be found directly under the variable declaration, and not hidden in PreferencesDialog's preference_update() method. This also allows for changing these properties outside the preferences, if that will ever be needed. In theory it's also faster as we don't have to do all these string comparisons anymore, but I doubt this will be noticeable in practice.
* Remove RestoreDefaultButton.tscn
* Implement changing font size in the preferences
* Resize HeaderSmall font size along with the default font size
* A step towards fixing image loading in the Web version
Doesn't completely fix the issue, it requires a fix from Godot's side as well
* Implement missing input event actions for buttons
TODO: Add default shortcuts
* Do not change language and theme if they are already the defaults
Reduces the initial loading time a bit
* Remove update_hint_tooltips() as it's no longer needed, only keep it for tools
This was needed in order for hint tooltips to be successfully translated while taking the shortcuts into account. Godot 4 already it correctly for us now. Tools still need it because they contain multiple shortcut data in their tooltips.
* Change ExportDialog's PathDialog's file mode to be "open directory" and make them bigger
* Fix Vector2i + Vector2 errors in grid center snapping
* Update tooltips when the shortcut profile changes
* Fix copy-paste mistake
* Update tooltips during startup if the shortcut profile is not the default
* Fix gif warning label size in ExportDialog
* Fix BBCode in ExportDialog
* Fix some Godot 4.2 warnings
* Some CI fixes
* Static typing improvements and more inline functions
* Format
* Even more static typing, inline methods, docstrings etc
* Some more static typing improvements and inline setters
* Remove unneeded project type specifying
* Fix splash dialog error
* Fix enumerator warning
* Don't preload the font in the rules and guides
* Fix some integer division warnings
Sometimes we indeed need them to be floats
* Change some Rect2s to Rect2is
* Minor static typing improvements
* Update README, CHANGELOG, Translations
* Only load translation files when needed, reduces loading time a bit
* Update Keychain so it doesn't load languages during startup
* Lazy load all tool scenes, breaks compatibility with the extension API
Decreases initial loading time
* Format
* Very minor loading time speedups
* Remove unneeded project type specifying
* Even more static typing and docstring improvements
* Fix extension loading
* Palette docstrings
---------
Co-authored-by: ppphp <kevinniub@gmail.com>
2023-09-04 13:29:06 +00:00
|
|
|
var split := _get_split(_current_split_index)
|
2022-01-29 22:47:25 +00:00
|
|
|
_current_split_index += 1
|
|
|
|
split.layout_split = layout_node
|
|
|
|
split.first_minimum_size = first_result.get_layout_minimum_size()
|
|
|
|
split.second_minimum_size = second_result.get_layout_minimum_size()
|
|
|
|
result.append(split)
|
|
|
|
return split
|
|
|
|
elif first_result:
|
|
|
|
return first_result
|
|
|
|
else: # NOTE: this returns null if `second_result` is null
|
|
|
|
return second_result
|
|
|
|
else:
|
|
|
|
push_warning("FIXME: invalid Resource, should be branch or leaf, found %s" % layout_node)
|
|
|
|
|
|
|
|
|
Port to Godot 4 (#900)
* Initial conversion
* Hide some dialogs
* Update addons
* Fix errors in scripts
Temporarily commented out adding new file import types and certain Control methods that are not available in the Window class, such as get_global_mouse_position()
* Update shaders
* Fix some more errors and signals, rename "pressed" to "button_pressed"
* Even more error fixes and renaming corrections
* Fixed more errors, Pixelorama almost runs
* Update ValueSlider.gd
* Remove lock() and unlock(), more ImageTexture.create_from_image() static usage
* More static function using
* Re-add some of the dialog signals, fix window transparency
* Change instances of popup_hide to visibility_changed
* More more errors and warnings
* Fix more errors and warnings
* Get rid of errors in the output when opening Pixelorama in Godot
* Properly connect most signals without using strings
* Fix some scenes
* Don't load Main.tscn
* Emit signals directly instead of using strings
* Fix Keychain menu nodes
* Get rid of self. on most instances, as setters and getters are now always called
* Some more static typing
* Disable texture filters
* Fix zooming
* Fix int as enum warnings
* Fix tools and rename doubleclick to double_click
* Update tool scenes
* Fix tabs
* Fix create new image
* Use static typing on flood fill to speed it up
* Update static-checks.yml
* Reverts #729 for a speedup, hopefully the bug won't get re-introduced
* Fix TransparentChecker warning
* Re-add Default template
* Fix 3D cels
* Fix rotation
Project converted bug. Should be fixed by https://github.com/godotengine/godot/pull/79264
* Fix UITransparency alignment issue, thanks Variable
* Add missing OptionButton items
Hopefully that should be all of them
* Fix the appearance of CollapsibleContainer
* Change instances of world to world_3d
* Fix tool button backgrounds
* Fix Splash dialog
* Fix brush selection
* Update Main.gd
* Fix About Dialog
* Fix more zooming issues
* Fix canvas preview zooming
* Use signals for queue_redraw on project change
* Fix layer button's look
* Fix gradients
* Some gradient fixes and code cleanups, dithering is still broken
* Fix bucket
* Fix the rest of the undo_redo.add_(un)do_method() cases
* Fix guides
* Fix guide text
* Some small changes in Main
* Update Tools.gd
* Fix palette importing
* Get rid of TODOGODOT4s
* Fix the rest of the dialogs
* Update the rest of the scenes
* Fix onion skinning and frame tag dialogs
* Fix file brushes being imported twice
* Fix palette swatch crashing on double click
* Use nearest filter for some of the windows
* Remove old .tres font files
* Fix language switching
* Get rid of Keychain.action_get_first_key() on the extra shortcuts of tools
* Get rid of Keychain.MenuInputActions and directly set shortcuts to the menu items
This temporarily removes echoing support for undo and redo, this will be re-added once https://github.com/godotengine/godot/pull/36493 or https://github.com/godotengine/godot/pull/64317 is merged.
* Clean shortcut-related duplicate code in TopMenuContainer
* Remove DroidSansFallback now that system fonts can be used as fallback
* Remove 3.x settings from project.godot
* Format
* Format gdgifexporter
* Reset Keychain to its original state
* Remove textures from the dark and gray themes
* Remove all textures from the dark theme
* Better static typing in DrawingAlgos
* Use Vector2i for project size
* [Risky commit] Use Vector2i instead of Vector2 for tools
I tested it and everything seems to be working the same as before, but more testing would be appreciated.
* Format after previous commit
* Fix line angle constraint being rotated 180 degrees
This is not a regression from the previous commit(s), Godot 4 probably reversed the logic of `angle_to_point()`.
* Fix input map action not found errors when pressing Shift or Control
* Make AnimatePanel bigger, add spring interpolation
* Fix some layouts/extensions/preferences loading errors
* Fix dithering
* Update layout resources
Probably doesn't change anything at all, but I suppose it might be a good thing to do
* Small changes
* Disable filter in ResizeCanvas dialog
* Fix some preferences default button states
* Fix tile mode always having masking on
* Use integers in tile mode
* Fix checkboxes in preferences not working
* More statically typed arrays!
No need to have these # Array of X comments anymore!
* Fix "apply all" for multiple preview dialogs
* Update theme.tres
* Add HeaderSmall theme type variation
* Fix dynamics buttons
* Don't allow sub-zero zoom values
* Let zoom_out_max always remain Vector2(0.01, 0.01)
This fixes zooming on large canvases
* Bump version to v1.0-dev
* Fix ambient light not working on 3D cels
* Fix .obj loading
* Don't allow greater than max values in the zoom slider
* Set maximum zoom value to always be (500, 500)
* Set zoom slider minimum value to 1
* Some UI changes, mostly related to buttons and the timeline
* Change window titles to what they were before
* [COMPATIBILITY BROKEN WITH v0.x] Fix loading 3D cels
* Avoid changing Cel3DObject's file_path if it's the same
* Make preferences window bigger
* Fix png exporting
* Fix reference image initial size and filter setting
* Fix perspective line reverse scaling on zoom and facing 180 degrees away from cursor
* Format and some linting
* Remove most Images from the rest of the themes
* Remove all textures from all themes
* Fix drawing when the mouse gets released outside the canvas boundaries
* Format Keychain
* Implement #890
* Fix recorder
* Fix layout deletion
* Better static typing and fix empty_clicked signal-connected methods not having arguments
* Fix layout and extension directory creation if they don't already exist
* Change all instances of "HTML5" to "Web"
OS.get_name() now returns "Web" instead of "HTML5" in Godot 4
* Fix JavaScript detection
Opening files in the Web version does not yet work for some reason
* Fix formatting
* Fix lint errors
* Remove unneeded lines from rotation shaders
* Clean some rotation shader related code
* Remove ErrorManager from #891, as it's no longer needed in Godot 4
* Some docstrings
* More Vector2i and Recti replacing their float counterparts
* Remove the hardcoded shortcut from ValueSlider
Note that the brush size shortcut may not change properly because Keychain isn't updated to support Godot 4's input map properly yet.
* Fix bugs from the rebase, integer zooming is currently broken
* Format
* Fix bug where some imported images would fail to load when using smart slice
* Fix integer zooming (I think)
* Fix errors after #898
* Fix some UI issues with PreviewDialog
* Use ctrl/command instead of just ctrl in the shortcuts of the InputMap - gets rid of the need for _use_osx_shortcuts() in Main.gd
* Update Keychain and addons/README.md
* Update CI to Godot 4.1.1 (probably will not work)
* Remove XDGDataPaths.gd
* Make windows non-exclusive
* Attempt to fix macOS CI
* Attempt to fix CI
* Attempt to fix CI
* Minor fix in the dark theme, more will follow
* Silence enumerator/integer warning
* Attempt to fix macOS CI
* Another attempt to fix macOS CI
* Attempt to fix Windows & macOS CI
* fix: Recorder directory create (#903)
* Update Keychain so that the brush size shortcuts can be changed
This update generally lets users use modifier buttons (control, alt, shift, meta) with mouse buttons
* Change OSX to macOS
* Detect if multi-threading is enabled when exporting gifs
* Fix color picker not working on the top color mode
* Make some public methods private in Export.gd
* Remove Global.window_title variable
* Fix frame UI in the timeline breaking after 100 frames
* Static typing improvements for the timeline
* Better static typing for grids
* Fix typo
* Fix pixel grid not appearing
* Move preference updating code to Global using setters
This should make the code a bit more readable, as the logic for each property update can be found directly under the variable declaration, and not hidden in PreferencesDialog's preference_update() method. This also allows for changing these properties outside the preferences, if that will ever be needed. In theory it's also faster as we don't have to do all these string comparisons anymore, but I doubt this will be noticeable in practice.
* Remove RestoreDefaultButton.tscn
* Implement changing font size in the preferences
* Resize HeaderSmall font size along with the default font size
* A step towards fixing image loading in the Web version
Doesn't completely fix the issue, it requires a fix from Godot's side as well
* Implement missing input event actions for buttons
TODO: Add default shortcuts
* Do not change language and theme if they are already the defaults
Reduces the initial loading time a bit
* Remove update_hint_tooltips() as it's no longer needed, only keep it for tools
This was needed in order for hint tooltips to be successfully translated while taking the shortcuts into account. Godot 4 already it correctly for us now. Tools still need it because they contain multiple shortcut data in their tooltips.
* Change ExportDialog's PathDialog's file mode to be "open directory" and make them bigger
* Fix Vector2i + Vector2 errors in grid center snapping
* Update tooltips when the shortcut profile changes
* Fix copy-paste mistake
* Update tooltips during startup if the shortcut profile is not the default
* Fix gif warning label size in ExportDialog
* Fix BBCode in ExportDialog
* Fix some Godot 4.2 warnings
* Some CI fixes
* Static typing improvements and more inline functions
* Format
* Even more static typing, inline methods, docstrings etc
* Some more static typing improvements and inline setters
* Remove unneeded project type specifying
* Fix splash dialog error
* Fix enumerator warning
* Don't preload the font in the rules and guides
* Fix some integer division warnings
Sometimes we indeed need them to be floats
* Change some Rect2s to Rect2is
* Minor static typing improvements
* Update README, CHANGELOG, Translations
* Only load translation files when needed, reduces loading time a bit
* Update Keychain so it doesn't load languages during startup
* Lazy load all tool scenes, breaks compatibility with the extension API
Decreases initial loading time
* Format
* Very minor loading time speedups
* Remove unneeded project type specifying
* Even more static typing and docstring improvements
* Fix extension loading
* Palette docstrings
---------
Co-authored-by: ppphp <kevinniub@gmail.com>
2023-09-04 13:29:06 +00:00
|
|
|
## Traverse list from back to front fitting controls where they belong.
|
|
|
|
##
|
|
|
|
## Be sure to call this with the result from `_calculate_split_minimum_sizes`.
|
2022-01-29 22:47:25 +00:00
|
|
|
func _fit_panel_and_split_list_to_rect(panel_and_split_list: Array, rect: Rect2) -> void:
|
|
|
|
var control = panel_and_split_list.pop_back()
|
|
|
|
if control is DockablePanel:
|
|
|
|
_panel_container.fit_child_in_rect(control, rect)
|
|
|
|
elif control is SplitHandle:
|
|
|
|
var split_rects = control.get_split_rects(rect)
|
Port to Godot 4 (#900)
* Initial conversion
* Hide some dialogs
* Update addons
* Fix errors in scripts
Temporarily commented out adding new file import types and certain Control methods that are not available in the Window class, such as get_global_mouse_position()
* Update shaders
* Fix some more errors and signals, rename "pressed" to "button_pressed"
* Even more error fixes and renaming corrections
* Fixed more errors, Pixelorama almost runs
* Update ValueSlider.gd
* Remove lock() and unlock(), more ImageTexture.create_from_image() static usage
* More static function using
* Re-add some of the dialog signals, fix window transparency
* Change instances of popup_hide to visibility_changed
* More more errors and warnings
* Fix more errors and warnings
* Get rid of errors in the output when opening Pixelorama in Godot
* Properly connect most signals without using strings
* Fix some scenes
* Don't load Main.tscn
* Emit signals directly instead of using strings
* Fix Keychain menu nodes
* Get rid of self. on most instances, as setters and getters are now always called
* Some more static typing
* Disable texture filters
* Fix zooming
* Fix int as enum warnings
* Fix tools and rename doubleclick to double_click
* Update tool scenes
* Fix tabs
* Fix create new image
* Use static typing on flood fill to speed it up
* Update static-checks.yml
* Reverts #729 for a speedup, hopefully the bug won't get re-introduced
* Fix TransparentChecker warning
* Re-add Default template
* Fix 3D cels
* Fix rotation
Project converted bug. Should be fixed by https://github.com/godotengine/godot/pull/79264
* Fix UITransparency alignment issue, thanks Variable
* Add missing OptionButton items
Hopefully that should be all of them
* Fix the appearance of CollapsibleContainer
* Change instances of world to world_3d
* Fix tool button backgrounds
* Fix Splash dialog
* Fix brush selection
* Update Main.gd
* Fix About Dialog
* Fix more zooming issues
* Fix canvas preview zooming
* Use signals for queue_redraw on project change
* Fix layer button's look
* Fix gradients
* Some gradient fixes and code cleanups, dithering is still broken
* Fix bucket
* Fix the rest of the undo_redo.add_(un)do_method() cases
* Fix guides
* Fix guide text
* Some small changes in Main
* Update Tools.gd
* Fix palette importing
* Get rid of TODOGODOT4s
* Fix the rest of the dialogs
* Update the rest of the scenes
* Fix onion skinning and frame tag dialogs
* Fix file brushes being imported twice
* Fix palette swatch crashing on double click
* Use nearest filter for some of the windows
* Remove old .tres font files
* Fix language switching
* Get rid of Keychain.action_get_first_key() on the extra shortcuts of tools
* Get rid of Keychain.MenuInputActions and directly set shortcuts to the menu items
This temporarily removes echoing support for undo and redo, this will be re-added once https://github.com/godotengine/godot/pull/36493 or https://github.com/godotengine/godot/pull/64317 is merged.
* Clean shortcut-related duplicate code in TopMenuContainer
* Remove DroidSansFallback now that system fonts can be used as fallback
* Remove 3.x settings from project.godot
* Format
* Format gdgifexporter
* Reset Keychain to its original state
* Remove textures from the dark and gray themes
* Remove all textures from the dark theme
* Better static typing in DrawingAlgos
* Use Vector2i for project size
* [Risky commit] Use Vector2i instead of Vector2 for tools
I tested it and everything seems to be working the same as before, but more testing would be appreciated.
* Format after previous commit
* Fix line angle constraint being rotated 180 degrees
This is not a regression from the previous commit(s), Godot 4 probably reversed the logic of `angle_to_point()`.
* Fix input map action not found errors when pressing Shift or Control
* Make AnimatePanel bigger, add spring interpolation
* Fix some layouts/extensions/preferences loading errors
* Fix dithering
* Update layout resources
Probably doesn't change anything at all, but I suppose it might be a good thing to do
* Small changes
* Disable filter in ResizeCanvas dialog
* Fix some preferences default button states
* Fix tile mode always having masking on
* Use integers in tile mode
* Fix checkboxes in preferences not working
* More statically typed arrays!
No need to have these # Array of X comments anymore!
* Fix "apply all" for multiple preview dialogs
* Update theme.tres
* Add HeaderSmall theme type variation
* Fix dynamics buttons
* Don't allow sub-zero zoom values
* Let zoom_out_max always remain Vector2(0.01, 0.01)
This fixes zooming on large canvases
* Bump version to v1.0-dev
* Fix ambient light not working on 3D cels
* Fix .obj loading
* Don't allow greater than max values in the zoom slider
* Set maximum zoom value to always be (500, 500)
* Set zoom slider minimum value to 1
* Some UI changes, mostly related to buttons and the timeline
* Change window titles to what they were before
* [COMPATIBILITY BROKEN WITH v0.x] Fix loading 3D cels
* Avoid changing Cel3DObject's file_path if it's the same
* Make preferences window bigger
* Fix png exporting
* Fix reference image initial size and filter setting
* Fix perspective line reverse scaling on zoom and facing 180 degrees away from cursor
* Format and some linting
* Remove most Images from the rest of the themes
* Remove all textures from all themes
* Fix drawing when the mouse gets released outside the canvas boundaries
* Format Keychain
* Implement #890
* Fix recorder
* Fix layout deletion
* Better static typing and fix empty_clicked signal-connected methods not having arguments
* Fix layout and extension directory creation if they don't already exist
* Change all instances of "HTML5" to "Web"
OS.get_name() now returns "Web" instead of "HTML5" in Godot 4
* Fix JavaScript detection
Opening files in the Web version does not yet work for some reason
* Fix formatting
* Fix lint errors
* Remove unneeded lines from rotation shaders
* Clean some rotation shader related code
* Remove ErrorManager from #891, as it's no longer needed in Godot 4
* Some docstrings
* More Vector2i and Recti replacing their float counterparts
* Remove the hardcoded shortcut from ValueSlider
Note that the brush size shortcut may not change properly because Keychain isn't updated to support Godot 4's input map properly yet.
* Fix bugs from the rebase, integer zooming is currently broken
* Format
* Fix bug where some imported images would fail to load when using smart slice
* Fix integer zooming (I think)
* Fix errors after #898
* Fix some UI issues with PreviewDialog
* Use ctrl/command instead of just ctrl in the shortcuts of the InputMap - gets rid of the need for _use_osx_shortcuts() in Main.gd
* Update Keychain and addons/README.md
* Update CI to Godot 4.1.1 (probably will not work)
* Remove XDGDataPaths.gd
* Make windows non-exclusive
* Attempt to fix macOS CI
* Attempt to fix CI
* Attempt to fix CI
* Minor fix in the dark theme, more will follow
* Silence enumerator/integer warning
* Attempt to fix macOS CI
* Another attempt to fix macOS CI
* Attempt to fix Windows & macOS CI
* fix: Recorder directory create (#903)
* Update Keychain so that the brush size shortcuts can be changed
This update generally lets users use modifier buttons (control, alt, shift, meta) with mouse buttons
* Change OSX to macOS
* Detect if multi-threading is enabled when exporting gifs
* Fix color picker not working on the top color mode
* Make some public methods private in Export.gd
* Remove Global.window_title variable
* Fix frame UI in the timeline breaking after 100 frames
* Static typing improvements for the timeline
* Better static typing for grids
* Fix typo
* Fix pixel grid not appearing
* Move preference updating code to Global using setters
This should make the code a bit more readable, as the logic for each property update can be found directly under the variable declaration, and not hidden in PreferencesDialog's preference_update() method. This also allows for changing these properties outside the preferences, if that will ever be needed. In theory it's also faster as we don't have to do all these string comparisons anymore, but I doubt this will be noticeable in practice.
* Remove RestoreDefaultButton.tscn
* Implement changing font size in the preferences
* Resize HeaderSmall font size along with the default font size
* A step towards fixing image loading in the Web version
Doesn't completely fix the issue, it requires a fix from Godot's side as well
* Implement missing input event actions for buttons
TODO: Add default shortcuts
* Do not change language and theme if they are already the defaults
Reduces the initial loading time a bit
* Remove update_hint_tooltips() as it's no longer needed, only keep it for tools
This was needed in order for hint tooltips to be successfully translated while taking the shortcuts into account. Godot 4 already it correctly for us now. Tools still need it because they contain multiple shortcut data in their tooltips.
* Change ExportDialog's PathDialog's file mode to be "open directory" and make them bigger
* Fix Vector2i + Vector2 errors in grid center snapping
* Update tooltips when the shortcut profile changes
* Fix copy-paste mistake
* Update tooltips during startup if the shortcut profile is not the default
* Fix gif warning label size in ExportDialog
* Fix BBCode in ExportDialog
* Fix some Godot 4.2 warnings
* Some CI fixes
* Static typing improvements and more inline functions
* Format
* Even more static typing, inline methods, docstrings etc
* Some more static typing improvements and inline setters
* Remove unneeded project type specifying
* Fix splash dialog error
* Fix enumerator warning
* Don't preload the font in the rules and guides
* Fix some integer division warnings
Sometimes we indeed need them to be floats
* Change some Rect2s to Rect2is
* Minor static typing improvements
* Update README, CHANGELOG, Translations
* Only load translation files when needed, reduces loading time a bit
* Update Keychain so it doesn't load languages during startup
* Lazy load all tool scenes, breaks compatibility with the extension API
Decreases initial loading time
* Format
* Very minor loading time speedups
* Remove unneeded project type specifying
* Even more static typing and docstring improvements
* Fix extension loading
* Palette docstrings
---------
Co-authored-by: ppphp <kevinniub@gmail.com>
2023-09-04 13:29:06 +00:00
|
|
|
_split_container.fit_child_in_rect(control, split_rects["self"])
|
|
|
|
_fit_panel_and_split_list_to_rect(panel_and_split_list, split_rects["first"])
|
|
|
|
_fit_panel_and_split_list_to_rect(panel_and_split_list, split_rects["second"])
|
2022-01-29 22:47:25 +00:00
|
|
|
|
|
|
|
|
Port to Godot 4 (#900)
* Initial conversion
* Hide some dialogs
* Update addons
* Fix errors in scripts
Temporarily commented out adding new file import types and certain Control methods that are not available in the Window class, such as get_global_mouse_position()
* Update shaders
* Fix some more errors and signals, rename "pressed" to "button_pressed"
* Even more error fixes and renaming corrections
* Fixed more errors, Pixelorama almost runs
* Update ValueSlider.gd
* Remove lock() and unlock(), more ImageTexture.create_from_image() static usage
* More static function using
* Re-add some of the dialog signals, fix window transparency
* Change instances of popup_hide to visibility_changed
* More more errors and warnings
* Fix more errors and warnings
* Get rid of errors in the output when opening Pixelorama in Godot
* Properly connect most signals without using strings
* Fix some scenes
* Don't load Main.tscn
* Emit signals directly instead of using strings
* Fix Keychain menu nodes
* Get rid of self. on most instances, as setters and getters are now always called
* Some more static typing
* Disable texture filters
* Fix zooming
* Fix int as enum warnings
* Fix tools and rename doubleclick to double_click
* Update tool scenes
* Fix tabs
* Fix create new image
* Use static typing on flood fill to speed it up
* Update static-checks.yml
* Reverts #729 for a speedup, hopefully the bug won't get re-introduced
* Fix TransparentChecker warning
* Re-add Default template
* Fix 3D cels
* Fix rotation
Project converted bug. Should be fixed by https://github.com/godotengine/godot/pull/79264
* Fix UITransparency alignment issue, thanks Variable
* Add missing OptionButton items
Hopefully that should be all of them
* Fix the appearance of CollapsibleContainer
* Change instances of world to world_3d
* Fix tool button backgrounds
* Fix Splash dialog
* Fix brush selection
* Update Main.gd
* Fix About Dialog
* Fix more zooming issues
* Fix canvas preview zooming
* Use signals for queue_redraw on project change
* Fix layer button's look
* Fix gradients
* Some gradient fixes and code cleanups, dithering is still broken
* Fix bucket
* Fix the rest of the undo_redo.add_(un)do_method() cases
* Fix guides
* Fix guide text
* Some small changes in Main
* Update Tools.gd
* Fix palette importing
* Get rid of TODOGODOT4s
* Fix the rest of the dialogs
* Update the rest of the scenes
* Fix onion skinning and frame tag dialogs
* Fix file brushes being imported twice
* Fix palette swatch crashing on double click
* Use nearest filter for some of the windows
* Remove old .tres font files
* Fix language switching
* Get rid of Keychain.action_get_first_key() on the extra shortcuts of tools
* Get rid of Keychain.MenuInputActions and directly set shortcuts to the menu items
This temporarily removes echoing support for undo and redo, this will be re-added once https://github.com/godotengine/godot/pull/36493 or https://github.com/godotengine/godot/pull/64317 is merged.
* Clean shortcut-related duplicate code in TopMenuContainer
* Remove DroidSansFallback now that system fonts can be used as fallback
* Remove 3.x settings from project.godot
* Format
* Format gdgifexporter
* Reset Keychain to its original state
* Remove textures from the dark and gray themes
* Remove all textures from the dark theme
* Better static typing in DrawingAlgos
* Use Vector2i for project size
* [Risky commit] Use Vector2i instead of Vector2 for tools
I tested it and everything seems to be working the same as before, but more testing would be appreciated.
* Format after previous commit
* Fix line angle constraint being rotated 180 degrees
This is not a regression from the previous commit(s), Godot 4 probably reversed the logic of `angle_to_point()`.
* Fix input map action not found errors when pressing Shift or Control
* Make AnimatePanel bigger, add spring interpolation
* Fix some layouts/extensions/preferences loading errors
* Fix dithering
* Update layout resources
Probably doesn't change anything at all, but I suppose it might be a good thing to do
* Small changes
* Disable filter in ResizeCanvas dialog
* Fix some preferences default button states
* Fix tile mode always having masking on
* Use integers in tile mode
* Fix checkboxes in preferences not working
* More statically typed arrays!
No need to have these # Array of X comments anymore!
* Fix "apply all" for multiple preview dialogs
* Update theme.tres
* Add HeaderSmall theme type variation
* Fix dynamics buttons
* Don't allow sub-zero zoom values
* Let zoom_out_max always remain Vector2(0.01, 0.01)
This fixes zooming on large canvases
* Bump version to v1.0-dev
* Fix ambient light not working on 3D cels
* Fix .obj loading
* Don't allow greater than max values in the zoom slider
* Set maximum zoom value to always be (500, 500)
* Set zoom slider minimum value to 1
* Some UI changes, mostly related to buttons and the timeline
* Change window titles to what they were before
* [COMPATIBILITY BROKEN WITH v0.x] Fix loading 3D cels
* Avoid changing Cel3DObject's file_path if it's the same
* Make preferences window bigger
* Fix png exporting
* Fix reference image initial size and filter setting
* Fix perspective line reverse scaling on zoom and facing 180 degrees away from cursor
* Format and some linting
* Remove most Images from the rest of the themes
* Remove all textures from all themes
* Fix drawing when the mouse gets released outside the canvas boundaries
* Format Keychain
* Implement #890
* Fix recorder
* Fix layout deletion
* Better static typing and fix empty_clicked signal-connected methods not having arguments
* Fix layout and extension directory creation if they don't already exist
* Change all instances of "HTML5" to "Web"
OS.get_name() now returns "Web" instead of "HTML5" in Godot 4
* Fix JavaScript detection
Opening files in the Web version does not yet work for some reason
* Fix formatting
* Fix lint errors
* Remove unneeded lines from rotation shaders
* Clean some rotation shader related code
* Remove ErrorManager from #891, as it's no longer needed in Godot 4
* Some docstrings
* More Vector2i and Recti replacing their float counterparts
* Remove the hardcoded shortcut from ValueSlider
Note that the brush size shortcut may not change properly because Keychain isn't updated to support Godot 4's input map properly yet.
* Fix bugs from the rebase, integer zooming is currently broken
* Format
* Fix bug where some imported images would fail to load when using smart slice
* Fix integer zooming (I think)
* Fix errors after #898
* Fix some UI issues with PreviewDialog
* Use ctrl/command instead of just ctrl in the shortcuts of the InputMap - gets rid of the need for _use_osx_shortcuts() in Main.gd
* Update Keychain and addons/README.md
* Update CI to Godot 4.1.1 (probably will not work)
* Remove XDGDataPaths.gd
* Make windows non-exclusive
* Attempt to fix macOS CI
* Attempt to fix CI
* Attempt to fix CI
* Minor fix in the dark theme, more will follow
* Silence enumerator/integer warning
* Attempt to fix macOS CI
* Another attempt to fix macOS CI
* Attempt to fix Windows & macOS CI
* fix: Recorder directory create (#903)
* Update Keychain so that the brush size shortcuts can be changed
This update generally lets users use modifier buttons (control, alt, shift, meta) with mouse buttons
* Change OSX to macOS
* Detect if multi-threading is enabled when exporting gifs
* Fix color picker not working on the top color mode
* Make some public methods private in Export.gd
* Remove Global.window_title variable
* Fix frame UI in the timeline breaking after 100 frames
* Static typing improvements for the timeline
* Better static typing for grids
* Fix typo
* Fix pixel grid not appearing
* Move preference updating code to Global using setters
This should make the code a bit more readable, as the logic for each property update can be found directly under the variable declaration, and not hidden in PreferencesDialog's preference_update() method. This also allows for changing these properties outside the preferences, if that will ever be needed. In theory it's also faster as we don't have to do all these string comparisons anymore, but I doubt this will be noticeable in practice.
* Remove RestoreDefaultButton.tscn
* Implement changing font size in the preferences
* Resize HeaderSmall font size along with the default font size
* A step towards fixing image loading in the Web version
Doesn't completely fix the issue, it requires a fix from Godot's side as well
* Implement missing input event actions for buttons
TODO: Add default shortcuts
* Do not change language and theme if they are already the defaults
Reduces the initial loading time a bit
* Remove update_hint_tooltips() as it's no longer needed, only keep it for tools
This was needed in order for hint tooltips to be successfully translated while taking the shortcuts into account. Godot 4 already it correctly for us now. Tools still need it because they contain multiple shortcut data in their tooltips.
* Change ExportDialog's PathDialog's file mode to be "open directory" and make them bigger
* Fix Vector2i + Vector2 errors in grid center snapping
* Update tooltips when the shortcut profile changes
* Fix copy-paste mistake
* Update tooltips during startup if the shortcut profile is not the default
* Fix gif warning label size in ExportDialog
* Fix BBCode in ExportDialog
* Fix some Godot 4.2 warnings
* Some CI fixes
* Static typing improvements and more inline functions
* Format
* Even more static typing, inline methods, docstrings etc
* Some more static typing improvements and inline setters
* Remove unneeded project type specifying
* Fix splash dialog error
* Fix enumerator warning
* Don't preload the font in the rules and guides
* Fix some integer division warnings
Sometimes we indeed need them to be floats
* Change some Rect2s to Rect2is
* Minor static typing improvements
* Update README, CHANGELOG, Translations
* Only load translation files when needed, reduces loading time a bit
* Update Keychain so it doesn't load languages during startup
* Lazy load all tool scenes, breaks compatibility with the extension API
Decreases initial loading time
* Format
* Very minor loading time speedups
* Remove unneeded project type specifying
* Even more static typing and docstring improvements
* Fix extension loading
* Palette docstrings
---------
Co-authored-by: ppphp <kevinniub@gmail.com>
2023-09-04 13:29:06 +00:00
|
|
|
## Get the idx'th DockablePanel, reusing an instanced one if possible
|
2022-01-29 22:47:25 +00:00
|
|
|
func _get_panel(idx: int) -> DockablePanel:
|
|
|
|
assert(_panel_container, "FIXME: creating panel without _panel_container")
|
|
|
|
if idx < _panel_container.get_child_count():
|
|
|
|
return _panel_container.get_child(idx)
|
Port to Godot 4 (#900)
* Initial conversion
* Hide some dialogs
* Update addons
* Fix errors in scripts
Temporarily commented out adding new file import types and certain Control methods that are not available in the Window class, such as get_global_mouse_position()
* Update shaders
* Fix some more errors and signals, rename "pressed" to "button_pressed"
* Even more error fixes and renaming corrections
* Fixed more errors, Pixelorama almost runs
* Update ValueSlider.gd
* Remove lock() and unlock(), more ImageTexture.create_from_image() static usage
* More static function using
* Re-add some of the dialog signals, fix window transparency
* Change instances of popup_hide to visibility_changed
* More more errors and warnings
* Fix more errors and warnings
* Get rid of errors in the output when opening Pixelorama in Godot
* Properly connect most signals without using strings
* Fix some scenes
* Don't load Main.tscn
* Emit signals directly instead of using strings
* Fix Keychain menu nodes
* Get rid of self. on most instances, as setters and getters are now always called
* Some more static typing
* Disable texture filters
* Fix zooming
* Fix int as enum warnings
* Fix tools and rename doubleclick to double_click
* Update tool scenes
* Fix tabs
* Fix create new image
* Use static typing on flood fill to speed it up
* Update static-checks.yml
* Reverts #729 for a speedup, hopefully the bug won't get re-introduced
* Fix TransparentChecker warning
* Re-add Default template
* Fix 3D cels
* Fix rotation
Project converted bug. Should be fixed by https://github.com/godotengine/godot/pull/79264
* Fix UITransparency alignment issue, thanks Variable
* Add missing OptionButton items
Hopefully that should be all of them
* Fix the appearance of CollapsibleContainer
* Change instances of world to world_3d
* Fix tool button backgrounds
* Fix Splash dialog
* Fix brush selection
* Update Main.gd
* Fix About Dialog
* Fix more zooming issues
* Fix canvas preview zooming
* Use signals for queue_redraw on project change
* Fix layer button's look
* Fix gradients
* Some gradient fixes and code cleanups, dithering is still broken
* Fix bucket
* Fix the rest of the undo_redo.add_(un)do_method() cases
* Fix guides
* Fix guide text
* Some small changes in Main
* Update Tools.gd
* Fix palette importing
* Get rid of TODOGODOT4s
* Fix the rest of the dialogs
* Update the rest of the scenes
* Fix onion skinning and frame tag dialogs
* Fix file brushes being imported twice
* Fix palette swatch crashing on double click
* Use nearest filter for some of the windows
* Remove old .tres font files
* Fix language switching
* Get rid of Keychain.action_get_first_key() on the extra shortcuts of tools
* Get rid of Keychain.MenuInputActions and directly set shortcuts to the menu items
This temporarily removes echoing support for undo and redo, this will be re-added once https://github.com/godotengine/godot/pull/36493 or https://github.com/godotengine/godot/pull/64317 is merged.
* Clean shortcut-related duplicate code in TopMenuContainer
* Remove DroidSansFallback now that system fonts can be used as fallback
* Remove 3.x settings from project.godot
* Format
* Format gdgifexporter
* Reset Keychain to its original state
* Remove textures from the dark and gray themes
* Remove all textures from the dark theme
* Better static typing in DrawingAlgos
* Use Vector2i for project size
* [Risky commit] Use Vector2i instead of Vector2 for tools
I tested it and everything seems to be working the same as before, but more testing would be appreciated.
* Format after previous commit
* Fix line angle constraint being rotated 180 degrees
This is not a regression from the previous commit(s), Godot 4 probably reversed the logic of `angle_to_point()`.
* Fix input map action not found errors when pressing Shift or Control
* Make AnimatePanel bigger, add spring interpolation
* Fix some layouts/extensions/preferences loading errors
* Fix dithering
* Update layout resources
Probably doesn't change anything at all, but I suppose it might be a good thing to do
* Small changes
* Disable filter in ResizeCanvas dialog
* Fix some preferences default button states
* Fix tile mode always having masking on
* Use integers in tile mode
* Fix checkboxes in preferences not working
* More statically typed arrays!
No need to have these # Array of X comments anymore!
* Fix "apply all" for multiple preview dialogs
* Update theme.tres
* Add HeaderSmall theme type variation
* Fix dynamics buttons
* Don't allow sub-zero zoom values
* Let zoom_out_max always remain Vector2(0.01, 0.01)
This fixes zooming on large canvases
* Bump version to v1.0-dev
* Fix ambient light not working on 3D cels
* Fix .obj loading
* Don't allow greater than max values in the zoom slider
* Set maximum zoom value to always be (500, 500)
* Set zoom slider minimum value to 1
* Some UI changes, mostly related to buttons and the timeline
* Change window titles to what they were before
* [COMPATIBILITY BROKEN WITH v0.x] Fix loading 3D cels
* Avoid changing Cel3DObject's file_path if it's the same
* Make preferences window bigger
* Fix png exporting
* Fix reference image initial size and filter setting
* Fix perspective line reverse scaling on zoom and facing 180 degrees away from cursor
* Format and some linting
* Remove most Images from the rest of the themes
* Remove all textures from all themes
* Fix drawing when the mouse gets released outside the canvas boundaries
* Format Keychain
* Implement #890
* Fix recorder
* Fix layout deletion
* Better static typing and fix empty_clicked signal-connected methods not having arguments
* Fix layout and extension directory creation if they don't already exist
* Change all instances of "HTML5" to "Web"
OS.get_name() now returns "Web" instead of "HTML5" in Godot 4
* Fix JavaScript detection
Opening files in the Web version does not yet work for some reason
* Fix formatting
* Fix lint errors
* Remove unneeded lines from rotation shaders
* Clean some rotation shader related code
* Remove ErrorManager from #891, as it's no longer needed in Godot 4
* Some docstrings
* More Vector2i and Recti replacing their float counterparts
* Remove the hardcoded shortcut from ValueSlider
Note that the brush size shortcut may not change properly because Keychain isn't updated to support Godot 4's input map properly yet.
* Fix bugs from the rebase, integer zooming is currently broken
* Format
* Fix bug where some imported images would fail to load when using smart slice
* Fix integer zooming (I think)
* Fix errors after #898
* Fix some UI issues with PreviewDialog
* Use ctrl/command instead of just ctrl in the shortcuts of the InputMap - gets rid of the need for _use_osx_shortcuts() in Main.gd
* Update Keychain and addons/README.md
* Update CI to Godot 4.1.1 (probably will not work)
* Remove XDGDataPaths.gd
* Make windows non-exclusive
* Attempt to fix macOS CI
* Attempt to fix CI
* Attempt to fix CI
* Minor fix in the dark theme, more will follow
* Silence enumerator/integer warning
* Attempt to fix macOS CI
* Another attempt to fix macOS CI
* Attempt to fix Windows & macOS CI
* fix: Recorder directory create (#903)
* Update Keychain so that the brush size shortcuts can be changed
This update generally lets users use modifier buttons (control, alt, shift, meta) with mouse buttons
* Change OSX to macOS
* Detect if multi-threading is enabled when exporting gifs
* Fix color picker not working on the top color mode
* Make some public methods private in Export.gd
* Remove Global.window_title variable
* Fix frame UI in the timeline breaking after 100 frames
* Static typing improvements for the timeline
* Better static typing for grids
* Fix typo
* Fix pixel grid not appearing
* Move preference updating code to Global using setters
This should make the code a bit more readable, as the logic for each property update can be found directly under the variable declaration, and not hidden in PreferencesDialog's preference_update() method. This also allows for changing these properties outside the preferences, if that will ever be needed. In theory it's also faster as we don't have to do all these string comparisons anymore, but I doubt this will be noticeable in practice.
* Remove RestoreDefaultButton.tscn
* Implement changing font size in the preferences
* Resize HeaderSmall font size along with the default font size
* A step towards fixing image loading in the Web version
Doesn't completely fix the issue, it requires a fix from Godot's side as well
* Implement missing input event actions for buttons
TODO: Add default shortcuts
* Do not change language and theme if they are already the defaults
Reduces the initial loading time a bit
* Remove update_hint_tooltips() as it's no longer needed, only keep it for tools
This was needed in order for hint tooltips to be successfully translated while taking the shortcuts into account. Godot 4 already it correctly for us now. Tools still need it because they contain multiple shortcut data in their tooltips.
* Change ExportDialog's PathDialog's file mode to be "open directory" and make them bigger
* Fix Vector2i + Vector2 errors in grid center snapping
* Update tooltips when the shortcut profile changes
* Fix copy-paste mistake
* Update tooltips during startup if the shortcut profile is not the default
* Fix gif warning label size in ExportDialog
* Fix BBCode in ExportDialog
* Fix some Godot 4.2 warnings
* Some CI fixes
* Static typing improvements and more inline functions
* Format
* Even more static typing, inline methods, docstrings etc
* Some more static typing improvements and inline setters
* Remove unneeded project type specifying
* Fix splash dialog error
* Fix enumerator warning
* Don't preload the font in the rules and guides
* Fix some integer division warnings
Sometimes we indeed need them to be floats
* Change some Rect2s to Rect2is
* Minor static typing improvements
* Update README, CHANGELOG, Translations
* Only load translation files when needed, reduces loading time a bit
* Update Keychain so it doesn't load languages during startup
* Lazy load all tool scenes, breaks compatibility with the extension API
Decreases initial loading time
* Format
* Very minor loading time speedups
* Remove unneeded project type specifying
* Even more static typing and docstring improvements
* Fix extension loading
* Palette docstrings
---------
Co-authored-by: ppphp <kevinniub@gmail.com>
2023-09-04 13:29:06 +00:00
|
|
|
var panel := DockablePanel.new()
|
|
|
|
panel.tab_alignment = _tab_align
|
2024-02-18 17:47:21 +00:00
|
|
|
panel.show_tabs = _tabs_visible
|
|
|
|
panel.hide_single_tab = _hide_single_tab
|
2022-01-29 22:47:25 +00:00
|
|
|
panel.use_hidden_tabs_for_min_size = _use_hidden_tabs_for_min_size
|
Port to Godot 4 (#900)
* Initial conversion
* Hide some dialogs
* Update addons
* Fix errors in scripts
Temporarily commented out adding new file import types and certain Control methods that are not available in the Window class, such as get_global_mouse_position()
* Update shaders
* Fix some more errors and signals, rename "pressed" to "button_pressed"
* Even more error fixes and renaming corrections
* Fixed more errors, Pixelorama almost runs
* Update ValueSlider.gd
* Remove lock() and unlock(), more ImageTexture.create_from_image() static usage
* More static function using
* Re-add some of the dialog signals, fix window transparency
* Change instances of popup_hide to visibility_changed
* More more errors and warnings
* Fix more errors and warnings
* Get rid of errors in the output when opening Pixelorama in Godot
* Properly connect most signals without using strings
* Fix some scenes
* Don't load Main.tscn
* Emit signals directly instead of using strings
* Fix Keychain menu nodes
* Get rid of self. on most instances, as setters and getters are now always called
* Some more static typing
* Disable texture filters
* Fix zooming
* Fix int as enum warnings
* Fix tools and rename doubleclick to double_click
* Update tool scenes
* Fix tabs
* Fix create new image
* Use static typing on flood fill to speed it up
* Update static-checks.yml
* Reverts #729 for a speedup, hopefully the bug won't get re-introduced
* Fix TransparentChecker warning
* Re-add Default template
* Fix 3D cels
* Fix rotation
Project converted bug. Should be fixed by https://github.com/godotengine/godot/pull/79264
* Fix UITransparency alignment issue, thanks Variable
* Add missing OptionButton items
Hopefully that should be all of them
* Fix the appearance of CollapsibleContainer
* Change instances of world to world_3d
* Fix tool button backgrounds
* Fix Splash dialog
* Fix brush selection
* Update Main.gd
* Fix About Dialog
* Fix more zooming issues
* Fix canvas preview zooming
* Use signals for queue_redraw on project change
* Fix layer button's look
* Fix gradients
* Some gradient fixes and code cleanups, dithering is still broken
* Fix bucket
* Fix the rest of the undo_redo.add_(un)do_method() cases
* Fix guides
* Fix guide text
* Some small changes in Main
* Update Tools.gd
* Fix palette importing
* Get rid of TODOGODOT4s
* Fix the rest of the dialogs
* Update the rest of the scenes
* Fix onion skinning and frame tag dialogs
* Fix file brushes being imported twice
* Fix palette swatch crashing on double click
* Use nearest filter for some of the windows
* Remove old .tres font files
* Fix language switching
* Get rid of Keychain.action_get_first_key() on the extra shortcuts of tools
* Get rid of Keychain.MenuInputActions and directly set shortcuts to the menu items
This temporarily removes echoing support for undo and redo, this will be re-added once https://github.com/godotengine/godot/pull/36493 or https://github.com/godotengine/godot/pull/64317 is merged.
* Clean shortcut-related duplicate code in TopMenuContainer
* Remove DroidSansFallback now that system fonts can be used as fallback
* Remove 3.x settings from project.godot
* Format
* Format gdgifexporter
* Reset Keychain to its original state
* Remove textures from the dark and gray themes
* Remove all textures from the dark theme
* Better static typing in DrawingAlgos
* Use Vector2i for project size
* [Risky commit] Use Vector2i instead of Vector2 for tools
I tested it and everything seems to be working the same as before, but more testing would be appreciated.
* Format after previous commit
* Fix line angle constraint being rotated 180 degrees
This is not a regression from the previous commit(s), Godot 4 probably reversed the logic of `angle_to_point()`.
* Fix input map action not found errors when pressing Shift or Control
* Make AnimatePanel bigger, add spring interpolation
* Fix some layouts/extensions/preferences loading errors
* Fix dithering
* Update layout resources
Probably doesn't change anything at all, but I suppose it might be a good thing to do
* Small changes
* Disable filter in ResizeCanvas dialog
* Fix some preferences default button states
* Fix tile mode always having masking on
* Use integers in tile mode
* Fix checkboxes in preferences not working
* More statically typed arrays!
No need to have these # Array of X comments anymore!
* Fix "apply all" for multiple preview dialogs
* Update theme.tres
* Add HeaderSmall theme type variation
* Fix dynamics buttons
* Don't allow sub-zero zoom values
* Let zoom_out_max always remain Vector2(0.01, 0.01)
This fixes zooming on large canvases
* Bump version to v1.0-dev
* Fix ambient light not working on 3D cels
* Fix .obj loading
* Don't allow greater than max values in the zoom slider
* Set maximum zoom value to always be (500, 500)
* Set zoom slider minimum value to 1
* Some UI changes, mostly related to buttons and the timeline
* Change window titles to what they were before
* [COMPATIBILITY BROKEN WITH v0.x] Fix loading 3D cels
* Avoid changing Cel3DObject's file_path if it's the same
* Make preferences window bigger
* Fix png exporting
* Fix reference image initial size and filter setting
* Fix perspective line reverse scaling on zoom and facing 180 degrees away from cursor
* Format and some linting
* Remove most Images from the rest of the themes
* Remove all textures from all themes
* Fix drawing when the mouse gets released outside the canvas boundaries
* Format Keychain
* Implement #890
* Fix recorder
* Fix layout deletion
* Better static typing and fix empty_clicked signal-connected methods not having arguments
* Fix layout and extension directory creation if they don't already exist
* Change all instances of "HTML5" to "Web"
OS.get_name() now returns "Web" instead of "HTML5" in Godot 4
* Fix JavaScript detection
Opening files in the Web version does not yet work for some reason
* Fix formatting
* Fix lint errors
* Remove unneeded lines from rotation shaders
* Clean some rotation shader related code
* Remove ErrorManager from #891, as it's no longer needed in Godot 4
* Some docstrings
* More Vector2i and Recti replacing their float counterparts
* Remove the hardcoded shortcut from ValueSlider
Note that the brush size shortcut may not change properly because Keychain isn't updated to support Godot 4's input map properly yet.
* Fix bugs from the rebase, integer zooming is currently broken
* Format
* Fix bug where some imported images would fail to load when using smart slice
* Fix integer zooming (I think)
* Fix errors after #898
* Fix some UI issues with PreviewDialog
* Use ctrl/command instead of just ctrl in the shortcuts of the InputMap - gets rid of the need for _use_osx_shortcuts() in Main.gd
* Update Keychain and addons/README.md
* Update CI to Godot 4.1.1 (probably will not work)
* Remove XDGDataPaths.gd
* Make windows non-exclusive
* Attempt to fix macOS CI
* Attempt to fix CI
* Attempt to fix CI
* Minor fix in the dark theme, more will follow
* Silence enumerator/integer warning
* Attempt to fix macOS CI
* Another attempt to fix macOS CI
* Attempt to fix Windows & macOS CI
* fix: Recorder directory create (#903)
* Update Keychain so that the brush size shortcuts can be changed
This update generally lets users use modifier buttons (control, alt, shift, meta) with mouse buttons
* Change OSX to macOS
* Detect if multi-threading is enabled when exporting gifs
* Fix color picker not working on the top color mode
* Make some public methods private in Export.gd
* Remove Global.window_title variable
* Fix frame UI in the timeline breaking after 100 frames
* Static typing improvements for the timeline
* Better static typing for grids
* Fix typo
* Fix pixel grid not appearing
* Move preference updating code to Global using setters
This should make the code a bit more readable, as the logic for each property update can be found directly under the variable declaration, and not hidden in PreferencesDialog's preference_update() method. This also allows for changing these properties outside the preferences, if that will ever be needed. In theory it's also faster as we don't have to do all these string comparisons anymore, but I doubt this will be noticeable in practice.
* Remove RestoreDefaultButton.tscn
* Implement changing font size in the preferences
* Resize HeaderSmall font size along with the default font size
* A step towards fixing image loading in the Web version
Doesn't completely fix the issue, it requires a fix from Godot's side as well
* Implement missing input event actions for buttons
TODO: Add default shortcuts
* Do not change language and theme if they are already the defaults
Reduces the initial loading time a bit
* Remove update_hint_tooltips() as it's no longer needed, only keep it for tools
This was needed in order for hint tooltips to be successfully translated while taking the shortcuts into account. Godot 4 already it correctly for us now. Tools still need it because they contain multiple shortcut data in their tooltips.
* Change ExportDialog's PathDialog's file mode to be "open directory" and make them bigger
* Fix Vector2i + Vector2 errors in grid center snapping
* Update tooltips when the shortcut profile changes
* Fix copy-paste mistake
* Update tooltips during startup if the shortcut profile is not the default
* Fix gif warning label size in ExportDialog
* Fix BBCode in ExportDialog
* Fix some Godot 4.2 warnings
* Some CI fixes
* Static typing improvements and more inline functions
* Format
* Even more static typing, inline methods, docstrings etc
* Some more static typing improvements and inline setters
* Remove unneeded project type specifying
* Fix splash dialog error
* Fix enumerator warning
* Don't preload the font in the rules and guides
* Fix some integer division warnings
Sometimes we indeed need them to be floats
* Change some Rect2s to Rect2is
* Minor static typing improvements
* Update README, CHANGELOG, Translations
* Only load translation files when needed, reduces loading time a bit
* Update Keychain so it doesn't load languages during startup
* Lazy load all tool scenes, breaks compatibility with the extension API
Decreases initial loading time
* Format
* Very minor loading time speedups
* Remove unneeded project type specifying
* Even more static typing and docstring improvements
* Fix extension loading
* Palette docstrings
---------
Co-authored-by: ppphp <kevinniub@gmail.com>
2023-09-04 13:29:06 +00:00
|
|
|
panel.set_tabs_rearrange_group(maxi(0, rearrange_group))
|
2024-10-11 09:13:13 +00:00
|
|
|
_add_floating_options(panel)
|
2022-01-29 22:47:25 +00:00
|
|
|
_panel_container.add_child(panel)
|
Port to Godot 4 (#900)
* Initial conversion
* Hide some dialogs
* Update addons
* Fix errors in scripts
Temporarily commented out adding new file import types and certain Control methods that are not available in the Window class, such as get_global_mouse_position()
* Update shaders
* Fix some more errors and signals, rename "pressed" to "button_pressed"
* Even more error fixes and renaming corrections
* Fixed more errors, Pixelorama almost runs
* Update ValueSlider.gd
* Remove lock() and unlock(), more ImageTexture.create_from_image() static usage
* More static function using
* Re-add some of the dialog signals, fix window transparency
* Change instances of popup_hide to visibility_changed
* More more errors and warnings
* Fix more errors and warnings
* Get rid of errors in the output when opening Pixelorama in Godot
* Properly connect most signals without using strings
* Fix some scenes
* Don't load Main.tscn
* Emit signals directly instead of using strings
* Fix Keychain menu nodes
* Get rid of self. on most instances, as setters and getters are now always called
* Some more static typing
* Disable texture filters
* Fix zooming
* Fix int as enum warnings
* Fix tools and rename doubleclick to double_click
* Update tool scenes
* Fix tabs
* Fix create new image
* Use static typing on flood fill to speed it up
* Update static-checks.yml
* Reverts #729 for a speedup, hopefully the bug won't get re-introduced
* Fix TransparentChecker warning
* Re-add Default template
* Fix 3D cels
* Fix rotation
Project converted bug. Should be fixed by https://github.com/godotengine/godot/pull/79264
* Fix UITransparency alignment issue, thanks Variable
* Add missing OptionButton items
Hopefully that should be all of them
* Fix the appearance of CollapsibleContainer
* Change instances of world to world_3d
* Fix tool button backgrounds
* Fix Splash dialog
* Fix brush selection
* Update Main.gd
* Fix About Dialog
* Fix more zooming issues
* Fix canvas preview zooming
* Use signals for queue_redraw on project change
* Fix layer button's look
* Fix gradients
* Some gradient fixes and code cleanups, dithering is still broken
* Fix bucket
* Fix the rest of the undo_redo.add_(un)do_method() cases
* Fix guides
* Fix guide text
* Some small changes in Main
* Update Tools.gd
* Fix palette importing
* Get rid of TODOGODOT4s
* Fix the rest of the dialogs
* Update the rest of the scenes
* Fix onion skinning and frame tag dialogs
* Fix file brushes being imported twice
* Fix palette swatch crashing on double click
* Use nearest filter for some of the windows
* Remove old .tres font files
* Fix language switching
* Get rid of Keychain.action_get_first_key() on the extra shortcuts of tools
* Get rid of Keychain.MenuInputActions and directly set shortcuts to the menu items
This temporarily removes echoing support for undo and redo, this will be re-added once https://github.com/godotengine/godot/pull/36493 or https://github.com/godotengine/godot/pull/64317 is merged.
* Clean shortcut-related duplicate code in TopMenuContainer
* Remove DroidSansFallback now that system fonts can be used as fallback
* Remove 3.x settings from project.godot
* Format
* Format gdgifexporter
* Reset Keychain to its original state
* Remove textures from the dark and gray themes
* Remove all textures from the dark theme
* Better static typing in DrawingAlgos
* Use Vector2i for project size
* [Risky commit] Use Vector2i instead of Vector2 for tools
I tested it and everything seems to be working the same as before, but more testing would be appreciated.
* Format after previous commit
* Fix line angle constraint being rotated 180 degrees
This is not a regression from the previous commit(s), Godot 4 probably reversed the logic of `angle_to_point()`.
* Fix input map action not found errors when pressing Shift or Control
* Make AnimatePanel bigger, add spring interpolation
* Fix some layouts/extensions/preferences loading errors
* Fix dithering
* Update layout resources
Probably doesn't change anything at all, but I suppose it might be a good thing to do
* Small changes
* Disable filter in ResizeCanvas dialog
* Fix some preferences default button states
* Fix tile mode always having masking on
* Use integers in tile mode
* Fix checkboxes in preferences not working
* More statically typed arrays!
No need to have these # Array of X comments anymore!
* Fix "apply all" for multiple preview dialogs
* Update theme.tres
* Add HeaderSmall theme type variation
* Fix dynamics buttons
* Don't allow sub-zero zoom values
* Let zoom_out_max always remain Vector2(0.01, 0.01)
This fixes zooming on large canvases
* Bump version to v1.0-dev
* Fix ambient light not working on 3D cels
* Fix .obj loading
* Don't allow greater than max values in the zoom slider
* Set maximum zoom value to always be (500, 500)
* Set zoom slider minimum value to 1
* Some UI changes, mostly related to buttons and the timeline
* Change window titles to what they were before
* [COMPATIBILITY BROKEN WITH v0.x] Fix loading 3D cels
* Avoid changing Cel3DObject's file_path if it's the same
* Make preferences window bigger
* Fix png exporting
* Fix reference image initial size and filter setting
* Fix perspective line reverse scaling on zoom and facing 180 degrees away from cursor
* Format and some linting
* Remove most Images from the rest of the themes
* Remove all textures from all themes
* Fix drawing when the mouse gets released outside the canvas boundaries
* Format Keychain
* Implement #890
* Fix recorder
* Fix layout deletion
* Better static typing and fix empty_clicked signal-connected methods not having arguments
* Fix layout and extension directory creation if they don't already exist
* Change all instances of "HTML5" to "Web"
OS.get_name() now returns "Web" instead of "HTML5" in Godot 4
* Fix JavaScript detection
Opening files in the Web version does not yet work for some reason
* Fix formatting
* Fix lint errors
* Remove unneeded lines from rotation shaders
* Clean some rotation shader related code
* Remove ErrorManager from #891, as it's no longer needed in Godot 4
* Some docstrings
* More Vector2i and Recti replacing their float counterparts
* Remove the hardcoded shortcut from ValueSlider
Note that the brush size shortcut may not change properly because Keychain isn't updated to support Godot 4's input map properly yet.
* Fix bugs from the rebase, integer zooming is currently broken
* Format
* Fix bug where some imported images would fail to load when using smart slice
* Fix integer zooming (I think)
* Fix errors after #898
* Fix some UI issues with PreviewDialog
* Use ctrl/command instead of just ctrl in the shortcuts of the InputMap - gets rid of the need for _use_osx_shortcuts() in Main.gd
* Update Keychain and addons/README.md
* Update CI to Godot 4.1.1 (probably will not work)
* Remove XDGDataPaths.gd
* Make windows non-exclusive
* Attempt to fix macOS CI
* Attempt to fix CI
* Attempt to fix CI
* Minor fix in the dark theme, more will follow
* Silence enumerator/integer warning
* Attempt to fix macOS CI
* Another attempt to fix macOS CI
* Attempt to fix Windows & macOS CI
* fix: Recorder directory create (#903)
* Update Keychain so that the brush size shortcuts can be changed
This update generally lets users use modifier buttons (control, alt, shift, meta) with mouse buttons
* Change OSX to macOS
* Detect if multi-threading is enabled when exporting gifs
* Fix color picker not working on the top color mode
* Make some public methods private in Export.gd
* Remove Global.window_title variable
* Fix frame UI in the timeline breaking after 100 frames
* Static typing improvements for the timeline
* Better static typing for grids
* Fix typo
* Fix pixel grid not appearing
* Move preference updating code to Global using setters
This should make the code a bit more readable, as the logic for each property update can be found directly under the variable declaration, and not hidden in PreferencesDialog's preference_update() method. This also allows for changing these properties outside the preferences, if that will ever be needed. In theory it's also faster as we don't have to do all these string comparisons anymore, but I doubt this will be noticeable in practice.
* Remove RestoreDefaultButton.tscn
* Implement changing font size in the preferences
* Resize HeaderSmall font size along with the default font size
* A step towards fixing image loading in the Web version
Doesn't completely fix the issue, it requires a fix from Godot's side as well
* Implement missing input event actions for buttons
TODO: Add default shortcuts
* Do not change language and theme if they are already the defaults
Reduces the initial loading time a bit
* Remove update_hint_tooltips() as it's no longer needed, only keep it for tools
This was needed in order for hint tooltips to be successfully translated while taking the shortcuts into account. Godot 4 already it correctly for us now. Tools still need it because they contain multiple shortcut data in their tooltips.
* Change ExportDialog's PathDialog's file mode to be "open directory" and make them bigger
* Fix Vector2i + Vector2 errors in grid center snapping
* Update tooltips when the shortcut profile changes
* Fix copy-paste mistake
* Update tooltips during startup if the shortcut profile is not the default
* Fix gif warning label size in ExportDialog
* Fix BBCode in ExportDialog
* Fix some Godot 4.2 warnings
* Some CI fixes
* Static typing improvements and more inline functions
* Format
* Even more static typing, inline methods, docstrings etc
* Some more static typing improvements and inline setters
* Remove unneeded project type specifying
* Fix splash dialog error
* Fix enumerator warning
* Don't preload the font in the rules and guides
* Fix some integer division warnings
Sometimes we indeed need them to be floats
* Change some Rect2s to Rect2is
* Minor static typing improvements
* Update README, CHANGELOG, Translations
* Only load translation files when needed, reduces loading time a bit
* Update Keychain so it doesn't load languages during startup
* Lazy load all tool scenes, breaks compatibility with the extension API
Decreases initial loading time
* Format
* Very minor loading time speedups
* Remove unneeded project type specifying
* Even more static typing and docstring improvements
* Fix extension loading
* Palette docstrings
---------
Co-authored-by: ppphp <kevinniub@gmail.com>
2023-09-04 13:29:06 +00:00
|
|
|
panel.tab_layout_changed.connect(_on_panel_tab_layout_changed.bind(panel))
|
2022-01-29 22:47:25 +00:00
|
|
|
return panel
|
|
|
|
|
|
|
|
|
Port to Godot 4 (#900)
* Initial conversion
* Hide some dialogs
* Update addons
* Fix errors in scripts
Temporarily commented out adding new file import types and certain Control methods that are not available in the Window class, such as get_global_mouse_position()
* Update shaders
* Fix some more errors and signals, rename "pressed" to "button_pressed"
* Even more error fixes and renaming corrections
* Fixed more errors, Pixelorama almost runs
* Update ValueSlider.gd
* Remove lock() and unlock(), more ImageTexture.create_from_image() static usage
* More static function using
* Re-add some of the dialog signals, fix window transparency
* Change instances of popup_hide to visibility_changed
* More more errors and warnings
* Fix more errors and warnings
* Get rid of errors in the output when opening Pixelorama in Godot
* Properly connect most signals without using strings
* Fix some scenes
* Don't load Main.tscn
* Emit signals directly instead of using strings
* Fix Keychain menu nodes
* Get rid of self. on most instances, as setters and getters are now always called
* Some more static typing
* Disable texture filters
* Fix zooming
* Fix int as enum warnings
* Fix tools and rename doubleclick to double_click
* Update tool scenes
* Fix tabs
* Fix create new image
* Use static typing on flood fill to speed it up
* Update static-checks.yml
* Reverts #729 for a speedup, hopefully the bug won't get re-introduced
* Fix TransparentChecker warning
* Re-add Default template
* Fix 3D cels
* Fix rotation
Project converted bug. Should be fixed by https://github.com/godotengine/godot/pull/79264
* Fix UITransparency alignment issue, thanks Variable
* Add missing OptionButton items
Hopefully that should be all of them
* Fix the appearance of CollapsibleContainer
* Change instances of world to world_3d
* Fix tool button backgrounds
* Fix Splash dialog
* Fix brush selection
* Update Main.gd
* Fix About Dialog
* Fix more zooming issues
* Fix canvas preview zooming
* Use signals for queue_redraw on project change
* Fix layer button's look
* Fix gradients
* Some gradient fixes and code cleanups, dithering is still broken
* Fix bucket
* Fix the rest of the undo_redo.add_(un)do_method() cases
* Fix guides
* Fix guide text
* Some small changes in Main
* Update Tools.gd
* Fix palette importing
* Get rid of TODOGODOT4s
* Fix the rest of the dialogs
* Update the rest of the scenes
* Fix onion skinning and frame tag dialogs
* Fix file brushes being imported twice
* Fix palette swatch crashing on double click
* Use nearest filter for some of the windows
* Remove old .tres font files
* Fix language switching
* Get rid of Keychain.action_get_first_key() on the extra shortcuts of tools
* Get rid of Keychain.MenuInputActions and directly set shortcuts to the menu items
This temporarily removes echoing support for undo and redo, this will be re-added once https://github.com/godotengine/godot/pull/36493 or https://github.com/godotengine/godot/pull/64317 is merged.
* Clean shortcut-related duplicate code in TopMenuContainer
* Remove DroidSansFallback now that system fonts can be used as fallback
* Remove 3.x settings from project.godot
* Format
* Format gdgifexporter
* Reset Keychain to its original state
* Remove textures from the dark and gray themes
* Remove all textures from the dark theme
* Better static typing in DrawingAlgos
* Use Vector2i for project size
* [Risky commit] Use Vector2i instead of Vector2 for tools
I tested it and everything seems to be working the same as before, but more testing would be appreciated.
* Format after previous commit
* Fix line angle constraint being rotated 180 degrees
This is not a regression from the previous commit(s), Godot 4 probably reversed the logic of `angle_to_point()`.
* Fix input map action not found errors when pressing Shift or Control
* Make AnimatePanel bigger, add spring interpolation
* Fix some layouts/extensions/preferences loading errors
* Fix dithering
* Update layout resources
Probably doesn't change anything at all, but I suppose it might be a good thing to do
* Small changes
* Disable filter in ResizeCanvas dialog
* Fix some preferences default button states
* Fix tile mode always having masking on
* Use integers in tile mode
* Fix checkboxes in preferences not working
* More statically typed arrays!
No need to have these # Array of X comments anymore!
* Fix "apply all" for multiple preview dialogs
* Update theme.tres
* Add HeaderSmall theme type variation
* Fix dynamics buttons
* Don't allow sub-zero zoom values
* Let zoom_out_max always remain Vector2(0.01, 0.01)
This fixes zooming on large canvases
* Bump version to v1.0-dev
* Fix ambient light not working on 3D cels
* Fix .obj loading
* Don't allow greater than max values in the zoom slider
* Set maximum zoom value to always be (500, 500)
* Set zoom slider minimum value to 1
* Some UI changes, mostly related to buttons and the timeline
* Change window titles to what they were before
* [COMPATIBILITY BROKEN WITH v0.x] Fix loading 3D cels
* Avoid changing Cel3DObject's file_path if it's the same
* Make preferences window bigger
* Fix png exporting
* Fix reference image initial size and filter setting
* Fix perspective line reverse scaling on zoom and facing 180 degrees away from cursor
* Format and some linting
* Remove most Images from the rest of the themes
* Remove all textures from all themes
* Fix drawing when the mouse gets released outside the canvas boundaries
* Format Keychain
* Implement #890
* Fix recorder
* Fix layout deletion
* Better static typing and fix empty_clicked signal-connected methods not having arguments
* Fix layout and extension directory creation if they don't already exist
* Change all instances of "HTML5" to "Web"
OS.get_name() now returns "Web" instead of "HTML5" in Godot 4
* Fix JavaScript detection
Opening files in the Web version does not yet work for some reason
* Fix formatting
* Fix lint errors
* Remove unneeded lines from rotation shaders
* Clean some rotation shader related code
* Remove ErrorManager from #891, as it's no longer needed in Godot 4
* Some docstrings
* More Vector2i and Recti replacing their float counterparts
* Remove the hardcoded shortcut from ValueSlider
Note that the brush size shortcut may not change properly because Keychain isn't updated to support Godot 4's input map properly yet.
* Fix bugs from the rebase, integer zooming is currently broken
* Format
* Fix bug where some imported images would fail to load when using smart slice
* Fix integer zooming (I think)
* Fix errors after #898
* Fix some UI issues with PreviewDialog
* Use ctrl/command instead of just ctrl in the shortcuts of the InputMap - gets rid of the need for _use_osx_shortcuts() in Main.gd
* Update Keychain and addons/README.md
* Update CI to Godot 4.1.1 (probably will not work)
* Remove XDGDataPaths.gd
* Make windows non-exclusive
* Attempt to fix macOS CI
* Attempt to fix CI
* Attempt to fix CI
* Minor fix in the dark theme, more will follow
* Silence enumerator/integer warning
* Attempt to fix macOS CI
* Another attempt to fix macOS CI
* Attempt to fix Windows & macOS CI
* fix: Recorder directory create (#903)
* Update Keychain so that the brush size shortcuts can be changed
This update generally lets users use modifier buttons (control, alt, shift, meta) with mouse buttons
* Change OSX to macOS
* Detect if multi-threading is enabled when exporting gifs
* Fix color picker not working on the top color mode
* Make some public methods private in Export.gd
* Remove Global.window_title variable
* Fix frame UI in the timeline breaking after 100 frames
* Static typing improvements for the timeline
* Better static typing for grids
* Fix typo
* Fix pixel grid not appearing
* Move preference updating code to Global using setters
This should make the code a bit more readable, as the logic for each property update can be found directly under the variable declaration, and not hidden in PreferencesDialog's preference_update() method. This also allows for changing these properties outside the preferences, if that will ever be needed. In theory it's also faster as we don't have to do all these string comparisons anymore, but I doubt this will be noticeable in practice.
* Remove RestoreDefaultButton.tscn
* Implement changing font size in the preferences
* Resize HeaderSmall font size along with the default font size
* A step towards fixing image loading in the Web version
Doesn't completely fix the issue, it requires a fix from Godot's side as well
* Implement missing input event actions for buttons
TODO: Add default shortcuts
* Do not change language and theme if they are already the defaults
Reduces the initial loading time a bit
* Remove update_hint_tooltips() as it's no longer needed, only keep it for tools
This was needed in order for hint tooltips to be successfully translated while taking the shortcuts into account. Godot 4 already it correctly for us now. Tools still need it because they contain multiple shortcut data in their tooltips.
* Change ExportDialog's PathDialog's file mode to be "open directory" and make them bigger
* Fix Vector2i + Vector2 errors in grid center snapping
* Update tooltips when the shortcut profile changes
* Fix copy-paste mistake
* Update tooltips during startup if the shortcut profile is not the default
* Fix gif warning label size in ExportDialog
* Fix BBCode in ExportDialog
* Fix some Godot 4.2 warnings
* Some CI fixes
* Static typing improvements and more inline functions
* Format
* Even more static typing, inline methods, docstrings etc
* Some more static typing improvements and inline setters
* Remove unneeded project type specifying
* Fix splash dialog error
* Fix enumerator warning
* Don't preload the font in the rules and guides
* Fix some integer division warnings
Sometimes we indeed need them to be floats
* Change some Rect2s to Rect2is
* Minor static typing improvements
* Update README, CHANGELOG, Translations
* Only load translation files when needed, reduces loading time a bit
* Update Keychain so it doesn't load languages during startup
* Lazy load all tool scenes, breaks compatibility with the extension API
Decreases initial loading time
* Format
* Very minor loading time speedups
* Remove unneeded project type specifying
* Even more static typing and docstring improvements
* Fix extension loading
* Palette docstrings
---------
Co-authored-by: ppphp <kevinniub@gmail.com>
2023-09-04 13:29:06 +00:00
|
|
|
## Get the idx'th SplitHandle, reusing an instanced one if possible
|
2022-01-29 22:47:25 +00:00
|
|
|
func _get_split(idx: int) -> SplitHandle:
|
|
|
|
assert(_split_container, "FIXME: creating split without _split_container")
|
|
|
|
if idx < _split_container.get_child_count():
|
|
|
|
return _split_container.get_child(idx)
|
Port to Godot 4 (#900)
* Initial conversion
* Hide some dialogs
* Update addons
* Fix errors in scripts
Temporarily commented out adding new file import types and certain Control methods that are not available in the Window class, such as get_global_mouse_position()
* Update shaders
* Fix some more errors and signals, rename "pressed" to "button_pressed"
* Even more error fixes and renaming corrections
* Fixed more errors, Pixelorama almost runs
* Update ValueSlider.gd
* Remove lock() and unlock(), more ImageTexture.create_from_image() static usage
* More static function using
* Re-add some of the dialog signals, fix window transparency
* Change instances of popup_hide to visibility_changed
* More more errors and warnings
* Fix more errors and warnings
* Get rid of errors in the output when opening Pixelorama in Godot
* Properly connect most signals without using strings
* Fix some scenes
* Don't load Main.tscn
* Emit signals directly instead of using strings
* Fix Keychain menu nodes
* Get rid of self. on most instances, as setters and getters are now always called
* Some more static typing
* Disable texture filters
* Fix zooming
* Fix int as enum warnings
* Fix tools and rename doubleclick to double_click
* Update tool scenes
* Fix tabs
* Fix create new image
* Use static typing on flood fill to speed it up
* Update static-checks.yml
* Reverts #729 for a speedup, hopefully the bug won't get re-introduced
* Fix TransparentChecker warning
* Re-add Default template
* Fix 3D cels
* Fix rotation
Project converted bug. Should be fixed by https://github.com/godotengine/godot/pull/79264
* Fix UITransparency alignment issue, thanks Variable
* Add missing OptionButton items
Hopefully that should be all of them
* Fix the appearance of CollapsibleContainer
* Change instances of world to world_3d
* Fix tool button backgrounds
* Fix Splash dialog
* Fix brush selection
* Update Main.gd
* Fix About Dialog
* Fix more zooming issues
* Fix canvas preview zooming
* Use signals for queue_redraw on project change
* Fix layer button's look
* Fix gradients
* Some gradient fixes and code cleanups, dithering is still broken
* Fix bucket
* Fix the rest of the undo_redo.add_(un)do_method() cases
* Fix guides
* Fix guide text
* Some small changes in Main
* Update Tools.gd
* Fix palette importing
* Get rid of TODOGODOT4s
* Fix the rest of the dialogs
* Update the rest of the scenes
* Fix onion skinning and frame tag dialogs
* Fix file brushes being imported twice
* Fix palette swatch crashing on double click
* Use nearest filter for some of the windows
* Remove old .tres font files
* Fix language switching
* Get rid of Keychain.action_get_first_key() on the extra shortcuts of tools
* Get rid of Keychain.MenuInputActions and directly set shortcuts to the menu items
This temporarily removes echoing support for undo and redo, this will be re-added once https://github.com/godotengine/godot/pull/36493 or https://github.com/godotengine/godot/pull/64317 is merged.
* Clean shortcut-related duplicate code in TopMenuContainer
* Remove DroidSansFallback now that system fonts can be used as fallback
* Remove 3.x settings from project.godot
* Format
* Format gdgifexporter
* Reset Keychain to its original state
* Remove textures from the dark and gray themes
* Remove all textures from the dark theme
* Better static typing in DrawingAlgos
* Use Vector2i for project size
* [Risky commit] Use Vector2i instead of Vector2 for tools
I tested it and everything seems to be working the same as before, but more testing would be appreciated.
* Format after previous commit
* Fix line angle constraint being rotated 180 degrees
This is not a regression from the previous commit(s), Godot 4 probably reversed the logic of `angle_to_point()`.
* Fix input map action not found errors when pressing Shift or Control
* Make AnimatePanel bigger, add spring interpolation
* Fix some layouts/extensions/preferences loading errors
* Fix dithering
* Update layout resources
Probably doesn't change anything at all, but I suppose it might be a good thing to do
* Small changes
* Disable filter in ResizeCanvas dialog
* Fix some preferences default button states
* Fix tile mode always having masking on
* Use integers in tile mode
* Fix checkboxes in preferences not working
* More statically typed arrays!
No need to have these # Array of X comments anymore!
* Fix "apply all" for multiple preview dialogs
* Update theme.tres
* Add HeaderSmall theme type variation
* Fix dynamics buttons
* Don't allow sub-zero zoom values
* Let zoom_out_max always remain Vector2(0.01, 0.01)
This fixes zooming on large canvases
* Bump version to v1.0-dev
* Fix ambient light not working on 3D cels
* Fix .obj loading
* Don't allow greater than max values in the zoom slider
* Set maximum zoom value to always be (500, 500)
* Set zoom slider minimum value to 1
* Some UI changes, mostly related to buttons and the timeline
* Change window titles to what they were before
* [COMPATIBILITY BROKEN WITH v0.x] Fix loading 3D cels
* Avoid changing Cel3DObject's file_path if it's the same
* Make preferences window bigger
* Fix png exporting
* Fix reference image initial size and filter setting
* Fix perspective line reverse scaling on zoom and facing 180 degrees away from cursor
* Format and some linting
* Remove most Images from the rest of the themes
* Remove all textures from all themes
* Fix drawing when the mouse gets released outside the canvas boundaries
* Format Keychain
* Implement #890
* Fix recorder
* Fix layout deletion
* Better static typing and fix empty_clicked signal-connected methods not having arguments
* Fix layout and extension directory creation if they don't already exist
* Change all instances of "HTML5" to "Web"
OS.get_name() now returns "Web" instead of "HTML5" in Godot 4
* Fix JavaScript detection
Opening files in the Web version does not yet work for some reason
* Fix formatting
* Fix lint errors
* Remove unneeded lines from rotation shaders
* Clean some rotation shader related code
* Remove ErrorManager from #891, as it's no longer needed in Godot 4
* Some docstrings
* More Vector2i and Recti replacing their float counterparts
* Remove the hardcoded shortcut from ValueSlider
Note that the brush size shortcut may not change properly because Keychain isn't updated to support Godot 4's input map properly yet.
* Fix bugs from the rebase, integer zooming is currently broken
* Format
* Fix bug where some imported images would fail to load when using smart slice
* Fix integer zooming (I think)
* Fix errors after #898
* Fix some UI issues with PreviewDialog
* Use ctrl/command instead of just ctrl in the shortcuts of the InputMap - gets rid of the need for _use_osx_shortcuts() in Main.gd
* Update Keychain and addons/README.md
* Update CI to Godot 4.1.1 (probably will not work)
* Remove XDGDataPaths.gd
* Make windows non-exclusive
* Attempt to fix macOS CI
* Attempt to fix CI
* Attempt to fix CI
* Minor fix in the dark theme, more will follow
* Silence enumerator/integer warning
* Attempt to fix macOS CI
* Another attempt to fix macOS CI
* Attempt to fix Windows & macOS CI
* fix: Recorder directory create (#903)
* Update Keychain so that the brush size shortcuts can be changed
This update generally lets users use modifier buttons (control, alt, shift, meta) with mouse buttons
* Change OSX to macOS
* Detect if multi-threading is enabled when exporting gifs
* Fix color picker not working on the top color mode
* Make some public methods private in Export.gd
* Remove Global.window_title variable
* Fix frame UI in the timeline breaking after 100 frames
* Static typing improvements for the timeline
* Better static typing for grids
* Fix typo
* Fix pixel grid not appearing
* Move preference updating code to Global using setters
This should make the code a bit more readable, as the logic for each property update can be found directly under the variable declaration, and not hidden in PreferencesDialog's preference_update() method. This also allows for changing these properties outside the preferences, if that will ever be needed. In theory it's also faster as we don't have to do all these string comparisons anymore, but I doubt this will be noticeable in practice.
* Remove RestoreDefaultButton.tscn
* Implement changing font size in the preferences
* Resize HeaderSmall font size along with the default font size
* A step towards fixing image loading in the Web version
Doesn't completely fix the issue, it requires a fix from Godot's side as well
* Implement missing input event actions for buttons
TODO: Add default shortcuts
* Do not change language and theme if they are already the defaults
Reduces the initial loading time a bit
* Remove update_hint_tooltips() as it's no longer needed, only keep it for tools
This was needed in order for hint tooltips to be successfully translated while taking the shortcuts into account. Godot 4 already it correctly for us now. Tools still need it because they contain multiple shortcut data in their tooltips.
* Change ExportDialog's PathDialog's file mode to be "open directory" and make them bigger
* Fix Vector2i + Vector2 errors in grid center snapping
* Update tooltips when the shortcut profile changes
* Fix copy-paste mistake
* Update tooltips during startup if the shortcut profile is not the default
* Fix gif warning label size in ExportDialog
* Fix BBCode in ExportDialog
* Fix some Godot 4.2 warnings
* Some CI fixes
* Static typing improvements and more inline functions
* Format
* Even more static typing, inline methods, docstrings etc
* Some more static typing improvements and inline setters
* Remove unneeded project type specifying
* Fix splash dialog error
* Fix enumerator warning
* Don't preload the font in the rules and guides
* Fix some integer division warnings
Sometimes we indeed need them to be floats
* Change some Rect2s to Rect2is
* Minor static typing improvements
* Update README, CHANGELOG, Translations
* Only load translation files when needed, reduces loading time a bit
* Update Keychain so it doesn't load languages during startup
* Lazy load all tool scenes, breaks compatibility with the extension API
Decreases initial loading time
* Format
* Very minor loading time speedups
* Remove unneeded project type specifying
* Even more static typing and docstring improvements
* Fix extension loading
* Palette docstrings
---------
Co-authored-by: ppphp <kevinniub@gmail.com>
2023-09-04 13:29:06 +00:00
|
|
|
var split := SplitHandle.new()
|
2022-01-29 22:47:25 +00:00
|
|
|
_split_container.add_child(split)
|
|
|
|
return split
|
|
|
|
|
|
|
|
|
Port to Godot 4 (#900)
* Initial conversion
* Hide some dialogs
* Update addons
* Fix errors in scripts
Temporarily commented out adding new file import types and certain Control methods that are not available in the Window class, such as get_global_mouse_position()
* Update shaders
* Fix some more errors and signals, rename "pressed" to "button_pressed"
* Even more error fixes and renaming corrections
* Fixed more errors, Pixelorama almost runs
* Update ValueSlider.gd
* Remove lock() and unlock(), more ImageTexture.create_from_image() static usage
* More static function using
* Re-add some of the dialog signals, fix window transparency
* Change instances of popup_hide to visibility_changed
* More more errors and warnings
* Fix more errors and warnings
* Get rid of errors in the output when opening Pixelorama in Godot
* Properly connect most signals without using strings
* Fix some scenes
* Don't load Main.tscn
* Emit signals directly instead of using strings
* Fix Keychain menu nodes
* Get rid of self. on most instances, as setters and getters are now always called
* Some more static typing
* Disable texture filters
* Fix zooming
* Fix int as enum warnings
* Fix tools and rename doubleclick to double_click
* Update tool scenes
* Fix tabs
* Fix create new image
* Use static typing on flood fill to speed it up
* Update static-checks.yml
* Reverts #729 for a speedup, hopefully the bug won't get re-introduced
* Fix TransparentChecker warning
* Re-add Default template
* Fix 3D cels
* Fix rotation
Project converted bug. Should be fixed by https://github.com/godotengine/godot/pull/79264
* Fix UITransparency alignment issue, thanks Variable
* Add missing OptionButton items
Hopefully that should be all of them
* Fix the appearance of CollapsibleContainer
* Change instances of world to world_3d
* Fix tool button backgrounds
* Fix Splash dialog
* Fix brush selection
* Update Main.gd
* Fix About Dialog
* Fix more zooming issues
* Fix canvas preview zooming
* Use signals for queue_redraw on project change
* Fix layer button's look
* Fix gradients
* Some gradient fixes and code cleanups, dithering is still broken
* Fix bucket
* Fix the rest of the undo_redo.add_(un)do_method() cases
* Fix guides
* Fix guide text
* Some small changes in Main
* Update Tools.gd
* Fix palette importing
* Get rid of TODOGODOT4s
* Fix the rest of the dialogs
* Update the rest of the scenes
* Fix onion skinning and frame tag dialogs
* Fix file brushes being imported twice
* Fix palette swatch crashing on double click
* Use nearest filter for some of the windows
* Remove old .tres font files
* Fix language switching
* Get rid of Keychain.action_get_first_key() on the extra shortcuts of tools
* Get rid of Keychain.MenuInputActions and directly set shortcuts to the menu items
This temporarily removes echoing support for undo and redo, this will be re-added once https://github.com/godotengine/godot/pull/36493 or https://github.com/godotengine/godot/pull/64317 is merged.
* Clean shortcut-related duplicate code in TopMenuContainer
* Remove DroidSansFallback now that system fonts can be used as fallback
* Remove 3.x settings from project.godot
* Format
* Format gdgifexporter
* Reset Keychain to its original state
* Remove textures from the dark and gray themes
* Remove all textures from the dark theme
* Better static typing in DrawingAlgos
* Use Vector2i for project size
* [Risky commit] Use Vector2i instead of Vector2 for tools
I tested it and everything seems to be working the same as before, but more testing would be appreciated.
* Format after previous commit
* Fix line angle constraint being rotated 180 degrees
This is not a regression from the previous commit(s), Godot 4 probably reversed the logic of `angle_to_point()`.
* Fix input map action not found errors when pressing Shift or Control
* Make AnimatePanel bigger, add spring interpolation
* Fix some layouts/extensions/preferences loading errors
* Fix dithering
* Update layout resources
Probably doesn't change anything at all, but I suppose it might be a good thing to do
* Small changes
* Disable filter in ResizeCanvas dialog
* Fix some preferences default button states
* Fix tile mode always having masking on
* Use integers in tile mode
* Fix checkboxes in preferences not working
* More statically typed arrays!
No need to have these # Array of X comments anymore!
* Fix "apply all" for multiple preview dialogs
* Update theme.tres
* Add HeaderSmall theme type variation
* Fix dynamics buttons
* Don't allow sub-zero zoom values
* Let zoom_out_max always remain Vector2(0.01, 0.01)
This fixes zooming on large canvases
* Bump version to v1.0-dev
* Fix ambient light not working on 3D cels
* Fix .obj loading
* Don't allow greater than max values in the zoom slider
* Set maximum zoom value to always be (500, 500)
* Set zoom slider minimum value to 1
* Some UI changes, mostly related to buttons and the timeline
* Change window titles to what they were before
* [COMPATIBILITY BROKEN WITH v0.x] Fix loading 3D cels
* Avoid changing Cel3DObject's file_path if it's the same
* Make preferences window bigger
* Fix png exporting
* Fix reference image initial size and filter setting
* Fix perspective line reverse scaling on zoom and facing 180 degrees away from cursor
* Format and some linting
* Remove most Images from the rest of the themes
* Remove all textures from all themes
* Fix drawing when the mouse gets released outside the canvas boundaries
* Format Keychain
* Implement #890
* Fix recorder
* Fix layout deletion
* Better static typing and fix empty_clicked signal-connected methods not having arguments
* Fix layout and extension directory creation if they don't already exist
* Change all instances of "HTML5" to "Web"
OS.get_name() now returns "Web" instead of "HTML5" in Godot 4
* Fix JavaScript detection
Opening files in the Web version does not yet work for some reason
* Fix formatting
* Fix lint errors
* Remove unneeded lines from rotation shaders
* Clean some rotation shader related code
* Remove ErrorManager from #891, as it's no longer needed in Godot 4
* Some docstrings
* More Vector2i and Recti replacing their float counterparts
* Remove the hardcoded shortcut from ValueSlider
Note that the brush size shortcut may not change properly because Keychain isn't updated to support Godot 4's input map properly yet.
* Fix bugs from the rebase, integer zooming is currently broken
* Format
* Fix bug where some imported images would fail to load when using smart slice
* Fix integer zooming (I think)
* Fix errors after #898
* Fix some UI issues with PreviewDialog
* Use ctrl/command instead of just ctrl in the shortcuts of the InputMap - gets rid of the need for _use_osx_shortcuts() in Main.gd
* Update Keychain and addons/README.md
* Update CI to Godot 4.1.1 (probably will not work)
* Remove XDGDataPaths.gd
* Make windows non-exclusive
* Attempt to fix macOS CI
* Attempt to fix CI
* Attempt to fix CI
* Minor fix in the dark theme, more will follow
* Silence enumerator/integer warning
* Attempt to fix macOS CI
* Another attempt to fix macOS CI
* Attempt to fix Windows & macOS CI
* fix: Recorder directory create (#903)
* Update Keychain so that the brush size shortcuts can be changed
This update generally lets users use modifier buttons (control, alt, shift, meta) with mouse buttons
* Change OSX to macOS
* Detect if multi-threading is enabled when exporting gifs
* Fix color picker not working on the top color mode
* Make some public methods private in Export.gd
* Remove Global.window_title variable
* Fix frame UI in the timeline breaking after 100 frames
* Static typing improvements for the timeline
* Better static typing for grids
* Fix typo
* Fix pixel grid not appearing
* Move preference updating code to Global using setters
This should make the code a bit more readable, as the logic for each property update can be found directly under the variable declaration, and not hidden in PreferencesDialog's preference_update() method. This also allows for changing these properties outside the preferences, if that will ever be needed. In theory it's also faster as we don't have to do all these string comparisons anymore, but I doubt this will be noticeable in practice.
* Remove RestoreDefaultButton.tscn
* Implement changing font size in the preferences
* Resize HeaderSmall font size along with the default font size
* A step towards fixing image loading in the Web version
Doesn't completely fix the issue, it requires a fix from Godot's side as well
* Implement missing input event actions for buttons
TODO: Add default shortcuts
* Do not change language and theme if they are already the defaults
Reduces the initial loading time a bit
* Remove update_hint_tooltips() as it's no longer needed, only keep it for tools
This was needed in order for hint tooltips to be successfully translated while taking the shortcuts into account. Godot 4 already it correctly for us now. Tools still need it because they contain multiple shortcut data in their tooltips.
* Change ExportDialog's PathDialog's file mode to be "open directory" and make them bigger
* Fix Vector2i + Vector2 errors in grid center snapping
* Update tooltips when the shortcut profile changes
* Fix copy-paste mistake
* Update tooltips during startup if the shortcut profile is not the default
* Fix gif warning label size in ExportDialog
* Fix BBCode in ExportDialog
* Fix some Godot 4.2 warnings
* Some CI fixes
* Static typing improvements and more inline functions
* Format
* Even more static typing, inline methods, docstrings etc
* Some more static typing improvements and inline setters
* Remove unneeded project type specifying
* Fix splash dialog error
* Fix enumerator warning
* Don't preload the font in the rules and guides
* Fix some integer division warnings
Sometimes we indeed need them to be floats
* Change some Rect2s to Rect2is
* Minor static typing improvements
* Update README, CHANGELOG, Translations
* Only load translation files when needed, reduces loading time a bit
* Update Keychain so it doesn't load languages during startup
* Lazy load all tool scenes, breaks compatibility with the extension API
Decreases initial loading time
* Format
* Very minor loading time speedups
* Remove unneeded project type specifying
* Even more static typing and docstring improvements
* Fix extension loading
* Palette docstrings
---------
Co-authored-by: ppphp <kevinniub@gmail.com>
2023-09-04 13:29:06 +00:00
|
|
|
## Helper for removing and freeing all remaining children from node
|
|
|
|
func _untrack_children_after(node: Control, idx: int) -> void:
|
2022-01-29 22:47:25 +00:00
|
|
|
for i in range(idx, node.get_child_count()):
|
Port to Godot 4 (#900)
* Initial conversion
* Hide some dialogs
* Update addons
* Fix errors in scripts
Temporarily commented out adding new file import types and certain Control methods that are not available in the Window class, such as get_global_mouse_position()
* Update shaders
* Fix some more errors and signals, rename "pressed" to "button_pressed"
* Even more error fixes and renaming corrections
* Fixed more errors, Pixelorama almost runs
* Update ValueSlider.gd
* Remove lock() and unlock(), more ImageTexture.create_from_image() static usage
* More static function using
* Re-add some of the dialog signals, fix window transparency
* Change instances of popup_hide to visibility_changed
* More more errors and warnings
* Fix more errors and warnings
* Get rid of errors in the output when opening Pixelorama in Godot
* Properly connect most signals without using strings
* Fix some scenes
* Don't load Main.tscn
* Emit signals directly instead of using strings
* Fix Keychain menu nodes
* Get rid of self. on most instances, as setters and getters are now always called
* Some more static typing
* Disable texture filters
* Fix zooming
* Fix int as enum warnings
* Fix tools and rename doubleclick to double_click
* Update tool scenes
* Fix tabs
* Fix create new image
* Use static typing on flood fill to speed it up
* Update static-checks.yml
* Reverts #729 for a speedup, hopefully the bug won't get re-introduced
* Fix TransparentChecker warning
* Re-add Default template
* Fix 3D cels
* Fix rotation
Project converted bug. Should be fixed by https://github.com/godotengine/godot/pull/79264
* Fix UITransparency alignment issue, thanks Variable
* Add missing OptionButton items
Hopefully that should be all of them
* Fix the appearance of CollapsibleContainer
* Change instances of world to world_3d
* Fix tool button backgrounds
* Fix Splash dialog
* Fix brush selection
* Update Main.gd
* Fix About Dialog
* Fix more zooming issues
* Fix canvas preview zooming
* Use signals for queue_redraw on project change
* Fix layer button's look
* Fix gradients
* Some gradient fixes and code cleanups, dithering is still broken
* Fix bucket
* Fix the rest of the undo_redo.add_(un)do_method() cases
* Fix guides
* Fix guide text
* Some small changes in Main
* Update Tools.gd
* Fix palette importing
* Get rid of TODOGODOT4s
* Fix the rest of the dialogs
* Update the rest of the scenes
* Fix onion skinning and frame tag dialogs
* Fix file brushes being imported twice
* Fix palette swatch crashing on double click
* Use nearest filter for some of the windows
* Remove old .tres font files
* Fix language switching
* Get rid of Keychain.action_get_first_key() on the extra shortcuts of tools
* Get rid of Keychain.MenuInputActions and directly set shortcuts to the menu items
This temporarily removes echoing support for undo and redo, this will be re-added once https://github.com/godotengine/godot/pull/36493 or https://github.com/godotengine/godot/pull/64317 is merged.
* Clean shortcut-related duplicate code in TopMenuContainer
* Remove DroidSansFallback now that system fonts can be used as fallback
* Remove 3.x settings from project.godot
* Format
* Format gdgifexporter
* Reset Keychain to its original state
* Remove textures from the dark and gray themes
* Remove all textures from the dark theme
* Better static typing in DrawingAlgos
* Use Vector2i for project size
* [Risky commit] Use Vector2i instead of Vector2 for tools
I tested it and everything seems to be working the same as before, but more testing would be appreciated.
* Format after previous commit
* Fix line angle constraint being rotated 180 degrees
This is not a regression from the previous commit(s), Godot 4 probably reversed the logic of `angle_to_point()`.
* Fix input map action not found errors when pressing Shift or Control
* Make AnimatePanel bigger, add spring interpolation
* Fix some layouts/extensions/preferences loading errors
* Fix dithering
* Update layout resources
Probably doesn't change anything at all, but I suppose it might be a good thing to do
* Small changes
* Disable filter in ResizeCanvas dialog
* Fix some preferences default button states
* Fix tile mode always having masking on
* Use integers in tile mode
* Fix checkboxes in preferences not working
* More statically typed arrays!
No need to have these # Array of X comments anymore!
* Fix "apply all" for multiple preview dialogs
* Update theme.tres
* Add HeaderSmall theme type variation
* Fix dynamics buttons
* Don't allow sub-zero zoom values
* Let zoom_out_max always remain Vector2(0.01, 0.01)
This fixes zooming on large canvases
* Bump version to v1.0-dev
* Fix ambient light not working on 3D cels
* Fix .obj loading
* Don't allow greater than max values in the zoom slider
* Set maximum zoom value to always be (500, 500)
* Set zoom slider minimum value to 1
* Some UI changes, mostly related to buttons and the timeline
* Change window titles to what they were before
* [COMPATIBILITY BROKEN WITH v0.x] Fix loading 3D cels
* Avoid changing Cel3DObject's file_path if it's the same
* Make preferences window bigger
* Fix png exporting
* Fix reference image initial size and filter setting
* Fix perspective line reverse scaling on zoom and facing 180 degrees away from cursor
* Format and some linting
* Remove most Images from the rest of the themes
* Remove all textures from all themes
* Fix drawing when the mouse gets released outside the canvas boundaries
* Format Keychain
* Implement #890
* Fix recorder
* Fix layout deletion
* Better static typing and fix empty_clicked signal-connected methods not having arguments
* Fix layout and extension directory creation if they don't already exist
* Change all instances of "HTML5" to "Web"
OS.get_name() now returns "Web" instead of "HTML5" in Godot 4
* Fix JavaScript detection
Opening files in the Web version does not yet work for some reason
* Fix formatting
* Fix lint errors
* Remove unneeded lines from rotation shaders
* Clean some rotation shader related code
* Remove ErrorManager from #891, as it's no longer needed in Godot 4
* Some docstrings
* More Vector2i and Recti replacing their float counterparts
* Remove the hardcoded shortcut from ValueSlider
Note that the brush size shortcut may not change properly because Keychain isn't updated to support Godot 4's input map properly yet.
* Fix bugs from the rebase, integer zooming is currently broken
* Format
* Fix bug where some imported images would fail to load when using smart slice
* Fix integer zooming (I think)
* Fix errors after #898
* Fix some UI issues with PreviewDialog
* Use ctrl/command instead of just ctrl in the shortcuts of the InputMap - gets rid of the need for _use_osx_shortcuts() in Main.gd
* Update Keychain and addons/README.md
* Update CI to Godot 4.1.1 (probably will not work)
* Remove XDGDataPaths.gd
* Make windows non-exclusive
* Attempt to fix macOS CI
* Attempt to fix CI
* Attempt to fix CI
* Minor fix in the dark theme, more will follow
* Silence enumerator/integer warning
* Attempt to fix macOS CI
* Another attempt to fix macOS CI
* Attempt to fix Windows & macOS CI
* fix: Recorder directory create (#903)
* Update Keychain so that the brush size shortcuts can be changed
This update generally lets users use modifier buttons (control, alt, shift, meta) with mouse buttons
* Change OSX to macOS
* Detect if multi-threading is enabled when exporting gifs
* Fix color picker not working on the top color mode
* Make some public methods private in Export.gd
* Remove Global.window_title variable
* Fix frame UI in the timeline breaking after 100 frames
* Static typing improvements for the timeline
* Better static typing for grids
* Fix typo
* Fix pixel grid not appearing
* Move preference updating code to Global using setters
This should make the code a bit more readable, as the logic for each property update can be found directly under the variable declaration, and not hidden in PreferencesDialog's preference_update() method. This also allows for changing these properties outside the preferences, if that will ever be needed. In theory it's also faster as we don't have to do all these string comparisons anymore, but I doubt this will be noticeable in practice.
* Remove RestoreDefaultButton.tscn
* Implement changing font size in the preferences
* Resize HeaderSmall font size along with the default font size
* A step towards fixing image loading in the Web version
Doesn't completely fix the issue, it requires a fix from Godot's side as well
* Implement missing input event actions for buttons
TODO: Add default shortcuts
* Do not change language and theme if they are already the defaults
Reduces the initial loading time a bit
* Remove update_hint_tooltips() as it's no longer needed, only keep it for tools
This was needed in order for hint tooltips to be successfully translated while taking the shortcuts into account. Godot 4 already it correctly for us now. Tools still need it because they contain multiple shortcut data in their tooltips.
* Change ExportDialog's PathDialog's file mode to be "open directory" and make them bigger
* Fix Vector2i + Vector2 errors in grid center snapping
* Update tooltips when the shortcut profile changes
* Fix copy-paste mistake
* Update tooltips during startup if the shortcut profile is not the default
* Fix gif warning label size in ExportDialog
* Fix BBCode in ExportDialog
* Fix some Godot 4.2 warnings
* Some CI fixes
* Static typing improvements and more inline functions
* Format
* Even more static typing, inline methods, docstrings etc
* Some more static typing improvements and inline setters
* Remove unneeded project type specifying
* Fix splash dialog error
* Fix enumerator warning
* Don't preload the font in the rules and guides
* Fix some integer division warnings
Sometimes we indeed need them to be floats
* Change some Rect2s to Rect2is
* Minor static typing improvements
* Update README, CHANGELOG, Translations
* Only load translation files when needed, reduces loading time a bit
* Update Keychain so it doesn't load languages during startup
* Lazy load all tool scenes, breaks compatibility with the extension API
Decreases initial loading time
* Format
* Very minor loading time speedups
* Remove unneeded project type specifying
* Even more static typing and docstring improvements
* Fix extension loading
* Palette docstrings
---------
Co-authored-by: ppphp <kevinniub@gmail.com>
2023-09-04 13:29:06 +00:00
|
|
|
var child := node.get_child(idx)
|
2022-01-29 22:47:25 +00:00
|
|
|
node.remove_child(child)
|
|
|
|
child.queue_free()
|
|
|
|
|
|
|
|
|
Port to Godot 4 (#900)
* Initial conversion
* Hide some dialogs
* Update addons
* Fix errors in scripts
Temporarily commented out adding new file import types and certain Control methods that are not available in the Window class, such as get_global_mouse_position()
* Update shaders
* Fix some more errors and signals, rename "pressed" to "button_pressed"
* Even more error fixes and renaming corrections
* Fixed more errors, Pixelorama almost runs
* Update ValueSlider.gd
* Remove lock() and unlock(), more ImageTexture.create_from_image() static usage
* More static function using
* Re-add some of the dialog signals, fix window transparency
* Change instances of popup_hide to visibility_changed
* More more errors and warnings
* Fix more errors and warnings
* Get rid of errors in the output when opening Pixelorama in Godot
* Properly connect most signals without using strings
* Fix some scenes
* Don't load Main.tscn
* Emit signals directly instead of using strings
* Fix Keychain menu nodes
* Get rid of self. on most instances, as setters and getters are now always called
* Some more static typing
* Disable texture filters
* Fix zooming
* Fix int as enum warnings
* Fix tools and rename doubleclick to double_click
* Update tool scenes
* Fix tabs
* Fix create new image
* Use static typing on flood fill to speed it up
* Update static-checks.yml
* Reverts #729 for a speedup, hopefully the bug won't get re-introduced
* Fix TransparentChecker warning
* Re-add Default template
* Fix 3D cels
* Fix rotation
Project converted bug. Should be fixed by https://github.com/godotengine/godot/pull/79264
* Fix UITransparency alignment issue, thanks Variable
* Add missing OptionButton items
Hopefully that should be all of them
* Fix the appearance of CollapsibleContainer
* Change instances of world to world_3d
* Fix tool button backgrounds
* Fix Splash dialog
* Fix brush selection
* Update Main.gd
* Fix About Dialog
* Fix more zooming issues
* Fix canvas preview zooming
* Use signals for queue_redraw on project change
* Fix layer button's look
* Fix gradients
* Some gradient fixes and code cleanups, dithering is still broken
* Fix bucket
* Fix the rest of the undo_redo.add_(un)do_method() cases
* Fix guides
* Fix guide text
* Some small changes in Main
* Update Tools.gd
* Fix palette importing
* Get rid of TODOGODOT4s
* Fix the rest of the dialogs
* Update the rest of the scenes
* Fix onion skinning and frame tag dialogs
* Fix file brushes being imported twice
* Fix palette swatch crashing on double click
* Use nearest filter for some of the windows
* Remove old .tres font files
* Fix language switching
* Get rid of Keychain.action_get_first_key() on the extra shortcuts of tools
* Get rid of Keychain.MenuInputActions and directly set shortcuts to the menu items
This temporarily removes echoing support for undo and redo, this will be re-added once https://github.com/godotengine/godot/pull/36493 or https://github.com/godotengine/godot/pull/64317 is merged.
* Clean shortcut-related duplicate code in TopMenuContainer
* Remove DroidSansFallback now that system fonts can be used as fallback
* Remove 3.x settings from project.godot
* Format
* Format gdgifexporter
* Reset Keychain to its original state
* Remove textures from the dark and gray themes
* Remove all textures from the dark theme
* Better static typing in DrawingAlgos
* Use Vector2i for project size
* [Risky commit] Use Vector2i instead of Vector2 for tools
I tested it and everything seems to be working the same as before, but more testing would be appreciated.
* Format after previous commit
* Fix line angle constraint being rotated 180 degrees
This is not a regression from the previous commit(s), Godot 4 probably reversed the logic of `angle_to_point()`.
* Fix input map action not found errors when pressing Shift or Control
* Make AnimatePanel bigger, add spring interpolation
* Fix some layouts/extensions/preferences loading errors
* Fix dithering
* Update layout resources
Probably doesn't change anything at all, but I suppose it might be a good thing to do
* Small changes
* Disable filter in ResizeCanvas dialog
* Fix some preferences default button states
* Fix tile mode always having masking on
* Use integers in tile mode
* Fix checkboxes in preferences not working
* More statically typed arrays!
No need to have these # Array of X comments anymore!
* Fix "apply all" for multiple preview dialogs
* Update theme.tres
* Add HeaderSmall theme type variation
* Fix dynamics buttons
* Don't allow sub-zero zoom values
* Let zoom_out_max always remain Vector2(0.01, 0.01)
This fixes zooming on large canvases
* Bump version to v1.0-dev
* Fix ambient light not working on 3D cels
* Fix .obj loading
* Don't allow greater than max values in the zoom slider
* Set maximum zoom value to always be (500, 500)
* Set zoom slider minimum value to 1
* Some UI changes, mostly related to buttons and the timeline
* Change window titles to what they were before
* [COMPATIBILITY BROKEN WITH v0.x] Fix loading 3D cels
* Avoid changing Cel3DObject's file_path if it's the same
* Make preferences window bigger
* Fix png exporting
* Fix reference image initial size and filter setting
* Fix perspective line reverse scaling on zoom and facing 180 degrees away from cursor
* Format and some linting
* Remove most Images from the rest of the themes
* Remove all textures from all themes
* Fix drawing when the mouse gets released outside the canvas boundaries
* Format Keychain
* Implement #890
* Fix recorder
* Fix layout deletion
* Better static typing and fix empty_clicked signal-connected methods not having arguments
* Fix layout and extension directory creation if they don't already exist
* Change all instances of "HTML5" to "Web"
OS.get_name() now returns "Web" instead of "HTML5" in Godot 4
* Fix JavaScript detection
Opening files in the Web version does not yet work for some reason
* Fix formatting
* Fix lint errors
* Remove unneeded lines from rotation shaders
* Clean some rotation shader related code
* Remove ErrorManager from #891, as it's no longer needed in Godot 4
* Some docstrings
* More Vector2i and Recti replacing their float counterparts
* Remove the hardcoded shortcut from ValueSlider
Note that the brush size shortcut may not change properly because Keychain isn't updated to support Godot 4's input map properly yet.
* Fix bugs from the rebase, integer zooming is currently broken
* Format
* Fix bug where some imported images would fail to load when using smart slice
* Fix integer zooming (I think)
* Fix errors after #898
* Fix some UI issues with PreviewDialog
* Use ctrl/command instead of just ctrl in the shortcuts of the InputMap - gets rid of the need for _use_osx_shortcuts() in Main.gd
* Update Keychain and addons/README.md
* Update CI to Godot 4.1.1 (probably will not work)
* Remove XDGDataPaths.gd
* Make windows non-exclusive
* Attempt to fix macOS CI
* Attempt to fix CI
* Attempt to fix CI
* Minor fix in the dark theme, more will follow
* Silence enumerator/integer warning
* Attempt to fix macOS CI
* Another attempt to fix macOS CI
* Attempt to fix Windows & macOS CI
* fix: Recorder directory create (#903)
* Update Keychain so that the brush size shortcuts can be changed
This update generally lets users use modifier buttons (control, alt, shift, meta) with mouse buttons
* Change OSX to macOS
* Detect if multi-threading is enabled when exporting gifs
* Fix color picker not working on the top color mode
* Make some public methods private in Export.gd
* Remove Global.window_title variable
* Fix frame UI in the timeline breaking after 100 frames
* Static typing improvements for the timeline
* Better static typing for grids
* Fix typo
* Fix pixel grid not appearing
* Move preference updating code to Global using setters
This should make the code a bit more readable, as the logic for each property update can be found directly under the variable declaration, and not hidden in PreferencesDialog's preference_update() method. This also allows for changing these properties outside the preferences, if that will ever be needed. In theory it's also faster as we don't have to do all these string comparisons anymore, but I doubt this will be noticeable in practice.
* Remove RestoreDefaultButton.tscn
* Implement changing font size in the preferences
* Resize HeaderSmall font size along with the default font size
* A step towards fixing image loading in the Web version
Doesn't completely fix the issue, it requires a fix from Godot's side as well
* Implement missing input event actions for buttons
TODO: Add default shortcuts
* Do not change language and theme if they are already the defaults
Reduces the initial loading time a bit
* Remove update_hint_tooltips() as it's no longer needed, only keep it for tools
This was needed in order for hint tooltips to be successfully translated while taking the shortcuts into account. Godot 4 already it correctly for us now. Tools still need it because they contain multiple shortcut data in their tooltips.
* Change ExportDialog's PathDialog's file mode to be "open directory" and make them bigger
* Fix Vector2i + Vector2 errors in grid center snapping
* Update tooltips when the shortcut profile changes
* Fix copy-paste mistake
* Update tooltips during startup if the shortcut profile is not the default
* Fix gif warning label size in ExportDialog
* Fix BBCode in ExportDialog
* Fix some Godot 4.2 warnings
* Some CI fixes
* Static typing improvements and more inline functions
* Format
* Even more static typing, inline methods, docstrings etc
* Some more static typing improvements and inline setters
* Remove unneeded project type specifying
* Fix splash dialog error
* Fix enumerator warning
* Don't preload the font in the rules and guides
* Fix some integer division warnings
Sometimes we indeed need them to be floats
* Change some Rect2s to Rect2is
* Minor static typing improvements
* Update README, CHANGELOG, Translations
* Only load translation files when needed, reduces loading time a bit
* Update Keychain so it doesn't load languages during startup
* Lazy load all tool scenes, breaks compatibility with the extension API
Decreases initial loading time
* Format
* Very minor loading time speedups
* Remove unneeded project type specifying
* Even more static typing and docstring improvements
* Fix extension loading
* Palette docstrings
---------
Co-authored-by: ppphp <kevinniub@gmail.com>
2023-09-04 13:29:06 +00:00
|
|
|
## Handler for `DockablePanel.tab_layout_changed`, update its DockableLayoutPanel
|
2022-01-29 22:47:25 +00:00
|
|
|
func _on_panel_tab_layout_changed(tab: int, panel: DockablePanel) -> void:
|
|
|
|
_layout_dirty = true
|
Port to Godot 4 (#900)
* Initial conversion
* Hide some dialogs
* Update addons
* Fix errors in scripts
Temporarily commented out adding new file import types and certain Control methods that are not available in the Window class, such as get_global_mouse_position()
* Update shaders
* Fix some more errors and signals, rename "pressed" to "button_pressed"
* Even more error fixes and renaming corrections
* Fixed more errors, Pixelorama almost runs
* Update ValueSlider.gd
* Remove lock() and unlock(), more ImageTexture.create_from_image() static usage
* More static function using
* Re-add some of the dialog signals, fix window transparency
* Change instances of popup_hide to visibility_changed
* More more errors and warnings
* Fix more errors and warnings
* Get rid of errors in the output when opening Pixelorama in Godot
* Properly connect most signals without using strings
* Fix some scenes
* Don't load Main.tscn
* Emit signals directly instead of using strings
* Fix Keychain menu nodes
* Get rid of self. on most instances, as setters and getters are now always called
* Some more static typing
* Disable texture filters
* Fix zooming
* Fix int as enum warnings
* Fix tools and rename doubleclick to double_click
* Update tool scenes
* Fix tabs
* Fix create new image
* Use static typing on flood fill to speed it up
* Update static-checks.yml
* Reverts #729 for a speedup, hopefully the bug won't get re-introduced
* Fix TransparentChecker warning
* Re-add Default template
* Fix 3D cels
* Fix rotation
Project converted bug. Should be fixed by https://github.com/godotengine/godot/pull/79264
* Fix UITransparency alignment issue, thanks Variable
* Add missing OptionButton items
Hopefully that should be all of them
* Fix the appearance of CollapsibleContainer
* Change instances of world to world_3d
* Fix tool button backgrounds
* Fix Splash dialog
* Fix brush selection
* Update Main.gd
* Fix About Dialog
* Fix more zooming issues
* Fix canvas preview zooming
* Use signals for queue_redraw on project change
* Fix layer button's look
* Fix gradients
* Some gradient fixes and code cleanups, dithering is still broken
* Fix bucket
* Fix the rest of the undo_redo.add_(un)do_method() cases
* Fix guides
* Fix guide text
* Some small changes in Main
* Update Tools.gd
* Fix palette importing
* Get rid of TODOGODOT4s
* Fix the rest of the dialogs
* Update the rest of the scenes
* Fix onion skinning and frame tag dialogs
* Fix file brushes being imported twice
* Fix palette swatch crashing on double click
* Use nearest filter for some of the windows
* Remove old .tres font files
* Fix language switching
* Get rid of Keychain.action_get_first_key() on the extra shortcuts of tools
* Get rid of Keychain.MenuInputActions and directly set shortcuts to the menu items
This temporarily removes echoing support for undo and redo, this will be re-added once https://github.com/godotengine/godot/pull/36493 or https://github.com/godotengine/godot/pull/64317 is merged.
* Clean shortcut-related duplicate code in TopMenuContainer
* Remove DroidSansFallback now that system fonts can be used as fallback
* Remove 3.x settings from project.godot
* Format
* Format gdgifexporter
* Reset Keychain to its original state
* Remove textures from the dark and gray themes
* Remove all textures from the dark theme
* Better static typing in DrawingAlgos
* Use Vector2i for project size
* [Risky commit] Use Vector2i instead of Vector2 for tools
I tested it and everything seems to be working the same as before, but more testing would be appreciated.
* Format after previous commit
* Fix line angle constraint being rotated 180 degrees
This is not a regression from the previous commit(s), Godot 4 probably reversed the logic of `angle_to_point()`.
* Fix input map action not found errors when pressing Shift or Control
* Make AnimatePanel bigger, add spring interpolation
* Fix some layouts/extensions/preferences loading errors
* Fix dithering
* Update layout resources
Probably doesn't change anything at all, but I suppose it might be a good thing to do
* Small changes
* Disable filter in ResizeCanvas dialog
* Fix some preferences default button states
* Fix tile mode always having masking on
* Use integers in tile mode
* Fix checkboxes in preferences not working
* More statically typed arrays!
No need to have these # Array of X comments anymore!
* Fix "apply all" for multiple preview dialogs
* Update theme.tres
* Add HeaderSmall theme type variation
* Fix dynamics buttons
* Don't allow sub-zero zoom values
* Let zoom_out_max always remain Vector2(0.01, 0.01)
This fixes zooming on large canvases
* Bump version to v1.0-dev
* Fix ambient light not working on 3D cels
* Fix .obj loading
* Don't allow greater than max values in the zoom slider
* Set maximum zoom value to always be (500, 500)
* Set zoom slider minimum value to 1
* Some UI changes, mostly related to buttons and the timeline
* Change window titles to what they were before
* [COMPATIBILITY BROKEN WITH v0.x] Fix loading 3D cels
* Avoid changing Cel3DObject's file_path if it's the same
* Make preferences window bigger
* Fix png exporting
* Fix reference image initial size and filter setting
* Fix perspective line reverse scaling on zoom and facing 180 degrees away from cursor
* Format and some linting
* Remove most Images from the rest of the themes
* Remove all textures from all themes
* Fix drawing when the mouse gets released outside the canvas boundaries
* Format Keychain
* Implement #890
* Fix recorder
* Fix layout deletion
* Better static typing and fix empty_clicked signal-connected methods not having arguments
* Fix layout and extension directory creation if they don't already exist
* Change all instances of "HTML5" to "Web"
OS.get_name() now returns "Web" instead of "HTML5" in Godot 4
* Fix JavaScript detection
Opening files in the Web version does not yet work for some reason
* Fix formatting
* Fix lint errors
* Remove unneeded lines from rotation shaders
* Clean some rotation shader related code
* Remove ErrorManager from #891, as it's no longer needed in Godot 4
* Some docstrings
* More Vector2i and Recti replacing their float counterparts
* Remove the hardcoded shortcut from ValueSlider
Note that the brush size shortcut may not change properly because Keychain isn't updated to support Godot 4's input map properly yet.
* Fix bugs from the rebase, integer zooming is currently broken
* Format
* Fix bug where some imported images would fail to load when using smart slice
* Fix integer zooming (I think)
* Fix errors after #898
* Fix some UI issues with PreviewDialog
* Use ctrl/command instead of just ctrl in the shortcuts of the InputMap - gets rid of the need for _use_osx_shortcuts() in Main.gd
* Update Keychain and addons/README.md
* Update CI to Godot 4.1.1 (probably will not work)
* Remove XDGDataPaths.gd
* Make windows non-exclusive
* Attempt to fix macOS CI
* Attempt to fix CI
* Attempt to fix CI
* Minor fix in the dark theme, more will follow
* Silence enumerator/integer warning
* Attempt to fix macOS CI
* Another attempt to fix macOS CI
* Attempt to fix Windows & macOS CI
* fix: Recorder directory create (#903)
* Update Keychain so that the brush size shortcuts can be changed
This update generally lets users use modifier buttons (control, alt, shift, meta) with mouse buttons
* Change OSX to macOS
* Detect if multi-threading is enabled when exporting gifs
* Fix color picker not working on the top color mode
* Make some public methods private in Export.gd
* Remove Global.window_title variable
* Fix frame UI in the timeline breaking after 100 frames
* Static typing improvements for the timeline
* Better static typing for grids
* Fix typo
* Fix pixel grid not appearing
* Move preference updating code to Global using setters
This should make the code a bit more readable, as the logic for each property update can be found directly under the variable declaration, and not hidden in PreferencesDialog's preference_update() method. This also allows for changing these properties outside the preferences, if that will ever be needed. In theory it's also faster as we don't have to do all these string comparisons anymore, but I doubt this will be noticeable in practice.
* Remove RestoreDefaultButton.tscn
* Implement changing font size in the preferences
* Resize HeaderSmall font size along with the default font size
* A step towards fixing image loading in the Web version
Doesn't completely fix the issue, it requires a fix from Godot's side as well
* Implement missing input event actions for buttons
TODO: Add default shortcuts
* Do not change language and theme if they are already the defaults
Reduces the initial loading time a bit
* Remove update_hint_tooltips() as it's no longer needed, only keep it for tools
This was needed in order for hint tooltips to be successfully translated while taking the shortcuts into account. Godot 4 already it correctly for us now. Tools still need it because they contain multiple shortcut data in their tooltips.
* Change ExportDialog's PathDialog's file mode to be "open directory" and make them bigger
* Fix Vector2i + Vector2 errors in grid center snapping
* Update tooltips when the shortcut profile changes
* Fix copy-paste mistake
* Update tooltips during startup if the shortcut profile is not the default
* Fix gif warning label size in ExportDialog
* Fix BBCode in ExportDialog
* Fix some Godot 4.2 warnings
* Some CI fixes
* Static typing improvements and more inline functions
* Format
* Even more static typing, inline methods, docstrings etc
* Some more static typing improvements and inline setters
* Remove unneeded project type specifying
* Fix splash dialog error
* Fix enumerator warning
* Don't preload the font in the rules and guides
* Fix some integer division warnings
Sometimes we indeed need them to be floats
* Change some Rect2s to Rect2is
* Minor static typing improvements
* Update README, CHANGELOG, Translations
* Only load translation files when needed, reduces loading time a bit
* Update Keychain so it doesn't load languages during startup
* Lazy load all tool scenes, breaks compatibility with the extension API
Decreases initial loading time
* Format
* Very minor loading time speedups
* Remove unneeded project type specifying
* Even more static typing and docstring improvements
* Fix extension loading
* Palette docstrings
---------
Co-authored-by: ppphp <kevinniub@gmail.com>
2023-09-04 13:29:06 +00:00
|
|
|
var control := panel.get_tab_control(tab)
|
|
|
|
if control is DockableReferenceControl:
|
2022-11-09 13:09:14 +00:00
|
|
|
control = control.reference_to
|
|
|
|
if not _is_managed_node(control):
|
|
|
|
control.get_parent().remove_child(control)
|
|
|
|
add_child(control)
|
|
|
|
_layout.move_node_to_leaf(control, panel.leaf, tab)
|
2022-01-29 22:47:25 +00:00
|
|
|
queue_sort()
|
|
|
|
|
|
|
|
|
Port to Godot 4 (#900)
* Initial conversion
* Hide some dialogs
* Update addons
* Fix errors in scripts
Temporarily commented out adding new file import types and certain Control methods that are not available in the Window class, such as get_global_mouse_position()
* Update shaders
* Fix some more errors and signals, rename "pressed" to "button_pressed"
* Even more error fixes and renaming corrections
* Fixed more errors, Pixelorama almost runs
* Update ValueSlider.gd
* Remove lock() and unlock(), more ImageTexture.create_from_image() static usage
* More static function using
* Re-add some of the dialog signals, fix window transparency
* Change instances of popup_hide to visibility_changed
* More more errors and warnings
* Fix more errors and warnings
* Get rid of errors in the output when opening Pixelorama in Godot
* Properly connect most signals without using strings
* Fix some scenes
* Don't load Main.tscn
* Emit signals directly instead of using strings
* Fix Keychain menu nodes
* Get rid of self. on most instances, as setters and getters are now always called
* Some more static typing
* Disable texture filters
* Fix zooming
* Fix int as enum warnings
* Fix tools and rename doubleclick to double_click
* Update tool scenes
* Fix tabs
* Fix create new image
* Use static typing on flood fill to speed it up
* Update static-checks.yml
* Reverts #729 for a speedup, hopefully the bug won't get re-introduced
* Fix TransparentChecker warning
* Re-add Default template
* Fix 3D cels
* Fix rotation
Project converted bug. Should be fixed by https://github.com/godotengine/godot/pull/79264
* Fix UITransparency alignment issue, thanks Variable
* Add missing OptionButton items
Hopefully that should be all of them
* Fix the appearance of CollapsibleContainer
* Change instances of world to world_3d
* Fix tool button backgrounds
* Fix Splash dialog
* Fix brush selection
* Update Main.gd
* Fix About Dialog
* Fix more zooming issues
* Fix canvas preview zooming
* Use signals for queue_redraw on project change
* Fix layer button's look
* Fix gradients
* Some gradient fixes and code cleanups, dithering is still broken
* Fix bucket
* Fix the rest of the undo_redo.add_(un)do_method() cases
* Fix guides
* Fix guide text
* Some small changes in Main
* Update Tools.gd
* Fix palette importing
* Get rid of TODOGODOT4s
* Fix the rest of the dialogs
* Update the rest of the scenes
* Fix onion skinning and frame tag dialogs
* Fix file brushes being imported twice
* Fix palette swatch crashing on double click
* Use nearest filter for some of the windows
* Remove old .tres font files
* Fix language switching
* Get rid of Keychain.action_get_first_key() on the extra shortcuts of tools
* Get rid of Keychain.MenuInputActions and directly set shortcuts to the menu items
This temporarily removes echoing support for undo and redo, this will be re-added once https://github.com/godotengine/godot/pull/36493 or https://github.com/godotengine/godot/pull/64317 is merged.
* Clean shortcut-related duplicate code in TopMenuContainer
* Remove DroidSansFallback now that system fonts can be used as fallback
* Remove 3.x settings from project.godot
* Format
* Format gdgifexporter
* Reset Keychain to its original state
* Remove textures from the dark and gray themes
* Remove all textures from the dark theme
* Better static typing in DrawingAlgos
* Use Vector2i for project size
* [Risky commit] Use Vector2i instead of Vector2 for tools
I tested it and everything seems to be working the same as before, but more testing would be appreciated.
* Format after previous commit
* Fix line angle constraint being rotated 180 degrees
This is not a regression from the previous commit(s), Godot 4 probably reversed the logic of `angle_to_point()`.
* Fix input map action not found errors when pressing Shift or Control
* Make AnimatePanel bigger, add spring interpolation
* Fix some layouts/extensions/preferences loading errors
* Fix dithering
* Update layout resources
Probably doesn't change anything at all, but I suppose it might be a good thing to do
* Small changes
* Disable filter in ResizeCanvas dialog
* Fix some preferences default button states
* Fix tile mode always having masking on
* Use integers in tile mode
* Fix checkboxes in preferences not working
* More statically typed arrays!
No need to have these # Array of X comments anymore!
* Fix "apply all" for multiple preview dialogs
* Update theme.tres
* Add HeaderSmall theme type variation
* Fix dynamics buttons
* Don't allow sub-zero zoom values
* Let zoom_out_max always remain Vector2(0.01, 0.01)
This fixes zooming on large canvases
* Bump version to v1.0-dev
* Fix ambient light not working on 3D cels
* Fix .obj loading
* Don't allow greater than max values in the zoom slider
* Set maximum zoom value to always be (500, 500)
* Set zoom slider minimum value to 1
* Some UI changes, mostly related to buttons and the timeline
* Change window titles to what they were before
* [COMPATIBILITY BROKEN WITH v0.x] Fix loading 3D cels
* Avoid changing Cel3DObject's file_path if it's the same
* Make preferences window bigger
* Fix png exporting
* Fix reference image initial size and filter setting
* Fix perspective line reverse scaling on zoom and facing 180 degrees away from cursor
* Format and some linting
* Remove most Images from the rest of the themes
* Remove all textures from all themes
* Fix drawing when the mouse gets released outside the canvas boundaries
* Format Keychain
* Implement #890
* Fix recorder
* Fix layout deletion
* Better static typing and fix empty_clicked signal-connected methods not having arguments
* Fix layout and extension directory creation if they don't already exist
* Change all instances of "HTML5" to "Web"
OS.get_name() now returns "Web" instead of "HTML5" in Godot 4
* Fix JavaScript detection
Opening files in the Web version does not yet work for some reason
* Fix formatting
* Fix lint errors
* Remove unneeded lines from rotation shaders
* Clean some rotation shader related code
* Remove ErrorManager from #891, as it's no longer needed in Godot 4
* Some docstrings
* More Vector2i and Recti replacing their float counterparts
* Remove the hardcoded shortcut from ValueSlider
Note that the brush size shortcut may not change properly because Keychain isn't updated to support Godot 4's input map properly yet.
* Fix bugs from the rebase, integer zooming is currently broken
* Format
* Fix bug where some imported images would fail to load when using smart slice
* Fix integer zooming (I think)
* Fix errors after #898
* Fix some UI issues with PreviewDialog
* Use ctrl/command instead of just ctrl in the shortcuts of the InputMap - gets rid of the need for _use_osx_shortcuts() in Main.gd
* Update Keychain and addons/README.md
* Update CI to Godot 4.1.1 (probably will not work)
* Remove XDGDataPaths.gd
* Make windows non-exclusive
* Attempt to fix macOS CI
* Attempt to fix CI
* Attempt to fix CI
* Minor fix in the dark theme, more will follow
* Silence enumerator/integer warning
* Attempt to fix macOS CI
* Another attempt to fix macOS CI
* Attempt to fix Windows & macOS CI
* fix: Recorder directory create (#903)
* Update Keychain so that the brush size shortcuts can be changed
This update generally lets users use modifier buttons (control, alt, shift, meta) with mouse buttons
* Change OSX to macOS
* Detect if multi-threading is enabled when exporting gifs
* Fix color picker not working on the top color mode
* Make some public methods private in Export.gd
* Remove Global.window_title variable
* Fix frame UI in the timeline breaking after 100 frames
* Static typing improvements for the timeline
* Better static typing for grids
* Fix typo
* Fix pixel grid not appearing
* Move preference updating code to Global using setters
This should make the code a bit more readable, as the logic for each property update can be found directly under the variable declaration, and not hidden in PreferencesDialog's preference_update() method. This also allows for changing these properties outside the preferences, if that will ever be needed. In theory it's also faster as we don't have to do all these string comparisons anymore, but I doubt this will be noticeable in practice.
* Remove RestoreDefaultButton.tscn
* Implement changing font size in the preferences
* Resize HeaderSmall font size along with the default font size
* A step towards fixing image loading in the Web version
Doesn't completely fix the issue, it requires a fix from Godot's side as well
* Implement missing input event actions for buttons
TODO: Add default shortcuts
* Do not change language and theme if they are already the defaults
Reduces the initial loading time a bit
* Remove update_hint_tooltips() as it's no longer needed, only keep it for tools
This was needed in order for hint tooltips to be successfully translated while taking the shortcuts into account. Godot 4 already it correctly for us now. Tools still need it because they contain multiple shortcut data in their tooltips.
* Change ExportDialog's PathDialog's file mode to be "open directory" and make them bigger
* Fix Vector2i + Vector2 errors in grid center snapping
* Update tooltips when the shortcut profile changes
* Fix copy-paste mistake
* Update tooltips during startup if the shortcut profile is not the default
* Fix gif warning label size in ExportDialog
* Fix BBCode in ExportDialog
* Fix some Godot 4.2 warnings
* Some CI fixes
* Static typing improvements and more inline functions
* Format
* Even more static typing, inline methods, docstrings etc
* Some more static typing improvements and inline setters
* Remove unneeded project type specifying
* Fix splash dialog error
* Fix enumerator warning
* Don't preload the font in the rules and guides
* Fix some integer division warnings
Sometimes we indeed need them to be floats
* Change some Rect2s to Rect2is
* Minor static typing improvements
* Update README, CHANGELOG, Translations
* Only load translation files when needed, reduces loading time a bit
* Update Keychain so it doesn't load languages during startup
* Lazy load all tool scenes, breaks compatibility with the extension API
Decreases initial loading time
* Format
* Very minor loading time speedups
* Remove unneeded project type specifying
* Even more static typing and docstring improvements
* Fix extension loading
* Palette docstrings
---------
Co-authored-by: ppphp <kevinniub@gmail.com>
2023-09-04 13:29:06 +00:00
|
|
|
## Handler for `Node.renamed` signal, updates tracked name for node
|
2022-01-29 22:47:25 +00:00
|
|
|
func _on_child_renamed(child: Node) -> void:
|
Port to Godot 4 (#900)
* Initial conversion
* Hide some dialogs
* Update addons
* Fix errors in scripts
Temporarily commented out adding new file import types and certain Control methods that are not available in the Window class, such as get_global_mouse_position()
* Update shaders
* Fix some more errors and signals, rename "pressed" to "button_pressed"
* Even more error fixes and renaming corrections
* Fixed more errors, Pixelorama almost runs
* Update ValueSlider.gd
* Remove lock() and unlock(), more ImageTexture.create_from_image() static usage
* More static function using
* Re-add some of the dialog signals, fix window transparency
* Change instances of popup_hide to visibility_changed
* More more errors and warnings
* Fix more errors and warnings
* Get rid of errors in the output when opening Pixelorama in Godot
* Properly connect most signals without using strings
* Fix some scenes
* Don't load Main.tscn
* Emit signals directly instead of using strings
* Fix Keychain menu nodes
* Get rid of self. on most instances, as setters and getters are now always called
* Some more static typing
* Disable texture filters
* Fix zooming
* Fix int as enum warnings
* Fix tools and rename doubleclick to double_click
* Update tool scenes
* Fix tabs
* Fix create new image
* Use static typing on flood fill to speed it up
* Update static-checks.yml
* Reverts #729 for a speedup, hopefully the bug won't get re-introduced
* Fix TransparentChecker warning
* Re-add Default template
* Fix 3D cels
* Fix rotation
Project converted bug. Should be fixed by https://github.com/godotengine/godot/pull/79264
* Fix UITransparency alignment issue, thanks Variable
* Add missing OptionButton items
Hopefully that should be all of them
* Fix the appearance of CollapsibleContainer
* Change instances of world to world_3d
* Fix tool button backgrounds
* Fix Splash dialog
* Fix brush selection
* Update Main.gd
* Fix About Dialog
* Fix more zooming issues
* Fix canvas preview zooming
* Use signals for queue_redraw on project change
* Fix layer button's look
* Fix gradients
* Some gradient fixes and code cleanups, dithering is still broken
* Fix bucket
* Fix the rest of the undo_redo.add_(un)do_method() cases
* Fix guides
* Fix guide text
* Some small changes in Main
* Update Tools.gd
* Fix palette importing
* Get rid of TODOGODOT4s
* Fix the rest of the dialogs
* Update the rest of the scenes
* Fix onion skinning and frame tag dialogs
* Fix file brushes being imported twice
* Fix palette swatch crashing on double click
* Use nearest filter for some of the windows
* Remove old .tres font files
* Fix language switching
* Get rid of Keychain.action_get_first_key() on the extra shortcuts of tools
* Get rid of Keychain.MenuInputActions and directly set shortcuts to the menu items
This temporarily removes echoing support for undo and redo, this will be re-added once https://github.com/godotengine/godot/pull/36493 or https://github.com/godotengine/godot/pull/64317 is merged.
* Clean shortcut-related duplicate code in TopMenuContainer
* Remove DroidSansFallback now that system fonts can be used as fallback
* Remove 3.x settings from project.godot
* Format
* Format gdgifexporter
* Reset Keychain to its original state
* Remove textures from the dark and gray themes
* Remove all textures from the dark theme
* Better static typing in DrawingAlgos
* Use Vector2i for project size
* [Risky commit] Use Vector2i instead of Vector2 for tools
I tested it and everything seems to be working the same as before, but more testing would be appreciated.
* Format after previous commit
* Fix line angle constraint being rotated 180 degrees
This is not a regression from the previous commit(s), Godot 4 probably reversed the logic of `angle_to_point()`.
* Fix input map action not found errors when pressing Shift or Control
* Make AnimatePanel bigger, add spring interpolation
* Fix some layouts/extensions/preferences loading errors
* Fix dithering
* Update layout resources
Probably doesn't change anything at all, but I suppose it might be a good thing to do
* Small changes
* Disable filter in ResizeCanvas dialog
* Fix some preferences default button states
* Fix tile mode always having masking on
* Use integers in tile mode
* Fix checkboxes in preferences not working
* More statically typed arrays!
No need to have these # Array of X comments anymore!
* Fix "apply all" for multiple preview dialogs
* Update theme.tres
* Add HeaderSmall theme type variation
* Fix dynamics buttons
* Don't allow sub-zero zoom values
* Let zoom_out_max always remain Vector2(0.01, 0.01)
This fixes zooming on large canvases
* Bump version to v1.0-dev
* Fix ambient light not working on 3D cels
* Fix .obj loading
* Don't allow greater than max values in the zoom slider
* Set maximum zoom value to always be (500, 500)
* Set zoom slider minimum value to 1
* Some UI changes, mostly related to buttons and the timeline
* Change window titles to what they were before
* [COMPATIBILITY BROKEN WITH v0.x] Fix loading 3D cels
* Avoid changing Cel3DObject's file_path if it's the same
* Make preferences window bigger
* Fix png exporting
* Fix reference image initial size and filter setting
* Fix perspective line reverse scaling on zoom and facing 180 degrees away from cursor
* Format and some linting
* Remove most Images from the rest of the themes
* Remove all textures from all themes
* Fix drawing when the mouse gets released outside the canvas boundaries
* Format Keychain
* Implement #890
* Fix recorder
* Fix layout deletion
* Better static typing and fix empty_clicked signal-connected methods not having arguments
* Fix layout and extension directory creation if they don't already exist
* Change all instances of "HTML5" to "Web"
OS.get_name() now returns "Web" instead of "HTML5" in Godot 4
* Fix JavaScript detection
Opening files in the Web version does not yet work for some reason
* Fix formatting
* Fix lint errors
* Remove unneeded lines from rotation shaders
* Clean some rotation shader related code
* Remove ErrorManager from #891, as it's no longer needed in Godot 4
* Some docstrings
* More Vector2i and Recti replacing their float counterparts
* Remove the hardcoded shortcut from ValueSlider
Note that the brush size shortcut may not change properly because Keychain isn't updated to support Godot 4's input map properly yet.
* Fix bugs from the rebase, integer zooming is currently broken
* Format
* Fix bug where some imported images would fail to load when using smart slice
* Fix integer zooming (I think)
* Fix errors after #898
* Fix some UI issues with PreviewDialog
* Use ctrl/command instead of just ctrl in the shortcuts of the InputMap - gets rid of the need for _use_osx_shortcuts() in Main.gd
* Update Keychain and addons/README.md
* Update CI to Godot 4.1.1 (probably will not work)
* Remove XDGDataPaths.gd
* Make windows non-exclusive
* Attempt to fix macOS CI
* Attempt to fix CI
* Attempt to fix CI
* Minor fix in the dark theme, more will follow
* Silence enumerator/integer warning
* Attempt to fix macOS CI
* Another attempt to fix macOS CI
* Attempt to fix Windows & macOS CI
* fix: Recorder directory create (#903)
* Update Keychain so that the brush size shortcuts can be changed
This update generally lets users use modifier buttons (control, alt, shift, meta) with mouse buttons
* Change OSX to macOS
* Detect if multi-threading is enabled when exporting gifs
* Fix color picker not working on the top color mode
* Make some public methods private in Export.gd
* Remove Global.window_title variable
* Fix frame UI in the timeline breaking after 100 frames
* Static typing improvements for the timeline
* Better static typing for grids
* Fix typo
* Fix pixel grid not appearing
* Move preference updating code to Global using setters
This should make the code a bit more readable, as the logic for each property update can be found directly under the variable declaration, and not hidden in PreferencesDialog's preference_update() method. This also allows for changing these properties outside the preferences, if that will ever be needed. In theory it's also faster as we don't have to do all these string comparisons anymore, but I doubt this will be noticeable in practice.
* Remove RestoreDefaultButton.tscn
* Implement changing font size in the preferences
* Resize HeaderSmall font size along with the default font size
* A step towards fixing image loading in the Web version
Doesn't completely fix the issue, it requires a fix from Godot's side as well
* Implement missing input event actions for buttons
TODO: Add default shortcuts
* Do not change language and theme if they are already the defaults
Reduces the initial loading time a bit
* Remove update_hint_tooltips() as it's no longer needed, only keep it for tools
This was needed in order for hint tooltips to be successfully translated while taking the shortcuts into account. Godot 4 already it correctly for us now. Tools still need it because they contain multiple shortcut data in their tooltips.
* Change ExportDialog's PathDialog's file mode to be "open directory" and make them bigger
* Fix Vector2i + Vector2 errors in grid center snapping
* Update tooltips when the shortcut profile changes
* Fix copy-paste mistake
* Update tooltips during startup if the shortcut profile is not the default
* Fix gif warning label size in ExportDialog
* Fix BBCode in ExportDialog
* Fix some Godot 4.2 warnings
* Some CI fixes
* Static typing improvements and more inline functions
* Format
* Even more static typing, inline methods, docstrings etc
* Some more static typing improvements and inline setters
* Remove unneeded project type specifying
* Fix splash dialog error
* Fix enumerator warning
* Don't preload the font in the rules and guides
* Fix some integer division warnings
Sometimes we indeed need them to be floats
* Change some Rect2s to Rect2is
* Minor static typing improvements
* Update README, CHANGELOG, Translations
* Only load translation files when needed, reduces loading time a bit
* Update Keychain so it doesn't load languages during startup
* Lazy load all tool scenes, breaks compatibility with the extension API
Decreases initial loading time
* Format
* Very minor loading time speedups
* Remove unneeded project type specifying
* Even more static typing and docstring improvements
* Fix extension loading
* Palette docstrings
---------
Co-authored-by: ppphp <kevinniub@gmail.com>
2023-09-04 13:29:06 +00:00
|
|
|
var old_name: String = _children_names.get(child)
|
|
|
|
if old_name == str(child.name):
|
2022-01-29 22:47:25 +00:00
|
|
|
return
|
|
|
|
_children_names.erase(old_name)
|
|
|
|
_children_names[child] = child.name
|
|
|
|
_children_names[child.name] = child
|
|
|
|
_layout.rename_node(old_name, child.name)
|