renames_map_3_to_4.cpp 106 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870
  1. /**************************************************************************/
  2. /* renames_map_3_to_4.cpp */
  3. /**************************************************************************/
  4. /* This file is part of: */
  5. /* GODOT ENGINE */
  6. /* https://godotengine.org */
  7. /**************************************************************************/
  8. /* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */
  9. /* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */
  10. /* */
  11. /* Permission is hereby granted, free of charge, to any person obtaining */
  12. /* a copy of this software and associated documentation files (the */
  13. /* "Software"), to deal in the Software without restriction, including */
  14. /* without limitation the rights to use, copy, modify, merge, publish, */
  15. /* distribute, sublicense, and/or sell copies of the Software, and to */
  16. /* permit persons to whom the Software is furnished to do so, subject to */
  17. /* the following conditions: */
  18. /* */
  19. /* The above copyright notice and this permission notice shall be */
  20. /* included in all copies or substantial portions of the Software. */
  21. /* */
  22. /* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */
  23. /* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */
  24. /* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */
  25. /* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */
  26. /* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */
  27. /* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
  28. /* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
  29. /**************************************************************************/
  30. #include "renames_map_3_to_4.h"
  31. #ifndef DISABLE_DEPRECATED
  32. const char *RenamesMap3To4::enum_renames[][2] = {
  33. // Constants
  34. // @GlobalScope
  35. { "BUTTON_LEFT", "MOUSE_BUTTON_LEFT" },
  36. { "BUTTON_MASK_LEFT", "MOUSE_BUTTON_MASK_LEFT" },
  37. { "BUTTON_MASK_MIDDLE", "MOUSE_BUTTON_MASK_MIDDLE" },
  38. { "BUTTON_MASK_RIGHT", "MOUSE_BUTTON_MASK_RIGHT" },
  39. { "BUTTON_MASK_XBUTTON1", "MOUSE_BUTTON_MASK_XBUTTON1" },
  40. { "BUTTON_MASK_XBUTTON2", "MOUSE_BUTTON_MASK_XBUTTON2" },
  41. { "BUTTON_MIDDLE", "MOUSE_BUTTON_MIDDLE" },
  42. { "BUTTON_RIGHT", "MOUSE_BUTTON_RIGHT" },
  43. { "BUTTON_WHEEL_DOWN", "MOUSE_BUTTON_WHEEL_DOWN" },
  44. { "BUTTON_WHEEL_LEFT", "MOUSE_BUTTON_WHEEL_LEFT" },
  45. { "BUTTON_WHEEL_RIGHT", "MOUSE_BUTTON_WHEEL_RIGHT" },
  46. { "BUTTON_WHEEL_UP", "MOUSE_BUTTON_WHEEL_UP" },
  47. { "BUTTON_XBUTTON1", "MOUSE_BUTTON_XBUTTON1" },
  48. { "BUTTON_XBUTTON2", "MOUSE_BUTTON_XBUTTON2" },
  49. { "KEY_CONTROL", "KEY_CTRL" },
  50. { "SIDE_BOTTOM", "MARGIN_BOTTOM" },
  51. { "SIDE_LEFT", "MARGIN_LEFT" },
  52. { "SIDE_RIGHT", "MARGIN_RIGHT" },
  53. { "SIDE_TOP", "MARGIN_TOP" },
  54. { "TYPE_COLOR_ARRAY", "TYPE_PACKED_COLOR_ARRAY" },
  55. { "TYPE_FLOAT64_ARRAY", "TYPE_PACKED_FLOAT64_ARRAY" },
  56. { "TYPE_INT64_ARRAY", "TYPE_PACKED_INT64_ARRAY" },
  57. { "TYPE_INT_ARRAY", "TYPE_PACKED_INT32_ARRAY" },
  58. { "TYPE_QUAT", "TYPE_QUATERNION" },
  59. { "TYPE_RAW_ARRAY", "TYPE_PACKED_BYTE_ARRAY" },
  60. { "TYPE_REAL", "TYPE_FLOAT" },
  61. { "TYPE_REAL_ARRAY", "TYPE_PACKED_FLOAT32_ARRAY" },
  62. { "TYPE_STRING_ARRAY", "TYPE_PACKED_STRING_ARRAY" },
  63. { "TYPE_TRANSFORM", "TYPE_TRANSFORM3D" },
  64. { "TYPE_VECTOR2_ARRAY", "TYPE_PACKED_VECTOR2_ARRAY" },
  65. { "TYPE_VECTOR3_ARRAY", "TYPE_PACKED_VECTOR3_ARRAY" },
  66. // { "FLAG_MAX", "PARTICLE_FLAG_MAX" }, // CPUParticles2D -- Used in more classes.
  67. { "ALIGN_BEGIN", "ALIGNMENT_BEGIN" }, // AspectRatioContainer
  68. { "ALIGN_CENTER", "ALIGNMENT_CENTER" }, // AspectRatioContainer
  69. { "ALIGN_END", "ALIGNMENT_END" }, // AspectRatioContainer
  70. { "ARRAY_COMPRESS_BASE", "ARRAY_COMPRESS_FLAGS_BASE" }, // Mesh
  71. { "ARVR_AR", "XR_AR" }, // XRInterface
  72. { "ARVR_EXCESSIVE_MOTION", "XR_EXCESSIVE_MOTION" }, // XRInterface
  73. { "ARVR_EXTERNAL", "XR_EXTERNAL" }, // XRInterface
  74. { "ARVR_INSUFFICIENT_FEATURES", "XR_INSUFFICIENT_FEATURES" }, // XRInterface
  75. { "ARVR_MONO", "XR_MONO" }, // XRInterface
  76. { "ARVR_NONE", "XR_NONE" }, // XRInterface
  77. { "ARVR_NORMAL_TRACKING", "XR_NORMAL_TRACKING" }, // XRInterface
  78. { "ARVR_NOT_TRACKING", "XR_NOT_TRACKING" }, // XRInterface
  79. { "ARVR_STEREO", "XR_STEREO" }, // XRInterface
  80. { "ARVR_UNKNOWN_TRACKING", "XR_UNKNOWN_TRACKING" }, // XRInterface
  81. { "BAKE_ERROR_INVALID_MESH", "BAKE_ERROR_MESHES_INVALID" }, // LightmapGI
  82. { "BODY_MODE_CHARACTER", "BODY_MODE_RIGID_LINEAR" }, // PhysicsServer
  83. { "CLEAR_MODE_ONLY_NEXT_FRAME", "CLEAR_MODE_ONCE" }, // SubViewport
  84. { "COMPRESS_PVRTC4", "COMPRESS_PVRTC1_4" }, // Image
  85. { "CONNECT_ONESHOT", "CONNECT_ONE_SHOT" }, // Object
  86. { "CONTAINER_PROPERTY_EDITOR_BOTTOM", "CONTAINER_INSPECTOR_BOTTOM" }, // EditorPlugin
  87. { "CUBEMAP_BACK", "CUBEMAP_LAYER_BACK" }, // RenderingServer
  88. { "CUBEMAP_BOTTOM", "CUBEMAP_LAYER_BOTTOM" }, // RenderingServer
  89. { "CUBEMAP_FRONT", "CUBEMAP_LAYER_FRONT" }, // RenderingServer
  90. { "CUBEMAP_LEFT", "CUBEMAP_LAYER_LEFT" }, // RenderingServer
  91. { "CUBEMAP_RIGHT", "CUBEMAP_LAYER_RIGHT" }, // RenderingServer
  92. { "CUBEMAP_TOP", "CUBEMAP_LAYER_TOP" }, // RenderingServer
  93. { "DAMPED_STRING_DAMPING", "DAMPED_SPRING_DAMPING" }, // PhysicsServer2D
  94. { "DAMPED_STRING_REST_LENGTH", "DAMPED_SPRING_REST_LENGTH" }, // PhysicsServer2D
  95. { "DAMPED_STRING_STIFFNESS", "DAMPED_SPRING_STIFFNESS" }, // PhysicsServer2D
  96. { "FLAG_ALIGN_Y_TO_VELOCITY", "PARTICLE_FLAG_ALIGN_Y_TO_VELOCITY" }, // CPUParticles2D
  97. { "FLAG_DISABLE_Z", "PARTICLE_FLAG_DISABLE_Z" }, // CPUParticles2D
  98. { "FLAG_ROTATE_Y", "PARTICLE_FLAG_ROTATE_Y" }, // CPUParticles2D
  99. { "FLAG_USE_BAKED_LIGHT", "GI_MODE_BAKED" }, // GeometryInstance3D
  100. { "FORMAT_PVRTC2", "FORMAT_PVRTC1_2" }, // Image
  101. { "FORMAT_PVRTC2A", "FORMAT_PVRTC1_2A" }, // Image
  102. { "FORMAT_PVRTC4", "FORMAT_PVRTC1_4" }, // Image
  103. { "FORMAT_PVRTC4A", "FORMAT_PVRTC1_4A" }, // Image
  104. { "FUNC_FRAC", "FUNC_FRACT" }, // VisualShaderNodeVectorFunc
  105. { "INSTANCE_LIGHTMAP_CAPTURE", "INSTANCE_LIGHTMAP" }, // RenderingServer
  106. { "JOINT_6DOF", "JOINT_TYPE_6DOF" }, // PhysicsServer3D
  107. { "JOINT_CONE_TWIST", "JOINT_TYPE_CONE_TWIST" }, // PhysicsServer3D
  108. { "JOINT_DAMPED_SPRING", "JOINT_TYPE_DAMPED_SPRING" }, // PhysicsServer2D
  109. { "JOINT_GROOVE", "JOINT_TYPE_GROOVE" }, // PhysicsServer2D
  110. { "JOINT_HINGE", "JOINT_TYPE_HINGE" }, // PhysicsServer3D
  111. { "JOINT_PIN", "JOINT_TYPE_PIN" }, // PhysicsServer2D
  112. { "JOINT_SLIDER", "JOINT_TYPE_SLIDER" }, // PhysicsServer3D
  113. { "LOOP_PING_PONG", "LOOP_PINGPONG" }, // AudioStreamWAV
  114. { "MODE_KINEMATIC", "FREEZE_MODE_KINEMATIC" }, // RigidBody
  115. { "MODE_OPEN_ANY", "FILE_MODE_OPEN_ANY" }, // FileDialog
  116. { "MODE_OPEN_DIR", "FILE_MODE_OPEN_DIR" }, // FileDialog
  117. { "MODE_OPEN_FILE", "FILE_MODE_OPEN_FILE" }, // FileDialog
  118. { "MODE_OPEN_FILES", "FILE_MODE_OPEN_FILES" }, // FileDialog
  119. { "MODE_SAVE_FILE", "FILE_MODE_SAVE_FILE" }, // FileDialog
  120. { "MODE_STATIC", "FREEZE_MODE_STATIC" }, // RigidBody
  121. { "NOTIFICATION_APP_PAUSED", "NOTIFICATION_APPLICATION_PAUSED" }, // MainLoop
  122. { "NOTIFICATION_APP_RESUMED", "NOTIFICATION_APPLICATION_RESUMED" }, // MainLoop
  123. { "NOTIFICATION_INSTANCED", "NOTIFICATION_SCENE_INSTANTIATED" }, // Node
  124. { "NOTIFICATION_PATH_CHANGED", "NOTIFICATION_PATH_RENAMED" }, //Node
  125. { "NOTIFICATION_WM_FOCUS_IN", "NOTIFICATION_APPLICATION_FOCUS_IN" }, // MainLoop
  126. { "NOTIFICATION_WM_FOCUS_OUT", "NOTIFICATION_APPLICATION_FOCUS_OUT" }, // MainLoop
  127. { "NOTIFICATION_WM_UNFOCUS_REQUEST", "NOTIFICATION_WM_WINDOW_FOCUS_OUT" }, //Node
  128. { "PAUSE_MODE_INHERIT", "PROCESS_MODE_INHERIT" }, // Node
  129. { "PAUSE_MODE_PROCESS", "PROCESS_MODE_ALWAYS" }, // Node
  130. { "PAUSE_MODE_STOP", "PROCESS_MODE_PAUSABLE" }, // Node
  131. { "RENDER_DRAW_CALLS_IN_FRAME", "RENDER_TOTAL_DRAW_CALLS_IN_FRAME" }, // Performance
  132. { "RENDER_OBJECTS_IN_FRAME", "RENDER_TOTAL_OBJECTS_IN_FRAME" }, // Performance
  133. { "SOURCE_GEOMETRY_NAVMESH_CHILDREN", "SOURCE_GEOMETRY_ROOT_NODE_CHILDREN" }, // NavigationMesh
  134. { "TEXTURE_TYPE_2D_ARRAY", "TEXTURE_LAYERED_2D_ARRAY" }, // RenderingServer
  135. { "TEXTURE_TYPE_CUBEMAP", "TEXTURE_LAYERED_CUBEMAP_ARRAY" }, // RenderingServer
  136. { "TRACKER_LEFT_HAND", "TRACKER_HAND_LEFT" }, // XRPositionalTracker
  137. { "TRACKER_RIGHT_HAND", "TRACKER_HAND_RIGHT" }, // XRPositionalTracker
  138. { "TYPE_NORMALMAP", "TYPE_NORMAL_MAP" }, // VisualShaderNodeCubemap
  139. // Enums
  140. { "AlignMode", "AlignmentMode" }, // AspectRatioContainer
  141. { "AnimationProcessMode", "AnimationProcessCallback" }, // AnimationTree, AnimationPlayer
  142. { "Camera2DProcessMode", "Camera2DProcessCallback" }, // Camera2D
  143. { "CubeMapSide", "CubeMapLayer" }, // RenderingServer
  144. { "DampedStringParam", "DampedSpringParam" }, // PhysicsServer2D
  145. { "FFT_Size", "FFTSize" }, // AudioEffectPitchShift, AudioEffectSpectrumAnalyzer
  146. { "PauseMode", "ProcessMode" }, // Node
  147. { "TimerProcessMode", "TimerProcessCallback" }, // Timer
  148. { "Tracking_status", "TrackingStatus" }, // XRInterface
  149. { nullptr, nullptr },
  150. };
  151. const char *RenamesMap3To4::gdscript_function_renames[][2] = {
  152. // NOTE: Commented out renames are disabled because deemed not suitable for
  153. // the current way the regex-based converter works.
  154. // When uncommenting any of those as suitable for conversion, please move it
  155. // to the block with other enabled conversions, ordered alphabetically, and
  156. // make sure to add it to the C# rename map too.
  157. // { "_set_name", "get_tracker_name" }, // XRPositionalTracker -- CameraFeed uses this.
  158. // { "_unhandled_input", "_unhandled_key_input" }, // BaseButton, ViewportContainer -- Breaks Node, FileDialog, SubViewportContainer.
  159. // { "create_gizmo", "_create_gizmo" }, // EditorNode3DGizmoPlugin -- May be used.
  160. // { "get_dependencies", "_get_dependencies" }, // ResourceFormatLoader -- Breaks ResourceLoader.
  161. // { "get_extents", "get_size" }, // BoxShape, RectangleShape -- Breaks Decal, VoxelGI, GPUParticlesCollisionBox, GPUParticlesCollisionSDF, GPUParticlesCollisionHeightField, GPUParticlesAttractorBox, GPUParticlesAttractorVectorField, FogVolume
  162. // { "get_h_offset", "get_drag_horizontal_offset" }, // Camera2D -- Breaks PathFollow, Camera.
  163. // { "get_mode", "get_file_mode" }, // FileDialog -- Breaks Panel, Shader, CSGPolygon, TileMap.
  164. // { "get_motion", "get_travel" }, // PhysicsTestMotionResult2D -- Breaks ParallaxLayer.
  165. // { "get_name", "get_tracker_name" }, // XRPositionalTracker -- Breaks OS, Node
  166. // { "get_network_connected_peers", "get_peers" }, // MultiplayerAPI -- Breaks SceneTree.
  167. // { "get_network_peer", "has_multiplayer_peer" }, // MultiplayerAPI -- Breaks SceneTree.
  168. // { "get_network_unique_id", "get_unique_id"}, // MultiplayerAPI -- Breaks SceneTree.
  169. // { "get_offset", "get_position_offset" }, // GraphNode -- Breaks Gradient.
  170. // { "get_peer_port", "get_peer" }, // ENetMultiplayerPeer -- Breaks WebSocketServer.
  171. // { "get_points", "get_points_id" }, // AStar -- Breaks Line2D, ConvexPolygonShape.
  172. // { "get_process_mode", "get_process_callback" }, // ClippedCamera3D -- Breaks Node, Sky.
  173. // { "get_render_info", "get_rendering_info" }, // RenderingServer -- Breaks Viewport.
  174. // { "get_stylebox", "get_theme_stylebox" }, // Control -- Would rename the method in Theme as well, skipping.
  175. // { "get_type", "get_tracker_type" }, // XRPositionalTracker -- Breaks GLTFAccessor, GLTFLight.
  176. // { "get_v_offset", "get_drag_vertical_offset" }, // Camera2D -- Breaks PathFollow, Camera.
  177. // { "get_v_scroll", "get_v_scroll_bar" }, // ItemList -- Breaks TextView.
  178. // { "has_network_peer", "has_multiplayer_peer" }, // MultiplayerAPI -- Breaks SceneTree.
  179. // { "instance", "instantiate" }, // PackedScene, ClassDB -- Breaks FileSystemDock signal, and also .tscn files ("[instance=ExtResource( 17 )]"). This is implemented as custom rule.
  180. // { "is_listening", "is_bound"}, // PacketPeerUDP -- Breaks TCPServer, UDPServer.
  181. // { "is_refusing_new_network_connections", "is_refusing_new_connections"}, // MultiplayerAPI -- Breaks SceneTree.
  182. // { "is_valid", "has_valid_event" }, // Shortcut -- Breaks Callable, and more.
  183. // { "listen", "bound"}, // PacketPeerUDP -- Breaks TCPServer, UDPServer.
  184. // { "load", "_load"}, // ResourceFormatLoader -- Breaks ConfigFile, Image, StreamTexture2D.
  185. // { "make_current", "set_current" }, // Camera2D -- Breaks Camera3D, Listener2D.
  186. // { "process", "_process" }, // AnimationNode -- This word is too commonly used.
  187. // { "raise", "move_to_front" }, // CanvasItem -- Too common.
  188. // { "save", "_save"}, // ResourceFormatLoader -- Breaks ConfigFile, Image, StreamTexture2D.
  189. // { "set_autowrap", "set_autowrap_mode" }, // AcceptDialog -- Breaks Label, also a cyclic rename.
  190. // { "set_color", "surface_set_color"}, // ImmediateMesh -- Breaks Light2D, Theme, SurfaceTool.
  191. // { "set_event", "set_shortcut" }, // BaseButton -- Cyclic rename.
  192. // { "set_extents", "set_size"}, // BoxShape, RectangleShape -- Breaks ReflectionProbe.
  193. // { "set_flag", "set_particle_flag"}, // ParticleProcessMaterial -- Breaks Window, HingeJoint3D.
  194. // { "set_h_offset", "set_drag_horizontal_offset" }, // Camera2D -- Breaks Camera3D, PathFollow3D, PathFollow2D.
  195. // { "set_margin", "set_offset" }, // Control -- Breaks Shape3D, AtlasTexture.
  196. // { "set_mode", "set_mode_file_mode" }, // FileDialog -- Breaks Panel, Shader, CSGPolygon, TileMap.
  197. // { "set_normal", "surface_set_normal"}, // ImmediateGeometry -- Breaks SurfaceTool, WorldMarginShape2D.
  198. // { "set_offset", "set_progress" }, // PathFollow2D, PathFollow3D -- Too common.
  199. // { "set_process_mode", "set_process_callback" }, // AnimationTree -- Breaks Node, Tween, Sky.
  200. // { "set_refuse_new_network_connections", "set_refuse_new_connections"}, // MultiplayerAPI -- Breaks SceneTree.
  201. // { "set_tooltip", "set_tooltip_text" }, // Control -- Breaks TreeItem, at least for now.
  202. // { "set_uv", "surface_set_uv" }, // ImmediateMesh -- Breaks Polygon2D.
  203. // { "set_v_offset", "set_drag_vertical_offset" }, // Camera2D -- Breaks Camera3D, PathFollow3D, PathFollow2D.
  204. { "_about_to_show", "_about_to_popup" }, // ColorPickerButton
  205. { "_get_configuration_warning", "_get_configuration_warnings" }, // Node
  206. { "_set_current", "set_current" }, // Camera2D
  207. { "_set_editor_description", "set_editor_description" }, // Node
  208. { "_toplevel_raise_self", "_top_level_raise_self" }, // CanvasItem
  209. { "_update_wrap_at", "_update_wrap_at_column" }, // TextEdit
  210. { "add_animation", "add_animation_library" }, // AnimationPlayer
  211. { "add_cancel", "add_cancel_button" }, // AcceptDialog
  212. { "add_central_force", "apply_central_force" }, //RigidBody2D
  213. { "add_child_below_node", "add_sibling" }, // Node
  214. { "add_color_override", "add_theme_color_override" }, // Control
  215. { "add_constant_override", "add_theme_constant_override" }, // Control
  216. { "add_font_override", "add_theme_font_override" }, // Control
  217. { "add_force", "apply_force" }, //RigidBody2D
  218. { "add_icon_override", "add_theme_icon_override" }, // Control
  219. { "add_scene_import_plugin", "add_scene_format_importer_plugin" }, //EditorPlugin
  220. { "add_spatial_gizmo_plugin", "add_node_3d_gizmo_plugin" }, // EditorPlugin
  221. { "add_stylebox_override", "add_theme_stylebox_override" }, // Control
  222. { "add_torque", "apply_torque" }, //RigidBody2D
  223. { "agent_set_neighbor_dist", "agent_set_neighbor_distance" }, // NavigationServer2D, NavigationServer3D
  224. { "apply_changes", "_apply_changes" }, // EditorPlugin
  225. { "body_add_force", "body_apply_force" }, // PhysicsServer2D
  226. { "body_add_torque", "body_apply_torque" }, // PhysicsServer2D
  227. { "bumpmap_to_normalmap", "bump_map_to_normal_map" }, // Image
  228. { "can_be_hidden", "_can_be_hidden" }, // EditorNode3DGizmoPlugin
  229. { "can_drop_data", "_can_drop_data" }, // Control
  230. { "can_generate_small_preview", "_can_generate_small_preview" }, // EditorResourcePreviewGenerator
  231. { "can_instance", "can_instantiate" }, // PackedScene, Script
  232. { "canvas_light_set_scale", "canvas_light_set_texture_scale" }, // RenderingServer
  233. { "capture_get_device", "get_input_device" }, // AudioServer
  234. { "capture_get_device_list", "get_input_device_list" }, // AudioServer
  235. { "capture_set_device", "set_input_device" }, // AudioServer
  236. { "center_viewport_to_cursor", "center_viewport_to_caret" }, // TextEdit
  237. { "change_scene", "change_scene_to_file" }, // SceneTree
  238. { "change_scene_to", "change_scene_to_packed" }, // SceneTree
  239. { "clip_polygons_2d", "clip_polygons" }, // Geometry2D
  240. { "clip_polyline_with_polygon_2d", "clip_polyline_with_polygon" }, //Geometry2D
  241. { "commit_handle", "_commit_handle" }, // EditorNode3DGizmo
  242. { "convex_hull_2d", "convex_hull" }, // Geometry2D
  243. { "create_gizmo", "_create_gizmo" }, // EditorNode3DGizmoPlugin
  244. { "cursor_get_blink_speed", "get_caret_blink_interval" }, // TextEdit
  245. { "cursor_get_column", "get_caret_column" }, // TextEdit
  246. { "cursor_get_line", "get_caret_line" }, // TextEdit
  247. { "cursor_set_blink_enabled", "set_caret_blink_enabled" }, // TextEdit
  248. { "cursor_set_blink_speed", "set_caret_blink_interval" }, // TextEdit
  249. { "cursor_set_column", "set_caret_column" }, // TextEdit
  250. { "cursor_set_line", "set_caret_line" }, // TextEdit
  251. { "damped_spring_joint_create", "joint_make_damped_spring" }, // PhysicsServer2D
  252. { "damped_string_joint_get_param", "damped_spring_joint_get_param" }, // PhysicsServer2D
  253. { "damped_string_joint_set_param", "damped_spring_joint_set_param" }, // PhysicsServer2D
  254. { "dectime", "move_toward" }, // GDScript, Math functions
  255. { "delete_char_at_cursor", "delete_char_at_caret" }, // LineEdit
  256. { "deselect_items", "deselect_all" }, // FileDialog
  257. { "disable_plugin", "_disable_plugin" }, // EditorPlugin
  258. { "drop_data", "_drop_data" }, // Control
  259. { "exclude_polygons_2d", "exclude_polygons" }, // Geometry2D
  260. { "find_node", "find_child" }, // Node
  261. { "find_scancode_from_string", "find_keycode_from_string" }, // OS
  262. { "forward_canvas_draw_over_viewport", "_forward_canvas_draw_over_viewport" }, // EditorPlugin
  263. { "forward_canvas_force_draw_over_viewport", "_forward_canvas_force_draw_over_viewport" }, // EditorPlugin
  264. { "forward_canvas_gui_input", "_forward_canvas_gui_input" }, // EditorPlugin
  265. { "forward_spatial_draw_over_viewport", "_forward_3d_draw_over_viewport" }, // EditorPlugin
  266. { "forward_spatial_force_draw_over_viewport", "_forward_3d_force_draw_over_viewport" }, // EditorPlugin
  267. { "forward_spatial_gui_input", "_forward_3d_gui_input" }, // EditorPlugin
  268. { "generate_from_path", "_generate_from_path" }, // EditorResourcePreviewGenerator
  269. { "generate_small_preview_automatically", "_generate_small_preview_automatically" }, // EditorResourcePreviewGenerator
  270. { "get_action_list", "action_get_events" }, // InputMap
  271. { "get_alt", "is_alt_pressed" }, // InputEventWithModifiers
  272. { "get_animation_process_mode", "get_process_callback" }, // AnimationPlayer
  273. { "get_applied_force", "get_constant_force" }, //RigidBody2D
  274. { "get_applied_torque", "get_constant_torque" }, //RigidBody2D
  275. { "get_audio_bus", "get_audio_bus_name" }, // Area3D
  276. { "get_bound_child_nodes_to_bone", "get_bone_children" }, // Skeleton3D
  277. { "get_camera", "get_camera_3d" }, // Viewport -- This is also convertible to get_camera_2d. Breaks GLTFNode.
  278. { "get_cancel", "get_cancel_button" }, // ConfirmationDialog
  279. { "get_caption", "_get_caption" }, // AnimationNode
  280. { "get_cast_to", "get_target_position" }, // RayCast2D, RayCast3D
  281. { "get_child_by_name", "_get_child_by_name" }, // AnimationNode
  282. { "get_child_nodes", "_get_child_nodes" }, // AnimationNode
  283. { "get_closest_point_to_segment_2d", "get_closest_point_to_segment" }, // Geometry2D
  284. { "get_closest_point_to_segment_uncapped_2d", "get_closest_point_to_segment_uncapped" }, // Geometry2D
  285. { "get_closest_points_between_segments_2d", "get_closest_point_to_segment" }, // Geometry2D
  286. { "get_collision_layer_bit", "get_collision_layer_value" }, // CSGShape3D, and a lot of others like GridMap.
  287. { "get_collision_mask_bit", "get_collision_mask_value" }, // CSGShape3D, and a lot of others like GridMap.
  288. { "get_color_types", "get_color_type_list" }, // Theme
  289. { "get_command", "is_command_or_control_pressed" }, // InputEventWithModifiers
  290. { "get_constant_types", "get_constant_type_list" }, // Theme
  291. { "get_control", "is_ctrl_pressed" }, // InputEventWithModifiers
  292. { "get_cull_mask_bit", "get_cull_mask_value" }, // Camera3D
  293. { "get_cursor_position", "get_caret_column" }, // LineEdit
  294. { "get_d", "get_distance" }, // LineShape2D
  295. { "get_default_length", "get_length" }, // Bone2D
  296. { "get_depth_bias_enable", "get_depth_bias_enabled" }, // RDPipelineRasterizationState
  297. { "get_device", "get_output_device" }, // AudioServer
  298. { "get_device_list", "get_output_device_list" }, // AudioServer
  299. { "get_drag_data", "_get_drag_data" }, // Control
  300. { "get_editor_viewport", "get_editor_main_screen" }, // EditorPlugin
  301. { "get_enabled_focus_mode", "get_focus_mode" }, // BaseButton
  302. { "get_endian_swap", "is_big_endian" }, // File
  303. { "get_error_string", "get_error_message" }, // JSON
  304. { "get_filename", "get_scene_file_path" }, // Node -- WARNING: This may be used in a lot of other places.
  305. { "get_final_location", "get_final_position" }, // NavigationAgent2D, NavigationAgent3D
  306. { "get_focus_neighbour", "get_focus_neighbor" }, // Control
  307. { "get_follow_smoothing", "get_position_smoothing_speed" }, // Camera2D
  308. { "get_font_types", "get_font_type_list" }, // Theme
  309. { "get_frame_color", "get_color" }, // ColorRect
  310. { "get_global_rate_scale", "get_playback_speed_scale" }, // AudioServer
  311. { "get_gravity_distance_scale", "get_gravity_point_unit_distance" }, // Area2D, Area3D
  312. { "get_gravity_vector", "get_gravity_direction" }, // Area(2D/3D)
  313. { "get_h_scrollbar", "get_h_scroll_bar" }, //ScrollContainer
  314. { "get_hand", "get_tracker_hand" }, // XRPositionalTracker
  315. { "get_handle_name", "_get_handle_name" }, // EditorNode3DGizmo
  316. { "get_handle_value", "_get_handle_value" }, // EditorNode3DGizmo
  317. { "get_icon_align", "get_icon_alignment" }, // Button
  318. { "get_icon_types", "get_icon_type_list" }, // Theme
  319. { "get_idle_frames", "get_process_frames" }, // Engine
  320. { "get_import_options", "_get_import_options" }, // EditorImportPlugin
  321. { "get_import_order", "_get_import_order" }, // EditorImportPlugin
  322. { "get_importer_name", "_get_importer_name" }, // EditorImportPlugin
  323. { "get_interior_ambient", "get_ambient_color" }, // ReflectionProbe
  324. { "get_interior_ambient_energy", "get_ambient_color_energy" }, // ReflectionProbe
  325. { "get_item_navmesh", "get_item_navigation_mesh" }, // MeshLibrary
  326. { "get_item_navmesh_transform", "get_item_navigation_mesh_transform" }, // MeshLibrary
  327. { "get_iterations_per_second", "get_physics_ticks_per_second" }, // Engine
  328. { "get_last_mouse_speed", "get_last_mouse_velocity" }, // Input
  329. { "get_layer_mask_bit", "get_layer_mask_value" }, // VisualInstance3D
  330. { "get_len", "get_length" }, // File
  331. { "get_max_atlas_size", "get_max_texture_size" }, // LightmapGI
  332. { "get_metakey", "is_meta_pressed" }, // InputEventWithModifiers
  333. { "get_mid_height", "get_height" }, // CapsuleMesh
  334. { "get_motion_remainder", "get_remainder" }, // PhysicsTestMotionResult2D
  335. { "get_nav_path", "get_current_navigation_path" }, // NavigationAgent2D, NavigationAgent3D
  336. { "get_nav_path_index", "get_current_navigation_path_index" }, // NavigationAgent2D, NavigationAgent3D
  337. { "get_neighbor_dist", "get_neighbor_distance" }, // NavigationAgent2D, NavigationAgent3D
  338. { "get_network_connected_peers", "get_peers" }, // Multiplayer API
  339. { "get_network_master", "get_multiplayer_authority" }, // Node
  340. { "get_network_peer", "get_multiplayer_peer" }, // Multiplayer API
  341. { "get_network_unique_id", "get_unique_id" }, // Multiplayer API
  342. { "get_next_location", "get_next_path_position" }, // NavigationAgent2D, NavigationAgent3D
  343. { "get_ok", "get_ok_button" }, // AcceptDialog
  344. { "get_oneshot", "get_one_shot" }, // AnimatedTexture
  345. { "get_option_visibility", "_get_option_visibility" }, // EditorImportPlugin
  346. { "get_parameter_default_value", "_get_parameter_default_value" }, // AnimationNode
  347. { "get_parameter_list", "_get_parameter_list" }, // AnimationNode
  348. { "get_parent_spatial", "get_parent_node_3d" }, // Node3D
  349. { "get_pause_mode", "get_process_mode" }, // Node
  350. { "get_physical_scancode", "get_physical_keycode" }, // InputEventKey
  351. { "get_physical_scancode_with_modifiers", "get_physical_keycode_with_modifiers" }, // InputEventKey
  352. { "get_plugin_icon", "_get_plugin_icon" }, // EditorPlugin
  353. { "get_plugin_name", "_get_plugin_name" }, // EditorPlugin
  354. { "get_preset_count", "_get_preset_count" }, // EditorImportPlugin
  355. { "get_preset_name", "_get_preset_name" }, // EditorImportPlugin
  356. { "get_recognized_extensions", "_get_recognized_extensions" }, // ResourceFormatLoader, EditorImportPlugin -- Breaks ResourceSaver.
  357. { "get_render_info", "get_rendering_info" }, // RenderingServer
  358. { "get_render_targetsize", "get_render_target_size" }, // XRInterface
  359. { "get_resource_type", "_get_resource_type" }, // ResourceFormatLoader
  360. { "get_result", "get_data" }, // JSON
  361. { "get_reverb_bus", "set_reverb_bus_name" }, // Area3D
  362. { "get_rpc_sender_id", "get_remote_sender_id" }, // Multiplayer API
  363. { "get_save_extension", "_get_save_extension" }, // EditorImportPlugin
  364. { "get_scancode", "get_keycode" }, // InputEventKey
  365. { "get_scancode_string", "get_keycode_string" }, // OS
  366. { "get_scancode_with_modifiers", "get_keycode_with_modifiers" }, // InputEventKey
  367. { "get_selected_path", "get_current_directory" }, // EditorInterface
  368. { "get_shader_param", "get_shader_parameter" }, // ShaderMaterial
  369. { "get_shift", "is_shift_pressed" }, // InputEventWithModifiers
  370. { "get_size_override", "get_size_2d_override" }, // SubViewport
  371. { "get_slide_count", "get_slide_collision_count" }, // CharacterBody2D, CharacterBody3D
  372. { "get_slips_on_slope", "get_slide_on_slope" }, // SeparationRayShape2D, SeparationRayShape3D
  373. { "get_space_override_mode", "get_gravity_space_override_mode" }, // Area2D
  374. { "get_spatial_node", "get_node_3d" }, // EditorNode3DGizmo
  375. { "get_speed", "get_velocity" }, // InputEventMouseMotion
  376. { "get_stylebox_types", "get_stylebox_type_list" }, // Theme
  377. { "get_surface_material", "get_surface_override_material" }, // MeshInstance3D -- Breaks ImporterMesh.
  378. { "get_surface_material_count", "get_surface_override_material_count" }, // MeshInstance3D
  379. { "get_tab_disabled", "is_tab_disabled" }, // Tab
  380. { "get_tab_hidden", "is_tab_hidden" }, // Tab
  381. { "get_target_location", "get_target_position" }, // NavigationAgent2D, NavigationAgent3D
  382. { "get_text_align", "get_text_alignment" }, // Button
  383. { "get_theme_item_types", "get_theme_item_type_list" }, // Theme
  384. { "get_timer_process_mode", "get_timer_process_callback" }, // Timer
  385. { "get_translation", "get_position" }, // Node3D -- Breaks GLTFNode, but it is used rarely.
  386. { "get_uniform_name", "get_parameter_name" }, // ParameterRef
  387. { "get_unit_db", "get_volume_db" }, // AudioStreamPlayer3D
  388. { "get_unit_offset", "get_progress_ratio" }, // PathFollow2D, PathFollow3D
  389. { "get_use_in_baked_light", "is_baking_navigation" }, // GridMap
  390. { "get_verts_per_poly", "get_vertices_per_polygon" }, // NavigationMesh
  391. { "get_v_scrollbar", "get_v_scroll_bar" }, // ScrollContainer
  392. { "get_visible_name", "_get_visible_name" }, // EditorImportPlugin
  393. { "get_window_layout", "_get_window_layout" }, // EditorPlugin
  394. { "get_word_under_cursor", "get_word_under_caret" }, // TextEdit
  395. { "get_world", "get_world_3d" }, // Viewport, Node3D
  396. { "get_zfar", "get_far" }, // Camera3D -- Breaks GLTFCamera
  397. { "get_znear", "get_near" }, // Camera3D -- Breaks GLTFCamera
  398. { "groove_joint_create", "joint_make_groove" }, // PhysicsServer2D
  399. { "handle_menu_selected", "_handle_menu_selected" }, // EditorResourcePicker
  400. { "handles_type", "_handles_type" }, // ResourceFormatLoader
  401. { "has_color", "has_theme_color" }, // Control -- Breaks Theme
  402. { "has_color_override", "has_theme_color_override" }, // Control -- Breaks Theme
  403. { "has_constant", "has_theme_constant" }, // Control
  404. { "has_constant_override", "has_theme_constant_override" }, // Control
  405. { "has_filter", "_has_filter" }, // AnimationNode
  406. { "has_font", "has_theme_font" }, // Control -- Breaks Theme
  407. { "has_font_override", "has_theme_font_override" }, // Control
  408. { "has_icon", "has_theme_icon" }, // Control -- Breaks Theme
  409. { "has_icon_override", "has_theme_icon_override" }, // Control
  410. { "has_main_screen", "_has_main_screen" }, // EditorPlugin
  411. { "has_network_peer", "has_multiplayer_peer" }, // Multiplayer API
  412. { "has_stylebox", "has_theme_stylebox" }, // Control -- Breaks Theme
  413. { "has_stylebox_override", "has_theme_stylebox_override" }, // Control
  414. { "http_escape", "uri_encode" }, // String
  415. { "http_unescape", "uri_decode" }, // String
  416. { "import_scene_from_other_importer", "_import_scene" }, // EditorSceneFormatImporter
  417. { "instance_set_surface_material", "instance_set_surface_override_material" }, // RenderingServer
  418. { "interpolate", "sample" }, // Curve, Curve2D, Curve3D, Gradient
  419. { "intersect_polygons_2d", "intersect_polygons" }, // Geometry2D
  420. { "intersect_polyline_with_polygon_2d", "intersect_polyline_with_polygon" }, // Geometry2D
  421. { "is_a_parent_of", "is_ancestor_of" }, // Node
  422. { "is_commiting_action", "is_committing_action" }, // UndoRedo
  423. { "is_doubleclick", "is_double_click" }, // InputEventMouseButton
  424. { "is_draw_red", "is_draw_warning" }, // EditorProperty
  425. { "is_follow_smoothing_enabled", "is_position_smoothing_enabled" }, // Camera2D
  426. { "is_h_drag_enabled", "is_drag_horizontal_enabled" }, // Camera2D
  427. { "is_handle_highlighted", "_is_handle_highlighted" }, // EditorNode3DGizmo, EditorNode3DGizmoPlugin
  428. { "is_inverting_faces", "get_flip_faces" }, // CSGPrimitive3D
  429. { "is_network_master", "is_multiplayer_authority" }, // Node
  430. { "is_network_server", "is_server" }, // Multiplayer API
  431. { "is_normalmap", "is_normal_map" }, // NoiseTexture
  432. { "is_refusing_new_network_connections", "is_refusing_new_connections" }, // Multiplayer API
  433. { "is_region", "is_region_enabled" }, // Sprite2D
  434. { "is_rotating", "is_ignoring_rotation" }, // Camera2D
  435. { "is_scancode_unicode", "is_keycode_unicode" }, // OS
  436. { "is_selectable_when_hidden", "_is_selectable_when_hidden" }, // EditorNode3DGizmoPlugin
  437. { "is_set_as_toplevel", "is_set_as_top_level" }, // CanvasItem
  438. { "is_shortcut", "matches_event" }, // Shortcut
  439. { "is_size_override_stretch_enabled", "is_size_2d_override_stretch_enabled" }, // SubViewport
  440. { "is_sort_enabled", "is_y_sort_enabled" }, // Node2D
  441. { "is_static_body", "is_able_to_sleep" }, // PhysicalBone3D -- Not sure.
  442. { "is_v_drag_enabled", "is_drag_vertical_enabled" }, // Camera2D
  443. { "joint_create_cone_twist", "joint_make_cone_twist" }, // PhysicsServer3D
  444. { "joint_create_generic_6dof", "joint_make_generic_6dof" }, // PhysicsServer3D
  445. { "joint_create_hinge", "joint_make_hinge" }, // PhysicsServer3D
  446. { "joint_create_pin", "joint_make_pin" }, // PhysicsServer3D
  447. { "joint_create_slider", "joint_make_slider" }, // PhysicsServer3D
  448. { "line_intersects_line_2d", "line_intersects_line" }, // Geometry2D
  449. { "load_from_globals", "load_from_project_settings" }, // InputMap
  450. { "load_interactive", "load_threaded_request" }, // ResourceLoader -- "load_threaded_request" could be an alternative, but it is used differently.
  451. { "make_convex_from_brothers", "make_convex_from_siblings" }, // CollisionShape3D
  452. { "make_visible", "_make_visible" }, // EditorPlugin
  453. { "merge_polygons_2d", "merge_polygons" }, // Geometry2D
  454. { "mesh_surface_get_format", "mesh_surface_get_format_attribute_stride" }, // RenderingServer
  455. { "mesh_surface_update_region", "mesh_surface_update_attribute_region" }, // RenderingServer
  456. { "move_to_bottom", "move_after" }, // Skeleton3D
  457. { "move_to_top", "move_before" }, // Skeleton3D
  458. { "multimesh_allocate", "multimesh_allocate_data" }, // RenderingServer
  459. { "normalmap_to_xy", "normal_map_to_xy" }, // Image
  460. { "offset_polygon_2d", "offset_polygon" }, // Geometry2D
  461. { "offset_polyline_2d", "offset_polyline" }, // Geometry2D
  462. { "percent_decode", "uri_decode" }, // String
  463. { "percent_encode", "uri_encode" }, // String
  464. { "pin_joint_create", "joint_make_pin" }, // PhysicsServer2D
  465. { "popup_centered_minsize", "popup_centered_clamped" }, // Window
  466. { "post_import", "_post_import" }, // EditorScenePostImport
  467. { "print_stray_nodes", "print_orphan_nodes" }, // Node
  468. { "property_list_changed_notify", "notify_property_list_changed" }, // Object
  469. { "recognize", "_recognize" }, // ResourceFormatLoader
  470. { "regen_normalmaps", "regen_normal_maps" }, // ArrayMesh
  471. { "region_bake_navmesh", "region_bake_navigation_mesh" }, // Navigation3DServer
  472. { "region_set_navmesh", "region_set_navigation_mesh" }, // Navigation3DServer
  473. { "region_set_navpoly", "region_set_navigation_polygon" }, // Navigation2DServer
  474. { "remove_animation", "remove_animation_library" }, // AnimationPlayer
  475. { "remove_color_override", "remove_theme_color_override" }, // Control
  476. { "remove_constant_override", "remove_theme_constant_override" }, // Control
  477. { "remove_font_override", "remove_theme_font_override" }, // Control
  478. { "remove_icon_override", "remove_theme_icon_override" }, // Control
  479. { "remove_scene_import_plugin", "remove_scene_format_importer_plugin" }, //EditorPlugin
  480. { "remove_spatial_gizmo_plugin", "remove_node_3d_gizmo_plugin" }, // EditorPlugin
  481. { "remove_stylebox_override", "remove_theme_stylebox_override" }, // Control
  482. { "rename_animation", "rename_animation_library" }, // AnimationPlayer
  483. { "rename_dependencies", "_rename_dependencies" }, // ResourceFormatLoader
  484. { "save_external_data", "_save_external_data" }, // EditorPlugin
  485. { "segment_intersects_segment_2d", "segment_intersects_segment" }, // Geometry2D
  486. { "set_adjustment_enable", "set_adjustment_enabled" }, // Environment
  487. { "set_alt", "set_alt_pressed" }, // InputEventWithModifiers
  488. { "set_anchor_and_margin", "set_anchor_and_offset" }, // Control
  489. { "set_anchors_and_margins_preset", "set_anchors_and_offsets_preset" }, // Control
  490. { "set_animation_process_mode", "set_process_callback" }, // AnimationPlayer
  491. { "set_as_bulk_array", "set_buffer" }, // MultiMesh
  492. { "set_as_normalmap", "set_as_normal_map" }, // NoiseTexture
  493. { "set_as_toplevel", "set_as_top_level" }, // CanvasItem
  494. { "set_audio_bus", "set_audio_bus_name" }, // Area3D
  495. { "set_autowrap", "set_autowrap_mode" }, // Label -- Breaks AcceptDialog.
  496. { "set_cast_to", "set_target_position" }, // RayCast2D, RayCast3D
  497. { "set_collision_layer_bit", "set_collision_layer_value" }, // CSGShape3D, and a lot of others like GridMap.
  498. { "set_collision_mask_bit", "set_collision_mask_value" }, // CSGShape3D, and a lot of others like GridMap.
  499. { "set_column_min_width", "set_column_custom_minimum_width" }, // Tree
  500. { "set_command", "set_meta_pressed" }, // InputEventWithModifiers
  501. { "set_control", "set_ctrl_pressed" }, // InputEventWithModifiers
  502. { "set_create_options", "_set_create_options" }, // EditorResourcePicker
  503. { "set_cull_mask_bit", "set_cull_mask_value" }, // Camera3D
  504. { "set_cursor_position", "set_caret_column" }, // LineEdit
  505. { "set_d", "set_distance" }, // WorldMarginShape2D
  506. { "set_default_length", "set_length" }, // Bone2D
  507. { "set_depth_bias_enable", "set_depth_bias_enabled" }, // RDPipelineRasterizationState
  508. { "set_device", "set_output_device" }, // AudioServer
  509. { "set_doubleclick", "set_double_click" }, // InputEventMouseButton
  510. { "set_draw_red", "set_draw_warning" }, // EditorProperty
  511. { "set_enable_follow_smoothing", "set_position_smoothing_enabled" }, // Camera2D
  512. { "set_enabled_focus_mode", "set_focus_mode" }, // BaseButton
  513. { "set_endian_swap", "set_big_endian" }, // File
  514. { "set_expand_to_text_length", "set_expand_to_text_length_enabled" }, // LineEdit
  515. { "set_filename", "set_scene_file_path" }, // Node -- WARNING: This may be used in a lot of other places.
  516. { "set_focus_neighbour", "set_focus_neighbor" }, // Control
  517. { "set_follow_smoothing", "set_position_smoothing_speed" }, // Camera2D
  518. { "set_frame_color", "set_color" }, // ColorRect
  519. { "set_global_rate_scale", "set_playback_speed_scale" }, // AudioServer
  520. { "set_gravity_distance_scale", "set_gravity_point_unit_distance" }, // Area2D, Area3D
  521. { "set_gravity_vector", "set_gravity_direction" }, // Area2D, Area3D
  522. { "set_h_drag_enabled", "set_drag_horizontal_enabled" }, // Camera2D
  523. { "set_icon_align", "set_icon_alignment" }, // Button
  524. { "set_interior_ambient", "set_ambient_color" }, // ReflectionProbe
  525. { "set_interior_ambient_energy", "set_ambient_color_energy" }, // ReflectionProbe
  526. { "set_invert_faces", "set_flip_faces" }, // CSGPrimitive3D
  527. { "set_is_initialized", "_is_initialized" }, // XRInterface
  528. { "set_is_primary", "set_primary" }, // XRInterface
  529. { "set_item_navmesh", "set_item_navigation_mesh" }, // MeshLibrary
  530. { "set_item_navmesh_transform", "set_item_navigation_mesh_transform" }, // MeshLibrary
  531. { "set_iterations_per_second", "set_physics_ticks_per_second" }, // Engine
  532. { "set_layer_mask_bit", "set_layer_mask_value" }, // VisualInstance3D
  533. { "set_margins_preset", "set_offsets_preset" }, // Control
  534. { "set_max_atlas_size", "set_max_texture_size" }, // LightmapGI
  535. { "set_metakey", "set_meta_pressed" }, // InputEventWithModifiers
  536. { "set_mid_height", "set_height" }, // CapsuleMesh
  537. { "set_neighbor_dist", "set_neighbor_distance" }, // NavigationAgent2D, NavigationAgent3D
  538. { "set_network_master", "set_multiplayer_authority" }, // Node
  539. { "set_network_peer", "set_multiplayer_peer" }, // Multiplayer API
  540. { "set_oneshot", "set_one_shot" }, // AnimatedTexture
  541. { "set_pause_mode", "set_process_mode" }, // Node
  542. { "set_physical_scancode", "set_physical_keycode" }, // InputEventKey
  543. { "set_proximity_fade", "set_proximity_fade_enabled" }, // Material
  544. { "set_refuse_new_network_connections", "set_refuse_new_connections" }, // Multiplayer API
  545. { "set_region", "set_region_enabled" }, // Sprite2D -- Sprite breaks AtlasTexture.
  546. { "set_region_filter_clip", "set_region_filter_clip_enabled" }, // Sprite2D
  547. { "set_reverb_bus", "set_reverb_bus_name" }, // Area3D
  548. { "set_rotate", "set_rotates" }, // PathFollow2D
  549. { "set_scancode", "set_keycode" }, // InputEventKey
  550. { "set_shader_param", "set_shader_parameter" }, // ShaderMaterial
  551. { "set_shift", "set_shift_pressed" }, // InputEventWithModifiers
  552. { "set_size_override", "set_size_2d_override" }, // SubViewport -- Breaks ImageTexture.
  553. { "set_size_override_stretch", "set_size_2d_override_stretch" }, // SubViewport
  554. { "set_slips_on_slope", "set_slide_on_slope" }, // SeparationRayShape2D, SeparationRayShape3D
  555. { "set_sort_enabled", "set_y_sort_enabled" }, // Node2D
  556. { "set_space_override_mode", "set_gravity_space_override_mode" }, // Area2D
  557. { "set_spatial_node", "set_node_3d" }, // EditorNode3DGizmo
  558. { "set_speed", "set_velocity" }, // InputEventMouseMotion
  559. { "set_ssao_edge_sharpness", "set_ssao_sharpness" }, // Environment
  560. { "set_surface_material", "set_surface_override_material" }, // MeshInstance3D -- Breaks ImporterMesh.
  561. { "set_tab_align", "set_tab_alignment" }, // TabContainer
  562. { "set_tangent", "surface_set_tangent" }, // ImmediateGeometry -- Breaks SurfaceTool.
  563. { "set_target_location", "set_target_position" }, // NavigationAgent2D, NavigationAgent3D
  564. { "set_text_align", "set_text_alignment" }, // Button
  565. { "set_timer_process_mode", "set_timer_process_callback" }, // Timer
  566. { "set_translation", "set_position" }, // Node3D -- This breaks GLTFNode, but it is used rarely.
  567. { "set_uniform_name", "set_parameter_name" }, // ParameterRef
  568. { "set_unit_db", "set_volume_db" }, // AudioStreamPlayer3D
  569. { "set_unit_offset", "set_progress_ratio" }, // PathFollow2D, PathFollow3D
  570. { "set_uv2", "surface_set_uv2" }, // ImmediateMesh -- Breaks SurfaceTool.
  571. { "set_verts_per_poly", "set_vertices_per_polygon" }, // NavigationMesh
  572. { "set_v_drag_enabled", "set_drag_vertical_enabled" }, // Camera2D
  573. { "set_valign", "set_vertical_alignment" }, // Label
  574. { "set_window_layout", "_set_window_layout" }, // EditorPlugin
  575. { "set_zfar", "set_far" }, // Camera3D -- Breaks GLTFCamera.
  576. { "set_znear", "set_near" }, // Camera3D -- Breaks GLTFCamera.
  577. { "shortcut_match", "is_match" }, // InputEvent
  578. { "skeleton_allocate", "skeleton_allocate_data" }, // RenderingServer
  579. { "surface_update_region", "surface_update_attribute_region" }, // ArrayMesh
  580. { "track_remove_key_at_position", "track_remove_key_at_time" }, // Animation
  581. { "triangulate_delaunay_2d", "triangulate_delaunay" }, // Geometry2D
  582. { "unselect", "deselect" }, // ItemList
  583. { "unselect_all", "deselect_all" }, // ItemList
  584. { "update_configuration_warning", "update_configuration_warnings" }, // Node
  585. { "update_gizmo", "update_gizmos" }, // Node3D
  586. { "viewport_set_use_arvr", "viewport_set_use_xr" }, // RenderingServer
  587. { "warp_mouse_position", "warp_mouse" }, // Input
  588. { "world_to_map", "local_to_map" }, // TileMap, GridMap
  589. // Builtin types
  590. // Remember to add them to the builtin_types_excluded_functions variable, because for now these functions cannot be listed.
  591. // { "empty", "is_empty" }, // Array -- Used as custom rule. Be careful, this will be used everywhere.
  592. // { "invert", "reverse" }, // Array -- Give it a check. Be careful, this will be used everywhere.
  593. // { "remove", "remove_at" }, // Array -- Breaks Directory and several more.
  594. { "clamped", "limit_length" }, // Vector2
  595. { "get_rotation_quat", "get_rotation_quaternion" }, // Basis
  596. { "grow_margin", "grow_side" }, // Rect2
  597. { "is_abs_path", "is_absolute_path" }, // String
  598. { "is_valid_integer", "is_valid_int" }, // String
  599. { "linear_interpolate", "lerp" }, // Color
  600. { "find_last", "rfind" }, // Array, String
  601. { "to_ascii", "to_ascii_buffer" }, // String
  602. { "to_utf8", "to_utf8_buffer" }, // String
  603. // @GlobalScope
  604. // Remember to add them to the builtin_types_excluded_functions variable, because for now these functions cannot be listed.
  605. { "bytes2var", "bytes_to_var" },
  606. { "bytes2var_with_objects", "bytes_to_var_with_objects" },
  607. { "db2linear", "db_to_linear" },
  608. { "deg2rad", "deg_to_rad" },
  609. { "linear2db", "linear_to_db" },
  610. { "rad2deg", "rad_to_deg" },
  611. { "rand_range", "randf_range" },
  612. { "range_lerp", "remap" },
  613. { "stepify", "snapped" },
  614. { "str2var", "str_to_var" },
  615. { "var2str", "var_to_str" },
  616. { "var2bytes", "var_to_bytes" },
  617. { "var2bytes_with_objects", "var_to_bytes_with_objects" },
  618. // @GDScript
  619. // Remember to add them to the builtin_types_excluded_functions variable, because for now these functions cannot be listed.
  620. { "dict2inst", "dict_to_inst" },
  621. { "inst2dict", "inst_to_dict" },
  622. { nullptr, nullptr },
  623. };
  624. // gdscript_function_renames clone with CamelCase
  625. const char *RenamesMap3To4::csharp_function_renames[][2] = {
  626. { "_AboutToShow", "_AboutToPopup" }, // ColorPickerButton
  627. { "_GetConfigurationWarning", "_GetConfigurationWarnings" }, // Node
  628. { "_SetCurrent", "SetCurrent" }, // Camera2D
  629. { "_SetEditorDescription", "SetEditorDescription" }, // Node
  630. { "_SetPlaying", "SetPlaying" }, // AnimatedSprite3D
  631. { "_ToplevelRaiseSelf", "_TopLevelRaiseSelf" }, // CanvasItem
  632. { "_UpdateWrapAt", "_UpdateWrapAtColumn" }, // TextEdit
  633. { "AddAnimation", "AddAnimationLibrary" }, // AnimationPlayer
  634. { "AddCancel", "AddCancelButton" }, // AcceptDialog
  635. { "AddCentralForce", "AddConstantCentralForce" }, //RigidBody2D
  636. { "AddChildBelowNode", "AddSibling" }, // Node
  637. { "AddColorOverride", "AddThemeColorOverride" }, // Control
  638. { "AddConstantOverride", "AddThemeConstantOverride" }, // Control
  639. { "AddFontOverride", "AddThemeFontOverride" }, // Control
  640. { "AddForce", "AddConstantForce" }, //RigidBody2D
  641. { "AddIconOverride", "AddThemeIconOverride" }, // Control
  642. { "AddSceneImportPlugin", "AddSceneFormatImporterPlugin" }, //EditorPlugin
  643. { "AddSpatialGizmoPlugin", "AddNode3dGizmoPlugin" }, // EditorPlugin
  644. { "AddStyleboxOverride", "AddThemeStyleboxOverride" }, // Control
  645. { "AddTorque", "AddConstantTorque" }, //RigidBody2D
  646. { "AgentSetNeighborDist", "AgentSetNeighborDistance" }, // NavigationServer2D, NavigationServer3D
  647. { "BindChildNodeToBone", "SetBoneChildren" }, // Skeleton3D
  648. { "BumpmapToNormalmap", "BumpMapToNormalMap" }, // Image
  649. { "CanBeHidden", "_CanBeHidden" }, // EditorNode3DGizmoPlugin
  650. { "CanDropData", "_CanDropData" }, // Control
  651. { "CanDropDataFw", "_CanDropDataFw" }, // ScriptEditor
  652. { "CanGenerateSmallPreview", "_CanGenerateSmallPreview" }, // EditorResourcePreviewGenerator
  653. { "CanInstance", "CanInstantiate" }, // PackedScene, Script
  654. { "CanvasLightSetScale", "CanvasLightSetTextureScale" }, // RenderingServer
  655. { "CaptureGetDevice", "GetInputDevice" }, // AudioServer
  656. { "CaptureGetDeviceList", "GetInputDeviceList" }, // AudioServer
  657. { "CaptureSetDevice", "SetInputDevice" }, // AudioServer
  658. { "CenterViewportToCursor", "CenterViewportToCaret" }, // TextEdit
  659. { "ChangeScene", "ChangeSceneToFile" }, // SceneTree
  660. { "ChangeSceneTo", "ChangeSceneToPacked" }, // SceneTree
  661. { "ClipPolygons2d", "ClipPolygons" }, // Geometry2D
  662. { "ClipPolylineWithPolygon2d", "ClipPolylineWithPolygon" }, //Geometry2D
  663. { "CommitHandle", "_CommitHandle" }, // EditorNode3DGizmo
  664. { "ConvexHull2d", "ConvexHull" }, // Geometry2D
  665. { "CursorGetBlinkSpeed", "GetCaretBlinkInterval" }, // TextEdit
  666. { "CursorGetColumn", "GetCaretColumn" }, // TextEdit
  667. { "CursorGetLine", "GetCaretLine" }, // TextEdit
  668. { "CursorSetBlinkEnabled", "SetCaretBlinkEnabled" }, // TextEdit
  669. { "CursorSetBlinkSpeed", "SetCaretBlinkInterval" }, // TextEdit
  670. { "CursorSetColumn", "SetCaretColumn" }, // TextEdit
  671. { "CursorSetLine", "SetCaretLine" }, // TextEdit
  672. { "DampedSpringJointCreate", "JointMakeDampedSpring" }, // PhysicsServer2D
  673. { "DampedStringJointGetParam", "DampedSpringJointGetParam" }, // PhysicsServer2D
  674. { "DampedStringJointSetParam", "DampedSpringJointSetParam" }, // PhysicsServer2D
  675. { "DeleteCharAtCursor", "DeleteCharAtCaret" }, // LineEdit
  676. { "DeselectItems", "DeselectAll" }, // FileDialog
  677. { "DropData", "_DropData" }, // Control
  678. { "DropDataFw", "_DropDataFw" }, // ScriptEditor
  679. { "ExcludePolygons2d", "ExcludePolygons" }, // Geometry2D
  680. { "FindScancodeFromString", "FindKeycodeFromString" }, // OS
  681. { "ForwardCanvasDrawOverViewport", "_ForwardCanvasDrawOverViewport" }, // EditorPlugin
  682. { "ForwardCanvasForceDrawOverViewport", "_ForwardCanvasForceDrawOverViewport" }, // EditorPlugin
  683. { "ForwardCanvasGuiInput", "_ForwardCanvasGuiInput" }, // EditorPlugin
  684. { "ForwardSpatialDrawOverViewport", "_Forward3dDrawOverViewport" }, // EditorPlugin
  685. { "ForwardSpatialForceDrawOverViewport", "_Forward3dForceDrawOverViewport" }, // EditorPlugin
  686. { "ForwardSpatialGuiInput", "_Forward3dGuiInput" }, // EditorPlugin
  687. { "GenerateFromPath", "_GenerateFromPath" }, // EditorResourcePreviewGenerator
  688. { "GenerateSmallPreviewAutomatically", "_GenerateSmallPreviewAutomatically" }, // EditorResourcePreviewGenerator
  689. { "GetActionList", "ActionGetEvents" }, // InputMap
  690. { "GetAlt", "IsAltPressed" }, // InputEventWithModifiers
  691. { "GetAnimationProcessMode", "GetProcessCallback" }, // AnimationPlayer
  692. { "GetAppliedForce", "GetConstantForce" }, //RigidBody2D
  693. { "GetAppliedTorque", "GetConstantTorque" }, //RigidBody2D
  694. { "GetAudioBus", "GetAudioBusName" }, // Area3D
  695. { "GetBoundChildNodesToBone", "GetBoneChildren" }, // Skeleton3D
  696. { "GetCamera", "GetCamera3d" }, // Viewport -- This is also convertible to GetCamera2d. Breaks GLTFNode.
  697. { "GetCancel", "GetCancelButton" }, // ConfirmationDialog
  698. { "GetCaption", "_GetCaption" }, // AnimationNode
  699. { "GetCastTo", "GetTargetPosition" }, // RayCast2D, RayCast3D
  700. { "GetChildByName", "_GetChildByName" }, // AnimationNode
  701. { "GetChildNodes", "_GetChildNodes" }, // AnimationNode
  702. { "GetClosestPointToSegment2d", "GetClosestPointToSegment" }, // Geometry2D
  703. { "GetClosestPointToSegmentUncapped2d", "GetClosestPointToSegmentUncapped" }, // Geometry2D
  704. { "GetClosestPointsBetweenSegments2d", "GetClosestPointToSegment" }, // Geometry2D
  705. { "GetCollisionLayerBit", "GetCollisionLayerValue" }, // CSGShape3D, and a lot of others like GridMap.
  706. { "GetCollisionMaskBit", "GetCollisionMaskValue" }, // CSGShape3D, and a lot of others like GridMap.
  707. { "GetColorTypes", "GetColorTypeList" }, // Theme
  708. { "GetCommand", "IsCommandPressed" }, // InputEventWithModifiers
  709. { "GetConstantTypes", "GetConstantTypeList" }, // Theme
  710. { "GetControl", "IsCtrlPressed" }, // InputEventWithModifiers
  711. { "GetCullMaskBit", "GetCullMaskValue" }, // Camera3D
  712. { "GetCursorPosition", "GetCaretColumn" }, // LineEdit
  713. { "GetD", "GetDistance" }, // LineShape2D
  714. { "GetDefaultLength", "GetLength" }, // Bone2D
  715. { "GetDepthBiasEnable", "GetDepthBiasEnabled" }, // RDPipelineRasterizationState
  716. { "GetDevice", "GetOutputDevice" }, // AudioServer
  717. { "GetDeviceList", "GetOutputDeviceList" }, // AudioServer
  718. { "GetDragDataFw", "_GetDragDataFw" }, // ScriptEditor
  719. { "GetEditorViewport", "GetViewport" }, // EditorPlugin
  720. { "GetEnabledFocusMode", "GetFocusMode" }, // BaseButton
  721. { "GetEndianSwap", "IsBigEndian" }, // File
  722. { "GetErrorString", "GetErrorMessage" }, // JSON
  723. { "GetFinalLocation", "GetFinalPosition" }, // NavigationAgent2D, NavigationAgent3D
  724. { "GetFocusNeighbour", "GetFocusNeighbor" }, // Control
  725. { "GetFollowSmoothing", "GetPositionSmoothingSpeed" }, // Camera2D
  726. { "GetFontTypes", "GetFontTypeList" }, // Theme
  727. { "GetFrameColor", "GetColor" }, // ColorRect
  728. { "GetGlobalRateScale", "GetPlaybackSpeedScale" }, // AudioServer
  729. { "GetGravityDistanceScale", "GetGravityPointDistanceScale" }, // Area2D
  730. { "GetGravityVector", "GetGravityDirection" }, // Area2D
  731. { "GetHScrollbar", "GetHScrollBar" }, // ScrollContainer
  732. { "GetHand", "GetTrackerHand" }, // XRPositionalTracker
  733. { "GetHandleName", "_GetHandleName" }, // EditorNode3DGizmo
  734. { "GetHandleValue", "_GetHandleValue" }, // EditorNode3DGizmo
  735. { "GetIconAlign", "GetIconAlignment" }, // Button
  736. { "GetIconTypes", "GetIconTypeList" }, // Theme
  737. { "GetIdleFrames", "GetProcessFrames" }, // Engine
  738. { "GetImportOptions", "_GetImportOptions" }, // EditorImportPlugin
  739. { "GetImportOrder", "_GetImportOrder" }, // EditorImportPlugin
  740. { "GetImporterName", "_GetImporterName" }, // EditorImportPlugin
  741. { "GetInteriorAmbient", "GetAmbientColor" }, // ReflectionProbe
  742. { "GetInteriorAmbientEnergy", "GetAmbientColorEnergy" }, // ReflectionProbe
  743. { "GetItemNavmesh", "GetItemMavigationMesh" }, // MeshLibrary
  744. { "GetItemNavmeshTransform", "GetItemNavigationMeshTransform" }, // MeshLibrary
  745. { "GetIterationsPerSecond", "GetPhysicsTicksPerSecond" }, // Engine
  746. { "GetLastMouseSpeed", "GetLastMouseVelocity" }, // Input
  747. { "GetLayerMaskBit", "GetLayerMaskValue" }, // VisualInstance3D
  748. { "GetLen", "GetLength" }, // File
  749. { "GetMaxAtlasSize", "GetMaxTextureSize" }, // LightmapGI
  750. { "GetMetakey", "IsMetaPressed" }, // InputEventWithModifiers
  751. { "GetMidHeight", "GetHeight" }, // CapsuleMesh
  752. { "GetMotionRemainder", "GetRemainder" }, // PhysicsTestMotionResult2D
  753. { "GetNavPath", "GetCurrentNavigationPath" }, // NavigationAgent2D, NavigationAgent3D
  754. { "GetNavPathIndex", "GetCurrentNavigationPathIndex" }, // NavigationAgent2D, NavigationAgent3D
  755. { "GetNeighborDist", "GetNeighborDistance" }, // NavigationAgent2D, NavigationAgent3D
  756. { "GetNetworkConnectedPeers", "GetPeers" }, // Multiplayer API
  757. { "GetNetworkMaster", "GetMultiplayerAuthority" }, // Node
  758. { "GetNetworkPeer", "GetMultiplayerPeer" }, // Multiplayer API
  759. { "GetNetworkUniqueId", "GetUniqueId" }, // Multiplayer API
  760. { "GetNextLocation", "GetNextPathPosition" }, // NavigationAgent2D, NavigationAgent3D
  761. { "GetOneshot", "GetOneShot" }, // AnimatedTexture
  762. { "GetOk", "GetOkButton" }, // AcceptDialog
  763. { "GetOptionVisibility", "_GetOptionVisibility" }, // EditorImportPlugin
  764. { "GetParameterDefaultValue", "_GetParameterDefaultValue" }, // AnimationNode
  765. { "GetParameterList", "_GetParameterList" }, // AnimationNode
  766. { "GetParentSpatial", "GetParentNode3d" }, // Node3D
  767. { "GetPhysicalScancode", "GetPhysicalKeycode" }, // InputEventKey
  768. { "GetPhysicalScancodeWithModifiers", "GetPhysicalKeycodeWithModifiers" }, // InputEventKey
  769. { "GetPluginIcon", "_GetPluginIcon" }, // EditorPlugin
  770. { "GetPluginName", "_GetPluginName" }, // EditorPlugin
  771. { "GetPresetCount", "_GetPresetCount" }, // EditorImportPlugin
  772. { "GetPresetName", "_GetPresetName" }, // EditorImportPlugin
  773. { "GetRecognizedExtensions", "_GetRecognizedExtensions" }, // ResourceFormatLoader, EditorImportPlugin -- Breaks ResourceSaver.
  774. { "GetRenderInfo", "GetRenderingInfo" }, // RenderingServer
  775. { "GetRenderTargetsize", "GetRenderTargetSize" }, // XRInterface
  776. { "GetResourceType", "_GetResourceType" }, // ResourceFormatLoader
  777. { "GetResult", "GetData" }, // JSON
  778. { "GetReverbBus", "GetReverbBusName" }, // Area3D
  779. { "GetRpcSenderId", "GetRemoteSenderId" }, // Multiplayer API
  780. { "GetSaveExtension", "_GetSaveExtension" }, // EditorImportPlugin
  781. { "GetScancode", "GetKeycode" }, // InputEventKey
  782. { "GetScancodeString", "GetKeycodeString" }, // OS
  783. { "GetScancodeWithModifiers", "GetKeycodeWithModifiers" }, // InputEventKey
  784. { "GetShaderParam", "GetShaderParameter" }, // ShaderMaterial
  785. { "GetShift", "IsShiftPressed" }, // InputEventWithModifiers
  786. { "GetSizeOverride", "GetSize2dOverride" }, // SubViewport
  787. { "GetSlipsOnSlope", "GetSlideOnSlope" }, // SeparationRayShape2D, SeparationRayShape3D
  788. { "GetSpaceOverrideMode", "GetGravitySpaceOverrideMode" }, // Area2D
  789. { "GetSpatialNode", "GetNode3d" }, // EditorNode3DGizmo
  790. { "GetSpeed", "GetVelocity" }, // InputEventMouseMotion
  791. { "GetStyleboxTypes", "GetStyleboxTypeList" }, // Theme
  792. { "GetSurfaceMaterial", "GetSurfaceOverrideMaterial" }, // MeshInstance3D -- Breaks ImporterMesh.
  793. { "GetSurfaceMaterialCount", "GetSurfaceOverrideMaterialCount" }, // MeshInstance3D
  794. { "GetTabDisabled", "IsTabDisabled" }, // Tab
  795. { "GetTabHidden", "IsTabHidden" }, // Tab
  796. { "GetTargetLocation", "GetTargetPosition" }, // NavigationAgent2D, NavigationAgent3D
  797. { "GetTextAlign", "GetTextAlignment" }, // Button
  798. { "GetThemeItemTypes", "GetThemeItemTypeList" }, // Theme
  799. { "GetTimerProcessMode", "GetTimerProcessCallback" }, // Timer
  800. { "GetTranslation", "GetPosition" }, // Node3D -- Breaks GLTFNode, but it is used rarely.
  801. { "GetUniformName", "GetParameterName" }, // ParameterRef
  802. { "GetUnitDb", "GetVolumeDb" }, // AudioStreamPlayer3D
  803. { "GetUnitOffset", "GetProgressRatio" }, // PathFollow2D, PathFollow3D
  804. { "GetUseInBakedLight", "IsBakingNavigation" }, // GridMap
  805. { "GetVertsPerPoly", "GetVerticesPerPolygon" }, // NavigationMesh
  806. { "GetVScrollbar", "GetVScrollBar" }, // ScrollContainer
  807. { "GetVisibleName", "_GetVisibleName" }, // EditorImportPlugin
  808. { "GetWindowLayout", "_GetWindowLayout" }, // EditorPlugin
  809. { "GetWordUnderCursor", "GetWordUnderCaret" }, // TextEdit
  810. { "GetWorld", "GetWorld3d" }, // Viewport, Node3D
  811. { "GetZfar", "GetFar" }, // Camera3D -- Breaks GLTFCamera
  812. { "GetZnear", "GetNear" }, // Camera3D -- Breaks GLTFCamera
  813. { "GrooveJointCreate", "JointMakeGroove" }, // PhysicsServer2D
  814. { "HandleMenuSelected", "_HandleMenuSelected" }, // EditorResourcePicker
  815. { "HandlesType", "_HandlesType" }, // ResourceFormatLoader
  816. { "HasColor", "HasThemeColor" }, // Control -- Breaks Theme
  817. { "HasColorOverride", "HasThemeColorOverride" }, // Control -- Breaks Theme
  818. { "HasConstant", "HasThemeConstant" }, // Control
  819. { "HasConstantOverride", "HasThemeConstantOverride" }, // Control
  820. { "HasFilter", "_HasFilter" }, // AnimationNode
  821. { "HasFont", "HasThemeFont" }, // Control -- Breaks Theme
  822. { "HasFontOverride", "HasThemeFontOverride" }, // Control
  823. { "HasIcon", "HasThemeIcon" }, // Control -- Breaks Theme
  824. { "HasIconOverride", "HasThemeIconOverride" }, // Control
  825. { "HasMainScreen", "_HasMainScreen" }, // EditorPlugin
  826. { "HasNetworkPeer", "HasMultiplayerPeer" }, // Multiplayer API
  827. { "HasStylebox", "HasThemeStylebox" }, // Control -- Breaks Theme
  828. { "HasStyleboxOverride", "HasThemeStyleboxOverride" }, // Control
  829. { "HttpEscape", "UriEncode" }, // String
  830. { "HttpUnescape", "UriDecode" }, // String
  831. { "ImportAnimationFromOtherImporter", "_ImportAnimation" }, // EditorSceneFormatImporter
  832. { "ImportSceneFromOtherImporter", "_ImportScene" }, // EditorSceneFormatImporter
  833. { "InstanceSetSurfaceMaterial", "InstanceSetSurfaceOverrideMaterial" }, // RenderingServer
  834. { "IntersectPolygons2d", "IntersectPolygons" }, // Geometry2D
  835. { "IntersectPolylineWithPolygon2d", "IntersectPolylineWithPolygon" }, // Geometry2D
  836. { "IsAParentOf", "IsAncestorOf" }, // Node
  837. { "IsCommitingAction", "IsCommittingAction" }, // UndoRedo
  838. { "IsDoubleclick", "IsDoubleClick" }, // InputEventMouseButton
  839. { "IsFollowSmoothingEnabled", "IsPositionSmoothingEnabled" }, // Camera2D
  840. { "IsHDragEnabled", "IsDragHorizontalEnabled" }, // Camera2D
  841. { "IsHandleHighlighted", "_IsHandleHighlighted" }, // EditorNode3DGizmo, EditorNode3DGizmoPlugin
  842. { "IsNetworkMaster", "IsMultiplayerAuthority" }, // Node
  843. { "IsNetworkServer", "IsServer" }, // Multiplayer API
  844. { "IsNormalmap", "IsNormalMap" }, // NoiseTexture
  845. { "IsRefusingNewNetworkConnections", "IsRefusingNewConnections" }, // Multiplayer API
  846. { "IsRegion", "IsRegionEnabled" }, // Sprite2D
  847. { "IsRotating", "IsIgnoringRotation" }, // Camera2D
  848. { "IsScancodeUnicode", "IsKeycodeUnicode" }, // OS
  849. { "IsSelectableWhenHidden", "_IsSelectableWhenHidden" }, // EditorNode3DGizmoPlugin
  850. { "IsSetAsToplevel", "IsSetAsTopLevel" }, // CanvasItem
  851. { "IsShortcut", "MatchesEvent" }, // Shortcut
  852. { "IsSizeOverrideStretchEnabled", "IsSize2dOverrideStretchEnabled" }, // SubViewport
  853. { "IsSortEnabled", "IsYSortEnabled" }, // Node2D
  854. { "IsStaticBody", "IsAbleToSleep" }, // PhysicalBone3D -- Not sure.
  855. { "IsVDragEnabled", "IsDragVerticalEnabled" }, // Camera2D
  856. { "JointCreateConeTwist", "JointMakeConeTwist" }, // PhysicsServer3D
  857. { "JointCreateGeneric6dof", "JointMakeGeneric6dof" }, // PhysicsServer3D
  858. { "JointCreateHinge", "JointMakeHinge" }, // PhysicsServer3D
  859. { "JointCreatePin", "JointMakePin" }, // PhysicsServer3D
  860. { "JointCreateSlider", "JointMakeSlider" }, // PhysicsServer3D
  861. { "LineIntersectsLine2d", "LineIntersectsLine" }, // Geometry2D
  862. { "LoadFromGlobals", "LoadFromProjectSettings" }, // InputMap
  863. { "MakeConvexFromBrothers", "MakeConvexFromSiblings" }, // CollisionShape3D
  864. { "MergePolygons2d", "MergePolygons" }, // Geometry2D
  865. { "MeshSurfaceGetFormat", "MeshSurfaceGetFormatAttributeStride" }, // RenderingServer
  866. { "MeshSurfaceUpdateRegion", "MeshSurfaceUpdateAttributeRegion" }, // RenderingServer
  867. { "MoveToBottom", "MoveAfter" }, // Skeleton3D
  868. { "MoveToTop", "MoveBefore" }, // Skeleton3D
  869. { "MultimeshAllocate", "MultimeshAllocateData" }, // RenderingServer
  870. { "NormalmapToXy", "NormalMapToXy" }, // Image
  871. { "OffsetPolygon2d", "OffsetPolygon" }, // Geometry2D
  872. { "OffsetPolyline2d", "OffsetPolyline" }, // Geometry2D
  873. { "PercentDecode", "UriDecode" }, // String
  874. { "PercentEncode", "UriEncode" }, // String
  875. { "PinJointCreate", "JointMakePin" }, // PhysicsServer2D
  876. { "PopupCenteredMinsize", "PopupCenteredClamped" }, // Window
  877. { "PostImport", "_PostImport" }, // EditorScenePostImport
  878. { "PrintStrayNodes", "PrintOrphanNodes" }, // Node
  879. { "PropertyListChangedNotify", "NotifyPropertyListChanged" }, // Object
  880. { "Recognize", "_Recognize" }, // ResourceFormatLoader
  881. { "RegenNormalmaps", "RegenNormalMaps" }, // ArrayMesh
  882. { "RegionBakeNavmesh", "region_bake_navigation_mesh" }, // Navigation3DServer
  883. { "RegionSetNavmesh", "RegionSetNavigationMesh" }, // Navigation3DServer
  884. { "RegionSetNavpoly", "RegionSetNavigationPolygon" }, // Navigation2DServer
  885. { "RemoveAnimation", "RemoveAnimationLibrary" }, // AnimationPlayer
  886. { "RemoveColorOverride", "RemoveThemeColorOverride" }, // Control
  887. { "RemoveConstantOverride", "RemoveThemeConstantOverride" }, // Control
  888. { "RemoveFontOverride", "RemoveThemeFontOverride" }, // Control
  889. { "RemoveSceneImportPlugin", "RemoveSceneFormatImporterPlugin" }, //EditorPlugin
  890. { "RemoveSpatialGizmoPlugin", "RemoveNode3dGizmoPlugin" }, // EditorPlugin
  891. { "RemoveStyleboxOverride", "RemoveThemeStyleboxOverride" }, // Control
  892. { "RenameAnimation", "RenameAnimationLibrary" }, // AnimationPlayer
  893. { "RenameDependencies", "_RenameDependencies" }, // ResourceFormatLoader
  894. { "SaveExternalData", "_SaveExternalData" }, // EditorPlugin
  895. { "SegmentIntersectsSegment2d", "SegmentIntersectsSegment" }, // Geometry2D
  896. { "SetAdjustmentEnable", "SetAdjustmentEnabled" }, // Environment
  897. { "SetAlt", "SetAltPressed" }, // InputEventWithModifiers
  898. { "SetAnchorAndMargin", "SetAnchorAndOffset" }, // Control
  899. { "SetAnchorsAndMarginsPreset", "SetAnchorsAndOffsetsPreset" }, // Control
  900. { "SetAnimationProcessMode", "SetProcessCallback" }, // AnimationPlayer
  901. { "SetAsBulkArray", "SetBuffer" }, // MultiMesh
  902. { "SetAsNormalmap", "SetAsNormalMap" }, // NoiseTexture
  903. { "SetAsToplevel", "SetAsTopLevel" }, // CanvasItem
  904. { "SetAudioBus", "SetAudioBusName" }, // Area3D
  905. { "SetAutowrap", "SetAutowrapMode" }, // Label -- Breaks AcceptDialog.
  906. { "SetCastTo", "SetTargetPosition" }, // RayCast2D, RayCast3D
  907. { "SetCollisionLayerBit", "SetCollisionLayerValue" }, // CSGShape3D, and a lot of others like GridMap.
  908. { "SetCollisionMaskBit", "SetCollisionMaskValue" }, // CSGShape3D, and a lot of others like GridMap.
  909. { "SetColumnMinWidth", "SetColumnCustomMinimumWidth" }, // Tree
  910. { "SetCommand", "SetCommandPressed" }, // InputEventWithModifiers
  911. { "SetControl", "SetCtrlPressed" }, // InputEventWithModifiers
  912. { "SetCreateOptions", "_SetCreateOptions" }, // EditorResourcePicker
  913. { "SetCullMaskBit", "SetCullMaskValue" }, // Camera3D
  914. { "SetCursorPosition", "SetCaretColumn" }, // LineEdit
  915. { "SetD", "SetDistance" }, // WorldMarginShape2D
  916. { "SetDefaultLength", "SetLength" }, // Bone2D
  917. { "SetDepthBiasEnable", "SetDepthBiasEnabled" }, // RDPipelineRasterizationState
  918. { "SetDevice", "SetOutputDevice" }, // AudioServer
  919. { "SetDoubleclick", "SetDoubleClick" }, // InputEventMouseButton
  920. { "SetEnableFollowSmoothing", "SetPositionSmoothingEnabled" }, // Camera2D
  921. { "SetEnabledFocusMode", "SetFocusMode" }, // BaseButton
  922. { "SetEndianSwap", "SetBigEndian" }, // File
  923. { "SetExpandToTextLength", "SetExpandToTextLengthEnabled" }, // LineEdit
  924. { "SetFocusNeighbour", "SetFocusNeighbor" }, // Control
  925. { "SetFollowSmoothing", "SetPositionSmoothingSpeed" }, // Camera2D
  926. { "SetFrameColor", "SetColor" }, // ColorRect
  927. { "SetGlobalRateScale", "SetPlaybackSpeedScale" }, // AudioServer
  928. { "SetGravityDistanceScale", "SetGravityPointDistanceScale" }, // Area2D
  929. { "SetGravityVector", "SetGravityDirection" }, // Area2D
  930. { "SetHDragEnabled", "SetDragHorizontalEnabled" }, // Camera2D
  931. { "SetIconAlign", "SetIconAlignment" }, // Button
  932. { "SetInteriorAmbient", "SetAmbientColor" }, // ReflectionProbe
  933. { "SetInteriorAmbientEnergy", "SetAmbientColorEnergy" }, // ReflectionProbe
  934. { "SetIsInitialized", "_IsInitialized" }, // XRInterface
  935. { "SetIsPrimary", "SetPrimary" }, // XRInterface
  936. { "SetItemNavmesh", "SetItemNavigationMesh" }, // MeshLibrary
  937. { "SetItemNavmeshTransform", "SetItemNavigationMeshTransform" }, // MeshLibrary
  938. { "SetIterationsPerSecond", "SetPhysicsTicksPerSecond" }, // Engine
  939. { "SetLayerMaskBit", "SetLayerMaskValue" }, // VisualInstance3D
  940. { "SetMarginsPreset", "SetOffsetsPreset" }, // Control
  941. { "SetMaxAtlasSize", "SetMaxTextureSize" }, // LightmapGI
  942. { "SetMetakey", "SetMetaPressed" }, // InputEventWithModifiers
  943. { "SetMidHeight", "SetHeight" }, // CapsuleMesh
  944. { "SetNeighborDist", "SetNeighborDistance" }, // NavigationAgent2D, NavigationAgent3D
  945. { "SetNetworkMaster", "SetMultiplayerAuthority" }, // Node
  946. { "SetNetworkPeer", "SetMultiplayerPeer" }, // Multiplayer API
  947. { "SetOneshot", "SetOneShot" }, // AnimatedTexture
  948. { "SetPhysicalScancode", "SetPhysicalKeycode" }, // InputEventKey
  949. { "SetProximityFade", "SetProximityFadeEnabled" }, // Material
  950. { "SetRefuseNewNetworkConnections", "SetRefuseNewConnections" }, // Multiplayer API
  951. { "SetRegion", "SetRegionEnabled" }, // Sprite2D -- Sprite breaks AtlasTexture.
  952. { "SetRegionFilterClip", "SetRegionFilterClipEnabled" }, // Sprite2D
  953. { "SetReverbBus", "SetReverbBusName" }, // Area3D
  954. { "SetRotate", "SetRotates" }, // PathFollow2D
  955. { "SetScancode", "SetKeycode" }, // InputEventKey
  956. { "SetShaderParam", "SetShaderParameter" }, // ShaderMaterial
  957. { "SetShift", "SetShiftPressed" }, // InputEventWithModifiers
  958. { "SetSizeOverride", "SetSize2dOverride" }, // SubViewport -- Breaks ImageTexture.
  959. { "SetSizeOverrideStretch", "SetSize2dOverrideStretch" }, // SubViewport
  960. { "SetSlipsOnSlope", "SetSlideOnSlope" }, // SeparationRayShape2D, SeparationRayShape3D
  961. { "SetSortEnabled", "SetYSortEnabled" }, // Node2D
  962. { "SetSpaceOverrideMode", "SetGravitySpaceOverrideMode" }, // Area2D
  963. { "SetSpatialNode", "SetNode3d" }, // EditorNode3DGizmo
  964. { "SetSpeed", "SetVelocity" }, // InputEventMouseMotion
  965. { "SetSsaoEdgeSharpness", "SetSsaoSharpness" }, // Environment
  966. { "SetSurfaceMaterial", "SetSurfaceOverrideMaterial" }, // MeshInstance3D -- Breaks ImporterMesh.
  967. { "SetTabAlign", "SetTabAlignment" }, // TabContainer
  968. { "SetTangent", "SurfaceSetTangent" }, // ImmediateGeometry -- Breaks SurfaceTool.
  969. { "SetTargetLocation", "SetTargetPosition" }, // NavigationAgent2D, NavigationAgent3D
  970. { "SetTextAlign", "SetTextAlignment" }, // Button
  971. { "SetTimerProcessMode", "SetTimerProcessCallback" }, // Timer
  972. { "SetTonemapAutoExposure", "SetTonemapAutoExposureEnabled" }, // Environment
  973. { "SetTranslation", "SetPosition" }, // Node3D -- This breaks GLTFNode, but it is used rarely.
  974. { "SetUniformName", "SetParameterName" }, // ParameterRef
  975. { "SetUnitDb", "SetVolumeDb" }, // AudioStreamPlayer3D
  976. { "SetUnitOffset", "SetProgressRatio" }, // PathFollow2D, PathFollow3D
  977. { "SetUv2", "SurfaceSetUv2" }, // ImmediateMesh -- Breaks SurfaceTool.
  978. { "SetVertsPerPoly", "SetVerticesPerPolygon" }, // NavigationMesh
  979. { "SetVDragEnabled", "SetDragVerticalEnabled" }, // Camera2D
  980. { "SetValign", "SetVerticalAlignment" }, // Label
  981. { "SetWindowLayout", "_SetWindowLayout" }, // EditorPlugin
  982. { "SetZfar", "SetFar" }, // Camera3D -- Breaks GLTFCamera.
  983. { "SetZnear", "SetNear" }, // Camera3D -- Breaks GLTFCamera.
  984. { "ShortcutMatch", "IsMatch" }, // InputEvent
  985. { "SkeletonAllocate", "SkeletonAllocateData" }, // RenderingServer
  986. { "SurfaceUpdateRegion", "SurfaceUpdateAttributeRegion" }, // ArrayMesh
  987. { "TrackRemoveKeyAtPosition", "TrackRemoveKeyAtTime" }, // Animation
  988. { "TriangulateDelaunay2d", "TriangulateDelaunay" }, // Geometry2D
  989. { "UnbindChildNodeFromBone", "RemoveBoneChild" }, // Skeleton3D
  990. { "Unselect", "Deselect" }, // ItemList
  991. { "UnselectAll", "DeselectAll" }, // ItemList
  992. { "UpdateConfigurationWarning", "UpdateConfigurationWarnings" }, // Node
  993. { "UpdateGizmo", "UpdateGizmos" }, // Node3D
  994. { "ViewportSetUseArvr", "ViewportSetUseXr" }, // RenderingServer
  995. { "WarpMousePosition", "WarpMouse" }, // Input
  996. { "WorldToMap", "LocalToMap" }, // TileMap, GridMap
  997. // Builtin types
  998. { "Clamped", "LimitLength" }, // Vector2
  999. { "GetRotationQuat", "GetRotationQuaternion" }, // Basis
  1000. { "GrowMargin", "GrowSide" }, // Rect2
  1001. { "IsAbsPath", "IsAbsolutePath" }, // String
  1002. { "IsValidInteger", "IsValidInt" }, // String
  1003. { "LinearInterpolate", "Lerp" }, // Color
  1004. { "ToAscii", "ToAsciiBuffer" }, // String
  1005. { "ToUtf8", "ToUtf8Buffer" }, // String
  1006. // @GlobalScope
  1007. { "Bytes2Var", "BytesToVar" },
  1008. { "Bytes2VarWithObjects", "BytesToVarWithObjects" },
  1009. { "Db2Linear", "DbToLinear" },
  1010. { "Deg2Rad", "DegToRad" },
  1011. { "Linear2Db", "LinearToDb" },
  1012. { "Rad2Deg", "RadToDeg" },
  1013. { "RandRange", "RandfRange" },
  1014. { "RangeLerp", "Remap" },
  1015. { "Stepify", "Snapped" },
  1016. { "Str2Var", "StrToVar" },
  1017. { "Var2Str", "VarToStr" },
  1018. { "Var2Bytes", "VarToBytes" },
  1019. { "Var2BytesWithObjects", "VarToBytesWithObjects" },
  1020. // @GDScript
  1021. { "Dict2Inst", "DictToInst" },
  1022. { "Inst2Dict", "InstToDict" },
  1023. { nullptr, nullptr },
  1024. };
  1025. const char *RenamesMap3To4::gdscript_properties_renames[][2] = {
  1026. // NOTE: Commented out renames are disabled because deemed not suitable for
  1027. // the current way the regex-based converter works.
  1028. // When uncommenting any of those as suitable for conversion, please move it
  1029. // to the block with other enabled conversions, ordered alphabetically, and
  1030. // make sure to add it to the C# rename map too.
  1031. // Too common words, users may use these names for variables or in comments.
  1032. // { "bg", "panel" }, // Theme
  1033. // { "alt", "alt_pressed" }, // InputEventWithModifiers
  1034. // { "command", "command_pressed" }, // InputEventWithModifiers
  1035. // { "control", "ctrl_pressed" }, // InputEventWithModifiers
  1036. // { "d", "distance" }, // WorldMarginShape2D
  1037. // { "device", "output_device" }, // AudioServer
  1038. // { "doubleclick", "double_click" }, // InputEventMouseButton
  1039. // { "filename", "scene_file_path" }, // Node
  1040. // { "group", "button_group" }, // BaseButton
  1041. // { "meta", "meta_pressed" }, // InputEventWithModifiers
  1042. // { "rotate", "rotates" }, // PathFollow2D
  1043. // { "off", "unchecked" }, // Theme
  1044. // { "ofs", "offset" }, // Theme
  1045. // { "offset", "progress" }, // PathFollow2D, PathFollow3D
  1046. // { "on", "checked" }, // Theme
  1047. // { "shift", "shift_pressed" }, // InputEventWithModifiers
  1048. // { "window_title", "title" }, // Window
  1049. // { "zfar", "far" }, // Camera3D
  1050. // { "znear", "near" }, // Camera3D
  1051. // Would need bespoke solution.
  1052. // { "autowrap", "autowrap_mode" }, // Label -- Changed from bool to enum.
  1053. // { "frames", "sprite_frames" }, // AnimatedSprite2D, AnimatedSprite3D -- GH-73696
  1054. // { "percent_visible, "show_percentage }, // ProgressBar -- Breaks Label and RichTextLabel.
  1055. // { "pressed", "button_pressed" }, // BaseButton -- Would also rename the signal.
  1056. // { "process_mode", "process_callback" }, // AnimationTree, Camera2D -- conflicts with Node.
  1057. // { "wrap_enabled", "wrap_mode" }, // TextEdit -- Changed from bool to enum.
  1058. { "as_normalmap", "as_normal_map" }, // NoiseTexture
  1059. { "bbcode_text", "text" }, // RichTextLabel
  1060. { "bg_focus", "focus" }, // Theme
  1061. { "capture_device", "input_device" }, // AudioServer
  1062. { "caret_blink_speed", "caret_blink_interval" }, // TextEdit, LineEdit
  1063. { "caret_moving_by_right_click", "caret_move_on_right_click" }, // TextEdit
  1064. { "caret_position", "caret_column" }, // LineEdit
  1065. { "cast_to", "target_position" }, // RayCast2D, RayCast3D
  1066. { "check_vadjust", "check_v_offset" }, // Theme
  1067. { "close_h_ofs", "close_h_offset" }, // Theme
  1068. { "close_v_ofs", "close_v_offset" }, // Theme
  1069. { "commentfocus", "comment_focus" }, // Theme
  1070. { "contacts_reported", "max_contacts_reported" }, // RigidBody
  1071. { "depth_bias_enable", "depth_bias_enabled" }, // RDPipelineRasterizationState
  1072. { "drag_margin_bottom", "drag_bottom_margin" }, // Camera2D
  1073. { "drag_margin_h_enabled", "drag_horizontal_enabled" }, // Camera2D
  1074. { "drag_margin_left", "drag_left_margin" }, // Camera2D
  1075. { "drag_margin_right", "drag_right_margin" }, // Camera2D
  1076. { "drag_margin_top", "drag_top_margin" }, // Camera2D
  1077. { "drag_margin_v_enabled", "drag_vertical_enabled" }, // Camera2D
  1078. { "enabled_focus_mode", "focus_mode" }, // BaseButton - Removed
  1079. { "extents", "size" }, // BoxShape3D, LightmapGI, ReflectionProbe
  1080. { "extra_spacing_bottom", "spacing_bottom" }, // Font
  1081. { "extra_spacing_top", "spacing_top" }, // Font
  1082. { "focus_neighbour_bottom", "focus_neighbor_bottom" }, // Control
  1083. { "focus_neighbour_left", "focus_neighbor_left" }, // Control
  1084. { "focus_neighbour_right", "focus_neighbor_right" }, // Control
  1085. { "focus_neighbour_top", "focus_neighbor_top" }, // Control
  1086. { "follow_viewport_enable", "follow_viewport_enabled" }, // CanvasItem
  1087. { "file_icon_modulate", "file_icon_color" }, // Theme
  1088. { "files_disabled", "file_disabled_color" }, // Theme
  1089. { "folder_icon_modulate", "folder_icon_color" }, // Theme
  1090. { "global_rate_scale", "playback_speed_scale" }, // AudioServer
  1091. { "global_translation", "global_position" }, // Node3D
  1092. { "gravity_distance_scale", "gravity_point_unit_distance" }, // Area(2D/3D)
  1093. { "gravity_vec", "gravity_direction" }, // Area(2D/3D)
  1094. { "hint_tooltip", "tooltip_text" }, // Control
  1095. { "hseparation", "h_separation" }, // Theme
  1096. { "icon_align", "icon_alignment" }, // Button
  1097. { "iterations_per_second", "physics_ticks_per_second" }, // Engine
  1098. { "invert_enable", "invert_enabled" }, // Polygon2D
  1099. { "margin_bottom", "offset_bottom" }, // Control -- Breaks NinePatchRect, StyleBox.
  1100. { "margin_left", "offset_left" }, // Control -- Breaks NinePatchRect, StyleBox.
  1101. { "margin_right", "offset_right" }, // Control -- Breaks NinePatchRect, StyleBox.
  1102. { "margin_top", "offset_top" }, // Control -- Breaks NinePatchRect, StyleBox.
  1103. { "mid_height", "height" }, // CapsuleMesh
  1104. { "navpoly", "navigation_polygon" }, // NavigationRegion2D
  1105. { "navmesh", "navigation_mesh" }, // NavigationRegion3D
  1106. { "neighbor_dist", "neighbor_distance" }, // NavigationAgent2D, NavigationAgent3D
  1107. { "octaves", "fractal_octaves" }, // OpenSimplexNoise -> FastNoiseLite
  1108. { "offset_h", "drag_horizontal_offset" }, // Camera2D
  1109. { "offset_v", "drag_vertical_offset" }, // Camera2D
  1110. { "off_disabled", "unchecked_disabled" }, // Theme
  1111. { "on_disabled", "checked_disabled" }, // Theme
  1112. { "oneshot", "one_shot" }, // AnimatedTexture
  1113. { "out_of_range_mode", "max_polyphony" }, // AudioStreamPlayer3D
  1114. { "pause_mode", "process_mode" }, // Node
  1115. { "physical_scancode", "physical_keycode" }, // InputEventKey
  1116. { "polygon_verts_per_poly", "polygon_vertices_per_polyon" }, // NavigationMesh
  1117. { "popup_exclusive", "exclusive" }, // Window
  1118. { "proximity_fade_enable", "proximity_fade_enabled" }, // Material
  1119. { "rect_position", "position" }, // Control
  1120. { "rect_global_position", "global_position" }, // Control
  1121. { "rect_size", "size" }, // Control
  1122. { "rect_min_size", "custom_minimum_size" }, // Control
  1123. { "rect_rotation", "rotation" }, // Control
  1124. { "rect_scale", "scale" }, // Control
  1125. { "rect_pivot_offset", "pivot_offset" }, // Control
  1126. { "rect_clip_content", "clip_contents" }, // Control
  1127. { "refuse_new_network_connections", "refuse_new_connections" }, // MultiplayerAPI
  1128. { "region_filter_clip", "region_filter_clip_enabled" }, // Sprite2D
  1129. { "reverb_bus_enable", "reverb_bus_enabled" }, // Area3D
  1130. { "scancode", "keycode" }, // InputEventKey
  1131. { "selectedframe", "selected_frame" }, // Theme
  1132. { "size_override_stretch", "size_2d_override_stretch" }, // SubViewport
  1133. { "slips_on_slope", "slide_on_slope" }, // SeparationRayShape2D
  1134. { "smoothing_enabled", "position_smoothing_enabled" }, // Camera2D
  1135. { "smoothing_speed", "position_smoothing_speed" }, // Camera2D
  1136. { "ss_reflections_depth_tolerance", "ssr_depth_tolerance" }, // Environment
  1137. { "ss_reflections_enabled", "ssr_enabled" }, // Environment
  1138. { "ss_reflections_fade_in", "ssr_fade_in" }, // Environment
  1139. { "ss_reflections_fade_out", "ssr_fade_out" }, // Environment
  1140. { "ss_reflections_max_steps", "ssr_max_steps" }, // Environment
  1141. { "state_machine_selectedframe", "state_machine_selected_frame" }, // Theme
  1142. { "syntax_highlighting", "syntax_highlighter" }, // TextEdit
  1143. { "tab_align", "tab_alignment" }, // TabContainer
  1144. { "table_hseparation", "table_h_separation" }, // Theme
  1145. { "table_vseparation", "table_v_separation" }, // Theme
  1146. { "tangent", "orthogonal" }, // Vector2
  1147. { "target_location", "target_position" }, // NavigationAgent2D, NavigationAgent3D
  1148. { "toplevel", "top_level" }, // Node
  1149. { "translation", "position" }, // Node3D
  1150. { "unit_db", "volume_db" }, // AudioStreamPlayer3D
  1151. { "unit_offset", "progress_ratio" }, // PathFollow2D, PathFollow3D
  1152. { "vseparation", "v_separation" }, // Theme
  1153. { nullptr, nullptr },
  1154. };
  1155. const char *RenamesMap3To4::csharp_properties_renames[][2] = {
  1156. { "AsNormalmap", "AsNormalMap" }, // NoiseTexture
  1157. { "BbcodeText", "Text" }, // RichTextLabel
  1158. { "BgFocus", "Focus" }, // Theme
  1159. { "CaptureDevice", "InputDevice" }, // AudioServer
  1160. { "CaretBlinkSpeed", "CaretBlinkInterval" }, // TextEdit, LineEdit
  1161. { "CaretMovingByRightClick", "CaretMoveOnRightClick" }, // TextEdit
  1162. { "CaretPosition", "CaretColumn" }, // LineEdit
  1163. { "CastTo", "TargetPosition" }, // RayCast2D, RayCast3D
  1164. { "CheckVadjust", "CheckVAdjust" }, // Theme
  1165. { "CloseHOfs", "CloseHOffset" }, // Theme
  1166. { "CloseVOfs", "CloseVOffset" }, // Theme
  1167. { "Commentfocus", "CommentFocus" }, // Theme
  1168. { "ContactsReported", "MaxContactsReported" }, // RigidBody
  1169. { "DepthBiasEnable", "DepthBiasEnabled" }, // RDPipelineRasterizationState
  1170. { "DragMarginBottom", "DragBottomMargin" }, // Camera2D
  1171. { "DragMarginHEnabled", "DragHorizontalEnabled" }, // Camera2D
  1172. { "DragMarginLeft", "DragLeftMargin" }, // Camera2D
  1173. { "DragMarginRight", "DragRightMargin" }, // Camera2D
  1174. { "DragMarginTop", "DragTopMargin" }, // Camera2D
  1175. { "DragMarginVEnabled", "DragVerticalEnabled" }, // Camera2D
  1176. { "EnabledFocusMode", "FocusMode" }, // BaseButton - Removed
  1177. { "Extents", "Size" }, // BoxShape3D, LightmapGI, ReflectionProbe
  1178. { "ExtraSpacingBottom", "SpacingBottom" }, // Font
  1179. { "ExtraSpacingTop", "SpacingTop" }, // Font
  1180. { "FocusNeighbourBottom", "FocusNeighborBottom" }, // Control
  1181. { "FocusNeighbourLeft", "FocusNeighborLeft" }, // Control
  1182. { "FocusNeighbourRight", "FocusNeighborRight" }, // Control
  1183. { "FocusNeighbourTop", "FocusNeighborTop" }, // Control
  1184. { "FollowViewportEnable", "FollowViewportEnabled" }, // CanvasItem
  1185. { "FileIconModulate", "FileIconColor" }, // Theme
  1186. { "FilesDisabled", "FileDisabledColor" }, // Theme
  1187. { "FolderIconModulate", "FolderIconColor" }, // Theme
  1188. { "GlobalRateScale", "PlaybackSpeedScale" }, // AudioServer
  1189. { "GravityDistanceScale", "GravityPointDistanceScale" }, // Area2D
  1190. { "GravityVec", "GravityDirection" }, // Area2D
  1191. { "HintTooltip", "TooltipText" }, // Control
  1192. { "Hseparation", "HSeparation" }, // Theme
  1193. { "IconAlign", "IconAlignment" }, // Button
  1194. { "IterationsPerSecond", "PhysicsTicksPerSecond" }, // Engine
  1195. { "InvertEnable", "InvertEnabled" }, // Polygon2D
  1196. { "MarginBottom", "OffsetBottom" }, // Control -- Breaks NinePatchRect, StyleBox.
  1197. { "MarginLeft", "OffsetLeft" }, // Control -- Breaks NinePatchRect, StyleBox.
  1198. { "MarginRight", "OffsetRight" }, // Control -- Breaks NinePatchRect, StyleBox.
  1199. { "MarginTop", "OffsetTop" }, // Control -- Breaks NinePatchRect, StyleBox.
  1200. { "MidHeight", "Height" }, // CapsuleMesh
  1201. { "Navpoly", "NavigationPolygon" }, // NavigationRegion2D
  1202. { "Navmesh", "NavigationMesh" }, // NavigationRegion3D
  1203. { "NeighborDist", "NeighborDistance" }, // NavigationAgent2D, NavigationAgent3D
  1204. { "Octaves", "FractalOctaves" }, // OpenSimplexNoise -> FastNoiseLite
  1205. { "OffsetH", "DragHorizontalOffset" }, // Camera2D
  1206. { "OffsetV", "DragVerticalOffset" }, // Camera2D
  1207. { "OffDisabled", "UncheckedDisabled" }, // Theme
  1208. { "OnDisabled", "CheckedDisabled" }, // Theme
  1209. { "Oneshot", "OneShot" }, // AnimatedTexture
  1210. { "OutOfRangeMode", "MaxPolyphony" }, // AudioStreamPlayer3D
  1211. { "PauseMode", "ProcessMode" }, // Node
  1212. { "Perpendicular", "Orthogonal" }, // Vector2 - Only exists in C#
  1213. { "PhysicalScancode", "PhysicalKeycode" }, // InputEventKey
  1214. { "PopupExclusive", "Exclusive" }, // Window
  1215. { "ProximityFadeEnable", "ProximityFadeEnabled" }, // Material
  1216. { "RectPosition", "Position" }, // Control
  1217. { "RectGlobalPosition", "GlobalPosition" }, // Control
  1218. { "RectSize", "Size" }, // Control
  1219. { "RectMinSize", "CustomMinimumSize" }, // Control
  1220. { "RectRotation", "Rotation" }, // Control
  1221. { "RectScale", "Scale" }, // Control
  1222. { "RectPivotOffset", "PivotOffset" }, // Control
  1223. { "RectClipContent", "ClipContents" }, // Control
  1224. { "RefuseNewNetworkConnections", "RefuseNewConnections" }, // MultiplayerAPI
  1225. { "RegionFilterClip", "RegionFilterClipEnabled" }, // Sprite2D
  1226. { "ReverbBusEnable", "ReverbBusEnabled" }, // Area3D
  1227. { "Scancode", "Keycode" }, // InputEventKey
  1228. { "Selectedframe", "SelectedFrame" }, // Theme
  1229. { "SizeOverrideStretch", "Size2dOverrideStretch" }, // SubViewport
  1230. { "SlipsOnSlope", "SlideOnSlope" }, // SeparationRayShape2D
  1231. { "SmoothingEnabled", "PositionSmoothingEnabled" }, // Camera2D
  1232. { "SmoothingSpeed", "PositionSmoothingSpeed" }, // Camera2D
  1233. { "SsReflectionsDepthTolerance", "SsrDepthTolerance" }, // Environment
  1234. { "SsReflectionsEnabled", "SsrEnabled" }, // Environment
  1235. { "SsReflectionsFadeIn", "SsrFadeIn" }, // Environment
  1236. { "SsReflectionsFadeOut", "SsrFadeOut" }, // Environment
  1237. { "SsReflectionsMaxSteps", "SsrMaxSteps" }, // Environment
  1238. { "StateMachineSelectedframe", "StateMachineSelectedFrame" }, // Theme
  1239. { "SyntaxHighlighting", "SyntaxHighlighter" }, // TextEdit
  1240. { "TabAlign", "TabAlignment" }, // TabContainer
  1241. { "TableHseparation", "TableHSeparation" }, // Theme
  1242. { "TableVseparation", "TableVSeparation" }, // Theme
  1243. { "Tangent", "Orthogonal" }, // Vector2
  1244. { "TargetLocation", "TargetPosition" }, // NavigationAgent2D, NavigationAgent3D
  1245. { "Toplevel", "TopLevel" }, // Node
  1246. { "Translation", "Position" }, // Node3D
  1247. { "UnitDb", "VolumeDb" }, // AudioStreamPlayer3D
  1248. { "UnitOffset", "ProgressRatio" }, // PathFollow2D, PathFollow3D
  1249. { "Vseparation", "VSeparation" }, // Theme
  1250. { nullptr, nullptr },
  1251. };
  1252. const char *RenamesMap3To4::gdscript_signals_renames[][2] = {
  1253. // NOTE: Commented out renames are disabled because deemed not suitable for
  1254. // the current way the regex-based converter works.
  1255. // When uncommenting any of those as suitable for conversion, please move it
  1256. // to the block with other enabled conversions, ordered alphabetically, and
  1257. // make sure to add it to the C# rename map too.
  1258. // Too common words, users may use these names for variables or in comments.
  1259. // { "hide", "hidden" }, // CanvasItem
  1260. // { "changed", "settings_changed" }, // EditorSettings
  1261. { "about_to_show", "about_to_popup" }, // Popup
  1262. { "button_release", "button_released" }, // XRController3D
  1263. { "cancelled", "canceled" }, // AcceptDialog
  1264. { "item_double_clicked", "item_icon_double_clicked" }, // Tree
  1265. { "network_peer_connected", "peer_connected" }, // MultiplayerAPI
  1266. { "network_peer_disconnected", "peer_disconnected" }, // MultiplayerAPI
  1267. { "network_peer_packet", "peer_packet" }, // MultiplayerAPI
  1268. { "node_unselected", "node_deselected" }, // GraphEdit
  1269. { "offset_changed", "position_offset_changed" }, // GraphNode
  1270. { "settings_changed", "changed" }, // TileMap -- Breaks EditorSettings
  1271. { "skeleton_updated", "pose_updated" }, // Skeleton3D
  1272. { "tab_close", "tab_closed" }, // TextEdit
  1273. { "tab_hover", "tab_hovered" }, // TextEdit
  1274. { "text_entered", "text_submitted" }, // LineEdit
  1275. { nullptr, nullptr },
  1276. };
  1277. const char *RenamesMap3To4::csharp_signals_renames[][2] = {
  1278. { "AboutToShow", "AboutToPopup" }, // Popup
  1279. { "ButtonRelease", "ButtonReleased" }, // XRController3D
  1280. { "Cancelled", "Canceled" }, // AcceptDialog
  1281. { "ItemDoubleClicked", "ItemIconDoubleClicked" }, // Tree
  1282. { "NetworkPeerConnected", "PeerConnected" }, // MultiplayerAPI
  1283. { "NetworkPeerDisconnected", "PeerDisconnected" }, // MultiplayerAPI
  1284. { "NetworkPeerPacket", "PeerPacket" }, // MultiplayerAPI
  1285. { "NodeUnselected", "NodeDeselected" }, // GraphEdit
  1286. { "OffsetChanged", "PositionOffsetChanged" }, // GraphNode
  1287. { "SettingsChanged", "Changed" }, // TileMap -- Breaks EditorSettings
  1288. { "SkeletonUpdated", "PoseUpdated" }, //
  1289. { "TabClose", "TabClosed" }, // TextEdit
  1290. { "TabHover", "TabHovered" }, // TextEdit
  1291. { "TextEntered", "TextSubmitted" }, // LineEdit
  1292. { nullptr, nullptr },
  1293. };
  1294. const char *RenamesMap3To4::project_settings_renames[][2] = {
  1295. // Project setting paths in scripts include the category, but in project.godot,
  1296. // the category is the section delimiter, so we need to support the paths without it.
  1297. // The project.godot remaps are defined in the project_godot_renames, keep them in sync!
  1298. { "audio/channel_disable_threshold_db", "audio/buses/channel_disable_threshold_db" },
  1299. { "audio/channel_disable_time", "audio/buses/channel_disable_time" },
  1300. { "audio/default_bus_layout", "audio/buses/default_bus_layout" },
  1301. { "audio/driver", "audio/driver/driver" },
  1302. { "audio/enable_audio_input", "audio/driver/enable_input" },
  1303. { "audio/mix_rate", "audio/driver/mix_rate" },
  1304. { "audio/output_latency", "audio/driver/output_latency" },
  1305. { "audio/output_latency.web", "audio/driver/output_latency.web" },
  1306. { "audio/video_delay_compensation_ms", "audio/video/video_delay_compensation_ms" },
  1307. { "display/window/size/width", "display/window/size/viewport_width" },
  1308. { "display/window/size/height", "display/window/size/viewport_height" },
  1309. { "display/window/size/test_width", "display/window/size/window_width_override" },
  1310. { "display/window/size/test_height", "display/window/size/window_height_override" },
  1311. { "display/window/vsync/use_vsync", "display/window/vsync/vsync_mode" },
  1312. { "editor/main_run_args", "editor/run/main_run_args" },
  1313. { "gui/common/swap_ok_cancel", "gui/common/swap_cancel_ok" },
  1314. { "network/limits/debugger_stdout/max_chars_per_second", "network/limits/debugger/max_chars_per_second" },
  1315. { "network/limits/debugger_stdout/max_errors_per_second", "network/limits/debugger/max_errors_per_second" },
  1316. { "network/limits/debugger_stdout/max_messages_per_frame", "network/limits/debugger/max_queued_messages" },
  1317. { "network/limits/debugger_stdout/max_warnings_per_second", "network/limits/debugger/max_warnings_per_second" },
  1318. { "network/ssl/certificates", "network/tls/certificate_bundle_override" },
  1319. { "physics/2d/thread_model", "physics/2d/run_on_thread" }, // TODO: Not sure.
  1320. { "rendering/environment/default_clear_color", "rendering/environment/defaults/default_clear_color" },
  1321. { "rendering/environment/default_environment", "rendering/environment/defaults/default_environment" },
  1322. { "rendering/quality/depth_prepass/disable_for_vendors", "rendering/driver/depth_prepass/disable_for_vendors" },
  1323. { "rendering/quality/depth_prepass/enable", "rendering/driver/depth_prepass/enable" },
  1324. { "rendering/quality/shading/force_blinn_over_ggx", "rendering/shading/overrides/force_blinn_over_ggx" },
  1325. { "rendering/quality/shading/force_blinn_over_ggx.mobile", "rendering/shading/overrides/force_blinn_over_ggx.mobile" },
  1326. { "rendering/quality/shading/force_lambert_over_burley", "rendering/shading/overrides/force_lambert_over_burley" },
  1327. { "rendering/quality/shading/force_lambert_over_burley.mobile", "rendering/shading/overrides/force_lambert_over_burley.mobile" },
  1328. { "rendering/quality/shading/force_vertex_shading", "rendering/shading/overrides/force_vertex_shading" },
  1329. { "rendering/quality/shading/force_vertex_shading.mobile", "rendering/shading/overrides/force_vertex_shading.mobile" },
  1330. { "rendering/quality/shadow_atlas/quadrant_0_subdiv", "rendering/lights_and_shadows/shadow_atlas/quadrant_0_subdiv" },
  1331. { "rendering/quality/shadow_atlas/quadrant_1_subdiv", "rendering/lights_and_shadows/shadow_atlas/quadrant_1_subdiv" },
  1332. { "rendering/quality/shadow_atlas/quadrant_2_subdiv", "rendering/lights_and_shadows/shadow_atlas/quadrant_2_subdiv" },
  1333. { "rendering/quality/shadow_atlas/quadrant_3_subdiv", "rendering/lights_and_shadows/shadow_atlas/quadrant_3_subdiv" },
  1334. { "rendering/quality/shadow_atlas/size", "rendering/lights_and_shadows/shadow_atlas/size" },
  1335. { "rendering/quality/shadow_atlas/size.mobile", "rendering/lights_and_shadows/shadow_atlas/size.mobile" },
  1336. { "rendering/vram_compression/import_etc2", "rendering/textures/vram_compression/import_etc2_astc" },
  1337. { "rendering/vram_compression/import_s3tc", "rendering/textures/vram_compression/import_s3tc_bptc" },
  1338. { nullptr, nullptr },
  1339. };
  1340. const char *RenamesMap3To4::project_godot_renames[][2] = {
  1341. // Should be kept in sync with project_settings_renames.
  1342. { "channel_disable_threshold_db", "buses/channel_disable_threshold_db" },
  1343. { "channel_disable_time", "buses/channel_disable_time" },
  1344. { "default_bus_layout", "buses/default_bus_layout" },
  1345. // { "driver", "driver/driver" }, -- Risk of conflicts.
  1346. { "enable_audio_input", "driver/enable_input" },
  1347. // { "mix_rate", "driver/mix_rate" }, -- Risk of conflicts.
  1348. { "output_latency", "driver/output_latency" },
  1349. { "output_latency.web", "driver/output_latency.web" },
  1350. { "video_delay_compensation_ms", "video/video_delay_compensation_ms" },
  1351. { "window/size/width", "window/size/viewport_width" },
  1352. { "window/size/height", "window/size/viewport_height" },
  1353. { "window/size/test_width", "window/size/window_width_override" },
  1354. { "window/size/test_height", "window/size/window_height_override" },
  1355. { "window/vsync/use_vsync", "window/vsync/vsync_mode" },
  1356. { "main_run_args", "run/main_run_args" },
  1357. { "common/swap_ok_cancel", "common/swap_cancel_ok" },
  1358. { "limits/debugger_stdout/max_chars_per_second", "limits/debugger/max_chars_per_second" },
  1359. { "limits/debugger_stdout/max_errors_per_second", "limits/debugger/max_errors_per_second" },
  1360. { "limits/debugger_stdout/max_messages_per_frame", "limits/debugger/max_queued_messages" },
  1361. { "limits/debugger_stdout/max_warnings_per_second", "limits/debugger/max_warnings_per_second" },
  1362. { "ssl/certificates", "tls/certificate_bundle_override" },
  1363. { "2d/thread_model", "2d/run_on_thread" }, // TODO: Not sure.
  1364. { "environment/default_clear_color", "environment/defaults/default_clear_color" },
  1365. { "environment/default_environment", "environment/defaults/default_environment" },
  1366. { "quality/depth_prepass/disable_for_vendors", "driver/depth_prepass/disable_for_vendors" },
  1367. { "quality/depth_prepass/enable", "driver/depth_prepass/enable" },
  1368. { "quality/shading/force_blinn_over_ggx", "shading/overrides/force_blinn_over_ggx" },
  1369. { "quality/shading/force_blinn_over_ggx.mobile", "shading/overrides/force_blinn_over_ggx.mobile" },
  1370. { "quality/shading/force_lambert_over_burley", "shading/overrides/force_lambert_over_burley" },
  1371. { "quality/shading/force_lambert_over_burley.mobile", "shading/overrides/force_lambert_over_burley.mobile" },
  1372. { "quality/shading/force_vertex_shading", "shading/overrides/force_vertex_shading" },
  1373. { "quality/shading/force_vertex_shading.mobile", "shading/overrides/force_vertex_shading.mobile" },
  1374. { "quality/shadow_atlas/quadrant_0_subdiv", "lights_and_shadows/shadow_atlas/quadrant_0_subdiv" },
  1375. { "quality/shadow_atlas/quadrant_1_subdiv", "lights_and_shadows/shadow_atlas/quadrant_1_subdiv" },
  1376. { "quality/shadow_atlas/quadrant_2_subdiv", "lights_and_shadows/shadow_atlas/quadrant_2_subdiv" },
  1377. { "quality/shadow_atlas/quadrant_3_subdiv", "lights_and_shadows/shadow_atlas/quadrant_3_subdiv" },
  1378. { "quality/shadow_atlas/size", "lights_and_shadows/shadow_atlas/size" },
  1379. { "quality/shadow_atlas/size.mobile", "lights_and_shadows/shadow_atlas/size.mobile" },
  1380. { "vram_compression/import_etc2", "textures/vram_compression/import_etc2_astc" },
  1381. { "vram_compression/import_s3tc", "textures/vram_compression/import_s3tc_bptc" },
  1382. { nullptr, nullptr },
  1383. };
  1384. const char *RenamesMap3To4::input_map_renames[][2] = {
  1385. { ",\"alt\":", ",\"alt_pressed\":" },
  1386. { ",\"shift\":", ",\"shift_pressed\":" },
  1387. { ",\"control\":", ",\"ctrl_pressed\":" },
  1388. { ",\"meta\":", ",\"meta_pressed\":" },
  1389. { ",\"scancode\":", ",\"keycode\":" },
  1390. { ",\"physical_scancode\":", ",\"physical_keycode\":" },
  1391. { ",\"doubleclick\":", ",\"double_click\":" },
  1392. { nullptr, nullptr },
  1393. };
  1394. const char *RenamesMap3To4::builtin_types_renames[][2] = {
  1395. { "PoolByteArray", "PackedByteArray" },
  1396. { "PoolColorArray", "PackedColorArray" },
  1397. { "PoolIntArray", "PackedInt32Array" },
  1398. { "PoolRealArray", "PackedFloat32Array" },
  1399. { "PoolStringArray", "PackedStringArray" },
  1400. { "PoolVector2Array", "PackedVector2Array" },
  1401. { "PoolVector3Array", "PackedVector3Array" },
  1402. { "Quat", "Quaternion" },
  1403. { "Transform", "Transform3D" },
  1404. { nullptr, nullptr },
  1405. };
  1406. const char *RenamesMap3To4::shaders_renames[][2] = {
  1407. { "ALPHA_SCISSOR", "ALPHA_SCISSOR_THRESHOLD" },
  1408. { "CAMERA_MATRIX", "INV_VIEW_MATRIX" },
  1409. { "INV_CAMERA_MATRIX", "VIEW_MATRIX" },
  1410. { "NORMALMAP", "NORMAL_MAP" },
  1411. { "NORMALMAP_DEPTH", "NORMAL_MAP_DEPTH" },
  1412. { "TRANSMISSION", "BACKLIGHT" },
  1413. { "WORLD_MATRIX", "MODEL_MATRIX" },
  1414. { "depth_draw_alpha_prepass", "depth_draw_opaque" },
  1415. { "hint_albedo", "source_color" },
  1416. { "hint_aniso", "hint_anisotropy" },
  1417. { "hint_black", "hint_default_black" },
  1418. { "hint_black_albedo", "hint_default_black" },
  1419. { "hint_color", "source_color" },
  1420. { "hint_white", "hint_default_white" },
  1421. { nullptr, nullptr },
  1422. };
  1423. const char *RenamesMap3To4::class_renames[][2] = {
  1424. // { "Particles", "GPUParticles3D" }, // Common word, and incompatible class.
  1425. // { "World", "World3D" }, // Too common.
  1426. // Risky as fairly common words, but worth it given how ubiquitous they are.
  1427. { "Area", "Area3D" },
  1428. { "Camera", "Camera3D" },
  1429. { "Path", "Path3D" },
  1430. { "Reference", "RefCounted" },
  1431. { "Shape", "Shape3D" },
  1432. { "Tabs", "TabBar" },
  1433. { "ARVRAnchor", "XRAnchor3D" },
  1434. { "ARVRCamera", "XRCamera3D" },
  1435. { "ARVRController", "XRController3D" },
  1436. { "ARVRInterface", "XRInterface" },
  1437. { "ARVRInterfaceGDNative", "Node3D" },
  1438. { "ARVROrigin", "XROrigin3D" },
  1439. { "ARVRPositionalTracker", "XRPositionalTracker" },
  1440. { "ARVRServer", "XRServer" },
  1441. { "AStar", "AStar3D" },
  1442. { "AnimatedSprite", "AnimatedSprite2D" },
  1443. { "AudioStreamOGGVorbis", "AudioStreamOggVorbis" },
  1444. { "AudioStreamRandomPitch", "AudioStreamRandomizer" },
  1445. { "AudioStreamSample", "AudioStreamWAV" },
  1446. { "BakedLightmap", "LightmapGI" },
  1447. { "BakedLightmapData", "LightmapGIData" },
  1448. { "BitmapFont", "FontFile" },
  1449. { "BoneAttachment", "BoneAttachment3D" },
  1450. { "BoxShape", "BoxShape3D" },
  1451. { "CPUParticles", "CPUParticles3D" },
  1452. { "CSGBox", "CSGBox3D" },
  1453. { "CSGCombiner", "CSGCombiner3D" },
  1454. { "CSGCylinder", "CSGCylinder3D" },
  1455. { "CSGMesh", "CSGMesh3D" },
  1456. { "CSGPolygon", "CSGPolygon3D" },
  1457. { "CSGPrimitive", "CSGPrimitive3D" },
  1458. { "CSGShape", "CSGShape3D" },
  1459. { "CSGSphere", "CSGSphere3D" },
  1460. { "CSGTorus", "CSGTorus3D" },
  1461. { "CapsuleShape", "CapsuleShape3D" },
  1462. { "ClippedCamera", "Camera3D" },
  1463. { "CollisionObject", "CollisionObject3D" },
  1464. { "CollisionPolygon", "CollisionPolygon3D" },
  1465. { "CollisionShape", "CollisionShape3D" },
  1466. { "ConcavePolygonShape", "ConcavePolygonShape3D" },
  1467. { "ConeTwistJoint", "ConeTwistJoint3D" },
  1468. { "ConvexPolygonShape", "ConvexPolygonShape3D" },
  1469. { "CubeMap", "Cubemap" },
  1470. { "CubeMesh", "BoxMesh" },
  1471. { "CylinderShape", "CylinderShape3D" },
  1472. { "DirectionalLight", "DirectionalLight3D" },
  1473. { "Directory", "DirAccess" },
  1474. { "DynamicFont", "FontFile" },
  1475. { "DynamicFontData", "FontFile" },
  1476. { "EditorNavigationMeshGenerator", "NavigationMeshGenerator" },
  1477. { "EditorSceneImporter", "EditorSceneFormatImporter" },
  1478. { "EditorSceneImporterFBX", "EditorSceneFormatImporterFBX" },
  1479. { "EditorSceneImporterGLTF", "EditorSceneFormatImporterGLTF" },
  1480. { "EditorSpatialGizmo", "EditorNode3DGizmo" },
  1481. { "EditorSpatialGizmoPlugin", "EditorNode3DGizmoPlugin" },
  1482. { "ExternalTexture", "ImageTexture" },
  1483. { "GIProbe", "VoxelGI" },
  1484. { "GIProbeData", "VoxelGIData" },
  1485. { "Generic6DOFJoint", "Generic6DOFJoint3D" },
  1486. { "GeometryInstance", "GeometryInstance3D" },
  1487. { "GradientTexture", "GradientTexture2D" },
  1488. { "HeightMapShape", "HeightMapShape3D" },
  1489. { "HingeJoint", "HingeJoint3D" },
  1490. { "IP_Unix", "IPUnix" },
  1491. { "ImmediateGeometry", "ImmediateMesh" },
  1492. { "ImmediateGeometry3D", "ImmediateMesh" },
  1493. { "InterpolatedCamera", "Camera3D" },
  1494. { "InterpolatedCamera3D", "Camera3D" },
  1495. { "JSONParseResult", "JSON" },
  1496. { "Joint", "Joint3D" },
  1497. { "KinematicBody", "CharacterBody3D" },
  1498. { "KinematicBody2D", "CharacterBody2D" },
  1499. { "KinematicCollision", "KinematicCollision3D" },
  1500. { "LargeTexture", "ImageTexture" },
  1501. { "Light", "Light3D" },
  1502. { "Light2D", "PointLight2D" },
  1503. { "LineShape2D", "WorldBoundaryShape2D" },
  1504. { "Listener", "AudioListener3D" },
  1505. { "Listener2D", "AudioListener2D" },
  1506. { "MeshInstance", "MeshInstance3D" },
  1507. { "MultiMeshInstance", "MultiMeshInstance3D" },
  1508. { "MultiplayerPeerGDNative", "MultiplayerPeerExtension" },
  1509. { "Navigation2DServer", "NavigationServer2D" },
  1510. { "NavigationAgent", "NavigationAgent3D" },
  1511. { "NavigationMeshInstance", "NavigationRegion3D" },
  1512. { "NavigationObstacle", "NavigationObstacle3D" },
  1513. { "NavigationPolygonInstance", "NavigationRegion2D" },
  1514. { "NavigationRegion", "NavigationRegion3D" },
  1515. { "NavigationServer", "NavigationServer3D" },
  1516. { "NetworkedMultiplayerCustom", "MultiplayerPeerExtension" },
  1517. { "NetworkedMultiplayerENet", "ENetMultiplayerPeer" },
  1518. { "NetworkedMultiplayerPeer", "MultiplayerPeer" },
  1519. { "Occluder", "OccluderInstance3D" },
  1520. { "OmniLight", "OmniLight3D" },
  1521. { "OpenSimplexNoise", "FastNoiseLite" },
  1522. { "PHashTranslation", "OptimizedTranslation" },
  1523. { "PacketPeerGDNative", "PacketPeerExtension" },
  1524. { "PanoramaSky", "Sky" },
  1525. { "Particles2D", "GPUParticles2D" },
  1526. { "ParticlesMaterial", "ParticleProcessMaterial" },
  1527. { "PathFollow", "PathFollow3D" },
  1528. { "PhysicalBone", "PhysicalBone3D" },
  1529. { "Physics2DDirectBodyState", "PhysicsDirectBodyState2D" },
  1530. { "Physics2DDirectSpaceState", "PhysicsDirectSpaceState2D" },
  1531. { "Physics2DServer", "PhysicsServer2D" },
  1532. { "Physics2DServerSW", "GodotPhysicsServer2D" },
  1533. { "Physics2DShapeQueryParameters", "PhysicsShapeQueryParameters2D" },
  1534. { "Physics2DTestMotionResult", "PhysicsTestMotionResult2D" },
  1535. { "PhysicsBody", "PhysicsBody3D" },
  1536. { "PhysicsDirectBodyState", "PhysicsDirectBodyState3D" },
  1537. { "PhysicsDirectSpaceState", "PhysicsDirectSpaceState3D" },
  1538. { "PhysicsServer", "PhysicsServer3D" },
  1539. { "PhysicsShapeQueryParameters", "PhysicsShapeQueryParameters3D" },
  1540. { "PhysicsTestMotionResult", "PhysicsTestMotionResult3D" },
  1541. { "PinJoint", "PinJoint3D" },
  1542. { "PlaneShape", "WorldBoundaryShape3D" },
  1543. { "PopupDialog", "Popup" },
  1544. { "Position2D", "Marker2D" },
  1545. { "Position3D", "Marker3D" },
  1546. { "ProceduralSky", "Sky" },
  1547. { "RayCast", "RayCast3D" },
  1548. { "RayShape", "SeparationRayShape3D" },
  1549. { "RayShape2D", "SeparationRayShape2D" },
  1550. { "RemoteTransform", "RemoteTransform3D" },
  1551. { "ResourceInteractiveLoader", "ResourceLoader" },
  1552. { "RigidBody", "RigidBody3D" },
  1553. { "SceneTreeTween", "Tween" },
  1554. { "ShortCut", "Shortcut" },
  1555. { "Skeleton", "Skeleton3D" },
  1556. { "SkeletonIK", "SkeletonIK3D" },
  1557. { "SliderJoint", "SliderJoint3D" },
  1558. { "SoftBody", "SoftBody3D" },
  1559. { "Spatial", "Node3D" },
  1560. { "SpatialGizmo", "Node3DGizmo" },
  1561. { "SpatialMaterial", "StandardMaterial3D" },
  1562. { "SphereShape", "SphereShape3D" },
  1563. { "SpotLight", "SpotLight3D" },
  1564. { "SpringArm", "SpringArm3D" },
  1565. { "Sprite", "Sprite2D" },
  1566. { "StaticBody", "StaticBody3D" },
  1567. { "StreamCubemap", "CompressedCubemap" },
  1568. { "StreamCubemapArray", "CompressedCubemapArray" },
  1569. { "StreamPeerGDNative", "StreamPeerExtension" },
  1570. { "StreamPeerSSL", "StreamPeerTLS" },
  1571. { "StreamTexture", "CompressedTexture2D" },
  1572. { "StreamTexture2D", "CompressedTexture2D" },
  1573. { "StreamTexture2DArray", "CompressedTexture2DArray" },
  1574. { "StreamTextureLayered", "CompressedTextureLayered" },
  1575. { "TCP_Server", "TCPServer" },
  1576. { "TextFile", "Node3D" },
  1577. { "Texture", "Texture2D" }, // May break TextureRect.
  1578. { "TextureArray", "Texture2DArray" },
  1579. { "TextureProgress", "TextureProgressBar" },
  1580. { "ToolButton", "Button" },
  1581. { "VehicleBody", "VehicleBody3D" },
  1582. { "VehicleWheel", "VehicleWheel3D" },
  1583. { "VideoPlayer", "VideoStreamPlayer" },
  1584. { "Viewport", "SubViewport" },
  1585. { "ViewportContainer", "SubViewportContainer" },
  1586. { "VisibilityEnabler", "VisibleOnScreenEnabler3D" },
  1587. { "VisibilityEnabler2D", "VisibleOnScreenEnabler2D" },
  1588. { "VisibilityNotifier", "VisibleOnScreenNotifier3D" },
  1589. { "VisibilityNotifier2D", "VisibleOnScreenNotifier2D" },
  1590. { "VisibilityNotifier3D", "VisibleOnScreenNotifier3D" },
  1591. { "VisualInstance", "VisualInstance3D" },
  1592. { "VisualServer", "RenderingServer" },
  1593. { "VisualShaderNodeCubeMap", "VisualShaderNodeCubemap" },
  1594. { "VisualShaderNodeScalarClamp", "VisualShaderNodeClamp" },
  1595. { "VisualShaderNodeScalarConstant", "VisualShaderNodeFloatConstant" },
  1596. { "VisualShaderNodeScalarFunc", "VisualShaderNodeFloatFunc" },
  1597. { "VisualShaderNodeScalarInterp", "VisualShaderNodeMix" },
  1598. { "VisualShaderNodeScalarOp", "VisualShaderNodeFloatOp" },
  1599. { "VisualShaderNodeScalarSmoothStep", "VisualShaderNodeSmoothStep" },
  1600. { "VisualShaderNodeScalarSwitch", "VisualShaderNodeSwitch" },
  1601. { "VisualShaderNodeScalarTransformMult", "VisualShaderNodeTransformOp" },
  1602. { "VisualShaderNodeTransformMult", "VisualShaderNode" },
  1603. { "VisualShaderNodeVectorClamp", "VisualShaderNodeClamp" },
  1604. { "VisualShaderNodeVectorInterp", "VisualShaderNodeMix" },
  1605. { "VisualShaderNodeVectorScalarMix", "VisualShaderNodeMix" },
  1606. { "VisualShaderNodeVectorScalarSmoothStep", "VisualShaderNodeSmoothStep" },
  1607. { "VisualShaderNodeVectorScalarStep", "VisualShaderNodeStep" },
  1608. { "VisualShaderNodeVectorSmoothStep", "VisualShaderNodeSmoothStep" },
  1609. { "VisualShaderNodeBooleanUniform", "VisualShaderNodeBooleanParameter" },
  1610. { "VisualShaderNodeColorUniform", "VisualShaderNodeColorParameter" },
  1611. { "VisualShaderNodeScalarUniform", "VisualShaderNodeFloatParameter" },
  1612. { "VisualShaderNodeCubemapUniform", "VisualShaderNodeCubemapParameter" },
  1613. { "VisualShaderNodeTextureUniform", "VisualShaderNodeTexture2DParameter" },
  1614. { "VisualShaderNodeTextureUniformTriplanar", "VisualShaderNodeTextureParameterTriplanar" },
  1615. { "VisualShaderNodeTransformUniform", "VisualShaderNodeTransformParameter" },
  1616. { "VisualShaderNodeVec3Uniform", "VisualShaderNodeVec3Parameter" },
  1617. { "VisualShaderNodeUniform", "VisualShaderNodeParameter" },
  1618. { "VisualShaderNodeUniformRef", "VisualShaderNodeParameterRef" },
  1619. { "WebRTCDataChannelGDNative", "WebRTCDataChannelExtension" },
  1620. { "WebRTCMultiplayer", "WebRTCMultiplayerPeer" },
  1621. { "WebRTCPeerConnectionGDNative", "WebRTCPeerConnectionExtension" },
  1622. { "WindowDialog", "Window" },
  1623. { "XRAnchor", "XRAnchor3D" },
  1624. { "XRController", "XRController3D" },
  1625. { "XROrigin", "XROrigin3D" },
  1626. { "YSort", "Node2D" }, // CanvasItem has a new "y_sort_enabled" property.
  1627. { nullptr, nullptr },
  1628. };
  1629. const char *RenamesMap3To4::color_renames[][2] = {
  1630. { "aliceblue", "ALICE_BLUE" },
  1631. { "antiquewhite", "ANTIQUE_WHITE" },
  1632. { "aqua", "AQUA" },
  1633. { "aquamarine", "AQUAMARINE" },
  1634. { "azure", "AZURE" },
  1635. { "beige", "BEIGE" },
  1636. { "bisque", "BISQUE" },
  1637. { "black", "BLACK" },
  1638. { "blanchedalmond", "BLANCHED_ALMOND" },
  1639. { "blue", "BLUE" },
  1640. { "blueviolet", "BLUE_VIOLET" },
  1641. { "brown", "BROWN" },
  1642. { "burlywood", "BURLYWOOD" },
  1643. { "cadetblue", "CADET_BLUE" },
  1644. { "chartreuse", "CHARTREUSE" },
  1645. { "chocolate", "CHOCOLATE" },
  1646. { "coral", "CORAL" },
  1647. { "cornflowerblue", "CORNFLOWER_BLUE" },
  1648. { "cornsilk", "CORNSILK" },
  1649. { "crimson", "CRIMSON" },
  1650. { "cyan", "CYAN" },
  1651. { "darkblue", "DARK_BLUE" },
  1652. { "darkcyan", "DARK_CYAN" },
  1653. { "darkgoldenrod", "DARK_GOLDENROD" },
  1654. { "darkgray", "DARK_GRAY" },
  1655. { "darkgreen", "DARK_GREEN" },
  1656. { "darkkhaki", "DARK_KHAKI" },
  1657. { "darkmagenta", "DARK_MAGENTA" },
  1658. { "darkolivegreen", "DARK_OLIVE_GREEN" },
  1659. { "darkorange", "DARK_ORANGE" },
  1660. { "darkorchid", "DARK_ORCHID" },
  1661. { "darkred", "DARK_RED" },
  1662. { "darksalmon", "DARK_SALMON" },
  1663. { "darkseagreen", "DARK_SEA_GREEN" },
  1664. { "darkslateblue", "DARK_SLATE_BLUE" },
  1665. { "darkslategray", "DARK_SLATE_GRAY" },
  1666. { "darkturquoise", "DARK_TURQUOISE" },
  1667. { "darkviolet", "DARK_VIOLET" },
  1668. { "deeppink", "DEEP_PINK" },
  1669. { "deepskyblue", "DEEP_SKY_BLUE" },
  1670. { "dimgray", "DIM_GRAY" },
  1671. { "dodgerblue", "DODGER_BLUE" },
  1672. { "firebrick", "FIREBRICK" },
  1673. { "floralwhite", "FLORAL_WHITE" },
  1674. { "forestgreen", "FOREST_GREEN" },
  1675. { "fuchsia", "FUCHSIA" },
  1676. { "gainsboro", "GAINSBORO" },
  1677. { "ghostwhite", "GHOST_WHITE" },
  1678. { "gold", "GOLD" },
  1679. { "goldenrod", "GOLDENROD" },
  1680. { "gray", "GRAY" },
  1681. { "green", "GREEN" },
  1682. { "greenyellow", "GREEN_YELLOW" },
  1683. { "honeydew", "HONEYDEW" },
  1684. { "hotpink", "HOT_PINK" },
  1685. { "indianred", "INDIAN_RED" },
  1686. { "indigo", "INDIGO" },
  1687. { "ivory", "IVORY" },
  1688. { "khaki", "KHAKI" },
  1689. { "lavender", "LAVENDER" },
  1690. { "lavenderblush", "LAVENDER_BLUSH" },
  1691. { "lawngreen", "LAWN_GREEN" },
  1692. { "lemonchiffon", "LEMON_CHIFFON" },
  1693. { "lightblue", "LIGHT_BLUE" },
  1694. { "lightcoral", "LIGHT_CORAL" },
  1695. { "lightcyan", "LIGHT_CYAN" },
  1696. { "lightgoldenrod", "LIGHT_GOLDENROD" },
  1697. { "lightgray", "LIGHT_GRAY" },
  1698. { "lightgreen", "LIGHT_GREEN" },
  1699. { "lightpink", "LIGHT_PINK" },
  1700. { "lightsalmon", "LIGHT_SALMON" },
  1701. { "lightseagreen", "LIGHT_SEA_GREEN" },
  1702. { "lightskyblue", "LIGHT_SKY_BLUE" },
  1703. { "lightslategray", "LIGHT_SLATE_GRAY" },
  1704. { "lightsteelblue", "LIGHT_STEEL_BLUE" },
  1705. { "lightyellow", "LIGHT_YELLOW" },
  1706. { "lime", "LIME" },
  1707. { "limegreen", "LIME_GREEN" },
  1708. { "linen", "LINEN" },
  1709. { "magenta", "MAGENTA" },
  1710. { "maroon", "MAROON" },
  1711. { "mediumaquamarine", "MEDIUM_AQUAMARINE" },
  1712. { "mediumblue", "MEDIUM_BLUE" },
  1713. { "mediumorchid", "MEDIUM_ORCHID" },
  1714. { "mediumpurple", "MEDIUM_PURPLE" },
  1715. { "mediumseagreen", "MEDIUM_SEA_GREEN" },
  1716. { "mediumslateblue", "MEDIUM_SLATE_BLUE" },
  1717. { "mediumspringgreen", "MEDIUM_SPRING_GREEN" },
  1718. { "mediumturquoise", "MEDIUM_TURQUOISE" },
  1719. { "mediumvioletred", "MEDIUM_VIOLET_RED" },
  1720. { "midnightblue", "MIDNIGHT_BLUE" },
  1721. { "mintcream", "MINT_CREAM" },
  1722. { "mistyrose", "MISTY_ROSE" },
  1723. { "moccasin", "MOCCASIN" },
  1724. { "navajowhite", "NAVAJO_WHITE" },
  1725. { "navyblue", "NAVY_BLUE" },
  1726. { "oldlace", "OLD_LACE" },
  1727. { "olive", "OLIVE" },
  1728. { "olivedrab", "OLIVE_DRAB" },
  1729. { "orange", "ORANGE" },
  1730. { "orangered", "ORANGE_RED" },
  1731. { "orchid", "ORCHID" },
  1732. { "palegoldenrod", "PALE_GOLDENROD" },
  1733. { "palegreen", "PALE_GREEN" },
  1734. { "paleturquoise", "PALE_TURQUOISE" },
  1735. { "palevioletred", "PALE_VIOLET_RED" },
  1736. { "papayawhip", "PAPAYA_WHIP" },
  1737. { "peachpuff", "PEACH_PUFF" },
  1738. { "peru", "PERU" },
  1739. { "pink", "PINK" },
  1740. { "plum", "PLUM" },
  1741. { "powderblue", "POWDER_BLUE" },
  1742. { "purple", "PURPLE" },
  1743. { "rebeccapurple", "REBECCA_PURPLE" },
  1744. { "red", "RED" },
  1745. { "rosybrown", "ROSY_BROWN" },
  1746. { "royalblue", "ROYAL_BLUE" },
  1747. { "saddlebrown", "SADDLE_BROWN" },
  1748. { "salmon", "SALMON" },
  1749. { "sandybrown", "SANDY_BROWN" },
  1750. { "seagreen", "SEA_GREEN" },
  1751. { "seashell", "SEASHELL" },
  1752. { "sienna", "SIENNA" },
  1753. { "silver", "SILVER" },
  1754. { "skyblue", "SKY_BLUE" },
  1755. { "slateblue", "SLATE_BLUE" },
  1756. { "slategray", "SLATE_GRAY" },
  1757. { "snow", "SNOW" },
  1758. { "springgreen", "SPRING_GREEN" },
  1759. { "steelblue", "STEEL_BLUE" },
  1760. { "tan", "TAN" },
  1761. { "teal", "TEAL" },
  1762. { "thistle", "THISTLE" },
  1763. { "tomato", "TOMATO" },
  1764. { "transparent", "TRANSPARENT" },
  1765. { "turquoise", "TURQUOISE" },
  1766. { "violet", "VIOLET" },
  1767. { "webgray", "WEB_GRAY" },
  1768. { "webgreen", "WEB_GREEN" },
  1769. { "webmaroon", "WEB_MAROON" },
  1770. { "webpurple", "WEB_PURPLE" },
  1771. { "wheat", "WHEAT" },
  1772. { "white", "WHITE" },
  1773. { "whitesmoke", "WHITE_SMOKE" },
  1774. { "yellow", "YELLOW" },
  1775. { "yellowgreen", "YELLOW_GREEN" },
  1776. { nullptr, nullptr },
  1777. };
  1778. const char *RenamesMap3To4::theme_override_renames[][2] = {
  1779. // First rename the generic prefixes.
  1780. { "custom_colors/", "theme_override_colors/" },
  1781. { "custom_constants/", "theme_override_constants/" },
  1782. { "custom_fonts/", "theme_override_fonts/" },
  1783. { "custom_icons/", "theme_override_icons/" },
  1784. { "custom_styles/", "theme_override_styles/" },
  1785. // MarginContainer
  1786. // The margin_* properties are renamed to offset_* in a previous conversion step.
  1787. // This is fine everywhere except for the MarginContainer theme_override_constants.
  1788. { "theme_override_constants/offset_right", "theme_override_constants/margin_right" },
  1789. { "theme_override_constants/offset_top", "theme_override_constants/margin_top" },
  1790. { "theme_override_constants/offset_left", "theme_override_constants/margin_left" },
  1791. { "theme_override_constants/offset_bottom", "theme_override_constants/margin_bottom" },
  1792. // Panel/PanelContainer/TabContainer/PopupPanel/PopupMenu
  1793. { "theme_override_styles/panel", "theme_override_styles/panel" },
  1794. // TabContainer/Tabs(TabBar)
  1795. { "theme_override_styles/tab_bg", "theme_override_styles/tab_unselected" },
  1796. { "theme_override_styles/tab_fg", "theme_override_styles/tab_selected" },
  1797. // { "theme_override_styles/bg", "theme_override_styles/bg" }, // GraphEdit
  1798. // { "theme_override_styles/bg", "theme_override_styles/panel" }, // ScrollContainer
  1799. // { "theme_override_styles/bg", "theme_override_styles/background" }, // ProgressBar
  1800. // { "theme_override_styles/fg", "theme_override_styles/fill" }, // ProgressBar
  1801. { "theme_override_colors/font_color_hover", "theme_override_colors/font_hover_color" },
  1802. { "theme_override_colors/font_color_pressed", "theme_override_colors/font_pressed_color" },
  1803. { "theme_override_colors/font_color_disabled", "theme_override_colors/font_disabled_color" },
  1804. { "theme_override_colors/font_color_focus", "theme_override_colors/font_focus_color" },
  1805. { "theme_override_colors/font_color_hover_pressed", "theme_override_colors/font_hover_pressed_color" },
  1806. { "theme_override_colors/font_outline_modulate", "theme_override_colors/font_outline_color" },
  1807. { "theme_override_colors/font_color_shadow", "theme_override_colors/font_shadow_color" },
  1808. { "theme_override_constants/shadow_as_outline", "theme_override_constants/shadow_outline_size" }, // 0 or 1
  1809. { "theme_override_constants/table_vseparation", "theme_override_constants/table_v_separation" },
  1810. { "theme_override_constants/table_hseparation", "theme_override_constants/table_h_separation" },
  1811. { nullptr, nullptr },
  1812. };
  1813. #endif // DISABLE_DEPRECATED