summaryrefslogtreecommitdiff
path: root/scene/resources
AgeCommit message (Collapse)Author
2022-02-08Merge pull request #57796 from akien-mga/revert-sname-theme-settersRémi Verschelde
2022-02-08Revert "Add missing SNAME macro optimization to all theme methods call"Rémi Verschelde
This reverts commit a988fad9a092053434545c32afae91ccbdfbe792. As discussed in #57725 and clarified in #57788, `SNAME` is not meant to be used everywhere but only in critical code paths. For theme methods specifically, it was by design that only getters use `SNAME` and not setters.
2022-02-08Refactor some object type checking code with `cast_to`Rémi Verschelde
Less stringly typed logic, and less String allocations and comparisons.
2022-02-07Merge pull request #57741 from Chaosus/vs_fixesRémi Verschelde
2022-02-07Merge pull request #57725 from jmb462/missing-sname-theme-settersRémi Verschelde
2022-02-07Add some more fixes to visual shaderYuri Roubinsky
2022-02-06Add missing SNAME macro optimization to all theme methods calljmb462
2022-02-06Rename `PORT_TYPE_VECTOR` to `PORT_TYPE_VECTOR_3D`Yuri Roubinsky
2022-02-06Add missing SNAME macro optimization in some function callsjmb462
2022-02-04[Net] New replication interface, spawner and synchronizer nodes.Fabio Alessandrelli
Initial implementation of the MultiplayerReplicationInterface and its default implementation (SceneReplicationInterface). New MultiplayerSpawner node helps dealing with instantiation of scenes on remote peers (e.g. clients). It supports both custom spawns via a `_spawn_custom` virtual function, and optional auto-spawn of known scenes via a TypedArray<PackedScenes> property. New MultiplayerSynchornizer helps synchronizing states between the local and remote peers, supports both sync and spawn properties and is configured via a `SceneReplicationConfig` resource. It can also sync via path (i.e. without being spawned by a MultiplayerSpawner if both peers has it in tree, but will not send the spawn state in that case, only the sync one.
2022-02-04Cleanup and move char functions to the `char_utils.h` header.bruvzg
2022-02-03Merge pull request #57562 from AnilBK/string-add-containsRémi Verschelde
String: Add contains().
2022-02-04String: Add contains().Anilforextra
2022-02-03Merge pull request #56365 from aaronfranke/default-shape-sizeRémi Verschelde
2022-02-02Add support for 2D vector type to visual shadersYuri Roubinsky
2022-02-02[TextServer] Add function to change font, font size, and OpenType features ↵bruvzg
without invalidating line break points, justification points, or recreating shaped text buffer.
2022-02-02Vectors: Use clear() and has().Anilforextra
Use clear() instead of resize(0). Use has() instead of "find(p_val) != -1".
2022-02-01Merge pull request #57376 from Calinou/gradienttexture2d-clamp-sizeRémi Verschelde
2022-02-01Improve the default size for 3D shapes (Box, Capsule, and Cylinder)Aaron Franke
2022-02-01Merge pull request #57375 from ↵Rémi Verschelde
Calinou/gradienttexture-curvetexture-decrease-default-size
2022-01-31Merge pull request #56970 from YeldhamDev/rise_tabbar_riseRémi Verschelde
2022-01-31Bring `TabBar` to full parity with the `TabContainer` implementation.Michael Alexsander
2022-01-31Merge pull request #57367 from Chaosus/vs_derivativeRémi Verschelde
2022-01-30Move placeholder color to theme itemPaulb23
2022-01-29simplify formatting scripts, add a clang-tidy script, and run clang-tidyNathan Franke
2022-01-29Clamp GradientTexture2D dimensions to 2048×2048 in the inspectorHugo Locurcio
Larger sizes take up a lot of memory for little visual benefit. They also take a while to initialize, which makes the inspector slow to refresh when the texture needs to be regenerated.
2022-01-29Decrease the default GradientTexture and CurveTexture sizeHugo Locurcio
This provides better usability when a GradientTexture or CurveTexture is added to a Control node. Visual appearance of most GradientTextures and CurveTextures will be unaffected.
2022-01-28Merge pull request #57371 from Scony/fix-navigation-2d-defaultsRémi Verschelde
2022-01-28Merge pull request #57368 from TokageItLab/fix-delta-for-animation-treeRémi Verschelde
2022-01-28Improve Navigation2D default settings, see #56852Pawel Lampe
This commit reduces `cell_size` and `edge_connection_margin` default values so that `Navigation2D` behaves more like in Godot <= `3.4` by default.
2022-01-29Make AnimationTree delta argument force double in coreSilc 'Tokage' Renew
2022-01-28[VisualShader] Merge scalar and vector derivative functions into oneYuri Roubinsky
2022-01-28TileSetAtlasSource: Make `get_tile_data` return `TileData *`Rémi Verschelde
This is now possible thanks to `Variant` changes. Also unbind some `_` prefixed methods which don't need to be exposed.
2022-01-26Merge pull request #54574 from Ansraer/glow_mapRémi Verschelde
2022-01-25Merge pull request #53954 from Chaosus/fix_quit_errorsRémi Verschelde
2022-01-25Merge pull request #55841 from OverloadedOrama/expose-bitmap-methodsRémi Verschelde
2022-01-25Merge pull request #56891 from rafallus/meshlib_shapes_arrayRémi Verschelde
2022-01-23Merge pull request #57056 from Chaosus/vs_fix_defaultsRémi Verschelde
2022-01-22Merge pull request #56912 from AnilBK/circle-fixRémi Verschelde
Circle&CapsuleShape2D: Fix outlines missing line.
2022-01-22Circle&CapsuleShape2D: Fix outlines missing line.Anilforextra
2022-01-22Remove transform input from fog mode in visual shadersYuri Roubinsky
2022-01-22Fix default input port hints for some modes in visual shaderYuri Roubinsky
2022-01-21Fix undo after non-last port removal in `VisualShaderNodeExpression`Yuri Roubinsky
2022-01-20Rename or refactor macros to avoid leading underscoresOmar Polo
These are not used consistently and some can conflict with system-specific defines. While here, also delete some unused macros.
2022-01-20add support for glow mapsAnsraer
2022-01-20Merge pull request #56972 from lawnjelly/warn_unusedRémi Verschelde
2022-01-20Add nodiscard to core math classes to catch c++ errors.lawnjelly
A common source of errors is to call functions (such as round()) expecting them to work in place, but them actually being designed only to return the processed value. Not using the return value in this case in indicative of a bug, and can be flagged as a warning by using the [[nodiscard]] attribute.
2022-01-19Improve the default project themeHugo Locurcio
The new default project theme uses StyleBoxFlat extensively for a more modern design and better scalability to multiple resolutions. SVG icons are now used in place of PNG icons. While this does not allow for true vector-based icon drawing (icons are still rasterized at load-time), this makes the design work easier for contributors and opens the door to vector drawing in the future (e.g. with polygons or SDFs). Like for editor icons, the SVG header file is now built automatically when a SVG file is changed. This removing the need for running `make_header.py` manually (TODO). The "Use Hidpi" project setting has been removed in favor of a "Default Theme Scale" project setting, which allows creating the default theme at a higher/lower scale than the default. This can be used when designing GUIs with a high base resolution to ensure crisp visuals. Co-authored-by: Yuri Sizov <yuris@humnom.net>
2022-01-18Make sure `MeshLibrary` shape array has correct number of elementsrafallus
2022-01-18Merge pull request #56104 from Geometror/add-flow-layout-containerRémi Verschelde
Add FlowContainer