Commit Graph

98 Commits

Author SHA1 Message Date
Rémi Verschelde 93ab45b6b5 Style: Fix whole-line commented code
They do not play well with clang-format which aligns the `//` part
with the rest of the code block, thus producing badly indented commented code.
2017-01-14 14:52:23 +01:00
Juan Linietsky 04c749a1f0 New API for visibility in both CanvasItem and Spatial
visible (property) - access set_visible(bool) is_visible()
is_visible_in_tree() - true when visible and parents visible
show() hide() - for convenience
2017-01-13 10:45:50 -03:00
Juan Linietsky da477b76a9 some class renames
TextureFrame -> TextureRect
Patch9Frame -> NinePatchRect
ColorFrame -> ColorRect
2017-01-12 18:28:12 -03:00
Juan Linietsky a503f8aadc Groundbreaking!! Godot resources can now be flagged to be local to the scene being edited!
This means that each time this scene is instanced, the resource will be unique!
As such, thanks to this, the following features were implemented:
-ButtonGroup is no longer a control, it's now a resource local to the scene
-ViewportTexture can be created from the editor and set to any object, making ViewportSprite and other kind of nodes obsolete!
2017-01-10 01:07:03 -03:00
Juan Linietsky fa170cbc58 PopupMenu now emits both index_pressed and id_pressed instead of item_pressed, closes #3188 2017-01-08 18:18:54 -03:00
Juan Linietsky 99ceddd11e Editor settings categories are now tidy and beautiful! 2017-01-05 19:41:36 -03:00
Juan Linietsky 0f7af4ea51 -Changed most project settings in the engine, so they have major and minor categories.
-Changed SectionedPropertyEditor to support this
-Renamed Globals singleton to GlobalConfig, makes more sense.
-Changed the logic behind persisten global settings, instead of the persist checkbox, a revert button is now available
2017-01-05 09:16:00 -03:00
Juan Linietsky 118eed485e ObjectTypeDB was renamed to ClassDB. Types are meant to be more generic to 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-02 23:03:46 -03:00
Rémi Verschelde c7bc44d5ad Welcome in 2017, dear changelog reader!
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!
2017-01-01 22:03:33 +01:00
volzhs 1880238c3e Can create or load script on Attach script dialog 2016-11-11 05:06:39 +09:00
Rémi Verschelde a201fbb751 Merge pull request #7027 from Keetz/master
Fix scene tree drag & drop places node as child (#6912)
2016-11-09 12:53:35 +01:00
Rémi Verschelde a4570cb461 Merge pull request #7035 from volzhs/undo-redo-duplicate
Prevent to make UndoRedo for duplicate if no selected node
2016-11-06 12:09:49 +01:00
Rémi Verschelde 20a33e809e Merge pull request #7009 from volzhs/fix-double-click
Fix to focus or rename node by double click
2016-11-06 12:02:51 +01:00
Pawel Kowal 544194053a Fix #7016, add script create icon 2016-11-05 18:20:59 +01:00
volzhs d82928eb49 Prevent to make UndoRedo for duplicate if no selected node 2016-11-05 00:52:53 +09:00
Keetz 2afcbc4b1f Fix scene tree drag & drop places node as child (#6912) 2016-11-03 13:59:36 +01:00
Mateusz Adamczyk ce5200b30e Option for detaching script from node (#6934). 2016-11-01 22:49:01 +01:00
volzhs fd9aebd4fa Fix to focus or rename node by double click 2016-11-01 22:26:29 +09:00
Rémi Verschelde 1ee1a959ab Merge pull request #6945 from Hinsbart/script_dnd
Ability to drag script files from Filesystem dock to SceneTree dock.
2016-10-30 12:10:45 +01:00
Andreas Haas a3944e66da
Ability to drag script files from Filesystem dock to SceneTree dock.
Allows to attach scripts by dragging them onto the target Node.
2016-10-27 16:32:41 +02:00
Mateusz Adamczyk 41329f9750 Option to load script for node (#6839) 2016-10-19 21:26:14 +02:00
volzhs cc33c528eb Replace a node with saved branch scene instance 2016-10-11 23:54:46 +09:00
Pedro J. Estébanez 9b2e2935d0 Refactor node naming APIs used by editor
Make 'name_num_separator' a project setting
Make all node operations separator-aware
2016-10-08 21:49:16 +02:00
Pedro J. Estébanez 88a32c11f1 Fix reparent undo not renaming back 2016-10-08 21:49:15 +02:00
Juan Linietsky f51b202566 Modified resource menu for node scripts so it always goes through the new script wizard. 2016-09-12 19:32:09 -03:00
Daniel J. Ramirez 70c9979cce Double click on scene tree element to focus currently selected node
In 3D it will focus in the first viewport
Enable double click for trees
2016-08-27 17:15:49 -05:00
Juan Linietsky b77200728e -Added yield nodes to visual script
-Added input selection nodes to visual script
-Added script create icon for those who miss it, will only appear when it can be used.
2016-08-07 19:22:33 -03:00
Juan Linietsky d8af6330e5 More progress on visual script editing 2016-08-03 11:28:43 -03:00
Paulb23 d7910f44d8 Added Scene tree dock shortcuts 2016-08-01 17:02:40 +01:00
Rémi Verschelde 990a23e48e Merge pull request #5821 from TheHX/issue-5795
Improved FileSystem dock "Instance" option
2016-07-23 22:53:41 +02:00
Juan Linietsky 3aeafcae04 Removed support for saving paths as relative, closes #5728
Editor now has good refactoring tools, so this function is mostly obsolete
2016-07-22 10:39:46 -03:00
Franklin Sobrinho 53beeb774b "FileSystem" dock now instance all selected scenes in one action 2016-07-21 11:10:44 -03:00
Franklin Sobrinho 2a97d79a64 Fix crash when dropping scene as a sibling of the root node 2016-07-18 15:00:14 -03:00
Franklin Sobrinho c6a0b0dab3 Fix custom types showing on wrong dialogs
* The custom types are visible when the dialog is shown
2016-07-10 08:19:15 -03:00
Rémi Verschelde 3fcb9b1ec1 Removed unused variables (second pass) + dead code
Fixes various gcc 5.4.0 warnings for -Wunused-variable and -Wunused-but-set-variable
2016-07-07 23:15:59 +02:00
Rémi Verschelde 1b9433594e SceneTreeDock: Fix wrong argument in _has_visible_children
Seen while checking for unused variables, which `child` was.
2016-07-07 08:37:38 +02:00
Juan Linietsky a41a70ea3e Many fixes to scene tree node dragging, closes #5341 2016-06-30 23:19:44 -03:00
Juan Linietsky ba5bc57816 Figured out a way to fix event propagation for shortcuts and some other cases so they properly stop shortcuts if a modal window is open, closes #4848 2016-06-27 20:14:59 -03:00
Juan Linietsky d76ee09774 property remove parent owned nodes when using replace, fixes #4128 2016-06-20 22:57:07 -03:00
Daniel J. Ramirez bcd55503b4 Added shortcuts to scene tree dock 2016-06-19 14:35:20 -05:00
Juan Linietsky 9b9580f568 -fix bug in scene tree dragndrop reparenting, closes #4712, closes #4633, closes #4628
-avoid editor scrollable areas to scroll if touchscreen ui hint is turned on
2016-06-18 15:30:44 -03:00
Juan Linietsky 1785f6939f Ability to discard instancing from menu, closes #4903 2016-06-11 23:00:06 -03:00
Juan Linietsky 3ae61f2292 Created a NodeDock with signals and groups 2016-06-04 13:19:08 -03:00
Juan Linietsky 26332479d3 Signals became a tab
added icons to contextual scene tree menu
2016-06-03 21:03:22 -03:00
Juan Linietsky 8be2fabbe5 Changed import workflow
-Rearrange favorites in fs dock with drag and drop
-Removed import -> sub-scene, moved to scenetree contextual menu
-Removed import -> re-import , moved and integrated to FS dock
-Added ability in FS dock to re-import more than one resource
simultaneously
-Added ability to drag from native filesystem explorer to Godot, only
works on Windows though
-Removed scene reimport merge options, never worked well. Eventually
merging materials should be re-added
-Added ability to set custom root node type when importing scenes
-Re-Import is now automatic, can be configured back to manual in editor
settings
-Added resource previews in property list for many resource types
2016-05-27 14:19:11 -03:00
Juan Linietsky e843e74d39 General docks clean up
-Moved path box above in fs dock
-Remove up/down button and added reordering with DND of favorites
-Changed zoom icon to be centered vertically
-Made filter for files always visible
-Added some options to TextureFrame for better alignment/stretching
2016-05-23 23:24:32 -03:00
volzhs 9e1ee568a6 use node name as filename when save scene
fix #4723
2016-05-23 22:27:58 +09:00
Hubert Jarosz 33403d91f7
remove trailing whitespace 2016-05-21 15:29:25 +02:00
Rémi Verschelde 00d8f86044 i18n: Second pass at proofreading
Mostly removing commented out strings, plus a few critical ones
that should not be translated.
2016-05-21 01:27:27 +02:00
Rémi Verschelde 94c34ff890 i18n: Proofreading of all strings
Done to ensure that no important identifiers are translatable,
to fix compound strings using the new vformat() function, and
some general English proofreading here and there.
2016-05-21 00:21:57 +02:00