renames_map_3_to_4.cpp 105 KB

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