Age | Commit message (Collapse) | Author |
|
I didn't expose this as a property or add documentation in the original PR #42109.
|
|
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'.
|
|
|
|
|
|
Fixes #41529.
|
|
Tooltip flickering and targeting fixes.
|
|
|
|
See https://github.com/godotengine/godot/issues/16863#issuecomment-685236980.
|
|
|
|
|
|
Using clang-tidy's `readability-braces-around-statements`.
https://clang.llvm.org/extra/clang-tidy/checks/readability-braces-around-statements.html
|
|
Which means that reduz' beloved style which we all became used to
will now be changed automatically to remove the first empty line.
This makes us lean closer to 1TBS (the one true brace style) instead
of hybridating it with some Allman-inspired spacing.
There's still the case of braces around single-statement blocks that
needs to be addressed (but clang-format can't help with that, but
clang-tidy may if we agree about it).
Part of #33027.
|
|
|
|
|
|
Still a lot of work to do.
|
|
Action Mode
This should fix #34935
|
|
|
|
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.
|
|
|
|
|
|
When buttons are not in Toggle Mode, shortcuts used to only trigger the
`pressed` signal, without calling the `_pressed` virtual method,
contrarily to what happens when you click the button.
For Toggle Mode buttons, it did call the `_toggled` virtual method
together with emitting the `toggled` signal *twice*.
This commit harmonizes it all and makes shortcuts behave the same as
mouse clicks or `ui_accept`, for both toggle and non-toggle modes.
Fixes #29604.
|
|
Fix #29258
|
|
also _toggled() function and "toggled" signal called when unpressed by ButtonGroup
|
|
Add option to keep button pressed when moving cursor outside while pressing
|
|
Reset button state on exit tree
|
|
|
|
Steps to reproduce a bug:
1) Hold / hover the button
2) Remove it (or parent node) from the tree
3) When we return the button back to the tree, it's pressed / hover
|
|
while pressed
|
|
|
|
Happy new year to the wonderful Godot community!
|
|
|
|
This flag disables the input related information in the tooltip.
It is exposed as a member variable in gdscript.
|
|
-Removed one and zero hints for properties, replaced by default value
|
|
Some of this code has been re-organized.
f
|
|
Discard button pressing flags on disable
|
|
Added hover_pressed style to CheckBox and CheckButton.
If no style is defined for this property it will default to the pressed property.
|
|
Is it a bug?
1) Click the button and hold
2) Disable it (for example I bind this action on keyboard)
3) Release the mouse and move it outside the button
4) Enable the button
5) It's still pressed, but shouldn't
|
|
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.
|
|
|
|
Allow configuration of which mouse buttons the BaseButton responds to
|
|
Make Button 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.
|
|
BaseButton will respond to.
|
|
Fix "ui_accept" action in BaseButton.cpp not calling _pressed() func in
GDScript
|
|
- The input handling is done into several distinct functions, and the
code is more consistent.
- The actions' history is more precise ("Edited CanvasItem"
is now "Rotated CanvasItem","Moved CanvasItem",etc...)
- Fixed a little bug about input key events not forwarded correctly to plugins
- IK is followed by default when you move a bone node, the alt-key allow
you to move it normally
|
|
This behavior better matches other gui toolkits. A selected disabled
button still can't be interacted with but it can now be selected. This
seems to be what QT and GTK do also.
This fixes #16131
|
|
Fixes #10212.
|
|
|
|
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.
|
|
Happy new year to the wonderful Godot community!
|