Commit Graph

385 Commits

Author SHA1 Message Date
Rémi Verschelde d723e5a62f Merge pull request #5560 from vnen/os-request-attention
Add OS.request_attention() for Windows
2016-07-21 17:29:45 +02:00
Rémi Verschelde 5274f2a126 Merge pull request #5819 from hurikhan/android_getScreenDPI
Implement get_screen_dpi() on Android
2016-07-21 09:09:49 +02:00
Mario Schlack 0717893772 Implement get_screen_dpi() on Android 2016-07-20 14:54:48 +02:00
Rémi Verschelde 4bf1654272 classref: WIP improved docs for Node
Also clarified the purpose of Input.get_mouse_speed (see #1355)
2016-07-19 23:45:59 +02:00
Rémi Verschelde b50b099f0d classref: Sync classes with source 2016-07-19 23:40:31 +02:00
Rémi Verschelde f53e7efefe Merge pull request #5527 from djrm/color_picker_fixes
Color picker fixes
2016-07-18 16:43:41 +02:00
Juan Linietsky 254d79a560 Add a function to notify font users that the font changed. Closes #5774 2016-07-18 10:00:26 -03:00
Rémi Verschelde 62eae7cbe2 Merge pull request #5723 from Paulb23/toggle_breakpoint_gutter_issue_5712
Fixed toggle breakpoint gutter not updating when the game is running, issue 5712
2016-07-18 00:52:36 +02:00
Rémi Verschelde 8de5aedb9e Merge pull request #5718 from jay3d/master
Added gyroscope support to Godot and Android
2016-07-18 00:52:15 +02:00
Rémi Verschelde 3183834c5d Merge pull request #5657 from Paulb23/block_caret
Added block caret to TextEdit
2016-07-18 00:44:45 +02:00
Daniel J. Ramirez b10b16ee49 Added documentation for color picker raw mode 2016-07-15 13:34:57 -05:00
Jamil Halabi 370ae3512d Added gyroscope support to Godot and Android 2016-07-16 01:43:32 +08:00
Paulb23 2c9468a46a Update docs with breakpoint_toggled signal 2016-07-15 15:05:57 +01:00
Rémi Verschelde eaeee58b9e Merge pull request #5705 from StraToN/doc-update
Docs-update: AnimatedSprite, AnimatedSprite3D (unfinished)
2016-07-15 13:04:22 +02:00
Julian Murgia 952cb12364 Written AnimatedSprite, AnimatedSprite3D (unfinished) 2016-07-14 22:03:14 +02:00
George Marques 98eec177ae
Fix classes.xml structure
Fix the addition in #4854 which added elements in the wrong place.
2016-07-14 12:13:04 -03:00
Paulb23 20c7f2bded Added caret block mode to docs 2016-07-12 16:10:44 +01:00
Paulb23 a57c1da183 Update textedit docs with colors, show line number and highlight all occurences 2016-07-11 15:39:46 +01:00
Juan Linietsky b41be2d1a9 Merge pull request #4854 from Razzlegames/screenToLocal
Conversion function for screen coords to local Canvas coords
2016-07-11 02:26:58 -03:00
Kyle Luce 605193b22f Conversion function for screen coords to local Canvas coords
- Useful if you need to Convert screen coords to the coordinate space of a
  CanvasItem, but don't have an associated InputEvent to use in
  #make_event_local.

For example, if you have a particular point on the screen you'd like to project
into World Space, for various reasons, you would use this function on the root
of the scene. This is analogous to ray casting from screen space in 3D.
2016-07-10 16:06:57 -07:00
punto- bba89aef3b Merge pull request #5559 from Hinsbart/connected_joysticks
Input: add get_connected_joysticks() method.
2016-07-10 14:00:27 -03:00
Juan Linietsky b06eca108a Merge pull request #5490 from timoschwarzer/master
Add new Camera2D alignment functions
2016-07-10 12:39:50 -03:00
Juan Linietsky 5bb552273b Merge pull request #5489 from jejung/richtextlabel-get_text
RichTextLabel-get_text
2016-07-10 12:38:28 -03:00
Rémi Verschelde 69c8b583e7 classref: Add docs for InputEvent* and InputMap 2016-07-08 23:41:07 +02:00
Rémi Verschelde a15de80942 classref: Fix arg name for is_action_pressed/released
Also position TEXTURE_SPHERE constant properly.
2016-07-08 23:40:43 +02:00
Rémi Verschelde 288355afe9 classref: Fix descriptions indentation after #5588 2016-07-08 22:55:14 +02:00
J08nY f5ce4e251d
Classref: update with new doctool indentation 2016-07-08 00:25:54 +02:00
Pawel Kowal fe49b71804 Update String.capitalize() documentation 2016-07-06 10:33:27 +02:00
George Marques eecf4ff273
Update classes.xml to fix sorting of constants 2016-07-05 17:09:16 -03:00
George Marques 5c355a63d3
Add OS.request_attention() for Windows 2016-07-05 12:29:08 -03:00
Andreas Haas 45cfd199a4
Input: add get_connected_joysticks() method.
fixes #5465
2016-07-05 14:08:02 +02:00
Timo Schwarzer 681471e3f0 Add documentation 2016-06-29 18:31:43 +02:00
Jean Jung aeb5365e84 Adding support to get the raw text without formatting information from a RichTextLabel. 2016-06-29 12:43:51 -03:00
Jean Jung 673e3b70b6 Added ItemList.get_selected_items() doc 2016-06-28 16:22:36 -03:00
Jean Jung 5502499469 syncing the reference 2016-06-28 16:11:58 -03:00
George Marques 441640506f
Add *Array.invert() documentation 2016-06-25 14:47:32 -03:00
Rémi Verschelde d52fa2e0eb Merge pull request #5380 from vnen/string-canvasitem-docs
Documentation for String and CanvasItem
2016-06-24 21:16:20 +02:00
Rémi Verschelde 118f54aeeb Merge pull request #5328 from Paulb23/line_edit_caret
Added caret blink to line edit
2016-06-24 21:13:26 +02:00
George Marques 6776fa63de
Add docs for String and CanvasItem 2016-06-23 18:08:41 -03:00
Paulb23 c85f27c973 Added caret blink documentation 2016-06-22 13:26:44 +01:00
J08nY 3284e7b9d4
Classref: added for new *Array bindings
- append(),append_array(),insert(),remove()
2016-06-22 12:21:32 +02:00
Rémi Verschelde 3b5b893a0e Merge pull request #5350 from vnen/fix-classesxml-sorting
Fix classes.xml sorting
2016-06-22 00:35:29 +02:00
Rémi Verschelde 5e082d583b classref: Fix UTF-8 parsing in makerst 2016-06-22 00:32:29 +02:00
George Marques e53f186899
Sync classes.xml with the new sorting 2016-06-21 17:24:47 -03:00
George Marques 4d33eb01d7
Add classref for File class 2016-06-21 11:24:51 -03:00
George Marques d3dff93e33
Add docs for String.bigrams() and String.similarity(text) 2016-06-19 11:43:47 -03:00
Mehmet Durgel 92fc3fa536 Clarification about enter keys confusion
Some Languages threat KEY_RETURN and KEY_ENTER keys having the same keycode (eg: Javascript).
Added additional explanation about this issue.
Related to #4595
2016-06-19 16:34:11 +03:00
J08nY b587a13293 Classref: Mutex, Semaphore, Thread, *Array (#5278) 2016-06-18 21:21:29 +02:00
Rémi Verschelde 7723579237 Fix type hint for the seed argument
Closes #5260.
2016-06-18 01:18:06 +02:00
J08nY 541a1226cd
Classref: added PacketPeer* 2016-06-16 14:15:48 +02:00
J08nY bb2cac4515
Sync classref 2016-06-16 14:15:34 +02:00
J08nY cffdc52482 Classref: Added docs for StreamPeer* (#5216) 2016-06-15 13:32:12 +02:00
Rémi Verschelde 78b745bb0a Merge pull request #5192 from J08nY/issue-5190
Dictionary: rename param in .has() .has_all() .erase()
2016-06-15 11:13:59 +02:00
Rémi Verschelde ee105744e0 Merge pull request #5210 from J08nY/issue-5189
String documentation: .ord_at() returns int not String
2016-06-15 11:08:10 +02:00
Wilhem Barbier f665200df7 Add joystick vibration support on Linux (#5043) 2016-06-15 07:25:35 +02:00
J08nY 58a891265a
String documentation: .ord_at() returns int not String
fixes #5189
2016-06-14 14:52:32 +02:00
J08nY 7a19e3c6ae
Dictionary: rename param in .has() .has_all() .erase()
fixes #5190, param should be named key, not value
2016-06-13 19:08:04 +02:00
J08nY d42117eeb6
Sync classref 2016-06-13 19:01:07 +02:00
Juan Linietsky 20b4567829 Merge pull request #5177 from vnen/string-subsequence
Add subsequence search to tools
2016-06-13 13:25:56 -03:00
Ovnuniarchos 471ab4e6ff Documented many Physics2D* classes 2016-06-12 20:24:19 +02:00
George Marques feb95fa9ac
Add documentation to String.is_subsequence_of{,i} 2016-06-12 14:53:03 -03:00
George Marques 6ce5876c63
Add documentation for Array.find and Array.rfind 2016-06-10 18:07:59 -03:00
CowThing 50de99f050 Filling in documentation
Documentation for BoneAttachment, KinematicBody, ParallaxBackground,
ParallaxLayer, and TestCube
2016-06-08 15:29:46 -04:00
Juan Linietsky 4b893ffeeb Merge pull request #4861 from brakhane/negative-indexing
Add support for Python-like negative indexing
2016-06-07 10:17:00 -03:00
J08nY ec96e36bc9
Classref for: ImageTexture, Image, LargeTexture 2016-06-07 12:17:18 +02:00
J08nY db5ea849d8
Sync classref 2016-06-07 10:39:36 +02:00
Dennis Brakhane 1e068d34f4 Add support for Python-like negative indexing
Negative indexing is a useful feature in Python, especially when combined
with array slicing. Array slicing will hopefully be implemented later, but
negative indexing is useful in its own right.

A negative index is indexing from the end of an array,
"array[-1] == array[array.size()-1]", using a negative index
larger/smaller than the length of the array is still an error.

While primarily useful for arrays and strings, support is also added to
"array like" structures like Vector3 and Color. This is done just
to be consistent; vector3[2] is much clearer than vector3[-1], but disallowing
it while allowing it for an array with 3 elements seems confusing.
2016-06-05 20:00:54 +02:00
J08nY dcce477f5e
Added Dictionary.values() 2016-06-05 14:50:06 +02:00
Bojidar Marinov 662e0cc411 Document Viewport and ViewportSprite classes 2016-06-05 14:51:44 +03:00
Bojidar Marinov 9e0921e038 Sync with -doctool 2016-06-05 14:47:12 +03:00
J08nY 1a80b2a04a
Added InputMap.get_actions()
get_actions() lists all actions in the InputMap.
2016-06-04 17:56:30 +02:00
Rémi Verschelde 4b0bae9799 Merge pull request #5027 from J08nY/gdscript
Add Array.find_last() and Array.count()
2016-06-04 16:07:48 +02:00
Rémi Verschelde cbba9c4506 Merge pull request #4300 from leezh/control_focus_mode
Exposed Control::focus_mode to the scene editor
2016-06-04 14:41:36 +02:00
J08nY 5f5ca8cd9b Added Array.find_last() and Array.count() 2016-06-03 23:36:02 +02:00
J08nY 4c5439f8cd Added classref for HTTPClient and HTTPRequest 2016-06-03 18:13:15 +02:00
J08nY 45163b10be Sync classref 2016-06-03 18:03:12 +02:00
P-GLEZ 35cb75220d StaticBody documentation
Documented StaticBody. Also corrected an error in StaticBody2D
documentation
2016-06-01 12:35:25 +02:00
Rémi Verschelde 4e6f452c52 Merge pull request #4933 from J08nY/classref
Added RigidBody and finished Resource class-reference
2016-06-01 07:23:53 +02:00
P-GLEZ 0325944ee4 classref: Area documentation
One method was missing.
2016-05-31 21:17:35 +02:00
P-GLEZ 617530832b Area Documentation
Ported the Area2D documentation into its 3D counterpart. Also fixed some
typos
2016-05-31 19:24:27 +02:00
Rémi Verschelde 84ad8a11b6 Merge pull request #4931 from CowThing/classref-edit
Filling in documentation
2016-05-30 22:40:24 +02:00
J08nY 063d507a15 Added classref for RigidBody, and finished classref for Resource 2016-05-30 22:13:33 +02:00
J08nY a4cbed8465 Sync class-ref with code base. 2016-05-30 22:13:33 +02:00
CowThing 3ba4e6b2ac Filling in documentation
VisibilityNotifier and VisibilityEnabler (2D and 3D).
2016-05-30 15:05:27 -04:00
Rémi Verschelde 96bdab6edf Merge pull request #4845 from vnen/pr-magnetometer
Add magnetometer sensor support for Android
2016-05-29 18:37:33 +02:00
Julian Murgia - StraToN 9ac4b29322 Documented Light2D and LightOccluder2D 2016-05-29 01:41:22 +02:00
Julian Murgia - StraToN defe7f18c2 Documented BackBufferCopy. Need validation for the different copy modes (constants) 2016-05-28 22:02:21 +02:00
George Marques 8d69e1b620
Add documentation for Input.get_magnetometer() 2016-05-27 14:55:24 -03:00
Zher Huei Lee 0ccf153a15 GUI Focus mode improvements
Exposed `get_focus_mode()` to the script
Added `focus_mode` to the property panels for line-edit and sliders
Added `enabled_focus_mode` to the property panels for buttons

enabled_focus_mode is used when button is enabled/disabled
2016-05-23 15:08:50 +01:00
Rémi Verschelde da24bc8f3f VehicleBody: Cosmetic fixes to previous commit 2016-05-21 11:52:21 +02:00
Agustin Benavidez 97da9f14ab Add get_linear_velocity() method to VehicleBody class
Doc added also.
2016-05-21 11:35:55 +02:00
Geequlim a92652d578 Document the FileDialog and partial OS methods 2016-05-20 21:39:31 +08:00
Bojidar Marinov d208572906 Fix a XML error with the documentation 2016-05-20 14:54:33 +03:00
CowThing 0749db2cf8 Filling in documentation.
AABB, Color, Rect2, Transform, Vector2, and Vector3.
2016-05-15 19:01:21 -04:00
Rémi Verschelde 7913e792ac Merge pull request #4563 from djrm/classref-edit
Documented @GlobalScope singletons and some keys
2016-05-13 21:09:08 +02:00
Daniel J. Ramirez 70ec87ecd2 Fix some errors in some rotation functions, also clarify that certain parameters are expressed in radians 2016-05-12 18:44:32 -05:00
MattUV 91c85ff1f5 classref: Fixed return types in Area and Area2D (#4635) 2016-05-12 17:03:15 +02:00
Rémi Verschelde 22d1385caf classref: Directory and ConfigFile 2016-05-12 08:41:43 +02:00
Rémi Verschelde 2fbf4f563b classref: Sync with current source 2016-05-12 08:31:53 +02:00
Paulb23 997476777a Updated caret blink method documentation 2016-05-11 17:55:59 +01:00
Rémi Verschelde bc31be9812 Sync classes.xml with current sources
Also fix a typo in the binding of Control::set_drag_forwarding.
2016-05-09 22:20:35 +02:00
Daniel J. Ramirez cb0be4adaa Documented @GlobalScope singletons and some keys 2016-05-05 14:04:42 -05:00
Daniel J. Ramirez ed7c0a6caf Partial documentation for OS methods 2016-05-05 12:46:31 -05:00
Daniel J. Ramirez f558b4003b Documented LinkButton 2016-05-05 11:23:25 -05:00
CowThing f6ae5e41de Input Documentation
Input Documentation
2016-05-03 14:44:58 -04:00
Rémi Verschelde 5b039245b9 Sync class reference 2016-05-03 19:35:01 +02:00
Daniel J. Ramirez 3ca1d0f1d5 Documented bool methods 2016-05-02 13:32:29 -05:00
Rémi Verschelde 1d9c4c559b Merge pull request #4529 from djrm/classref-float
Documented float
2016-05-02 20:14:28 +02:00
Daniel J. Ramirez 520e6f5b09 Documented float 2016-05-02 13:11:14 -05:00
Daniel J. Ramirez 4453284388 Documented int methods 2016-05-02 12:44:30 -05:00
CowThing abf5f8c586 Finished AnimationPlayer Documentation
Finished AnimationPlayer Documentation
2016-05-02 12:16:59 -04:00
CowThing bf13410626 Finished Timer Documentation
Finished Timer Documentation
2016-05-02 11:10:31 -04:00
CowThing 957c265f11 Documented YSort (#4515)
Documented YSort
2016-05-01 23:55:24 +02:00
Daniel J. Ramirez c2bdb3727b Documented ColorRamp 2016-05-01 13:34:25 -05:00
Daniel J. Ramirez 3cd58fe0ba Partial documentation for Particles2D 2016-05-01 12:36:45 -05:00
Bojidar Marinov 5cdf4a6379 Document Popup, PopupDialog, PopupMenu, and PopupPanel 2016-05-01 17:52:42 +03:00
Rémi Verschelde 18c09acf9f classref: Run doctool and merge BitmapFont
BitmapFont was split from the Font class, so the relevant method
descriptions were readded manually.
2016-04-29 18:28:07 +02:00
Geequlim a518792d89 Add more documentations for this classes:
* BoxContainer
* CenterContainer
* ScrollContainer
* SplitContainer
* Vector2
* StringArray
* FileDiloags
2016-04-29 22:27:16 +08:00
Rémi Verschelde a0dce1e66f Merge pull request #4482 from Geequlim/master
Add more documentations and fix AcceptDialog::add_cancel
2016-04-29 10:43:50 +02:00
Geequlim 5c61e17c10 Add more documentations and fix AcceptDialog::add_cancel 2016-04-29 16:34:07 +08:00
Rémi Verschelde c97cc362e3 Merge pull request #4387 from JoshuaGrams/rigidbody2d-torque
Hooked up RigidBody2D torque methods
2016-04-29 10:29:12 +02:00
Geequlim 4de3f8944e Fill in the blank in the Array, CenterContainer and Dictionary class reference (#4476) 2016-04-29 07:32:13 +02:00
Daniel J. Ramirez faf21b81e8 Documentation for Canvas Modulate, ColorPicker, ColorPickerButton 2016-04-29 07:27:18 +02:00
Rémi Verschelde 0485c9eaba Merge pull request #4451 from JoshuaGrams/anim-tree-filter
Anim tree: add filters on Animation nodes
2016-04-28 20:48:38 +02:00
Daniel Ramirez 9f29b4b26a Partial documentation for Polygon2D and Raycast2D (#4467) 2016-04-28 10:14:55 +02:00
Rémi Verschelde 3a4ec88b37 Classref: Document Button and ButtonArray
Also bind relevant constants and define some object types and better
argument names for the docs.
2016-04-28 00:10:17 +02:00
Rémi Verschelde e9a5471ee1 Merge pull request #4461 from djrm/classref-edit
Added GridContainer documentation
2016-04-27 23:49:52 +02:00
Daniel J. Ramirez a5b4c1d64f GridContainer, CheckBox documentation, descriptions for Vector2 and CenterContainer.set_use_top_left 2016-04-27 16:09:48 -05:00
Jan Heemstra e301ca3544 fixed some mistakes in WeakRef documentation 2016-04-27 17:27:01 +02:00
Jan Heemstra edff81c214 Documented WeakRef and member functions 2016-04-27 16:10:10 +02:00
Jan Heemstra f2a73816c2 Sync classes reference template with current code base 2016-04-27 15:19:12 +02:00
Julian Murgia - StraToN 87aa128228 Documented Node2D 2016-04-26 23:19:45 +02:00
Rémi Verschelde 034d6e811f Various improvements to doc_status.py
- Make comments opt-in (smaller table in width)
- Reduce length of Brief Description and Description (also smaller table as output)
- Make names cyan (blue is too dark on black terminal)
- Drop some redundant synonyms for the flags
2016-04-26 21:35:06 +02:00
Josh Grams a7b4127481 RigidBody2D (add_force, set_inertia): new methods. 2016-04-26 08:15:15 -04:00
Josh Grams bd95e18ae4 AnimationTree: add filters to Animation nodes. 2016-04-26 06:49:06 -04:00
Julian Murgia 81e405545b Edited classes.xml : GraphEdit finished (#4450) 2016-04-26 12:48:47 +02:00
Bojidar Marinov c9340cdcc6 Add a python script to check the current doc status 2016-04-22 18:32:15 +03:00
Josh Grams f7d31cec38 RigidBody2D: add and bind get_inertia() method.
You can't set this value very well, since it's automatically computed
from the mass and the collision shapes. But since the values are higher
than many people might suspect, so being able to read it helps estimate
the amount of torque you might need to apply.
2016-04-20 20:49:37 -04:00
Josh Grams dbabe4c07c RigidBody2D: add and bind get/set_applied_torque. 2016-04-20 19:49:35 -04:00
Alexander Holland a379ed56ea string ends_with 2016-04-17 23:49:21 +02:00
Rémi Verschelde d454e64f42 Sync docs with source 2016-04-07 21:27:29 +02:00
Rémi Verschelde 0a5472e697 Remove trailing spaces 2016-04-02 20:26:12 +02:00
Josh Grams ef08fed277 doc/base/classes.xml: String.match, Node.find_node
Clarify wildcard behavior.
2016-03-27 08:21:14 -04:00
Kyle Luce 674c6f2f2d Add function to convert Date time from a dictionary to Epoch
- Also changed get_time_from_unix_time to get_date_time_from_unix_time to be
  consistent.

Ticket:
https://github.com/godotengine/godot/issues/4038
2016-03-16 23:13:39 -07:00
Kyle Luce feef563f3f Fixes the month consistency issue in enums and get_date etc
- Also updated the docs to reflect this.
- Added some vim temp files to gitignore
- Changed NaCL to be consistent with the other OS_Unix::get_date implementation
   (added 1 to month to map to 1-12)

Ticket:
https://github.com/godotengine/godot/issues/4025
2016-03-13 15:27:39 -07:00
Bojidar Marinov 0e8a8d2cb1 Add option to keep margins when changing anchors, closes #3979
Amend: Fixed an issue for non-tool builds
Amend2: Same, just fixed doing nothing at some times
2016-03-09 21:14:17 +02:00
Rémi Verschelde 32bb7a04a2 Merge pull request #3833 from AlexHolly/feature-file-md5
expose md5 for file(s) to gdscript
2016-03-08 19:32:33 +01:00
hondres 1b806ef54e doc: fix joystick left/right trigger axis description (index 6/7 instead of 4/5) 2016-03-06 13:40:37 +01:00
Martin Chuckeles ff7c89ebaf Add more verbose build-in functions descriptions
Add descriptions for some global constants
2016-03-06 10:34:07 +01:00
Martin Chuckeles cd1184d56c Write GDScript documentation 2016-03-05 15:06:31 +01:00