Commit Graph

2455 Commits

Author SHA1 Message Date
ecd6a893b4 Change Color HTML conversion from ARGB to RGBA
Also add support for 3 and 4 digit values in C#. Now it actually matches the HTML/CSS spec.
2020-09-01 02:07:35 -04:00
74dbcf1e4d Merge pull request #30148 from zaksnet/fix-texture-editor
Adds automatic update for StyleBoxTexture > region_rect
2020-08-31 13:25:28 +02:00
b89ba85f6f Fix crash because of initialized EditorDebuggerPlugin field 2020-08-30 01:52:42 +02:00
Zak
7d7727bade Adds automatic update for region_rect
When changing the texture region for a StyleBox, the regions was not updating automatically in the Texture editor.
2020-08-29 19:46:52 +02:00
7a62b94bca Merge pull request #41523 from Lunatoid/theme-editor-h-scrollbar
Gives the theme editor a horizontal scrollbar
2020-08-27 12:16:56 +02:00
ea2eaf8c27 Added debugger plugin support
Changes:
* EngineDebugger is exposed to gdscript. Game side of communication can be implemented through it.
* EditorDebuggerPlugin is added which handles the editor side of communication.
2020-08-26 11:24:51 +05:30
d602be077d Gives the theme editor a horizontal scrollbar
Fixes #34509 where the theme editor would push away the inspector
if something like "hseperation" is really high.
Now `set_enable_h_scroll` is true which fixes this.
2020-08-26 01:48:46 +02:00
dd58f4da66 Merge pull request #41085 from SekoiaTree/master
Fixed node scaling arrows being wrong
2020-08-25 12:44:21 +02:00
603febdbfe Fixed node scaling arrows being wrong
Patch for #21755. Node scaling arrows pointed the wrong way when nodes were rotated. Ammend: made math cleaner.

Simplified expression

Changes suggested by Aaron Franke

Co-authored-by: Aaron Franke <arnfranke@yahoo.com>
2020-08-25 09:50:15 +02:00
396f2eee82 Update POT generation to handle context and plurals 2020-08-19 03:01:52 +02:00
ba1109a3b3 Merge pull request #41280 from Calinou/editor-3d-add-invert-x-option
Add an editor setting to invert 3D pan/orbit on the X axis
2020-08-17 15:54:40 +02:00
ac5619f521 Merge pull request #41223 from javidcf/sprite_frames_editor_zoom
Added zoom functionality to sprite frames editor plugin
2020-08-15 18:46:48 +02:00
2c9d4ef961 Add an editor setting to invert 3D pan/orbit on the X axis
This also makes the invert Y axis option apply to 3D panning.

This closes #28082.
2020-08-15 13:18:57 +02:00
f2ef5253f0 Added zoom functionality to sprite frames editor plugin
Zoom buttons and mouse control added to spritesheet preview and animation frames pane.
2020-08-14 11:48:44 +01:00
3e7cbe7fc8 Made toolbar buttons in tile set editor flat 2020-08-14 11:45:47 +01:00
cf04aabef1 Fix tile placement preview for rotated, skewed or scaled TileMaps
Ensures that the editor preview when placing a tile on a TileMap takes
into account the transformation of the TileMap. Previously, only the
origin of the Tile was transformed, but not its orientation or
scaling.
2020-08-05 10:12:08 +08:00
3082def404 Properly disambiguate unsaved scripts 2020-07-31 22:43:40 +02:00
0594da324c Fix incorrect colors for member variables and numbers in visual shaders 2020-07-31 11:06:48 +03:00
b289bb514b Fixed script_editor info_clicked signal not being connected 2020-07-29 17:51:27 +01:00
7a31baf3b9 Merge pull request #40800 from briansemrau/fix-shader-comment-highlighting
Fixed Shader editor single-line comment highlight
2020-07-28 21:44:30 +02:00
69d1c48b73 Fixed shader editor comment highlighting 2020-07-28 15:16:24 -04:00
a33171ad23 Fix functions name color in visual shader code preview and expressions 2020-07-28 20:58:23 +03:00
cf03f90fa8 Merge pull request #40785 from Chaosus/vs_uniform_ref
Added UniformRef visual shader node
2020-07-28 16:17:37 +03:00
7ddaff47a3 Added UniformRef visual shader node 2020-07-28 14:44:53 +03:00
56e2c6c704 Make all String float conversion methods be 64-bit 2020-07-27 18:38:53 -04:00
e016859c3b Script editor: Fix crash when root script is null
Bug introduced in #40746.
2020-07-27 15:18:31 +02:00
6b3f013a82 Script editor: Fix open dominant logic for language-specific external editors
Follow-up to #40735.

Co-authored-by: Ignacio Etcheverry <ignalfonsore@gmail.com>
2020-07-27 10:30:03 +02:00
b5f110c77e Script editor: Don't open dominant script in external editor
Fixes #13429.
2020-07-26 23:18:05 +02:00
c75f4c06f0 Merge pull request #40647 from Xrayez/blank-tabs-fix
Make unsaved scripts in the script editor more user-friendly
2020-07-26 17:11:31 +02:00
1a829621e3 Merge pull request #33548 from Calinou/shader-editor-tweak-builtins-color
Tweak the built-ins color highlighting in the shader editor
2020-07-26 16:50:50 +02:00
7247247522 Make unsaved scripts in the script editor more user-friendly
Unsaved scripts were previously displayed with blank tabs, which are
mostly a result of deleted or improperly moved scripts.

This patch makes sure that those kind of scripts are displayed as
"[unsaved]" now, and ensures that scripts are removed from the list
while deleting scripts from the filesystem dock preventing the unsaved
tabs to appear in the first place (a user is already prompted with
"no undo" warning while deleting any file).

A user is always prompted to save those "[unsaved]" scripts if they
attempt to close them without saving in any case except as described
above.
2020-07-26 16:05:44 +03:00
5700429e4e Merge pull request #33760 from nekomatata/script-editor-init-optimization
Optimized ScriptEditor initialization when many scripts are loaded
2020-07-26 14:05:56 +02:00
5f75cec59e Merge pull request #40640 from Xrayez/base-begins-with-local-err
Skip internal scripts for breakpoints without printing an error
2020-07-25 13:00:02 +02:00
280d4e2965 Fix TTR misuse 2020-07-24 15:15:23 +02:00
27d1209282 Merge pull request #38088 from YeldhamDev/name_tooltips_tweaks
Small naming and tooltip tweaks
2020-07-24 13:57:13 +02:00
5643d2e3fe Small naming and tooltip tweaks 2020-07-23 20:17:43 -03:00
3811fb919e Merge pull request #40598 from vnen/gdscript-2.0
GDScript 2.0 (again)
2020-07-24 01:04:57 +02:00
1c70a33d9c Skip internal scripts for breakpoints without printing an error
This removes:
```
ERROR: get_breakpoints: Condition ' base.begins_with("local://")
```
while running a project with blank scripts caused by deleting
or moving, or built-in scripts which are not yet saved within a scene
on running a project.
2020-07-23 20:51:17 +03:00
394a7826be [macOS] Fix Maya navigation with ALT + mouse scroll
Methods were being called with InputEventMouseMotion instead of InputEventPanGesture, and they were null.

Fixes godotengine/godot#16181 on the master branch
2020-07-23 10:38:31 -04:00
5671469724 Merge pull request #37336 from dreamsComeTrue/canvas-editor-change-cursor
Request immediate refresh of cursor in 2D editor while using shortcuts
2020-07-23 09:49:48 +02:00
22ed721d15 Merge pull request #40448 from Paulb23/fix_txt_close_crash
Fix crash when closing a TextFile
2020-07-21 21:08:39 +02:00
6f428f2494 TileSet Editor: Check polygon size before indexing
Fixes #39722.
2020-07-21 11:18:19 +02:00
95c0909290 Add warning checks in GDScript analyzer
Reenable checking those when validating code.
2020-07-20 11:38:40 -03:00
e44c9101da Prevent multiple Controls moving inside container 2020-07-20 13:22:13 +02:00
ccff2f2551 Optimized ScriptEditor initialization when many scripts are loaded
This change avoids the editor to freeze for several seconds when a
project with lots of scripts is loaded in the editor.

It focuses on a few heavy operations previously executed on all
previously loaded scripts:
- Initialize script resource (script validation/parsing) only
on focus
- ScriptTextEditor: code editor and edit menu are added to the
scene only on focus
- Add to recent scripts only when opening new scripts
(load/save scene metadata)
2020-07-17 09:02:24 +02:00
54bca425b2 Fix crash when closing a TextFile 2020-07-16 15:50:23 +01:00
bfc644a9aa Tweak the built-ins color highlighting in the shader editor
This makes built-ins easier to distinguish from keywords at a
quick glance.
2020-07-15 23:03:26 +02:00
6497a3fb50 Merge pull request #40291 from hinlopen/dialog-size
Resize various dialogs
2020-07-15 12:13:33 +02:00
c8523038cc Merge pull request #40268 from DanielZTing/master
Fix cancel/OK button order on macOS
2020-07-15 09:21:04 +02:00
526e060b73 Resize dialogs (FileDialog, EditorFileDialog, Reparent, SceneTreeDialog and resource depency dialogs). 2020-07-14 14:35:22 +02:00