summaryrefslogtreecommitdiff
path: root/scene/gui/button.cpp
AgeCommit message (Collapse)Author
2020-01-01Update copyright statements to 2020Rémi Verschelde
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.
2019-12-12Make Button and co. take internal margins into account when clipping textMichael Alexsander
2019-11-09Fixed crash when using icon override in buttonPouleyKetchoupp
Missing change for PR #33495
2019-11-09Fixed crash when using icon override in buttonPouleyKetchoupp
Fixes #33457
2019-08-29Add feature to Button to make its icon expand/shrink with the button's sizeMichael Alexsander Silva Dias
2019-08-28Fix wrong offset in Button when alignment is set to leftMichael Alexsander Silva Dias
2019-04-05Fix -Wimplicit-fallthrough warnings from GCC 8Rémi Verschelde
Adds `FALLTHROUGH` macro to specify when a fallthrough is intentional. Can be replaced by `[[fallthrough]]` if/when we switch to C++17. The warning is now enabled by default for GCC on `extra` warnings level (part of GCC's `-Wextra`). It's not enabled in Clang's `-Wextra` yet, but we could enable it manually once we switch to C++11. There's no equivalent feature in MSVC for now. Fixes #26135.
2019-02-20Add -Wshadow=local to warnings and fix reported issues.marxin
Fixes #25316.
2019-01-01Update copyright statements to 2019Rémi Verschelde
Happy new year to the wonderful Godot community!
2018-11-08-Moved EditorDefaultValue to ClassDB, made it coreJuan Linietsky
-Removed one and zero hints for properties, replaced by default value
2018-09-24Added hover_pressed style to CheckBox and CheckButtonDualMatrix
Added hover_pressed style to CheckBox and CheckButton. If no style is defined for this property it will default to the pressed property.
2018-09-12Make core/ includes absolute, remove subfolders from include pathRémi Verschelde
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-08-24Make some debug prints verbose-only, remove othersRémi Verschelde
2018-01-05Add missing copyright headers and fix formattingRémi Verschelde
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-01Update copyright statements to 2018Rémi Verschelde
Happy new year to the wonderful Godot community!
2017-12-11Merge pull request #14543 from volzhs/checkbox-checkbutton-centerRémi Verschelde
Fix align=center info is not saved with CheckBox & CheckButton
2017-12-11Fix align=center info is not saved with CheckBox & CheckButtonvolzhs
2017-12-11Fix CheckBox minimum sizevolzhs
2017-12-11Fix CheckButton minimum sizevolzhs
2017-08-27Use HTTPS URL for Godot's website in the headersRémi Verschelde
2017-08-20ClassDB: Provide the enum name of integer constantsIgnacio Etcheverry
2017-08-18Rename localization method to `tr` againRémi Verschelde
Partial revert of #10380 based on contributor ~~bullying~~ feedback.
2017-08-17Rename `XL_MESSAGE` aka `tr` to `localize`Rémi Verschelde
Also renames `set_message_translation` to `set_message_localization` for consistency.
2017-08-10Removes type information from method bindsIgnacio Etcheverry
2017-07-18Fixed button flat behavior when not in normal state.Daniel J. Ramirez
Also changed some buttons to flat mode
2017-05-09New customizable editor themevolzhs
2017-05-03Revert "Add new editor and default theme (WIP)"volzhs
This reverts commit f045efe007cffb87238ee519b7f33d710814ded7.
2017-04-27Add new editor and default theme (WIP)Daniel J. Ramirez
2017-04-08Add "Godot Engine contributors" copyright lineRémi Verschelde
2017-03-05A Whole New World (clang-format edition)Rémi Verschelde
I can show you the code Pretty, with proper whitespace Tell me, coder, now when did You last write readable code? I can open your eyes Make you see your bad indent Force you to respect the style The core devs agreed upon A whole new world A new fantastic code format A de facto standard With some sugar Enforced with clang-format A whole new world A dazzling style we all dreamed of And when we read it through It's crystal clear That now we're in a whole new world of code
2017-02-13Rename the _MD macro to D_METHODHein-Pieter van Braam
This new name also makes its purpose a little clearer This is a step towards fixing #56
2017-02-13Remove use of _SCS from ADD_METHODHein-Pieter van Braam
This saves typing and is a step towards fixing #56
2017-01-21Respect style boxes for Button states other than "normal"Ray Koopa
2017-01-09-Translation text will change automatically for in-game buttons, labels, ↵Juan Linietsky
poups when translation is changed. -Added a NOTIFICATION_TRANSLATION_CHANGED for controls that need custom code -Sorry, editor will not update automatically because it uses a different translatio method.
2017-01-08-removed stop mouse and ignore mouse from control, which were confusing, ↵Juan Linietsky
replaced by mouse filter
2017-01-02ObjectTypeDB was renamed to ClassDB. Types are meant to be more generic to ↵Juan Linietsky
Variant. All usages of "type" to refer to classes were renamed to "class" ClassDB has been exposed to GDScript. OBJ_TYPE() macro is now GDCLASS()
2017-01-01Welcome in 2017, dear changelog reader!Rémi Verschelde
That year should bring the long-awaited OpenGL ES 3.0 compatible renderer with state-of-the-art rendering techniques tuned to work as low as middle end handheld devices - without compromising with the possibilities given for higher end desktop games of course. Great times ahead for the Godot community and the gamers that will play our games!
2016-06-04-customizable shortcuts in editorJuan Linietsky
-editor settings now save to .tres instead of .xml -buttons can now hold a shortcut
2016-04-28Classref: Document Button and ButtonArrayRémi Verschelde
Also bind relevant constants and define some object types and better argument names for the docs.
2016-03-09remove trailing whitespaceHubert Jarosz
2016-01-02Make buttons properly obey stylebox content marins, closes #2156Juan Linietsky
2016-01-01Update copyright to 2016 in headersGeorge Marques
2015-06-29Several performance improvements, mainly in loading and instancing scenes ↵Juan Linietsky
and resources. A general speedup should be apparent, with even more peformance increase when compiling optimized. WARNING: Tested and it seems to work, but if something breaks, please report.
2015-06-08draw button focus before text and iconJuan Linietsky
closes #2047
2015-05-09-fix clip+center alignment on Button, fixes #1865Juan Linietsky
2015-04-18Updated copyright year in all headersJuan Linietsky
2014-02-09GODOT IS OPEN SOURCEJuan Linietsky