mirror of
https://github.com/godotengine/godot.git
synced 2024-11-21 19:42:43 +00:00
[Editor] Expose more editor settings to documentation
Co-authored-by: Tomasz Chabora <kobewi4e@gmail.com>
This commit is contained in:
parent
83d54ab2ad
commit
dd6443193c
@ -181,6 +181,9 @@
|
|||||||
</method>
|
</method>
|
||||||
</methods>
|
</methods>
|
||||||
<members>
|
<members>
|
||||||
|
<member name="asset_library/use_threads" type="bool" setter="" getter="">
|
||||||
|
If [code]true[/code], the Asset Library uses multiple threads for its HTTP requests. This prevents the Asset Library from blocking the main thread for every loaded asset.
|
||||||
|
</member>
|
||||||
<member name="debugger/auto_switch_to_remote_scene_tree" type="bool" setter="" getter="">
|
<member name="debugger/auto_switch_to_remote_scene_tree" type="bool" setter="" getter="">
|
||||||
If [code]true[/code], automatically switches to the [b]Remote[/b] scene tree when running the project from the editor. If [code]false[/code], stays on the [b]Local[/b] scene tree when running the project from the editor.
|
If [code]true[/code], automatically switches to the [b]Remote[/b] scene tree when running the project from the editor. If [code]false[/code], stays on the [b]Local[/b] scene tree when running the project from the editor.
|
||||||
</member>
|
</member>
|
||||||
@ -222,6 +225,12 @@
|
|||||||
<member name="docks/property_editor/subresource_hue_tint" type="float" setter="" getter="">
|
<member name="docks/property_editor/subresource_hue_tint" type="float" setter="" getter="">
|
||||||
The tint intensity to use for the subresources background in the Inspector dock. The tint is used to distinguish between different subresources in the inspector. Higher values result in a more noticeable background color difference.
|
The tint intensity to use for the subresources background in the Inspector dock. The tint is used to distinguish between different subresources in the inspector. Higher values result in a more noticeable background color difference.
|
||||||
</member>
|
</member>
|
||||||
|
<member name="docks/scene_tree/ask_before_deleting_related_animation_tracks" type="bool" setter="" getter="">
|
||||||
|
If [code]true[/code], when a node is deleted with animation tracks referencing it, a confirmation dialog appears before the tracks are deleted. The dialog will appear even when using the "Delete (No Confirm)" shortcut.
|
||||||
|
</member>
|
||||||
|
<member name="docks/scene_tree/ask_before_revoking_unique_name" type="bool" setter="" getter="">
|
||||||
|
If [code]true[/code], displays a confirmation dialog before left-clicking the "percent" icon next to a node name in the Scene tree dock. When clicked, this icon revokes the node's scene-unique name, which can impact the behavior of scripts that rely on this scene-unique name due to identifiers not being found anymore.
|
||||||
|
</member>
|
||||||
<member name="docks/scene_tree/auto_expand_to_selected" type="bool" setter="" getter="">
|
<member name="docks/scene_tree/auto_expand_to_selected" type="bool" setter="" getter="">
|
||||||
If [code]true[/code], the scene tree dock will automatically unfold nodes when a node that has folded parents is selected.
|
If [code]true[/code], the scene tree dock will automatically unfold nodes when a node that has folded parents is selected.
|
||||||
</member>
|
</member>
|
||||||
@ -327,6 +336,12 @@
|
|||||||
<member name="editors/3d/grid_yz_plane" type="bool" setter="" getter="">
|
<member name="editors/3d/grid_yz_plane" type="bool" setter="" getter="">
|
||||||
If [code]true[/code], renders the grid on the YZ plane in perspective view. This can be useful for 3D side-scrolling games.
|
If [code]true[/code], renders the grid on the YZ plane in perspective view. This can be useful for 3D side-scrolling games.
|
||||||
</member>
|
</member>
|
||||||
|
<member name="editors/3d/manipulator_gizmo_opacity" type="float" setter="" getter="">
|
||||||
|
Opacity of the default gizmo for moving, rotating, and scaling 3D nodes.
|
||||||
|
</member>
|
||||||
|
<member name="editors/3d/manipulator_gizmo_size" type="int" setter="" getter="">
|
||||||
|
Size of the default gizmo for moving, rotating, and scaling 3D nodes.
|
||||||
|
</member>
|
||||||
<member name="editors/3d/navigation/emulate_3_button_mouse" type="bool" setter="" getter="">
|
<member name="editors/3d/navigation/emulate_3_button_mouse" type="bool" setter="" getter="">
|
||||||
If [code]true[/code], enables 3-button mouse emulation mode. This is useful on laptops when using a trackpad.
|
If [code]true[/code], enables 3-button mouse emulation mode. This is useful on laptops when using a trackpad.
|
||||||
When 3-button mouse emulation mode is enabled, the pan, zoom and orbit modifiers can always be used in the 3D editor viewport, even when not holding down any mouse button.
|
When 3-button mouse emulation mode is enabled, the pan, zoom and orbit modifiers can always be used in the 3D editor viewport, even when not holding down any mouse button.
|
||||||
@ -355,6 +370,12 @@
|
|||||||
<member name="editors/3d/navigation/pan_mouse_button" type="int" setter="" getter="">
|
<member name="editors/3d/navigation/pan_mouse_button" type="int" setter="" getter="">
|
||||||
The mouse button that needs to be held down to pan in the 3D editor viewport.
|
The mouse button that needs to be held down to pan in the 3D editor viewport.
|
||||||
</member>
|
</member>
|
||||||
|
<member name="editors/3d/navigation/show_viewport_navigation_gizmo" type="bool" setter="" getter="">
|
||||||
|
If [code]true[/code], shows gizmos for moving and rotating the camera in the bottom corners of the 3D editor's viewport. Useful for devices that use touch screen.
|
||||||
|
</member>
|
||||||
|
<member name="editors/3d/navigation/show_viewport_rotation_gizmo" type="bool" setter="" getter="">
|
||||||
|
If [code]true[/code], shows a small orientation gizmo in the top-right corner of the 3D editor's viewports.
|
||||||
|
</member>
|
||||||
<member name="editors/3d/navigation/warped_mouse_panning" type="bool" setter="" getter="">
|
<member name="editors/3d/navigation/warped_mouse_panning" type="bool" setter="" getter="">
|
||||||
If [code]true[/code], warps the mouse around the 3D viewport while panning in the 3D editor. This makes it possible to pan over a large area without having to exit panning and adjust the mouse cursor.
|
If [code]true[/code], warps the mouse around the 3D viewport while panning in the 3D editor. This makes it possible to pan over a large area without having to exit panning and adjust the mouse cursor.
|
||||||
</member>
|
</member>
|
||||||
@ -391,12 +412,78 @@
|
|||||||
<member name="editors/3d_gizmos/gizmo_colors/aabb" type="Color" setter="" getter="">
|
<member name="editors/3d_gizmos/gizmo_colors/aabb" type="Color" setter="" getter="">
|
||||||
The color to use for the AABB gizmo that displays the [GeometryInstance3D]'s custom [AABB].
|
The color to use for the AABB gizmo that displays the [GeometryInstance3D]'s custom [AABB].
|
||||||
</member>
|
</member>
|
||||||
|
<member name="editors/3d_gizmos/gizmo_colors/camera" type="Color" setter="" getter="">
|
||||||
|
The 3D editor gizmo color for [Camera3D]s.
|
||||||
|
</member>
|
||||||
|
<member name="editors/3d_gizmos/gizmo_colors/csg" type="Color" setter="" getter="">
|
||||||
|
The 3D editor gizmo color for CSG nodes (such as [CSGShape3D] or [CSGBox3D]).
|
||||||
|
</member>
|
||||||
|
<member name="editors/3d_gizmos/gizmo_colors/decal" type="Color" setter="" getter="">
|
||||||
|
The 3D editor gizmo color for [Decal] nodes.
|
||||||
|
</member>
|
||||||
|
<member name="editors/3d_gizmos/gizmo_colors/fog_volume" type="Color" setter="" getter="">
|
||||||
|
The 3D editor gizmo color for [FogVolume] nodes.
|
||||||
|
</member>
|
||||||
<member name="editors/3d_gizmos/gizmo_colors/instantiated" type="Color" setter="" getter="">
|
<member name="editors/3d_gizmos/gizmo_colors/instantiated" type="Color" setter="" getter="">
|
||||||
The color override to use for 3D editor gizmos if the [Node3D] in question is part of an instantiated scene file (from the perspective of the current scene).
|
The color override to use for 3D editor gizmos if the [Node3D] in question is part of an instantiated scene file (from the perspective of the current scene).
|
||||||
</member>
|
</member>
|
||||||
<member name="editors/3d_gizmos/gizmo_colors/joint" type="Color" setter="" getter="">
|
<member name="editors/3d_gizmos/gizmo_colors/joint" type="Color" setter="" getter="">
|
||||||
The 3D editor gizmo color for [Joint3D]s and [PhysicalBone3D]s.
|
The 3D editor gizmo color for [Joint3D]s and [PhysicalBone3D]s.
|
||||||
</member>
|
</member>
|
||||||
|
<member name="editors/3d_gizmos/gizmo_colors/joint_body_a" type="Color" setter="" getter="">
|
||||||
|
Color for representing [member Joint3D.node_a] for some [Joint3D] types.
|
||||||
|
</member>
|
||||||
|
<member name="editors/3d_gizmos/gizmo_colors/joint_body_b" type="Color" setter="" getter="">
|
||||||
|
Color for representing [member Joint3D.node_b] for some [Joint3D] types.
|
||||||
|
</member>
|
||||||
|
<member name="editors/3d_gizmos/gizmo_colors/lightmap_lines" type="Color" setter="" getter="">
|
||||||
|
Color of lines displayed in baked [LightmapGI] node's grid.
|
||||||
|
</member>
|
||||||
|
<member name="editors/3d_gizmos/gizmo_colors/lightprobe_lines" type="Color" setter="" getter="">
|
||||||
|
The 3D editor gizmo color used for [LightmapProbe] nodes.
|
||||||
|
</member>
|
||||||
|
<member name="editors/3d_gizmos/gizmo_colors/occluder" type="Color" setter="" getter="">
|
||||||
|
The 3D editor gizmo color used for [OccluderInstance3D] nodes.
|
||||||
|
</member>
|
||||||
|
<member name="editors/3d_gizmos/gizmo_colors/particle_attractor" type="Color" setter="" getter="">
|
||||||
|
The 3D editor gizmo color used for [GPUParticlesAttractor3D] nodes.
|
||||||
|
</member>
|
||||||
|
<member name="editors/3d_gizmos/gizmo_colors/particle_collision" type="Color" setter="" getter="">
|
||||||
|
The 3D editor gizmo color used for [GPUParticlesCollision3D] nodes.
|
||||||
|
</member>
|
||||||
|
<member name="editors/3d_gizmos/gizmo_colors/particles" type="Color" setter="" getter="">
|
||||||
|
The 3D editor gizmo color used for [CPUParticles3D] and [GPUParticles3D] nodes.
|
||||||
|
</member>
|
||||||
|
<member name="editors/3d_gizmos/gizmo_colors/path_tilt" type="Color" setter="" getter="">
|
||||||
|
The 3D editor gizmo color used for [Path3D] tilt circles, which indicate the direction the [Curve3D] is tilted towards.
|
||||||
|
</member>
|
||||||
|
<member name="editors/3d_gizmos/gizmo_colors/reflection_probe" type="Color" setter="" getter="">
|
||||||
|
The 3D editor gizmo color used for [ReflectionProbe] nodes.
|
||||||
|
</member>
|
||||||
|
<member name="editors/3d_gizmos/gizmo_colors/selected_bone" type="Color" setter="" getter="">
|
||||||
|
The 3D editor gizmo color used for the currently selected [Skeleton3D] bone.
|
||||||
|
</member>
|
||||||
|
<member name="editors/3d_gizmos/gizmo_colors/skeleton" type="Color" setter="" getter="">
|
||||||
|
The 3D editor gizmo color used for [Skeleton3D] nodes.
|
||||||
|
</member>
|
||||||
|
<member name="editors/3d_gizmos/gizmo_colors/stream_player_3d" type="Color" setter="" getter="">
|
||||||
|
The 3D editor gizmo color used for [AudioStreamPlayer3D]'s emission angle.
|
||||||
|
</member>
|
||||||
|
<member name="editors/3d_gizmos/gizmo_colors/visibility_notifier" type="Color" setter="" getter="">
|
||||||
|
The 3D editor gizmo color used for [VisibleOnScreenNotifier3D] and [VisibleOnScreenEnabler3D] nodes.
|
||||||
|
</member>
|
||||||
|
<member name="editors/3d_gizmos/gizmo_colors/voxel_gi" type="Color" setter="" getter="">
|
||||||
|
The 3D editor gizmo color used for [VoxelGI] nodes.
|
||||||
|
</member>
|
||||||
|
<member name="editors/3d_gizmos/gizmo_settings/bone_axis_length" type="float" setter="" getter="">
|
||||||
|
The length of [Skeleton3D] bone gizmos in the 3D editor.
|
||||||
|
</member>
|
||||||
|
<member name="editors/3d_gizmos/gizmo_settings/bone_shape" type="int" setter="" getter="">
|
||||||
|
The shape of [Skeleton3D] bone gizmos in the 3D editor. [b]Wire[/b] is a thin line, while [b]Octahedron[/b] is a set of lines that represent a thicker hollow line pointing in a specific direction (similar to most 3D animation software).
|
||||||
|
</member>
|
||||||
|
<member name="editors/3d_gizmos/gizmo_settings/path3d_tilt_disk_size" type="float" setter="" getter="">
|
||||||
|
Size of the disk gizmo displayed when editing [Path3D]'s tilt handles.
|
||||||
|
</member>
|
||||||
<member name="editors/animation/autorename_animation_tracks" type="bool" setter="" getter="">
|
<member name="editors/animation/autorename_animation_tracks" type="bool" setter="" getter="">
|
||||||
If [code]true[/code], automatically updates animation tracks' target paths when renaming or reparenting nodes in the Scene tree dock.
|
If [code]true[/code], automatically updates animation tracks' target paths when renaming or reparenting nodes in the Scene tree dock.
|
||||||
</member>
|
</member>
|
||||||
@ -416,9 +503,26 @@
|
|||||||
<member name="editors/animation/onion_layers_past_color" type="Color" setter="" getter="">
|
<member name="editors/animation/onion_layers_past_color" type="Color" setter="" getter="">
|
||||||
The modulate color to use for "past" frames displayed in the animation editor's onion skinning feature.
|
The modulate color to use for "past" frames displayed in the animation editor's onion skinning feature.
|
||||||
</member>
|
</member>
|
||||||
|
<member name="editors/bone_mapper/handle_colors/error" type="Color" setter="" getter="">
|
||||||
|
</member>
|
||||||
|
<member name="editors/bone_mapper/handle_colors/missing" type="Color" setter="" getter="">
|
||||||
|
</member>
|
||||||
|
<member name="editors/bone_mapper/handle_colors/set" type="Color" setter="" getter="">
|
||||||
|
</member>
|
||||||
|
<member name="editors/bone_mapper/handle_colors/unset" type="Color" setter="" getter="">
|
||||||
|
</member>
|
||||||
|
<member name="editors/grid_map/editor_side" type="int" setter="" getter="">
|
||||||
|
Specifies the side of 3D editor's viewport where GridMap's mesh palette will appear.
|
||||||
|
</member>
|
||||||
|
<member name="editors/grid_map/palette_min_width" type="int" setter="" getter="">
|
||||||
|
Minimum width of GridMap's mesh palette side panel.
|
||||||
|
</member>
|
||||||
<member name="editors/grid_map/pick_distance" type="float" setter="" getter="">
|
<member name="editors/grid_map/pick_distance" type="float" setter="" getter="">
|
||||||
The maximum distance at which tiles can be placed on a GridMap, relative to the camera position (in 3D units).
|
The maximum distance at which tiles can be placed on a GridMap, relative to the camera position (in 3D units).
|
||||||
</member>
|
</member>
|
||||||
|
<member name="editors/grid_map/preview_size" type="int" setter="" getter="">
|
||||||
|
Texture size of mesh previews generated for GridMap's MeshLibrary.
|
||||||
|
</member>
|
||||||
<member name="editors/panning/2d_editor_pan_speed" type="int" setter="" getter="">
|
<member name="editors/panning/2d_editor_pan_speed" type="int" setter="" getter="">
|
||||||
The panning speed when using the mouse wheel or touchscreen events in the 2D editor. This setting does not apply to panning by holding down the middle or right mouse buttons.
|
The panning speed when using the mouse wheel or touchscreen events in the 2D editor. This setting does not apply to panning by holding down the middle or right mouse buttons.
|
||||||
</member>
|
</member>
|
||||||
@ -528,6 +632,13 @@
|
|||||||
<member name="editors/visual_editors/visual_shader/port_preview_size" type="int" setter="" getter="">
|
<member name="editors/visual_editors/visual_shader/port_preview_size" type="int" setter="" getter="">
|
||||||
The size to use for port previews in the visual shader uniforms (toggled by clicking the "eye" icon next to an output). The value is defined in pixels at 100% zoom, and will scale with zoom automatically.
|
The size to use for port previews in the visual shader uniforms (toggled by clicking the "eye" icon next to an output). The value is defined in pixels at 100% zoom, and will scale with zoom automatically.
|
||||||
</member>
|
</member>
|
||||||
|
<member name="export/ssh/scp" type="String" setter="" getter="">
|
||||||
|
Path to the SCP (secure copy) executable (used for remote deploy to desktop platforms). If left empty, the editor will attempt to run [code]scp[/code] from [code]PATH[/code].
|
||||||
|
[b]Note:[/b] SCP is not the same as SFTP. Specifying the SFTP executable here will not work.
|
||||||
|
</member>
|
||||||
|
<member name="export/ssh/ssh" type="String" setter="" getter="">
|
||||||
|
Path to the SSH executable (used for remote deploy to desktop platforms). If left empty, the editor will attempt to run [code]ssh[/code] from [code]PATH[/code].
|
||||||
|
</member>
|
||||||
<member name="filesystem/directories/autoscan_project_path" type="String" setter="" getter="">
|
<member name="filesystem/directories/autoscan_project_path" type="String" setter="" getter="">
|
||||||
The folder where projects should be scanned for (recursively), in a way similar to the project manager's [b]Scan[/b] button. This can be set to the same value as [member filesystem/directories/default_project_path] for convenience.
|
The folder where projects should be scanned for (recursively), in a way similar to the project manager's [b]Scan[/b] button. This can be set to the same value as [member filesystem/directories/default_project_path] for convenience.
|
||||||
[b]Note:[/b] Setting this path to a folder with very large amounts of files/folders can slow down the project manager startup significantly. To keep the project manager quick to start up, it is recommended to set this value to a folder as "specific" as possible.
|
[b]Note:[/b] Setting this path to a folder with very large amounts of files/folders can slow down the project manager startup significantly. To keep the project manager quick to start up, it is recommended to set this value to a folder as "specific" as possible.
|
||||||
@ -573,6 +684,12 @@
|
|||||||
<member name="filesystem/file_dialog/thumbnail_size" type="int" setter="" getter="">
|
<member name="filesystem/file_dialog/thumbnail_size" type="int" setter="" getter="">
|
||||||
The thumbnail size to use in the editor's file dialogs (in pixels). See also [member docks/filesystem/thumbnail_size].
|
The thumbnail size to use in the editor's file dialogs (in pixels). See also [member docks/filesystem/thumbnail_size].
|
||||||
</member>
|
</member>
|
||||||
|
<member name="filesystem/file_server/password" type="String" setter="" getter="">
|
||||||
|
Password used for file server when exporting project with remote file system.
|
||||||
|
</member>
|
||||||
|
<member name="filesystem/file_server/port" type="int" setter="" getter="">
|
||||||
|
Port used for file server when exporting project with remote file system.
|
||||||
|
</member>
|
||||||
<member name="filesystem/import/blender/blender_path" type="String" setter="" getter="">
|
<member name="filesystem/import/blender/blender_path" type="String" setter="" getter="">
|
||||||
The path to the directory containing the Blender executable used for converting the Blender 3D scene files [code].blend[/code] to glTF 2.0 format during import. Blender 3.0 or later is required.
|
The path to the directory containing the Blender executable used for converting the Blender 3D scene files [code].blend[/code] to glTF 2.0 format during import. Blender 3.0 or later is required.
|
||||||
To enable this feature for your specific project, use [member ProjectSettings.filesystem/import/blender/enabled].
|
To enable this feature for your specific project, use [member ProjectSettings.filesystem/import/blender/enabled].
|
||||||
@ -759,6 +876,12 @@
|
|||||||
Depending on the platform and used renderer, the engine will fall back to [b]Enabled[/b] if the desired mode is not supported.
|
Depending on the platform and used renderer, the engine will fall back to [b]Enabled[/b] if the desired mode is not supported.
|
||||||
[b]Note:[/b] V-Sync modes other than [b]Enabled[/b] are only supported in the Forward+ and Mobile rendering methods, not Compatibility.
|
[b]Note:[/b] V-Sync modes other than [b]Enabled[/b] are only supported in the Forward+ and Mobile rendering methods, not Compatibility.
|
||||||
</member>
|
</member>
|
||||||
|
<member name="interface/editors/derive_script_globals_by_name" type="bool" setter="" getter="">
|
||||||
|
If [code]true[/code], when extending a script, the global class name of the script is inserted in the script creation dialog, if it exists. If [code]false[/code], the script's file path is always inserted.
|
||||||
|
</member>
|
||||||
|
<member name="interface/editors/show_scene_tree_root_selection" type="bool" setter="" getter="">
|
||||||
|
If [code]true[/code], the Scene dock will display buttons to quickly add a root node to a newly created scene.
|
||||||
|
</member>
|
||||||
<member name="interface/inspector/auto_unfold_foreign_scenes" type="bool" setter="" getter="">
|
<member name="interface/inspector/auto_unfold_foreign_scenes" type="bool" setter="" getter="">
|
||||||
If [code]true[/code], automatically expands property groups in the Inspector dock when opening a scene that hasn't been opened previously. If [code]false[/code], all groups remain collapsed by default.
|
If [code]true[/code], automatically expands property groups in the Inspector dock when opening a scene that hasn't been opened previously. If [code]false[/code], all groups remain collapsed by default.
|
||||||
</member>
|
</member>
|
||||||
@ -1052,6 +1175,9 @@
|
|||||||
<member name="text_editor/appearance/whitespace/line_spacing" type="int" setter="" getter="">
|
<member name="text_editor/appearance/whitespace/line_spacing" type="int" setter="" getter="">
|
||||||
The space to add between lines (in pixels). Greater line spacing can help improve readability at the cost of displaying fewer lines on screen.
|
The space to add between lines (in pixels). Greater line spacing can help improve readability at the cost of displaying fewer lines on screen.
|
||||||
</member>
|
</member>
|
||||||
|
<member name="text_editor/behavior/files/auto_reload_and_parse_scripts_on_save" type="bool" setter="" getter="">
|
||||||
|
If [code]true[/code], tool scripts will be automatically soft-reloaded after they are saved.
|
||||||
|
</member>
|
||||||
<member name="text_editor/behavior/files/auto_reload_scripts_on_external_change" type="bool" setter="" getter="">
|
<member name="text_editor/behavior/files/auto_reload_scripts_on_external_change" type="bool" setter="" getter="">
|
||||||
If [code]true[/code], automatically reloads scripts in the editor when they have been modified and saved by external editors.
|
If [code]true[/code], automatically reloads scripts in the editor when they have been modified and saved by external editors.
|
||||||
</member>
|
</member>
|
||||||
@ -1061,6 +1187,9 @@
|
|||||||
<member name="text_editor/behavior/files/convert_indent_on_save" type="bool" setter="" getter="">
|
<member name="text_editor/behavior/files/convert_indent_on_save" type="bool" setter="" getter="">
|
||||||
If [code]true[/code], converts indentation to match the script editor's indentation settings when saving a script. See also [member text_editor/behavior/indent/type].
|
If [code]true[/code], converts indentation to match the script editor's indentation settings when saving a script. See also [member text_editor/behavior/indent/type].
|
||||||
</member>
|
</member>
|
||||||
|
<member name="text_editor/behavior/files/open_dominant_script_on_scene_change" type="bool" setter="" getter="">
|
||||||
|
If [code]true[/code], opening a scene automatically opens the script attached to the root node, or the topmost node if the root has no script.
|
||||||
|
</member>
|
||||||
<member name="text_editor/behavior/files/restore_scripts_on_load" type="bool" setter="" getter="">
|
<member name="text_editor/behavior/files/restore_scripts_on_load" type="bool" setter="" getter="">
|
||||||
If [code]true[/code], reopens scripts that were opened in the last session when the editor is reopened on a given project.
|
If [code]true[/code], reopens scripts that were opened in the last session when the editor is reopened on a given project.
|
||||||
</member>
|
</member>
|
||||||
@ -1148,6 +1277,15 @@
|
|||||||
<member name="text_editor/completion/use_single_quotes" type="bool" setter="" getter="">
|
<member name="text_editor/completion/use_single_quotes" type="bool" setter="" getter="">
|
||||||
If [code]true[/code], performs string autocompletion with single quotes. If [code]false[/code], performs string autocompletion with double quotes (which matches the [url=$DOCS_URL/tutorials/scripting/gdscript/gdscript_styleguide.html]GDScript style guide[/url]).
|
If [code]true[/code], performs string autocompletion with single quotes. If [code]false[/code], performs string autocompletion with double quotes (which matches the [url=$DOCS_URL/tutorials/scripting/gdscript/gdscript_styleguide.html]GDScript style guide[/url]).
|
||||||
</member>
|
</member>
|
||||||
|
<member name="text_editor/external/exec_flags" type="String" setter="" getter="">
|
||||||
|
The command-line arguments to pass to the external text editor that is run when [member text_editor/external/use_external_editor] is [code]true[/code]. See also [member text_editor/external/exec_path].
|
||||||
|
</member>
|
||||||
|
<member name="text_editor/external/exec_path" type="String" setter="" getter="">
|
||||||
|
The path to the text editor executable used to edit text files if [member text_editor/external/use_external_editor] is [code]true[/code].
|
||||||
|
</member>
|
||||||
|
<member name="text_editor/external/use_external_editor" type="bool" setter="" getter="">
|
||||||
|
If [code]true[/code], uses an external editor instead of the built-in Script Editor. See also [member text_editor/external/exec_path] and [member text_editor/external/exec_flags].
|
||||||
|
</member>
|
||||||
<member name="text_editor/help/class_reference_examples" type="int" setter="" getter="">
|
<member name="text_editor/help/class_reference_examples" type="int" setter="" getter="">
|
||||||
Controls which multi-line code blocks should be displayed in the editor help. This setting does not affect single-line code literals in the editor help.
|
Controls which multi-line code blocks should be displayed in the editor help. This setting does not affect single-line code literals in the editor help.
|
||||||
</member>
|
</member>
|
||||||
@ -1163,6 +1301,21 @@
|
|||||||
<member name="text_editor/help/show_help_index" type="bool" setter="" getter="">
|
<member name="text_editor/help/show_help_index" type="bool" setter="" getter="">
|
||||||
If [code]true[/code], displays a table of contents at the left of the editor help (at the location where the members overview would appear when editing a script).
|
If [code]true[/code], displays a table of contents at the left of the editor help (at the location where the members overview would appear when editing a script).
|
||||||
</member>
|
</member>
|
||||||
|
<member name="text_editor/help/sort_functions_alphabetically" type="bool" setter="" getter="">
|
||||||
|
If [code]true[/code], the script's method list in the Script Editor is sorted alphabetically.
|
||||||
|
</member>
|
||||||
|
<member name="text_editor/script_list/group_help_pages" type="bool" setter="" getter="">
|
||||||
|
If [code]true[/code], class reference pages are grouped together at the bottom of the Script Editor's script list.
|
||||||
|
</member>
|
||||||
|
<member name="text_editor/script_list/list_script_names_as" type="int" setter="" getter="">
|
||||||
|
Specifies how script paths should be displayed in Script Editor's script list. If using the "Name" option and some scripts share the same file name, more parts of their paths are revealed to avoid conflicts.
|
||||||
|
</member>
|
||||||
|
<member name="text_editor/script_list/script_temperature_enabled" type="bool" setter="" getter="">
|
||||||
|
If [code]true[/code], the names of recently opened scripts in the Script Editor are highlighted with the accent color, with its intensity based on how recently they were opened.
|
||||||
|
</member>
|
||||||
|
<member name="text_editor/script_list/script_temperature_history_size" type="int" setter="" getter="">
|
||||||
|
How many script names can be highlighted at most, if [member text_editor/script_list/script_temperature_enabled] is [code]true[/code]. Scripts older than this value use the default font color.
|
||||||
|
</member>
|
||||||
<member name="text_editor/script_list/show_members_overview" type="bool" setter="" getter="">
|
<member name="text_editor/script_list/show_members_overview" type="bool" setter="" getter="">
|
||||||
If [code]true[/code], displays an overview of the current script's member variables and functions at the left of the script editor. See also [member text_editor/script_list/sort_members_outline_alphabetically].
|
If [code]true[/code], displays an overview of the current script's member variables and functions at the left of the script editor. See also [member text_editor/script_list/sort_members_outline_alphabetically].
|
||||||
</member>
|
</member>
|
||||||
@ -1170,6 +1323,9 @@
|
|||||||
If [code]true[/code], sorts the members outline (located at the left of the script editor) using alphabetical order. If [code]false[/code], sorts the members outline depending on the order in which members are found in the script.
|
If [code]true[/code], sorts the members outline (located at the left of the script editor) using alphabetical order. If [code]false[/code], sorts the members outline depending on the order in which members are found in the script.
|
||||||
[b]Note:[/b] Only effective if [member text_editor/script_list/show_members_overview] is [code]true[/code].
|
[b]Note:[/b] Only effective if [member text_editor/script_list/show_members_overview] is [code]true[/code].
|
||||||
</member>
|
</member>
|
||||||
|
<member name="text_editor/script_list/sort_scripts_by" type="int" setter="" getter="">
|
||||||
|
Specifies sorting used for Script Editor's open script list.
|
||||||
|
</member>
|
||||||
<member name="text_editor/theme/color_theme" type="String" setter="" getter="">
|
<member name="text_editor/theme/color_theme" type="String" setter="" getter="">
|
||||||
The syntax theme to use in the script editor.
|
The syntax theme to use in the script editor.
|
||||||
You can save your own syntax theme from your current settings by using [b]File > Theme > Save As...[/b] at the top of the script editor. The syntax theme will then be available locally in the list of color themes.
|
You can save your own syntax theme from your current settings by using [b]File > Theme > Save As...[/b] at the top of the script editor. The syntax theme will then be available locally in the list of color themes.
|
||||||
@ -1294,6 +1450,18 @@
|
|||||||
<member name="text_editor/theme/highlighting/word_highlighted_color" type="Color" setter="" getter="">
|
<member name="text_editor/theme/highlighting/word_highlighted_color" type="Color" setter="" getter="">
|
||||||
The script editor's color for words highlighted by selecting them. Only visible if [member text_editor/appearance/caret/highlight_all_occurrences] is [code]true[/code].
|
The script editor's color for words highlighted by selecting them. Only visible if [member text_editor/appearance/caret/highlight_all_occurrences] is [code]true[/code].
|
||||||
</member>
|
</member>
|
||||||
|
<member name="text_editor/theme/line_spacing" type="int" setter="" getter="">
|
||||||
|
The vertical line separation used in text editors, in pixels.
|
||||||
|
</member>
|
||||||
|
<member name="version_control/ssh_private_key_path" type="String" setter="" getter="">
|
||||||
|
Path to private SSH key file for the editor's Version Control integration credentials.
|
||||||
|
</member>
|
||||||
|
<member name="version_control/ssh_public_key_path" type="String" setter="" getter="">
|
||||||
|
Path to public SSH key file for the editor's Version Control integration credentials.
|
||||||
|
</member>
|
||||||
|
<member name="version_control/username" type="String" setter="" getter="">
|
||||||
|
Default username for editor's Version Control integration.
|
||||||
|
</member>
|
||||||
</members>
|
</members>
|
||||||
<signals>
|
<signals>
|
||||||
<signal name="settings_changed">
|
<signal name="settings_changed">
|
||||||
|
@ -38,6 +38,7 @@
|
|||||||
int DebugAdapterServer::port_override = -1;
|
int DebugAdapterServer::port_override = -1;
|
||||||
|
|
||||||
DebugAdapterServer::DebugAdapterServer() {
|
DebugAdapterServer::DebugAdapterServer() {
|
||||||
|
// TODO: Move to editor_settings.cpp
|
||||||
_EDITOR_DEF("network/debug_adapter/remote_port", remote_port);
|
_EDITOR_DEF("network/debug_adapter/remote_port", remote_port);
|
||||||
_EDITOR_DEF("network/debug_adapter/request_timeout", protocol._request_timeout);
|
_EDITOR_DEF("network/debug_adapter/request_timeout", protocol._request_timeout);
|
||||||
_EDITOR_DEF("network/debug_adapter/sync_breakpoints", protocol._sync_breakpoints);
|
_EDITOR_DEF("network/debug_adapter/sync_breakpoints", protocol._sync_breakpoints);
|
||||||
|
@ -271,9 +271,6 @@ void EditorFileServer::stop() {
|
|||||||
|
|
||||||
EditorFileServer::EditorFileServer() {
|
EditorFileServer::EditorFileServer() {
|
||||||
server.instantiate();
|
server.instantiate();
|
||||||
|
|
||||||
EDITOR_DEF("filesystem/file_server/port", 6010);
|
|
||||||
EDITOR_DEF("filesystem/file_server/password", "");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
EditorFileServer::~EditorFileServer() {
|
EditorFileServer::~EditorFileServer() {
|
||||||
|
@ -3134,8 +3134,6 @@ void EditorHelp::init_gdext_pointers() {
|
|||||||
EditorHelp::EditorHelp() {
|
EditorHelp::EditorHelp() {
|
||||||
set_custom_minimum_size(Size2(150 * EDSCALE, 0));
|
set_custom_minimum_size(Size2(150 * EDSCALE, 0));
|
||||||
|
|
||||||
EDITOR_DEF("text_editor/help/sort_functions_alphabetically", true);
|
|
||||||
|
|
||||||
class_desc = memnew(RichTextLabel);
|
class_desc = memnew(RichTextLabel);
|
||||||
class_desc->set_tab_size(8);
|
class_desc->set_tab_size(8);
|
||||||
add_child(class_desc);
|
add_child(class_desc);
|
||||||
|
@ -98,7 +98,7 @@ void EditorNativeShaderSourceVisualizer::_inspect_shader(RID p_shader) {
|
|||||||
code_edit->set_syntax_highlighter(syntax_highlighter);
|
code_edit->set_syntax_highlighter(syntax_highlighter);
|
||||||
code_edit->add_theme_font_override(SceneStringName(font), get_theme_font("source", EditorStringName(EditorFonts)));
|
code_edit->add_theme_font_override(SceneStringName(font), get_theme_font("source", EditorStringName(EditorFonts)));
|
||||||
code_edit->add_theme_font_size_override(SceneStringName(font_size), get_theme_font_size("source_size", EditorStringName(EditorFonts)));
|
code_edit->add_theme_font_size_override(SceneStringName(font_size), get_theme_font_size("source_size", EditorStringName(EditorFonts)));
|
||||||
code_edit->add_theme_constant_override("line_spacing", EDITOR_DEF("text_editor/theme/line_spacing", 6));
|
code_edit->add_theme_constant_override("line_spacing", EDITOR_GET("text_editor/theme/line_spacing"));
|
||||||
|
|
||||||
// Appearance: Caret
|
// Appearance: Caret
|
||||||
code_edit->set_caret_type((TextEdit::CaretType)EDITOR_GET("text_editor/appearance/caret/type").operator int());
|
code_edit->set_caret_type((TextEdit::CaretType)EDITOR_GET("text_editor/appearance/caret/type").operator int());
|
||||||
|
@ -400,6 +400,9 @@ void EditorSettings::_load_defaults(Ref<ConfigFile> p_extra_config) {
|
|||||||
EDITOR_SETTING_USAGE(Variant::STRING, PROPERTY_HINT_ENUM, "interface/editor/editor_language", best, lang_hint, PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_RESTART_IF_CHANGED);
|
EDITOR_SETTING_USAGE(Variant::STRING, PROPERTY_HINT_ENUM, "interface/editor/editor_language", best, lang_hint, PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_RESTART_IF_CHANGED);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Asset library
|
||||||
|
_initial_set("asset_library/use_threads", true);
|
||||||
|
|
||||||
/* Interface */
|
/* Interface */
|
||||||
|
|
||||||
// Editor
|
// Editor
|
||||||
@ -481,6 +484,10 @@ void EditorSettings::_load_defaults(Ref<ConfigFile> p_extra_config) {
|
|||||||
EDITOR_SETTING(Variant::INT, PROPERTY_HINT_ENUM, "interface/editor/vsync_mode", 1, "Disabled,Enabled,Adaptive,Mailbox")
|
EDITOR_SETTING(Variant::INT, PROPERTY_HINT_ENUM, "interface/editor/vsync_mode", 1, "Disabled,Enabled,Adaptive,Mailbox")
|
||||||
EDITOR_SETTING(Variant::BOOL, PROPERTY_HINT_NONE, "interface/editor/update_continuously", false, "")
|
EDITOR_SETTING(Variant::BOOL, PROPERTY_HINT_NONE, "interface/editor/update_continuously", false, "")
|
||||||
|
|
||||||
|
_initial_set("interface/editors/show_scene_tree_root_selection", true);
|
||||||
|
_initial_set("interface/editors/derive_script_globals_by_name", true);
|
||||||
|
_initial_set("docks/scene_tree/ask_before_revoking_unique_name", true);
|
||||||
|
|
||||||
// Inspector
|
// Inspector
|
||||||
EDITOR_SETTING(Variant::INT, PROPERTY_HINT_RANGE, "interface/inspector/max_array_dictionary_items_per_page", 20, "10,100,1")
|
EDITOR_SETTING(Variant::INT, PROPERTY_HINT_RANGE, "interface/inspector/max_array_dictionary_items_per_page", 20, "10,100,1")
|
||||||
EDITOR_SETTING(Variant::BOOL, PROPERTY_HINT_NONE, "interface/inspector/show_low_level_opentype_features", false, "")
|
EDITOR_SETTING(Variant::BOOL, PROPERTY_HINT_NONE, "interface/inspector/show_low_level_opentype_features", false, "")
|
||||||
@ -571,6 +578,10 @@ void EditorSettings::_load_defaults(Ref<ConfigFile> p_extra_config) {
|
|||||||
_initial_set("filesystem/on_save/compress_binary_resources", true);
|
_initial_set("filesystem/on_save/compress_binary_resources", true);
|
||||||
_initial_set("filesystem/on_save/safe_save_on_backup_then_rename", true);
|
_initial_set("filesystem/on_save/safe_save_on_backup_then_rename", true);
|
||||||
|
|
||||||
|
// EditorFileServer
|
||||||
|
_initial_set("filesystem/file_server/port", 6010);
|
||||||
|
_initial_set("filesystem/file_server/password", "");
|
||||||
|
|
||||||
// File dialog
|
// File dialog
|
||||||
_initial_set("filesystem/file_dialog/show_hidden_files", false);
|
_initial_set("filesystem/file_dialog/show_hidden_files", false);
|
||||||
EDITOR_SETTING(Variant::INT, PROPERTY_HINT_ENUM, "filesystem/file_dialog/display_mode", 0, "Thumbnails,List")
|
EDITOR_SETTING(Variant::INT, PROPERTY_HINT_ENUM, "filesystem/file_dialog/display_mode", 0, "Thumbnails,List")
|
||||||
@ -588,6 +599,7 @@ void EditorSettings::_load_defaults(Ref<ConfigFile> p_extra_config) {
|
|||||||
/* Docks */
|
/* Docks */
|
||||||
|
|
||||||
// SceneTree
|
// SceneTree
|
||||||
|
_initial_set("docks/scene_tree/ask_before_deleting_related_animation_tracks", true);
|
||||||
_initial_set("docks/scene_tree/start_create_dialog_fully_expanded", false);
|
_initial_set("docks/scene_tree/start_create_dialog_fully_expanded", false);
|
||||||
_initial_set("docks/scene_tree/auto_expand_to_selected", true);
|
_initial_set("docks/scene_tree/auto_expand_to_selected", true);
|
||||||
_initial_set("docks/scene_tree/center_node_on_reparent", false);
|
_initial_set("docks/scene_tree/center_node_on_reparent", false);
|
||||||
@ -605,6 +617,7 @@ void EditorSettings::_load_defaults(Ref<ConfigFile> p_extra_config) {
|
|||||||
/* Text editor */
|
/* Text editor */
|
||||||
|
|
||||||
// Theme
|
// Theme
|
||||||
|
_initial_set("text_editor/theme/line_spacing", 6);
|
||||||
EDITOR_SETTING(Variant::STRING, PROPERTY_HINT_ENUM, "text_editor/theme/color_theme", "Default", "Default,Godot 2,Custom")
|
EDITOR_SETTING(Variant::STRING, PROPERTY_HINT_ENUM, "text_editor/theme/color_theme", "Default", "Default,Godot 2,Custom")
|
||||||
|
|
||||||
// Theme: Highlighting
|
// Theme: Highlighting
|
||||||
@ -669,10 +682,19 @@ void EditorSettings::_load_defaults(Ref<ConfigFile> p_extra_config) {
|
|||||||
_initial_set("text_editor/behavior/files/restore_scripts_on_load", true);
|
_initial_set("text_editor/behavior/files/restore_scripts_on_load", true);
|
||||||
_initial_set("text_editor/behavior/files/convert_indent_on_save", true);
|
_initial_set("text_editor/behavior/files/convert_indent_on_save", true);
|
||||||
_initial_set("text_editor/behavior/files/auto_reload_scripts_on_external_change", false);
|
_initial_set("text_editor/behavior/files/auto_reload_scripts_on_external_change", false);
|
||||||
|
_initial_set("text_editor/behavior/files/auto_reload_and_parse_scripts_on_save", true);
|
||||||
|
_initial_set("text_editor/behavior/files/open_dominant_script_on_scene_change", false);
|
||||||
|
|
||||||
// Script list
|
// Script list
|
||||||
_initial_set("text_editor/script_list/show_members_overview", true);
|
_initial_set("text_editor/script_list/show_members_overview", true);
|
||||||
_initial_set("text_editor/script_list/sort_members_outline_alphabetically", false);
|
_initial_set("text_editor/script_list/sort_members_outline_alphabetically", false);
|
||||||
|
_initial_set("text_editor/script_list/script_temperature_enabled", true);
|
||||||
|
_initial_set("text_editor/script_list/script_temperature_history_size", 15);
|
||||||
|
_initial_set("text_editor/script_list/group_help_pages", true);
|
||||||
|
EDITOR_SETTING(Variant::INT, PROPERTY_HINT_ENUM, "text_editor/script_list/sort_scripts_by", 0, "Name,Path,None");
|
||||||
|
EDITOR_SETTING(Variant::INT, PROPERTY_HINT_ENUM, "text_editor/script_list/list_script_names_as", 0, "Name,Parent Directory And Name,Full Path");
|
||||||
|
EDITOR_SETTING(Variant::STRING, PROPERTY_HINT_GLOBAL_FILE, "text_editor/external/exec_path", "", "");
|
||||||
|
EDITOR_SETTING(Variant::STRING, PROPERTY_HINT_PLACEHOLDER_TEXT, "text_editor/external/exec_flags", "{file}", "Call flags with placeholders: {project}, {file}, {col}, {line}.");
|
||||||
|
|
||||||
// Completion
|
// Completion
|
||||||
EDITOR_SETTING(Variant::FLOAT, PROPERTY_HINT_RANGE, "text_editor/completion/idle_parse_delay", 1.5, "0.1,10,0.01")
|
EDITOR_SETTING(Variant::FLOAT, PROPERTY_HINT_RANGE, "text_editor/completion/idle_parse_delay", 1.5, "0.1,10,0.01")
|
||||||
@ -687,17 +709,28 @@ void EditorSettings::_load_defaults(Ref<ConfigFile> p_extra_config) {
|
|||||||
_initial_set("text_editor/completion/use_single_quotes", false);
|
_initial_set("text_editor/completion/use_single_quotes", false);
|
||||||
_initial_set("text_editor/completion/colorize_suggestions", true);
|
_initial_set("text_editor/completion/colorize_suggestions", true);
|
||||||
|
|
||||||
|
// External editor (ScriptEditorPlugin)
|
||||||
|
_initial_set("text_editor/external/use_external_editor", false);
|
||||||
|
_initial_set("text_editor/external/exec_path", "");
|
||||||
|
|
||||||
// Help
|
// Help
|
||||||
_initial_set("text_editor/help/show_help_index", true);
|
_initial_set("text_editor/help/show_help_index", true);
|
||||||
EDITOR_SETTING(Variant::INT, PROPERTY_HINT_RANGE, "text_editor/help/help_font_size", 16, "8,48,1")
|
EDITOR_SETTING(Variant::INT, PROPERTY_HINT_RANGE, "text_editor/help/help_font_size", 16, "8,48,1")
|
||||||
EDITOR_SETTING(Variant::INT, PROPERTY_HINT_RANGE, "text_editor/help/help_source_font_size", 15, "8,48,1")
|
EDITOR_SETTING(Variant::INT, PROPERTY_HINT_RANGE, "text_editor/help/help_source_font_size", 15, "8,48,1")
|
||||||
EDITOR_SETTING(Variant::INT, PROPERTY_HINT_RANGE, "text_editor/help/help_title_font_size", 23, "8,64,1")
|
EDITOR_SETTING(Variant::INT, PROPERTY_HINT_RANGE, "text_editor/help/help_title_font_size", 23, "8,64,1")
|
||||||
EDITOR_SETTING(Variant::INT, PROPERTY_HINT_ENUM, "text_editor/help/class_reference_examples", 0, "GDScript,C#,GDScript and C#")
|
EDITOR_SETTING(Variant::INT, PROPERTY_HINT_ENUM, "text_editor/help/class_reference_examples", 0, "GDScript,C#,GDScript and C#")
|
||||||
|
_initial_set("text_editor/help/sort_functions_alphabetically", true);
|
||||||
|
|
||||||
/* Editors */
|
/* Editors */
|
||||||
|
|
||||||
// GridMap
|
// GridMap
|
||||||
|
// GridMapEditor
|
||||||
_initial_set("editors/grid_map/pick_distance", 5000.0);
|
_initial_set("editors/grid_map/pick_distance", 5000.0);
|
||||||
|
_initial_set("editors/grid_map/palette_min_width", 230);
|
||||||
|
set_restart_if_changed("editors/grid_map/palette_min_width", true);
|
||||||
|
_initial_set("editors/grid_map/preview_size", 64);
|
||||||
|
// GridMapEditorPlugin
|
||||||
|
EDITOR_SETTING(Variant::INT, PROPERTY_HINT_ENUM, "editors/grid_map/editor_side", 1, "Left,Right");
|
||||||
|
|
||||||
// 3D
|
// 3D
|
||||||
EDITOR_SETTING(Variant::COLOR, PROPERTY_HINT_NONE, "editors/3d/primary_grid_color", Color(0.56, 0.56, 0.56, 0.5), "")
|
EDITOR_SETTING(Variant::COLOR, PROPERTY_HINT_NONE, "editors/3d/primary_grid_color", Color(0.56, 0.56, 0.56, 0.5), "")
|
||||||
@ -708,6 +741,28 @@ void EditorSettings::_load_defaults(Ref<ConfigFile> p_extra_config) {
|
|||||||
EDITOR_SETTING_USAGE(Variant::COLOR, PROPERTY_HINT_NONE, "editors/3d_gizmos/gizmo_colors/instantiated", Color(0.7, 0.7, 0.7, 0.6), "", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_RESTART_IF_CHANGED)
|
EDITOR_SETTING_USAGE(Variant::COLOR, PROPERTY_HINT_NONE, "editors/3d_gizmos/gizmo_colors/instantiated", Color(0.7, 0.7, 0.7, 0.6), "", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_RESTART_IF_CHANGED)
|
||||||
EDITOR_SETTING_USAGE(Variant::COLOR, PROPERTY_HINT_NONE, "editors/3d_gizmos/gizmo_colors/joint", Color(0.5, 0.8, 1), "", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_RESTART_IF_CHANGED)
|
EDITOR_SETTING_USAGE(Variant::COLOR, PROPERTY_HINT_NONE, "editors/3d_gizmos/gizmo_colors/joint", Color(0.5, 0.8, 1), "", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_RESTART_IF_CHANGED)
|
||||||
EDITOR_SETTING_USAGE(Variant::COLOR, PROPERTY_HINT_NONE, "editors/3d_gizmos/gizmo_colors/aabb", Color(0.28, 0.8, 0.82), "", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_RESTART_IF_CHANGED)
|
EDITOR_SETTING_USAGE(Variant::COLOR, PROPERTY_HINT_NONE, "editors/3d_gizmos/gizmo_colors/aabb", Color(0.28, 0.8, 0.82), "", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_RESTART_IF_CHANGED)
|
||||||
|
EDITOR_SETTING_USAGE(Variant::COLOR, PROPERTY_HINT_NONE, "editors/3d_gizmos/gizmo_colors/stream_player_3d", Color(0.4, 0.8, 1), "", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_RESTART_IF_CHANGED)
|
||||||
|
EDITOR_SETTING_USAGE(Variant::COLOR, PROPERTY_HINT_NONE, "editors/3d_gizmos/gizmo_colors/camera", Color(0.8, 0.4, 0.8), "", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_RESTART_IF_CHANGED)
|
||||||
|
EDITOR_SETTING_USAGE(Variant::COLOR, PROPERTY_HINT_NONE, "editors/3d_gizmos/gizmo_colors/decal", Color(0.6, 0.5, 1.0), "", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_RESTART_IF_CHANGED)
|
||||||
|
EDITOR_SETTING_USAGE(Variant::COLOR, PROPERTY_HINT_NONE, "editors/3d_gizmos/gizmo_colors/fog_volume", Color(0.5, 0.7, 1), "", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_RESTART_IF_CHANGED)
|
||||||
|
EDITOR_SETTING_USAGE(Variant::COLOR, PROPERTY_HINT_NONE, "editors/3d_gizmos/gizmo_colors/particles", Color(0.8, 0.7, 0.4), "", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_RESTART_IF_CHANGED)
|
||||||
|
EDITOR_SETTING_USAGE(Variant::COLOR, PROPERTY_HINT_NONE, "editors/3d_gizmos/gizmo_colors/particle_attractor", Color(1, 0.7, 0.5), "", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_RESTART_IF_CHANGED)
|
||||||
|
EDITOR_SETTING_USAGE(Variant::COLOR, PROPERTY_HINT_NONE, "editors/3d_gizmos/gizmo_colors/particle_collision", Color(0.5, 0.7, 1), "", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_RESTART_IF_CHANGED)
|
||||||
|
EDITOR_SETTING_USAGE(Variant::COLOR, PROPERTY_HINT_NONE, "editors/3d_gizmos/gizmo_colors/joint_body_a", Color(0.6, 0.8, 1), "", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_RESTART_IF_CHANGED)
|
||||||
|
EDITOR_SETTING_USAGE(Variant::COLOR, PROPERTY_HINT_NONE, "editors/3d_gizmos/gizmo_colors/joint_body_b", Color(0.6, 0.9, 1), "", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_RESTART_IF_CHANGED)
|
||||||
|
EDITOR_SETTING_USAGE(Variant::COLOR, PROPERTY_HINT_NONE, "editors/3d_gizmos/gizmo_colors/lightmap_lines", Color(0.5, 0.6, 1), "", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_RESTART_IF_CHANGED)
|
||||||
|
EDITOR_SETTING_USAGE(Variant::COLOR, PROPERTY_HINT_NONE, "editors/3d_gizmos/gizmo_colors/lightprobe_lines", Color(0.5, 0.6, 1), "", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_RESTART_IF_CHANGED)
|
||||||
|
EDITOR_SETTING_USAGE(Variant::COLOR, PROPERTY_HINT_NONE, "editors/3d_gizmos/gizmo_colors/occluder", Color(0.8, 0.5, 1), "", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_RESTART_IF_CHANGED)
|
||||||
|
EDITOR_SETTING_USAGE(Variant::COLOR, PROPERTY_HINT_NONE, "editors/3d_gizmos/gizmo_colors/reflection_probe", Color(0.6, 1, 0.5), "", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_RESTART_IF_CHANGED)
|
||||||
|
EDITOR_SETTING_USAGE(Variant::COLOR, PROPERTY_HINT_NONE, "editors/3d_gizmos/gizmo_colors/visibility_notifier", Color(0.8, 0.5, 0.7), "", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_RESTART_IF_CHANGED)
|
||||||
|
EDITOR_SETTING_USAGE(Variant::COLOR, PROPERTY_HINT_NONE, "editors/3d_gizmos/gizmo_colors/voxel_gi", Color(0.5, 1, 0.6), "", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_RESTART_IF_CHANGED)
|
||||||
|
EDITOR_SETTING_USAGE(Variant::COLOR, PROPERTY_HINT_NONE, "editors/3d_gizmos/gizmo_colors/path_tilt", Color(1.0, 1.0, 0.4, 0.9), "", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_RESTART_IF_CHANGED)
|
||||||
|
EDITOR_SETTING_USAGE(Variant::COLOR, PROPERTY_HINT_NONE, "editors/3d_gizmos/gizmo_colors/skeleton", Color(1, 0.8, 0.4), "", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_RESTART_IF_CHANGED)
|
||||||
|
EDITOR_SETTING_USAGE(Variant::COLOR, PROPERTY_HINT_NONE, "editors/3d_gizmos/gizmo_colors/selected_bone", Color(0.8, 0.3, 0.0), "", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_RESTART_IF_CHANGED)
|
||||||
|
EDITOR_SETTING_USAGE(Variant::COLOR, PROPERTY_HINT_NONE, "editors/3d_gizmos/gizmo_colors/csg", Color(0.0, 0.4, 1, 0.15), "", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_RESTART_IF_CHANGED)
|
||||||
|
_initial_set("editors/3d_gizmos/gizmo_settings/bone_axis_length", (float)0.1);
|
||||||
|
EDITOR_SETTING(Variant::INT, PROPERTY_HINT_ENUM, "editors/3d_gizmos/gizmo_settings/bone_shape", 1, "Wire,Octahedron");
|
||||||
|
EDITOR_SETTING_USAGE(Variant::FLOAT, PROPERTY_HINT_NONE, "editors/3d_gizmos/gizmo_settings/path3d_tilt_disk_size", 0.8, "", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_RESTART_IF_CHANGED)
|
||||||
|
|
||||||
// If a line is a multiple of this, it uses the primary grid color.
|
// If a line is a multiple of this, it uses the primary grid color.
|
||||||
// Use a power of 2 value by default as it's more common to use powers of 2 in level design.
|
// Use a power of 2 value by default as it's more common to use powers of 2 in level design.
|
||||||
@ -750,6 +805,8 @@ void EditorSettings::_load_defaults(Ref<ConfigFile> p_extra_config) {
|
|||||||
EDITOR_SETTING(Variant::FLOAT, PROPERTY_HINT_RANGE, "editors/3d/navigation_feel/orbit_inertia", 0.0, "0,1,0.001")
|
EDITOR_SETTING(Variant::FLOAT, PROPERTY_HINT_RANGE, "editors/3d/navigation_feel/orbit_inertia", 0.0, "0,1,0.001")
|
||||||
EDITOR_SETTING(Variant::FLOAT, PROPERTY_HINT_RANGE, "editors/3d/navigation_feel/translation_inertia", 0.05, "0,1,0.001")
|
EDITOR_SETTING(Variant::FLOAT, PROPERTY_HINT_RANGE, "editors/3d/navigation_feel/translation_inertia", 0.05, "0,1,0.001")
|
||||||
EDITOR_SETTING(Variant::FLOAT, PROPERTY_HINT_RANGE, "editors/3d/navigation_feel/zoom_inertia", 0.05, "0,1,0.001")
|
EDITOR_SETTING(Variant::FLOAT, PROPERTY_HINT_RANGE, "editors/3d/navigation_feel/zoom_inertia", 0.05, "0,1,0.001")
|
||||||
|
_initial_set("editors/3d/navigation/show_viewport_rotation_gizmo", true);
|
||||||
|
_initial_set("editors/3d/navigation/show_viewport_navigation_gizmo", DisplayServer::get_singleton()->is_touchscreen_available());
|
||||||
|
|
||||||
// 3D: Freelook
|
// 3D: Freelook
|
||||||
EDITOR_SETTING(Variant::INT, PROPERTY_HINT_ENUM, "editors/3d/freelook/freelook_navigation_scheme", 0, "Default,Partially Axis-Locked (id Tech),Fully Axis-Locked (Minecraft)")
|
EDITOR_SETTING(Variant::INT, PROPERTY_HINT_ENUM, "editors/3d/freelook/freelook_navigation_scheme", 0, "Default,Partially Axis-Locked (id Tech),Fully Axis-Locked (Minecraft)")
|
||||||
@ -759,6 +816,10 @@ void EditorSettings::_load_defaults(Ref<ConfigFile> p_extra_config) {
|
|||||||
EDITOR_SETTING(Variant::INT, PROPERTY_HINT_ENUM, "editors/3d/freelook/freelook_activation_modifier", 0, "None,Shift,Alt,Meta,Ctrl")
|
EDITOR_SETTING(Variant::INT, PROPERTY_HINT_ENUM, "editors/3d/freelook/freelook_activation_modifier", 0, "None,Shift,Alt,Meta,Ctrl")
|
||||||
_initial_set("editors/3d/freelook/freelook_speed_zoom_link", false);
|
_initial_set("editors/3d/freelook/freelook_speed_zoom_link", false);
|
||||||
|
|
||||||
|
// 3D: Manipulator
|
||||||
|
EDITOR_SETTING(Variant::INT, PROPERTY_HINT_RANGE, "editors/3d/manipulator_gizmo_size", 80, "16,160,1");
|
||||||
|
EDITOR_SETTING_USAGE(Variant::FLOAT, PROPERTY_HINT_RANGE, "editors/3d/manipulator_gizmo_opacity", 0.9, "0,1,0.01", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_RESTART_IF_CHANGED)
|
||||||
|
|
||||||
// 2D
|
// 2D
|
||||||
_initial_set("editors/2d/grid_color", Color(1.0, 1.0, 1.0, 0.07));
|
_initial_set("editors/2d/grid_color", Color(1.0, 1.0, 1.0, 0.07));
|
||||||
_initial_set("editors/2d/guides_color", Color(0.6, 0.0, 0.8));
|
_initial_set("editors/2d/guides_color", Color(0.6, 0.0, 0.8));
|
||||||
@ -774,6 +835,12 @@ void EditorSettings::_load_defaults(Ref<ConfigFile> p_extra_config) {
|
|||||||
_initial_set("editors/2d/use_integer_zoom_by_default", false);
|
_initial_set("editors/2d/use_integer_zoom_by_default", false);
|
||||||
EDITOR_SETTING(Variant::FLOAT, PROPERTY_HINT_RANGE, "editors/2d/zoom_speed_factor", 1.1, "1.01,2,0.01")
|
EDITOR_SETTING(Variant::FLOAT, PROPERTY_HINT_RANGE, "editors/2d/zoom_speed_factor", 1.1, "1.01,2,0.01")
|
||||||
|
|
||||||
|
// Bone mapper (BoneMapEditorPlugin)
|
||||||
|
_initial_set("editors/bone_mapper/handle_colors/unset", Color(0.3, 0.3, 0.3));
|
||||||
|
_initial_set("editors/bone_mapper/handle_colors/set", Color(0.1, 0.6, 0.25));
|
||||||
|
_initial_set("editors/bone_mapper/handle_colors/missing", Color(0.8, 0.2, 0.8));
|
||||||
|
_initial_set("editors/bone_mapper/handle_colors/error", Color(0.8, 0.2, 0.2));
|
||||||
|
|
||||||
// Panning
|
// Panning
|
||||||
// Enum should be in sync with ControlScheme in ViewPanner.
|
// Enum should be in sync with ControlScheme in ViewPanner.
|
||||||
EDITOR_SETTING(Variant::INT, PROPERTY_HINT_ENUM, "editors/panning/2d_editor_panning_scheme", 0, "Scroll Zooms,Scroll Pans");
|
EDITOR_SETTING(Variant::INT, PROPERTY_HINT_ENUM, "editors/panning/2d_editor_panning_scheme", 0, "Scroll Zooms,Scroll Pans");
|
||||||
@ -814,6 +881,10 @@ void EditorSettings::_load_defaults(Ref<ConfigFile> p_extra_config) {
|
|||||||
EDITOR_SETTING(Variant::INT, PROPERTY_HINT_ENUM, "editors/visual_editors/grid_pattern", 1, "Lines,Dots")
|
EDITOR_SETTING(Variant::INT, PROPERTY_HINT_ENUM, "editors/visual_editors/grid_pattern", 1, "Lines,Dots")
|
||||||
EDITOR_SETTING(Variant::INT, PROPERTY_HINT_RANGE, "editors/visual_editors/visual_shader/port_preview_size", 160, "100,400,0.01")
|
EDITOR_SETTING(Variant::INT, PROPERTY_HINT_RANGE, "editors/visual_editors/visual_shader/port_preview_size", 160, "100,400,0.01")
|
||||||
|
|
||||||
|
// Export (EditorExportPlugin)
|
||||||
|
_initial_set("export/ssh/ssh", "");
|
||||||
|
_initial_set("export/ssh/scp", "");
|
||||||
|
|
||||||
/* Run */
|
/* Run */
|
||||||
|
|
||||||
// Window placement
|
// Window placement
|
||||||
@ -880,6 +951,11 @@ void EditorSettings::_load_defaults(Ref<ConfigFile> p_extra_config) {
|
|||||||
EDITOR_SETTING(Variant::FLOAT, PROPERTY_HINT_RANGE, "debugger/remote_inspect_refresh_interval", 0.2, "0.02,10,0.01,or_greater")
|
EDITOR_SETTING(Variant::FLOAT, PROPERTY_HINT_RANGE, "debugger/remote_inspect_refresh_interval", 0.2, "0.02,10,0.01,or_greater")
|
||||||
EDITOR_SETTING(Variant::BOOL, PROPERTY_HINT_NONE, "debugger/profile_native_calls", false, "")
|
EDITOR_SETTING(Variant::BOOL, PROPERTY_HINT_NONE, "debugger/profile_native_calls", false, "")
|
||||||
|
|
||||||
|
// Version control (VersionControlEditorPlugin)
|
||||||
|
_initial_set("version_control/username", "");
|
||||||
|
_initial_set("version_control/ssh_public_key_path", "");
|
||||||
|
_initial_set("version_control/ssh_private_key_path", "");
|
||||||
|
|
||||||
/* Extra config */
|
/* Extra config */
|
||||||
|
|
||||||
EDITOR_SETTING_USAGE(Variant::BOOL, PROPERTY_HINT_NONE, "input/buffering/agile_event_flushing", false, "", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_RESTART_IF_CHANGED)
|
EDITOR_SETTING_USAGE(Variant::BOOL, PROPERTY_HINT_NONE, "input/buffering/agile_event_flushing", false, "", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_RESTART_IF_CHANGED)
|
||||||
|
@ -364,8 +364,3 @@ void EditorExportPlugin::_bind_methods() {
|
|||||||
GDVIRTUAL_BIND(_get_android_manifest_application_element_contents, "platform", "debug");
|
GDVIRTUAL_BIND(_get_android_manifest_application_element_contents, "platform", "debug");
|
||||||
GDVIRTUAL_BIND(_get_android_manifest_element_contents, "platform", "debug");
|
GDVIRTUAL_BIND(_get_android_manifest_element_contents, "platform", "debug");
|
||||||
}
|
}
|
||||||
|
|
||||||
EditorExportPlugin::EditorExportPlugin() {
|
|
||||||
EDITOR_DEF("export/ssh/ssh", "");
|
|
||||||
EDITOR_DEF("export/ssh/scp", "");
|
|
||||||
}
|
|
||||||
|
@ -183,8 +183,6 @@ public:
|
|||||||
String get_ios_cpp_code() const;
|
String get_ios_cpp_code() const;
|
||||||
const Vector<String> &get_macos_plugin_files() const;
|
const Vector<String> &get_macos_plugin_files() const;
|
||||||
Variant get_option(const StringName &p_name) const;
|
Variant get_option(const StringName &p_name) const;
|
||||||
|
|
||||||
EditorExportPlugin();
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // EDITOR_EXPORT_PLUGIN_H
|
#endif // EDITOR_EXPORT_PLUGIN_H
|
||||||
|
@ -47,7 +47,7 @@
|
|||||||
#include "scene/resources/image_texture.h"
|
#include "scene/resources/image_texture.h"
|
||||||
|
|
||||||
static inline void setup_http_request(HTTPRequest *request) {
|
static inline void setup_http_request(HTTPRequest *request) {
|
||||||
request->set_use_threads(EDITOR_DEF("asset_library/use_threads", true));
|
request->set_use_threads(EDITOR_GET("asset_library/use_threads"));
|
||||||
|
|
||||||
const String proxy_host = EDITOR_GET("network/http_proxy/host");
|
const String proxy_host = EDITOR_GET("network/http_proxy/host");
|
||||||
const int proxy_port = EDITOR_GET("network/http_proxy/port");
|
const int proxy_port = EDITOR_GET("network/http_proxy/port");
|
||||||
@ -703,6 +703,7 @@ void EditorAssetLibrary::_notification(int p_what) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void EditorAssetLibrary::_update_repository_options() {
|
void EditorAssetLibrary::_update_repository_options() {
|
||||||
|
// TODO: Move to editor_settings.cpp
|
||||||
Dictionary default_urls;
|
Dictionary default_urls;
|
||||||
default_urls["godotengine.org (Official)"] = "https://godotengine.org/asset-library/api";
|
default_urls["godotengine.org (Official)"] = "https://godotengine.org/asset-library/api";
|
||||||
Dictionary available_urls = _EDITOR_DEF("asset_library/available_urls", default_urls, true);
|
Dictionary available_urls = _EDITOR_DEF("asset_library/available_urls", default_urls, true);
|
||||||
|
@ -1477,12 +1477,6 @@ void EditorInspectorPluginBoneMap::parse_begin(Object *p_object) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
BoneMapEditorPlugin::BoneMapEditorPlugin() {
|
BoneMapEditorPlugin::BoneMapEditorPlugin() {
|
||||||
// Register properties in editor settings.
|
|
||||||
EDITOR_DEF("editors/bone_mapper/handle_colors/unset", Color(0.3, 0.3, 0.3));
|
|
||||||
EDITOR_DEF("editors/bone_mapper/handle_colors/set", Color(0.1, 0.6, 0.25));
|
|
||||||
EDITOR_DEF("editors/bone_mapper/handle_colors/missing", Color(0.8, 0.2, 0.8));
|
|
||||||
EDITOR_DEF("editors/bone_mapper/handle_colors/error", Color(0.8, 0.2, 0.2));
|
|
||||||
|
|
||||||
Ref<EditorInspectorPluginBoneMap> inspector_plugin;
|
Ref<EditorInspectorPluginBoneMap> inspector_plugin;
|
||||||
inspector_plugin.instantiate();
|
inspector_plugin.instantiate();
|
||||||
add_inspector_plugin(inspector_plugin);
|
add_inspector_plugin(inspector_plugin);
|
||||||
|
@ -38,7 +38,7 @@
|
|||||||
#include "scene/3d/audio_stream_player_3d.h"
|
#include "scene/3d/audio_stream_player_3d.h"
|
||||||
|
|
||||||
AudioStreamPlayer3DGizmoPlugin::AudioStreamPlayer3DGizmoPlugin() {
|
AudioStreamPlayer3DGizmoPlugin::AudioStreamPlayer3DGizmoPlugin() {
|
||||||
Color gizmo_color = EDITOR_DEF_RST("editors/3d_gizmos/gizmo_colors/stream_player_3d", Color(0.4, 0.8, 1));
|
Color gizmo_color = EDITOR_GET("editors/3d_gizmos/gizmo_colors/stream_player_3d");
|
||||||
|
|
||||||
create_icon_material("stream_player_3d_icon", EditorNode::get_singleton()->get_editor_theme()->get_icon(SNAME("Gizmo3DSamplePlayer"), EditorStringName(EditorIcons)));
|
create_icon_material("stream_player_3d_icon", EditorNode::get_singleton()->get_editor_theme()->get_icon(SNAME("Gizmo3DSamplePlayer"), EditorStringName(EditorIcons)));
|
||||||
create_material("stream_player_3d_material_primary", gizmo_color);
|
create_material("stream_player_3d_material_primary", gizmo_color);
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
#include "scene/3d/camera_3d.h"
|
#include "scene/3d/camera_3d.h"
|
||||||
|
|
||||||
Camera3DGizmoPlugin::Camera3DGizmoPlugin() {
|
Camera3DGizmoPlugin::Camera3DGizmoPlugin() {
|
||||||
Color gizmo_color = EDITOR_DEF_RST("editors/3d_gizmos/gizmo_colors/camera", Color(0.8, 0.4, 0.8));
|
Color gizmo_color = EDITOR_GET("editors/3d_gizmos/gizmo_colors/camera");
|
||||||
|
|
||||||
create_material("camera_material", gizmo_color);
|
create_material("camera_material", gizmo_color);
|
||||||
create_icon_material("camera_icon", EditorNode::get_singleton()->get_editor_theme()->get_icon(SNAME("GizmoCamera3D"), EditorStringName(EditorIcons)));
|
create_icon_material("camera_icon", EditorNode::get_singleton()->get_editor_theme()->get_icon(SNAME("GizmoCamera3D"), EditorStringName(EditorIcons)));
|
||||||
|
@ -37,7 +37,7 @@
|
|||||||
#include "scene/3d/cpu_particles_3d.h"
|
#include "scene/3d/cpu_particles_3d.h"
|
||||||
|
|
||||||
CPUParticles3DGizmoPlugin::CPUParticles3DGizmoPlugin() {
|
CPUParticles3DGizmoPlugin::CPUParticles3DGizmoPlugin() {
|
||||||
Color gizmo_color = EDITOR_DEF("editors/3d_gizmos/gizmo_colors/particles", Color(0.8, 0.7, 0.4));
|
Color gizmo_color = EDITOR_GET("editors/3d_gizmos/gizmo_colors/particles");
|
||||||
create_material("particles_material", gizmo_color);
|
create_material("particles_material", gizmo_color);
|
||||||
gizmo_color.a = MAX((gizmo_color.a - 0.2) * 0.02, 0.0);
|
gizmo_color.a = MAX((gizmo_color.a - 0.2) * 0.02, 0.0);
|
||||||
create_material("particles_solid_material", gizmo_color);
|
create_material("particles_solid_material", gizmo_color);
|
||||||
|
@ -40,7 +40,7 @@
|
|||||||
|
|
||||||
DecalGizmoPlugin::DecalGizmoPlugin() {
|
DecalGizmoPlugin::DecalGizmoPlugin() {
|
||||||
helper.instantiate();
|
helper.instantiate();
|
||||||
Color gizmo_color = EDITOR_DEF_RST("editors/3d_gizmos/gizmo_colors/decal", Color(0.6, 0.5, 1.0));
|
Color gizmo_color = EDITOR_GET("editors/3d_gizmos/gizmo_colors/decal");
|
||||||
|
|
||||||
create_icon_material("decal_icon", EditorNode::get_singleton()->get_editor_theme()->get_icon(SNAME("GizmoDecal"), EditorStringName(EditorIcons)));
|
create_icon_material("decal_icon", EditorNode::get_singleton()->get_editor_theme()->get_icon(SNAME("GizmoDecal"), EditorStringName(EditorIcons)));
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@
|
|||||||
|
|
||||||
FogVolumeGizmoPlugin::FogVolumeGizmoPlugin() {
|
FogVolumeGizmoPlugin::FogVolumeGizmoPlugin() {
|
||||||
helper.instantiate();
|
helper.instantiate();
|
||||||
Color gizmo_color = EDITOR_DEF_RST("editors/3d_gizmos/gizmo_colors/fog_volume", Color(0.5, 0.7, 1));
|
Color gizmo_color = EDITOR_GET("editors/3d_gizmos/gizmo_colors/fog_volume");
|
||||||
create_material("shape_material", gizmo_color);
|
create_material("shape_material", gizmo_color);
|
||||||
gizmo_color.a = 0.15;
|
gizmo_color.a = 0.15;
|
||||||
create_material("shape_material_internal", gizmo_color);
|
create_material("shape_material_internal", gizmo_color);
|
||||||
|
@ -38,7 +38,7 @@
|
|||||||
#include "scene/3d/gpu_particles_3d.h"
|
#include "scene/3d/gpu_particles_3d.h"
|
||||||
|
|
||||||
GPUParticles3DGizmoPlugin::GPUParticles3DGizmoPlugin() {
|
GPUParticles3DGizmoPlugin::GPUParticles3DGizmoPlugin() {
|
||||||
Color gizmo_color = EDITOR_DEF_RST("editors/3d_gizmos/gizmo_colors/particles", Color(0.8, 0.7, 0.4));
|
Color gizmo_color = EDITOR_GET("editors/3d_gizmos/gizmo_colors/particles");
|
||||||
create_material("particles_material", gizmo_color);
|
create_material("particles_material", gizmo_color);
|
||||||
gizmo_color.a = MAX((gizmo_color.a - 0.2) * 0.02, 0.0);
|
gizmo_color.a = MAX((gizmo_color.a - 0.2) * 0.02, 0.0);
|
||||||
create_icon_material("particles_icon", EditorNode::get_singleton()->get_editor_theme()->get_icon(SNAME("GizmoGPUParticles3D"), EditorStringName(EditorIcons)));
|
create_icon_material("particles_icon", EditorNode::get_singleton()->get_editor_theme()->get_icon(SNAME("GizmoGPUParticles3D"), EditorStringName(EditorIcons)));
|
||||||
|
@ -39,12 +39,12 @@
|
|||||||
GPUParticlesCollision3DGizmoPlugin::GPUParticlesCollision3DGizmoPlugin() {
|
GPUParticlesCollision3DGizmoPlugin::GPUParticlesCollision3DGizmoPlugin() {
|
||||||
helper.instantiate();
|
helper.instantiate();
|
||||||
|
|
||||||
Color gizmo_color_attractor = EDITOR_DEF_RST("editors/3d_gizmos/gizmo_colors/particle_attractor", Color(1, 0.7, 0.5));
|
Color gizmo_color_attractor = EDITOR_GET("editors/3d_gizmos/gizmo_colors/particle_attractor");
|
||||||
create_material("shape_material_attractor", gizmo_color_attractor);
|
create_material("shape_material_attractor", gizmo_color_attractor);
|
||||||
gizmo_color_attractor.a = 0.15;
|
gizmo_color_attractor.a = 0.15;
|
||||||
create_material("shape_material_attractor_internal", gizmo_color_attractor);
|
create_material("shape_material_attractor_internal", gizmo_color_attractor);
|
||||||
|
|
||||||
Color gizmo_color_collision = EDITOR_DEF_RST("editors/3d_gizmos/gizmo_colors/particle_collision", Color(0.5, 0.7, 1));
|
Color gizmo_color_collision = EDITOR_GET("editors/3d_gizmos/gizmo_colors/particle_collision");
|
||||||
create_material("shape_material_collision", gizmo_color_collision);
|
create_material("shape_material_collision", gizmo_color_collision);
|
||||||
gizmo_color_collision.a = 0.15;
|
gizmo_color_collision.a = 0.15;
|
||||||
create_material("shape_material_collision_internal", gizmo_color_collision);
|
create_material("shape_material_collision_internal", gizmo_color_collision);
|
||||||
|
@ -280,8 +280,8 @@ void JointGizmosDrawer::draw_cone(const Transform3D &p_offset, const Basis &p_ba
|
|||||||
|
|
||||||
Joint3DGizmoPlugin::Joint3DGizmoPlugin() {
|
Joint3DGizmoPlugin::Joint3DGizmoPlugin() {
|
||||||
create_material("joint_material", EDITOR_GET("editors/3d_gizmos/gizmo_colors/joint"));
|
create_material("joint_material", EDITOR_GET("editors/3d_gizmos/gizmo_colors/joint"));
|
||||||
create_material("joint_body_a_material", EDITOR_DEF_RST("editors/3d_gizmos/gizmo_colors/joint_body_a", Color(0.6, 0.8, 1)));
|
create_material("joint_body_a_material", EDITOR_GET("editors/3d_gizmos/gizmo_colors/joint_body_a"));
|
||||||
create_material("joint_body_b_material", EDITOR_DEF_RST("editors/3d_gizmos/gizmo_colors/joint_body_b", Color(0.6, 0.9, 1)));
|
create_material("joint_body_b_material", EDITOR_GET("editors/3d_gizmos/gizmo_colors/joint_body_b"));
|
||||||
|
|
||||||
update_timer = memnew(Timer);
|
update_timer = memnew(Timer);
|
||||||
update_timer->set_name("JointGizmoUpdateTimer");
|
update_timer->set_name("JointGizmoUpdateTimer");
|
||||||
|
@ -37,7 +37,7 @@
|
|||||||
#include "scene/3d/lightmap_gi.h"
|
#include "scene/3d/lightmap_gi.h"
|
||||||
|
|
||||||
LightmapGIGizmoPlugin::LightmapGIGizmoPlugin() {
|
LightmapGIGizmoPlugin::LightmapGIGizmoPlugin() {
|
||||||
Color gizmo_color = EDITOR_DEF_RST("editors/3d_gizmos/gizmo_colors/lightmap_lines", Color(0.5, 0.6, 1));
|
Color gizmo_color = EDITOR_GET("editors/3d_gizmos/gizmo_colors/lightmap_lines");
|
||||||
|
|
||||||
gizmo_color.a = 0.1;
|
gizmo_color.a = 0.1;
|
||||||
create_material("lightmap_lines", gizmo_color);
|
create_material("lightmap_lines", gizmo_color);
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
LightmapProbeGizmoPlugin::LightmapProbeGizmoPlugin() {
|
LightmapProbeGizmoPlugin::LightmapProbeGizmoPlugin() {
|
||||||
create_icon_material("lightmap_probe_icon", EditorNode::get_singleton()->get_editor_theme()->get_icon(SNAME("GizmoLightmapProbe"), EditorStringName(EditorIcons)));
|
create_icon_material("lightmap_probe_icon", EditorNode::get_singleton()->get_editor_theme()->get_icon(SNAME("GizmoLightmapProbe"), EditorStringName(EditorIcons)));
|
||||||
|
|
||||||
Color gizmo_color = EDITOR_DEF_RST("editors/3d_gizmos/gizmo_colors/lightprobe_lines", Color(0.5, 0.6, 1));
|
Color gizmo_color = EDITOR_GET("editors/3d_gizmos/gizmo_colors/lightprobe_lines");
|
||||||
|
|
||||||
gizmo_color.a = 0.3;
|
gizmo_color.a = 0.3;
|
||||||
create_material("lightprobe_lines", gizmo_color);
|
create_material("lightprobe_lines", gizmo_color);
|
||||||
|
@ -36,7 +36,7 @@
|
|||||||
#include "scene/3d/occluder_instance_3d.h"
|
#include "scene/3d/occluder_instance_3d.h"
|
||||||
|
|
||||||
OccluderInstance3DGizmoPlugin::OccluderInstance3DGizmoPlugin() {
|
OccluderInstance3DGizmoPlugin::OccluderInstance3DGizmoPlugin() {
|
||||||
create_material("line_material", EDITOR_DEF_RST("editors/3d_gizmos/gizmo_colors/occluder", Color(0.8, 0.5, 1)));
|
create_material("line_material", EDITOR_GET("editors/3d_gizmos/gizmo_colors/occluder"));
|
||||||
create_handle_material("handles");
|
create_handle_material("handles");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@
|
|||||||
|
|
||||||
ReflectionProbeGizmoPlugin::ReflectionProbeGizmoPlugin() {
|
ReflectionProbeGizmoPlugin::ReflectionProbeGizmoPlugin() {
|
||||||
helper.instantiate();
|
helper.instantiate();
|
||||||
Color gizmo_color = EDITOR_DEF_RST("editors/3d_gizmos/gizmo_colors/reflection_probe", Color(0.6, 1, 0.5));
|
Color gizmo_color = EDITOR_GET("editors/3d_gizmos/gizmo_colors/reflection_probe");
|
||||||
|
|
||||||
create_material("reflection_probe_material", gizmo_color);
|
create_material("reflection_probe_material", gizmo_color);
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@
|
|||||||
#include "scene/3d/visible_on_screen_notifier_3d.h"
|
#include "scene/3d/visible_on_screen_notifier_3d.h"
|
||||||
|
|
||||||
VisibleOnScreenNotifier3DGizmoPlugin::VisibleOnScreenNotifier3DGizmoPlugin() {
|
VisibleOnScreenNotifier3DGizmoPlugin::VisibleOnScreenNotifier3DGizmoPlugin() {
|
||||||
Color gizmo_color = EDITOR_DEF_RST("editors/3d_gizmos/gizmo_colors/visibility_notifier", Color(0.8, 0.5, 0.7));
|
Color gizmo_color = EDITOR_GET("editors/3d_gizmos/gizmo_colors/visibility_notifier");
|
||||||
create_material("visibility_notifier_material", gizmo_color);
|
create_material("visibility_notifier_material", gizmo_color);
|
||||||
gizmo_color.a = 0.1;
|
gizmo_color.a = 0.1;
|
||||||
create_material("visibility_notifier_solid_material", gizmo_color);
|
create_material("visibility_notifier_solid_material", gizmo_color);
|
||||||
|
@ -41,7 +41,7 @@
|
|||||||
VoxelGIGizmoPlugin::VoxelGIGizmoPlugin() {
|
VoxelGIGizmoPlugin::VoxelGIGizmoPlugin() {
|
||||||
helper.instantiate();
|
helper.instantiate();
|
||||||
|
|
||||||
Color gizmo_color = EDITOR_DEF_RST("editors/3d_gizmos/gizmo_colors/voxel_gi", Color(0.5, 1, 0.6));
|
Color gizmo_color = EDITOR_GET("editors/3d_gizmos/gizmo_colors/voxel_gi");
|
||||||
|
|
||||||
create_material("voxel_gi_material", gizmo_color);
|
create_material("voxel_gi_material", gizmo_color);
|
||||||
|
|
||||||
|
@ -8999,13 +8999,6 @@ Node3DEditor::Node3DEditor() {
|
|||||||
set_process_shortcut_input(true);
|
set_process_shortcut_input(true);
|
||||||
add_to_group(SceneStringName(_spatial_editor_group));
|
add_to_group(SceneStringName(_spatial_editor_group));
|
||||||
|
|
||||||
EDITOR_DEF("editors/3d/manipulator_gizmo_size", 80);
|
|
||||||
EditorSettings::get_singleton()->add_property_hint(PropertyInfo(Variant::INT, "editors/3d/manipulator_gizmo_size", PROPERTY_HINT_RANGE, "16,160,1"));
|
|
||||||
EDITOR_DEF("editors/3d/manipulator_gizmo_opacity", 0.9);
|
|
||||||
EditorSettings::get_singleton()->add_property_hint(PropertyInfo(Variant::FLOAT, "editors/3d/manipulator_gizmo_opacity", PROPERTY_HINT_RANGE, "0,1,0.01"));
|
|
||||||
EDITOR_DEF("editors/3d/navigation/show_viewport_rotation_gizmo", true);
|
|
||||||
EDITOR_DEF("editors/3d/navigation/show_viewport_navigation_gizmo", DisplayServer::get_singleton()->is_touchscreen_available());
|
|
||||||
|
|
||||||
current_hover_gizmo_handle = -1;
|
current_hover_gizmo_handle = -1;
|
||||||
current_hover_gizmo_handle_secondary = false;
|
current_hover_gizmo_handle_secondary = false;
|
||||||
{
|
{
|
||||||
|
@ -817,7 +817,10 @@ void Path3DEditorPlugin::_bind_methods() {
|
|||||||
|
|
||||||
Path3DEditorPlugin::Path3DEditorPlugin() {
|
Path3DEditorPlugin::Path3DEditorPlugin() {
|
||||||
singleton = this;
|
singleton = this;
|
||||||
disk_size = EDITOR_DEF_RST("editors/3d_gizmos/gizmo_settings/path3d_tilt_disk_size", 0.8);
|
mirror_handle_angle = true;
|
||||||
|
mirror_handle_length = true;
|
||||||
|
|
||||||
|
disk_size = EDITOR_GET("editors/3d_gizmos/gizmo_settings/path3d_tilt_disk_size");
|
||||||
|
|
||||||
Ref<Path3DGizmoPlugin> gizmo_plugin = memnew(Path3DGizmoPlugin(disk_size));
|
Ref<Path3DGizmoPlugin> gizmo_plugin = memnew(Path3DGizmoPlugin(disk_size));
|
||||||
Node3DEditor::get_singleton()->add_gizmo_plugin(gizmo_plugin);
|
Node3DEditor::get_singleton()->add_gizmo_plugin(gizmo_plugin);
|
||||||
@ -1061,7 +1064,7 @@ int Path3DGizmoPlugin::get_priority() const {
|
|||||||
|
|
||||||
Path3DGizmoPlugin::Path3DGizmoPlugin(float p_disk_size) {
|
Path3DGizmoPlugin::Path3DGizmoPlugin(float p_disk_size) {
|
||||||
Color path_color = SceneTree::get_singleton()->get_debug_paths_color();
|
Color path_color = SceneTree::get_singleton()->get_debug_paths_color();
|
||||||
Color path_tilt_color = EDITOR_DEF_RST("editors/3d_gizmos/gizmo_colors/path_tilt", Color(1.0, 1.0, 0.4, 0.9));
|
Color path_tilt_color = EDITOR_GET("editors/3d_gizmos/gizmo_colors/path_tilt");
|
||||||
disk_size = p_disk_size;
|
disk_size = p_disk_size;
|
||||||
|
|
||||||
create_material("path_material", path_color);
|
create_material("path_material", path_color);
|
||||||
|
@ -4624,21 +4624,7 @@ ScriptEditorPlugin::ScriptEditorPlugin() {
|
|||||||
window_wrapper->hide();
|
window_wrapper->hide();
|
||||||
window_wrapper->connect("window_visibility_changed", callable_mp(this, &ScriptEditorPlugin::_window_visibility_changed));
|
window_wrapper->connect("window_visibility_changed", callable_mp(this, &ScriptEditorPlugin::_window_visibility_changed));
|
||||||
|
|
||||||
EDITOR_GET("text_editor/behavior/files/auto_reload_scripts_on_external_change");
|
ScriptServer::set_reload_scripts_on_save(EDITOR_GET("text_editor/behavior/files/auto_reload_and_parse_scripts_on_save"));
|
||||||
ScriptServer::set_reload_scripts_on_save(EDITOR_DEF("text_editor/behavior/files/auto_reload_and_parse_scripts_on_save", true));
|
|
||||||
EDITOR_DEF("text_editor/behavior/files/open_dominant_script_on_scene_change", false);
|
|
||||||
EDITOR_DEF("text_editor/external/use_external_editor", false);
|
|
||||||
EDITOR_DEF("text_editor/external/exec_path", "");
|
|
||||||
EDITOR_DEF("text_editor/script_list/script_temperature_enabled", true);
|
|
||||||
EDITOR_DEF("text_editor/script_list/script_temperature_history_size", 15);
|
|
||||||
EDITOR_DEF("text_editor/script_list/group_help_pages", true);
|
|
||||||
EditorSettings::get_singleton()->add_property_hint(PropertyInfo(Variant::INT, "text_editor/script_list/sort_scripts_by", PROPERTY_HINT_ENUM, "Name,Path,None"));
|
|
||||||
EDITOR_DEF("text_editor/script_list/sort_scripts_by", 0);
|
|
||||||
EditorSettings::get_singleton()->add_property_hint(PropertyInfo(Variant::INT, "text_editor/script_list/list_script_names_as", PROPERTY_HINT_ENUM, "Name,Parent Directory And Name,Full Path"));
|
|
||||||
EDITOR_DEF("text_editor/script_list/list_script_names_as", 0);
|
|
||||||
EditorSettings::get_singleton()->add_property_hint(PropertyInfo(Variant::STRING, "text_editor/external/exec_path", PROPERTY_HINT_GLOBAL_FILE));
|
|
||||||
EDITOR_DEF("text_editor/external/exec_flags", "{file}");
|
|
||||||
EditorSettings::get_singleton()->add_property_hint(PropertyInfo(Variant::STRING, "text_editor/external/exec_flags", PROPERTY_HINT_PLACEHOLDER_TEXT, "Call flags with placeholders: {project}, {file}, {col}, {line}."));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ScriptEditorPlugin::~ScriptEditorPlugin() {
|
ScriptEditorPlugin::~ScriptEditorPlugin() {
|
||||||
|
@ -1379,13 +1379,6 @@ void fragment() {
|
|||||||
}
|
}
|
||||||
)");
|
)");
|
||||||
selection_materials.selected_mat->set_shader(selected_sh);
|
selection_materials.selected_mat->set_shader(selected_sh);
|
||||||
|
|
||||||
// Register properties in editor settings.
|
|
||||||
EDITOR_DEF_RST("editors/3d_gizmos/gizmo_colors/skeleton", Color(1, 0.8, 0.4));
|
|
||||||
EDITOR_DEF_RST("editors/3d_gizmos/gizmo_colors/selected_bone", Color(0.8, 0.3, 0.0));
|
|
||||||
EDITOR_DEF("editors/3d_gizmos/gizmo_settings/bone_axis_length", (float)0.1);
|
|
||||||
EDITOR_DEF("editors/3d_gizmos/gizmo_settings/bone_shape", 1);
|
|
||||||
EditorSettings::get_singleton()->add_property_hint(PropertyInfo(Variant::INT, "editors/3d_gizmos/gizmo_settings/bone_shape", PROPERTY_HINT_ENUM, "Wire,Octahedron"));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Skeleton3DGizmoPlugin::~Skeleton3DGizmoPlugin() {
|
Skeleton3DGizmoPlugin::~Skeleton3DGizmoPlugin() {
|
||||||
|
@ -1032,7 +1032,7 @@ VersionControlEditorPlugin::VersionControlEditorPlugin() {
|
|||||||
|
|
||||||
set_up_username = memnew(LineEdit);
|
set_up_username = memnew(LineEdit);
|
||||||
set_up_username->set_h_size_flags(Control::SIZE_EXPAND_FILL);
|
set_up_username->set_h_size_flags(Control::SIZE_EXPAND_FILL);
|
||||||
set_up_username->set_text(EDITOR_DEF("version_control/username", ""));
|
set_up_username->set_text(EDITOR_GET("version_control/username"));
|
||||||
set_up_username->connect(SceneStringName(text_changed), callable_mp(this, &VersionControlEditorPlugin::_update_set_up_warning));
|
set_up_username->connect(SceneStringName(text_changed), callable_mp(this, &VersionControlEditorPlugin::_update_set_up_warning));
|
||||||
set_up_username_input->add_child(set_up_username);
|
set_up_username_input->add_child(set_up_username);
|
||||||
|
|
||||||
@ -1068,7 +1068,7 @@ VersionControlEditorPlugin::VersionControlEditorPlugin() {
|
|||||||
|
|
||||||
set_up_ssh_public_key_path = memnew(LineEdit);
|
set_up_ssh_public_key_path = memnew(LineEdit);
|
||||||
set_up_ssh_public_key_path->set_h_size_flags(Control::SIZE_EXPAND_FILL);
|
set_up_ssh_public_key_path->set_h_size_flags(Control::SIZE_EXPAND_FILL);
|
||||||
set_up_ssh_public_key_path->set_text(EDITOR_DEF("version_control/ssh_public_key_path", ""));
|
set_up_ssh_public_key_path->set_text(EDITOR_GET("version_control/ssh_public_key_path"));
|
||||||
set_up_ssh_public_key_path->connect(SceneStringName(text_changed), callable_mp(this, &VersionControlEditorPlugin::_update_set_up_warning));
|
set_up_ssh_public_key_path->connect(SceneStringName(text_changed), callable_mp(this, &VersionControlEditorPlugin::_update_set_up_warning));
|
||||||
set_up_ssh_public_key_input_hbc->add_child(set_up_ssh_public_key_path);
|
set_up_ssh_public_key_input_hbc->add_child(set_up_ssh_public_key_path);
|
||||||
|
|
||||||
@ -1101,7 +1101,7 @@ VersionControlEditorPlugin::VersionControlEditorPlugin() {
|
|||||||
|
|
||||||
set_up_ssh_private_key_path = memnew(LineEdit);
|
set_up_ssh_private_key_path = memnew(LineEdit);
|
||||||
set_up_ssh_private_key_path->set_h_size_flags(Control::SIZE_EXPAND_FILL);
|
set_up_ssh_private_key_path->set_h_size_flags(Control::SIZE_EXPAND_FILL);
|
||||||
set_up_ssh_private_key_path->set_text(EDITOR_DEF("version_control/ssh_private_key_path", ""));
|
set_up_ssh_private_key_path->set_text(EDITOR_GET("version_control/ssh_private_key_path"));
|
||||||
set_up_ssh_private_key_path->connect(SceneStringName(text_changed), callable_mp(this, &VersionControlEditorPlugin::_update_set_up_warning));
|
set_up_ssh_private_key_path->connect(SceneStringName(text_changed), callable_mp(this, &VersionControlEditorPlugin::_update_set_up_warning));
|
||||||
set_up_ssh_private_key_input_hbc->add_child(set_up_ssh_private_key_path);
|
set_up_ssh_private_key_input_hbc->add_child(set_up_ssh_private_key_path);
|
||||||
|
|
||||||
|
@ -4683,10 +4683,6 @@ SceneTreeDock::SceneTreeDock(Node *p_scene_root, EditorSelection *p_editor_selec
|
|||||||
set_process_input(true);
|
set_process_input(true);
|
||||||
set_process(true);
|
set_process(true);
|
||||||
|
|
||||||
EDITOR_DEF("interface/editors/show_scene_tree_root_selection", true);
|
|
||||||
EDITOR_DEF("interface/editors/derive_script_globals_by_name", true);
|
|
||||||
EDITOR_DEF("docks/scene_tree/ask_before_deleting_related_animation_tracks", true);
|
|
||||||
EDITOR_DEF("docks/scene_tree/ask_before_revoking_unique_name", true);
|
|
||||||
EDITOR_DEF("_use_favorites_root_selection", false);
|
EDITOR_DEF("_use_favorites_root_selection", false);
|
||||||
|
|
||||||
Resource::_update_configuration_warning = _update_configuration_warning;
|
Resource::_update_configuration_warning = _update_configuration_warning;
|
||||||
|
@ -173,7 +173,7 @@ CSGShapeEditor::CSGShapeEditor() {
|
|||||||
CSGShape3DGizmoPlugin::CSGShape3DGizmoPlugin() {
|
CSGShape3DGizmoPlugin::CSGShape3DGizmoPlugin() {
|
||||||
helper.instantiate();
|
helper.instantiate();
|
||||||
|
|
||||||
Color gizmo_color = EDITOR_DEF_RST("editors/3d_gizmos/gizmo_colors/csg", Color(0.0, 0.4, 1, 0.15));
|
Color gizmo_color = EDITOR_GET("editors/3d_gizmos/gizmo_colors/csg");
|
||||||
create_material("shape_union_material", gizmo_color);
|
create_material("shape_union_material", gizmo_color);
|
||||||
create_material("shape_union_solid_material", gizmo_color);
|
create_material("shape_union_solid_material", gizmo_color);
|
||||||
gizmo_color.invert();
|
gizmo_color.invert();
|
||||||
|
@ -852,6 +852,7 @@ void GDScriptSyntaxHighlighter::_update_cache() {
|
|||||||
comment_marker_colors[COMMENT_MARKER_NOTICE] = Color(0.24, 0.54, 0.09);
|
comment_marker_colors[COMMENT_MARKER_NOTICE] = Color(0.24, 0.54, 0.09);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: Move to editor_settings.cpp
|
||||||
EDITOR_DEF("text_editor/theme/highlighting/gdscript/function_definition_color", function_definition_color);
|
EDITOR_DEF("text_editor/theme/highlighting/gdscript/function_definition_color", function_definition_color);
|
||||||
EDITOR_DEF("text_editor/theme/highlighting/gdscript/global_function_color", global_function_color);
|
EDITOR_DEF("text_editor/theme/highlighting/gdscript/global_function_color", global_function_color);
|
||||||
EDITOR_DEF("text_editor/theme/highlighting/gdscript/node_path_color", node_path_color);
|
EDITOR_DEF("text_editor/theme/highlighting/gdscript/node_path_color", node_path_color);
|
||||||
|
@ -39,6 +39,7 @@
|
|||||||
int GDScriptLanguageServer::port_override = -1;
|
int GDScriptLanguageServer::port_override = -1;
|
||||||
|
|
||||||
GDScriptLanguageServer::GDScriptLanguageServer() {
|
GDScriptLanguageServer::GDScriptLanguageServer() {
|
||||||
|
// TODO: Move to editor_settings.cpp
|
||||||
_EDITOR_DEF("network/language_server/remote_host", host);
|
_EDITOR_DEF("network/language_server/remote_host", host);
|
||||||
_EDITOR_DEF("network/language_server/remote_port", port);
|
_EDITOR_DEF("network/language_server/remote_port", port);
|
||||||
_EDITOR_DEF("network/language_server/enable_smart_resolve", true);
|
_EDITOR_DEF("network/language_server/enable_smart_resolve", true);
|
||||||
|
@ -1199,7 +1199,7 @@ GridMapEditor::GridMapEditor() {
|
|||||||
ED_SHORTCUT("grid_map/clear_selection", TTR("Clear Selection"), Key::KEY_DELETE);
|
ED_SHORTCUT("grid_map/clear_selection", TTR("Clear Selection"), Key::KEY_DELETE);
|
||||||
ED_SHORTCUT("grid_map/fill_selection", TTR("Fill Selection"), KeyModifierMask::CTRL + Key::F);
|
ED_SHORTCUT("grid_map/fill_selection", TTR("Fill Selection"), KeyModifierMask::CTRL + Key::F);
|
||||||
|
|
||||||
int mw = EDITOR_DEF("editors/grid_map/palette_min_width", 230);
|
int mw = EDITOR_GET("editors/grid_map/palette_min_width");
|
||||||
Control *ec = memnew(Control);
|
Control *ec = memnew(Control);
|
||||||
ec->set_custom_minimum_size(Size2(mw, 0) * EDSCALE);
|
ec->set_custom_minimum_size(Size2(mw, 0) * EDSCALE);
|
||||||
add_child(ec);
|
add_child(ec);
|
||||||
@ -1309,8 +1309,6 @@ GridMapEditor::GridMapEditor() {
|
|||||||
size_slider->connect(SceneStringName(value_changed), callable_mp(this, &GridMapEditor::_icon_size_changed));
|
size_slider->connect(SceneStringName(value_changed), callable_mp(this, &GridMapEditor::_icon_size_changed));
|
||||||
add_child(size_slider);
|
add_child(size_slider);
|
||||||
|
|
||||||
EDITOR_DEF("editors/grid_map/preview_size", 64);
|
|
||||||
|
|
||||||
mesh_library_palette = memnew(ItemList);
|
mesh_library_palette = memnew(ItemList);
|
||||||
mesh_library_palette->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
|
mesh_library_palette->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
|
||||||
add_child(mesh_library_palette);
|
add_child(mesh_library_palette);
|
||||||
@ -1533,9 +1531,6 @@ void GridMapEditorPlugin::make_visible(bool p_visible) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
GridMapEditorPlugin::GridMapEditorPlugin() {
|
GridMapEditorPlugin::GridMapEditorPlugin() {
|
||||||
EDITOR_DEF("editors/grid_map/editor_side", 1);
|
|
||||||
EditorSettings::get_singleton()->add_property_hint(PropertyInfo(Variant::INT, "editors/grid_map/editor_side", PROPERTY_HINT_ENUM, "Left,Right"));
|
|
||||||
|
|
||||||
grid_map_editor = memnew(GridMapEditor);
|
grid_map_editor = memnew(GridMapEditor);
|
||||||
switch ((int)EDITOR_GET("editors/grid_map/editor_side")) {
|
switch ((int)EDITOR_GET("editors/grid_map/editor_side")) {
|
||||||
case 0: { // Left.
|
case 0: { // Left.
|
||||||
|
@ -119,6 +119,7 @@ OpenXRSelectRuntime::OpenXRSelectRuntime() {
|
|||||||
default_runtimes["SteamVR"] = "~/.steam/steam/steamapps/common/SteamVR/steamxr_linux64.json";
|
default_runtimes["SteamVR"] = "~/.steam/steam/steamapps/common/SteamVR/steamxr_linux64.json";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// TODO: Move to editor_settings.cpp
|
||||||
EDITOR_DEF_RST("xr/openxr/runtime_paths", default_runtimes);
|
EDITOR_DEF_RST("xr/openxr/runtime_paths", default_runtimes);
|
||||||
|
|
||||||
set_flat(true);
|
set_flat(true);
|
||||||
|
@ -42,6 +42,7 @@ void register_android_exporter_types() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void register_android_exporter() {
|
void register_android_exporter() {
|
||||||
|
// TODO: Move to editor_settings.cpp
|
||||||
EDITOR_DEF("export/android/debug_keystore", EditorPaths::get_singleton()->get_debug_keystore_path());
|
EDITOR_DEF("export/android/debug_keystore", EditorPaths::get_singleton()->get_debug_keystore_path());
|
||||||
EditorSettings::get_singleton()->add_property_hint(PropertyInfo(Variant::STRING, "export/android/debug_keystore", PROPERTY_HINT_GLOBAL_FILE, "*.keystore,*.jks"));
|
EditorSettings::get_singleton()->add_property_hint(PropertyInfo(Variant::STRING, "export/android/debug_keystore", PROPERTY_HINT_GLOBAL_FILE, "*.keystore,*.jks"));
|
||||||
EDITOR_DEF("export/android/debug_keystore_user", DEFAULT_ANDROID_KEYSTORE_DEBUG_USER);
|
EDITOR_DEF("export/android/debug_keystore_user", DEFAULT_ANDROID_KEYSTORE_DEBUG_USER);
|
||||||
|
@ -39,6 +39,7 @@ void register_ios_exporter_types() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void register_ios_exporter() {
|
void register_ios_exporter() {
|
||||||
|
// TODO: Move to editor_settings.cpp
|
||||||
#ifdef MACOS_ENABLED
|
#ifdef MACOS_ENABLED
|
||||||
EDITOR_DEF("export/ios/ios_deploy", "");
|
EDITOR_DEF("export/ios/ios_deploy", "");
|
||||||
EditorSettings::get_singleton()->add_property_hint(PropertyInfo(Variant::STRING, "export/ios/ios_deploy", PROPERTY_HINT_GLOBAL_FILE, "*"));
|
EditorSettings::get_singleton()->add_property_hint(PropertyInfo(Variant::STRING, "export/ios/ios_deploy", PROPERTY_HINT_GLOBAL_FILE, "*"));
|
||||||
|
@ -37,6 +37,7 @@ void register_macos_exporter_types() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void register_macos_exporter() {
|
void register_macos_exporter() {
|
||||||
|
// TODO: Move to editor_settings.cpp
|
||||||
#ifndef ANDROID_ENABLED
|
#ifndef ANDROID_ENABLED
|
||||||
EDITOR_DEF("export/macos/rcodesign", "");
|
EDITOR_DEF("export/macos/rcodesign", "");
|
||||||
#ifdef WINDOWS_ENABLED
|
#ifdef WINDOWS_ENABLED
|
||||||
|
@ -40,6 +40,7 @@ void register_web_exporter_types() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void register_web_exporter() {
|
void register_web_exporter() {
|
||||||
|
// TODO: Move to editor_settings.cpp
|
||||||
EDITOR_DEF("export/web/http_host", "localhost");
|
EDITOR_DEF("export/web/http_host", "localhost");
|
||||||
EDITOR_DEF("export/web/http_port", 8060);
|
EDITOR_DEF("export/web/http_port", 8060);
|
||||||
EDITOR_DEF("export/web/use_tls", false);
|
EDITOR_DEF("export/web/use_tls", false);
|
||||||
|
@ -39,6 +39,7 @@ void register_windows_exporter_types() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void register_windows_exporter() {
|
void register_windows_exporter() {
|
||||||
|
// TODO: Move to editor_settings.cpp
|
||||||
#ifndef ANDROID_ENABLED
|
#ifndef ANDROID_ENABLED
|
||||||
EDITOR_DEF("export/windows/rcedit", "");
|
EDITOR_DEF("export/windows/rcedit", "");
|
||||||
EditorSettings::get_singleton()->add_property_hint(PropertyInfo(Variant::STRING, "export/windows/rcedit", PROPERTY_HINT_GLOBAL_FILE, "*.exe"));
|
EditorSettings::get_singleton()->add_property_hint(PropertyInfo(Variant::STRING, "export/windows/rcedit", PROPERTY_HINT_GLOBAL_FILE, "*.exe"));
|
||||||
|
Loading…
Reference in New Issue
Block a user