Ruslan Mustakov
0b632be4a9
Fix get_parent_range to return 0 when there is no parent
...
Fixes #15635
2018-01-13 16:48:07 +07:00
letheed
524ee14054
Small fix for Control bindings
2018-01-13 09:40:42 +01:00
Bojidar Marinov
9b8e8b2220
Bind many more properties to scripts
...
Notable potentially breaking changes:
- PROPERTY_USAGE_NOEDITOR is now PROPERTY_USAGE_STORAGE | PROPERTY_USAGE_NETWORK, without PROPERTY_USAGE_INTERNAL
- Some properties were renamed, and sometimes even shadowed by new ones
- New getter methods (some virtual) were added
2018-01-12 00:58:14 +02:00
Gilles Roudiere
00473e0897
Fixes nodes being resized or moved when changing an anchor
2018-01-11 23:39:49 +01:00
Fabio Alessandrelli
a63a82d5e5
Fix theme inheritance
2018-01-05 18:30:40 +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
volzhs
ef32018d1f
Fix Clip Content property is not saved
2017-12-17 23:10:59 +09: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
Poommetee Ketson
9cadb9e5f3
Bind unbound enums, rearrange some by value
2017-10-22 01:58:02 +07:00
Gilles Roudiere
bd8a5fba30
Fixes set_anchors_and_margins_preset()
2017-09-27 00:38:41 +02: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
letheed
5ad9be4c24
Rename pos to position in user facing methods and variables
...
Rename user facing methods and variables as well as the corresponding
C++ methods according to the folloming changes:
* pos -> position
* rot -> rotation
* loc -> location
C++ variables are left as is.
2017-09-20 13:11:10 +02:00
toger5
202e4c8836
also loop for classes if there is no coustom theme fixes #11250
2017-09-14 18:15:39 +02:00
Hein-Pieter van Braam
5e18967d77
Fix serveral recent new clang-format errors
2017-09-08 00:20:16 +02:00
Juan Linietsky
1eeda0f32f
Restored auto snapping of controls to pixels, fixes #10847 and probably several more issues. Made it optional in the project settings but defaults to true.
2017-09-07 11:22:07 -03:00
Ignacio Etcheverry
c16d00591b
DocData and type hints fixes
...
- Makes vararg methods automatically use PROPERTY_USAGE_NIL_IS_VARIANT on return types
- Completely removes the ":type" suffix for method names. Virtual methods must use the MethodInfo constructors that takes Variant::Type or PropertyHint as the first parameter for the return type (with CLASS_INFO as a helper to get the PropertyInfo). Parameters must use PROPERTY_HINT_RESOURCE_TYPE and hint string.
- PROPERTY_USAGE_NIL_IS_VARIANT is no longer needed for parameters, because parameters cannot be void.
- Adds missing PROPERTY_USAGE_NIL_IS_VARIANT to virtual and built-in methods that return Variant.
2017-08-29 19:40:21 +02:00
Rémi Verschelde
bd282ff43f
Use HTTPS URL for Godot's website in the headers
2017-08-27 14:16:55 +02:00
Hein-Pieter van Braam
cacced7e50
Convert Object::cast_to() to the static version
...
Currently we rely on some undefined behavior when Object->cast_to() gets
called with a Null pointer. This used to work fine with GCC < 6 but
newer versions of GCC remove all codepaths in which the this pointer is
Null. However, the non-static cast_to() was supposed to be null safe.
This patch makes cast_to() Null safe and removes the now redundant Null
checks where they existed.
It is explained in this article: https://www.viva64.com/en/b/0226/
2017-08-24 23:08:24 +02:00
Wilson E. Alvarez
baa94a3758
Removed unnecessary returns and break statements
2017-08-22 13:01:57 -04:00
Juan Linietsky
2cc8309249
Merge pull request #10351 from neikeq/enums-are-for-the-weak
...
ClassDB: Provide the enum name of integer constants
2017-08-21 19:56:08 -03:00
Ignacio Etcheverry
32dd9a9f66
ClassDB: Provide the enum name of integer constants
2017-08-20 22:07:43 +02:00
Juan Linietsky
541fdffc0a
Merge pull request #10319 from neikeq/pr-engine-editor-hint
...
Adds Engine::is_editor_hint() method
2017-08-20 12:55:46 -03:00
Ignacio Etcheverry
90b8a5b71e
Removes editor_hint from SceneTree
2017-08-19 01:29:45 +02:00
Juan Linietsky
1ecb48b8c2
Changed anchor constants to enum, removed ANCHOR_CENTER, fixes #9889
2017-08-15 19:49:28 -03:00
Gilles Roudiere
0041e08f74
Avoids inverted anchors
...
Add a push_opposite_anchor argument pushing the opposite anchor if
needed
2017-08-13 21:20:14 +02:00
Gilles Roudiere
c26af6f2b7
Adds a function to set Anchors with a layout preset
2017-08-13 21:20:14 +02:00
Gilles Roudiere
e76b535a1a
Handle undo/redo of anchor positioning
2017-08-13 21:20:13 +02:00
Gilles Roudiere
bd0384a9e9
Add anchor visualization
2017-08-13 21:20:13 +02:00
Gilles Roudiere
0d35d4d53b
Replace GUI anchor type by a float between 0 and 1
2017-08-13 21:20:13 +02:00
Ignacio Etcheverry
2f290038d6
Removes type information from method binds
2017-08-10 07:17:50 +02:00
Ignacio Etcheverry
1e74f27f8f
Adds missing type information to virtual method binds
2017-08-10 07:17:50 +02:00
Indah Sylvia
5ae78fdf6a
Makes all Godot API's methods Lower Case
2017-08-07 18:24:35 +07:00
Geequlim
0b11062d93
Fix property type expose of Control.stretch_ratio.
...
Fix set integer value from inspector to round instead of floor.
2017-07-31 14:15:38 +08:00
Juan Linietsky
25678b1876
-Renamed GlobalConfig to ProjectSettings, makes more sense.
...
-Added system for feature overrides, it's pretty cool :)
2017-07-19 17:06:03 -03:00
Poommetee Ketson
49c7620326
Add object type hint for docs
2017-07-19 02:03:34 +07:00
Poommetee Ketson
e2dd495ff2
Control: save SIZE_FILL size flag property
2017-07-13 13:50:15 +07:00
alexholly
3b5ac579a9
removed floor so that global pos works with scale
2017-07-08 21:04:04 +02:00
Juan Linietsky
7c679dd830
More fill modes for containers, closes #9504
2017-07-06 19:06:55 -03:00
Juan Linietsky
bd9d98c172
Ability to set rotation and scaling pivot for controls.
2017-07-06 17:42:44 -03:00
Juan Linietsky
fd9b4ba6e6
-Ability for controls to grow the left/top when anchored. This makes anchoring controls to the right/bottom easier when they are resized.
2017-07-06 13:30:24 -03:00
Juan Linietsky
42b2d52c88
Properly adjust the visible editor rect and make limits respected, closes #8328
2017-06-12 16:19:12 -03:00
alexholly
a3c90b0293
renamed all Rect2.pos to Rect2.position
2017-06-04 02:09:17 +02:00
Kristupas Stumbrys
0251e9eb01
Fixing typo for rect_position in _change_notify call for Control
2017-05-28 16:38:22 +03:00
Juan Linietsky
5b3709d309
Removal of InputEvent as built-in Variant type..
...
this might cause bugs I haven't found yet..
2017-05-20 17:05:38 -03:00