Yuri Sizov
df13466139
Add type variations to Theme
2022-02-17 15:24:10 +03:00
Rémi Verschelde
a627cdafc5
Update copyright statements to 2022
...
Happy new year to the wonderful Godot community!
2022-01-13 15:54:13 +01:00
Yuri Sizov
58319564fa
Unify theme item lookup in Controls and respect default font
2022-01-13 15:21:55 +03:00
Rémi Verschelde
e805ec8574
Merge pull request #54871 from timothyqiu/remove-theme-override
...
[3.x] Add methods to remove theme overrides
2022-01-11 20:16:05 +01:00
Marcel Admiraal
4d3690eba5
Remove unimplemented methods
2021-11-18 12:47:36 +00:00
Haoyu Qiu
936832d59c
Add methods to remove theme overrides
2021-11-11 18:23:37 +08:00
Yuri Sizov
98cf645258
Expose API to retrieve Theme's default font
2021-10-04 17:44:53 +03:00
Yuri Sizov
71ec6dba67
Improve Control's theme item methods documentation
2021-08-06 22:31:58 +03:00
Rémi Verschelde
140350d767
Style: Enforce braces around if blocks and loops
...
Using clang-tidy's `readability-braces-around-statements`.
https://clang.llvm.org/extra/clang-tidy/checks/readability-braces-around-statements.html
2021-05-05 15:02:01 +02:00
Rémi Verschelde
b5e1e05ef2
Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks
2021-05-04 14:45:16 +02:00
Rémi Verschelde
6e600cb3f0
Style: Set clang-format Standard to c++14
2021-05-04 14:45:15 +02:00
lupoDharkael
3b0cf34299
Control: Expose pass_on_modal_close_click
2021-03-25 18:29:41 +01:00
Rémi Verschelde
96d38d9751
Revert "Warn when setting Control size inside ready()"
...
This reverts commit a8105d73c7
.
We need to improve the logic somewhat to make the warning more specific to
actual problematic scenarios. Will likely be cherry-picked again + fixes
for the next release.
Fixes #46376 .
2021-02-25 15:14:32 +01:00
Tomasz Chabora
a8105d73c7
Warn when setting Control size inside ready()
...
(cherry picked from commit 84da090a69
)
2021-02-22 10:15:00 +01:00
Rémi Verschelde
49646383f1
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 🎆
(cherry picked from commit b5334d14f7
)
2021-01-13 16:17:06 +01:00
Hugo Locurcio
e36587751f
Rename the `type` parameter to `node_type` in Theme and Control
...
This makes it clearer that it expects a node type as a string (such as "Label")
instead of a type like "TYPE_ARRAY". This is backwards-compatible since only
the name of the parameter is changed, not its order.
See https://github.com/godotengine/godot-proposals/issues/1495#issuecomment-691507839
2020-09-12 18:42:45 +02:00
Gilles Roudière
b5251eb00f
Don't compile editor-only function when tools=no
2020-01-09 22:15:48 +01:00
Rémi Verschelde
a7f49ac9a1
Update copyright statements to 2020
...
Happy new year to the wonderful Godot community!
We're starting a new decade with a well-established, non-profit, free
and open source game engine, and tons of further improvements in the
pipeline from hundreds of contributors.
Godot will keep getting better, and we're looking forward to all the
games that the community will keep developing and releasing with it.
2020-01-01 11:16:22 +01:00
IAmActuallyCthulhu
82b9557803
Remove redundant author doc comments
2019-08-12 04:26:38 -05:00
qarmin
e0b5b21863
Add some code changes/fixes proposed by Coverity and Clang Tidy
2019-08-07 12:54:30 +02:00
Hugo Locurcio
a0cc62f000
Add a configuration warning when using Ignore mouse filter with tooltip
...
This closes #30144 .
2019-06-30 19:58:40 +02:00
qarmin
4e5310cc60
Some code changed with Clang-Tidy
2019-06-26 15:08:25 +02:00
Gilles Roudiere
e875f05c3b
Improve the anchors and margin workflow
2019-05-13 18:55:31 +02:00
Bojidar Marinov
8dad5f1e10
Update controls when a stylebox or icon override changes; change to CONNECT_REFERENCE_COUNTED
...
Also, cleanup unnessesary calls to update() and NOTIFICATION_THEME_CHANGED.
Fixes #25904 .
2019-02-25 17:42:38 +02:00
Rémi Verschelde
b16c309f82
Update copyright statements to 2019
...
Happy new year to the wonderful Godot community!
2019-01-01 12:58:10 +01:00
Michael Alexsander Silva Dias
3a9df46b90
Add expand/collapse all buttons for the "Errors" tab
2018-09-12 23:53:10 -03:00
Rémi Verschelde
277b24dfb7
Make core/ includes absolute, remove subfolders from include path
...
This allows more consistency in the manner we include core headers,
where previously there would be a mix of absolute, relative and
include path-dependent includes.
2018-09-12 09:52:22 +02:00
Aaron Franke
cf136a91d6
[Core] Completely kill math_2d.h, change includes
2018-08-11 03:08:34 -05:00
Guilherme Felipe
d1f5deabd8
Opens the menu with the same parent on mouse focus
2018-07-24 19:59:40 -03:00
Juan Linietsky
336db8bcd1
-Fix tooltips in inspector, now they show as rich text.
2018-07-20 18:16:19 -03:00
Max Hilbrunner
b21c1f64cd
Merge pull request #18634 from groud/fix_control_child_of_node2d
...
Fixes the bad calculation of margin & anchors when child of Node2D
2018-07-03 18:06:15 +02:00
Juan Linietsky
2dc738ce27
-Fixes to how hashing happened, now StringName and NodePath use default hasher, this was leading to some severe slowdown in scenarios
...
-Fixes to some duplication scenarios for instanced scenes
2018-07-02 15:08:35 -03:00
groud
4d78e16bc1
Fixes the bad calculation of margin & anchors when child of Node2D
2018-06-07 21:25:15 +02:00
Juan Linietsky
005b69cf6e
-New inspector.
...
-Changed UI resizing code, gained huge amount of speed.
-Reorganized timer sync to clean up behavior (sorry forgot commit this before)
-
2018-05-15 17:14:31 -03:00
Juan Linietsky
1d15c5d726
Merge pull request #17502 from groud/2Deditor_rect
...
Remove the rect surrounding 2D nodes in 2D editor when it's not pertinent
2018-04-13 10:21:44 -03:00
Rémi Verschelde
7e2782e177
Merge pull request #17081 from endragor/no-press-when-scroll
...
Make Button not emit press when container is scrolled
2018-04-10 07:56:37 +02:00
Ruslan Mustakov
dcf5be92a3
Make BaseButton not emit press when container is scrolled
...
This fixes the problem described in #13996 in a proper way.
This also adds "deadzone" property to ScrollContainer. It can be used
on mobile, where taps are not as precise as mouse clicks. Player could
slightly move their finger when tapping, in which case we still want
the button to be pressed rather than the container to be scrolled.
2018-04-09 20:34:52 +07:00
Gilles Roudiere
72ed1e4244
Remove the selection rect for nodes that do not require it
2018-04-03 22:04:19 +02:00
isaacremnant
4ef11eb3ed
Implements #16546 by adding GROW_DIRECTION_BOTH which allows a control to grow from its center.
2018-02-12 01:39:18 -05:00
Gilles Roudiere
b06c6602c8
Changes the keep_margin parameter to true by default, so that people are not suprised that set_anchor changes the margins values
2018-01-15 10:37:13 +01:00
Rémi Verschelde
e4213e66b2
Add missing copyright headers and fix formatting
...
Using `misc/scripts/fix_headers.py` on all Godot files.
Some missing header guards were added, and the header inclusion order
was fixed in the Bullet module.
2018-01-05 01:22:23 +01:00
Rémi Verschelde
b50a9114b1
Update copyright statements to 2018
...
Happy new year to the wonderful Godot community!
2018-01-01 14:40:47 +01:00
Bernhard Liebl
efc3ffb816
fix certain popup close clicks with popup buttons
2017-12-10 10:55:48 +01:00
Gilles Roudiere
8d1f2b1857
Rework the canvas_item API for further improves to the canvas item editor
2017-11-19 13:36:31 +01:00
Saracen
e4201734df
Add manual overrides for focus_next and focus_previous on controls similar to what can already be done with focus neighbours.
2017-11-16 09:45:52 +00:00
letheed
482e07af7e
Unify degree members and properties
2017-11-10 12:52:07 +01:00
letheed
ab2647a0d0
Remove deprecated rotation methods
2017-11-10 09:09:30 +01:00
Gilles Roudiere
05bb8e0c10
Remove set_area_as_parent_rect and replace it by set_anchors_and_margins_preset(PRESET_WIDE)
2017-09-22 11:39:44 +02:00
Gilles Roudiere
92f062696a
Implements set_margins_preset(...)
2017-09-22 09:23:07 +02:00
Rémi Verschelde
7ad14e7a3e
Dead code tells no tales
2017-08-27 22:13:45 +02:00