Rafał Mikrut
504bc5cc67
Fix crashes in *_input functions
2021-04-05 08:52:21 +02:00
Aaron Franke
10d7fccb54
Rename ButtonList enum and members to MouseButton
2021-03-23 07:13:23 -04:00
Dominik 'dreamsComeTrue' Jasiński
a99a671034
Reset ruler tool when switching tools with shortcuts
...
Fixes : #37056
2021-03-15 00:28:52 +01:00
Rafał Mikrut
f81ecb498b
Fix crashes when manipulating nodes in editor
2021-03-07 15:14:24 +01:00
Rémi Verschelde
ec7053259b
Merge pull request #41437 from KoBeWi/put_it_here
...
Allow to create a node at specific position
2021-03-01 15:48:53 +01:00
Tomasz Chabora
8df22a03c4
Allow to create a node at specific position
2021-02-26 14:40:28 +01:00
Vedat Günel
929da94e2c
Add outline to dragged guide text
2021-02-26 03:12:50 +03:00
hilfazer
442e550114
Prevent selecting hidden nodes in 3D and Canvas Item editors
2021-02-21 11:58:31 +01:00
Rémi Verschelde
d2e1216504
Merge pull request #37547 from aaronfranke/tau
...
Use Math_TAU and deg2rad/etc in more places and optimize code
2021-02-01 20:55:25 +01:00
Marcel Admiraal
8eb39f4e8b
Change themes *_color_* to *_*_color
...
Changed:
font_color_accel -> font_accelerator_color
font_color_bg -> font_unselected_color
font_color_disabled -> font_disabled_color
font_color_fg -> font_selected_color
font_color_hover -> font_hover_color
font_color_hover_pressed -> font_hover_pressed_color
font_color_pressed -> font_pressed_color
font_color_readonly -> font_readonly_color
font_color_selected -> font_selected_color
font_color_shadow -> font_shadow_color
font_color_uneditable -> font_uneditable_color
icon_color_disabled -> icon_disabled_color
icon_color_hover -> icon_hover_color
icon_color_hover_pressed -> icon_hover_pressed_color
icon_color_normal -> icon_normal_color
icon_color_pressed -> icon_pressed_color
Also includes:
font_outline_modulate -> font_outline_color
tab_fg -> tab_selected
tab_bg -> tab_unselected
2021-01-24 06:28:49 +00:00
Rémi Verschelde
af878716f2
CI: Update to clang-format 11 and apply ternary operator changes
2021-01-12 19:32:53 +01:00
Aaron Franke
1d5042c9e2
Use Math_TAU and deg2rad/rad2deg in more places and optimize code
2021-01-09 03:47:14 -05:00
kobewi
036f6a3fa8
Commit CanvasItem state only if it changed
2021-01-05 13:06:15 +01:00
Rémi Verschelde
b5334d14f7
Update copyright statements to 2021
...
Happy new year to the wonderful Godot community!
2020 has been a tough year for most of us personally, but a good year for
Godot development nonetheless with a huge amount of work done towards Godot
4.0 and great improvements backported to the long-lived 3.2 branch.
We've had close to 400 contributors to engine code this year, authoring near
7,000 commit! (And that's only for the `master` branch and for the engine code,
there's a lot more when counting docs, demos and other first-party repos.)
Here's to a great year 2021 for all Godot users 🎆
2021-01-01 20:19:21 +01:00
Rémi Verschelde
6cebb8c117
Merge pull request #44586 from madmiraal/rename-stepify
...
Rename Math::stepify to snapped
2020-12-28 21:46:43 +01:00
Rémi Verschelde
44357ddc28
Editor: Fix invalid use of Node::get_viewport() after rename of EditorNode::get_viewport()
...
Fixes #44761 , was a regression from #44524 .
The PR passed CI because EditorNode::get_viewport() used to shadow Node::get_viewport()
(which was a bug in itself, fixed by #44524 ), so once it was renamed the existing code
relying on it fell back to the now available Node::get_viewport().
This might bite some thirdparty modules too.
2020-12-28 19:51:39 +01:00
Rémi Verschelde
058f3fe069
Merge pull request #44149 from madmiraal/rename-tangent-orthogonal
...
Rename Vector2.tangent() to Vector2.orthogonal()
2020-12-28 16:00:12 +01:00
Marcel Admiraal
b743a2ef3c
Rename Math::stepify to snapped
2020-12-28 13:01:30 +00:00
Marcel Admiraal
5b937d493f
Rename empty() to is_empty()
2020-12-28 10:39:56 +00:00
kobewi
e0e55a8358
Fix Layout menu not working
2020-12-27 20:11:36 +01:00
Rémi Verschelde
c4c211c3b7
Merge pull request #44605 from madmiraal/rename-control-margin
...
Rename Control margin to offset
2020-12-23 18:24:00 +01:00
Marcel Admiraal
4b8b803931
Rename Control margin to offset
2020-12-23 06:25:56 +00:00
bruvzg
1adea98d07
Use integer text position in scroll container, TextEdit and canvas editor, to ensure sharp text rendering.
...
Use integer font align/advance with any font scaling, to ensure sharp text rendering.
2020-12-21 07:49:27 +02:00
Tomasz Chabora
f2751f47b0
Add outline to ruler tool
2020-12-14 23:29:22 +01:00
Nick Swoboda
66827337fd
Fix scene being modified when arrows are pressed with no node selected
2020-12-09 16:52:12 -08:00
Marcel Admiraal
a24c38d1a8
Rename Vector2.tangent() to Vector2.orthogonal()
2020-12-06 18:16:06 +00:00
Rémi Verschelde
c653e9c470
Merge pull request #42825 from Chaosus/fix_grid_hotkey
...
Changes 'always show grid' hotkey to prevent conflict with 'pan mode'
2020-11-30 19:09:13 +01:00
Rémi Verschelde
a09846e015
Merge pull request #42109 from EricEzaM/PR/input-and-shortcuts-rework
...
Shortcuts rework - fixed issues with input propagation and triggering of unwanted shortcuts.
2020-11-28 09:04:25 +01:00
bruvzg
99666de00f
[Complex Text Layouts] Refactor Font class, default themes and controls to use Text Server interface.
...
Implement interface mirroring.
Add TextLine and TextParagraph classes.
Handle UTF-16 input on macOS and Windows.
2020-11-26 14:25:48 +02:00
Eric M
7941235e06
Add is_valid() check for InputEventKey in CanvasItemEditor.
2020-11-23 21:52:15 +10:00
Eric M
efe5c250d5
Implement new shortcuts system.
...
unhandled_key_input changed to unhandled_button_input. Controls can set a 'shortcut_context' which they can then use to determine if their shortcuts should be triggered or not, based on if the viewport's focused GUI control is a child of their 'shortcut context'.
2020-11-23 21:14:26 +10:00
Haoyu Qiu
381ba7d554
Fixes rotation in select mode on macOS
2020-11-18 18:16:22 +08:00
Aaron Franke
02161aad5a
Remove empty lines around braces with the formatting script
2020-11-16 23:38:11 -05:00
reduz
127458ed17
Reorganized core/ directory, it was too fatty already
...
-Removed FuncRef, since Callable makes it obsolete
-Removed int_types.h as its obsolete in c++11+
-Changed color names code
2020-11-07 20:17:12 -03:00
Rémi Verschelde
a3396fabd5
Merge pull request #42995 from Ev1lbl0w/bugfix-zoom-visibility
...
Fix visibility issue with zoom label
2020-10-26 11:15:50 +01:00
Ev1lbl0w
0a581a39d4
Fix visibility issue with zoom label
2020-10-26 09:44:17 +00:00
Hugo Locurcio
996740de43
Improve undo log messages in the 2D editor for additional context
...
Undo/redo log messages will now specify the modified node's
name (or number of modified nodes if several were modified).
On top of that, the new position/rotation/scale/pivot offset
will also be mentioned in the message.
2020-10-19 18:59:52 +02:00
Yuri Roubinsky
1c546fdaea
Changes 'always show grid' hotkey to prevent conflict with 'pan mode'
2020-10-15 17:30:43 +03:00
Rémi Verschelde
19f72beebb
Merge pull request #42451 from Duroxxigar/rename-toplevel
...
Renamed toplevel to be top_level
2020-10-02 10:57:23 +02:00
Gilles Roudière
6dd19af439
Fix scale cursor rotation and handle diagonal ones
2020-10-01 12:19:45 +02:00
Duroxxigar
b687ace7f9
Renamed toplevel to be top_level
2020-10-01 03:17:33 -04:00
Hugo Locurcio
95773bb3c1
Make the pressed autokey icon red to emphasize its "recording" status
2020-09-29 23:22:21 +02:00
Rémi Verschelde
c12fc4fa04
Merge pull request #42373 from groud/draw_selection_last
...
Draw selected item on top of everything else
2020-09-27 19:55:48 +02:00
Gilles Roudière
16532f51ef
Draw selected item on top of everything else
2020-09-27 18:47:38 +02:00
Gilles Roudière
8e6da0b808
Fix error when dragging anchors with parent's size == 0
2020-09-27 17:44:06 +02:00
bruvzg
80b8eff6aa
[Complex Test Layouts] Change String
to use UTF-32 encoding on all platforms.
2020-09-03 19:56:24 +03:00
SekoiaTree
603febdbfe
Fixed node scaling arrows being wrong
...
Patch for #21755 . Node scaling arrows pointed the wrong way when nodes were rotated. Ammend: made math cleaner.
Simplified expression
Changes suggested by Aaron Franke
Co-authored-by: Aaron Franke <arnfranke@yahoo.com>
2020-08-25 09:50:15 +02:00
Rémi Verschelde
5671469724
Merge pull request #37336 from dreamsComeTrue/canvas-editor-change-cursor
...
Request immediate refresh of cursor in 2D editor while using shortcuts
2020-07-23 09:49:48 +02:00
Tomasz Chabora
e44c9101da
Prevent multiple Controls moving inside container
2020-07-20 13:22:13 +02:00
Rémi Verschelde
817062f8ec
Merge pull request #40297 from jiteshvm/texture-dialog-size
...
change minimum horizontal size from 200 to 240
2020-07-13 18:02:47 +02:00