renames_map_3_to_4.cpp 106 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868
  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. // { "frames", "sprite_frames" }, // AnimatedSprite2D, AnimatedSprite3D -- GH-73696
  1052. // { "percent_visible, "show_percentage }, // ProgressBar -- Breaks Label and RichTextLabel.
  1053. // { "pressed", "button_pressed" }, // BaseButton -- Would also rename the signal.
  1054. // { "process_mode", "process_callback" }, // AnimationTree, Camera2D -- conflicts with Node.
  1055. // { "wrap_enabled", "wrap_mode" }, // TextEdit -- Changed from bool to enum.
  1056. { "as_normalmap", "as_normal_map" }, // NoiseTexture
  1057. { "bbcode_text", "text" }, // RichTextLabel
  1058. { "bg_focus", "focus" }, // Theme
  1059. { "capture_device", "input_device" }, // AudioServer
  1060. { "caret_blink_speed", "caret_blink_interval" }, // TextEdit, LineEdit
  1061. { "caret_moving_by_right_click", "caret_move_on_right_click" }, // TextEdit
  1062. { "caret_position", "caret_column" }, // LineEdit
  1063. { "cast_to", "target_position" }, // RayCast2D, RayCast3D
  1064. { "check_vadjust", "check_v_offset" }, // Theme
  1065. { "close_h_ofs", "close_h_offset" }, // Theme
  1066. { "close_v_ofs", "close_v_offset" }, // Theme
  1067. { "commentfocus", "comment_focus" }, // Theme
  1068. { "contacts_reported", "max_contacts_reported" }, // RigidBody
  1069. { "depth_bias_enable", "depth_bias_enabled" }, // RDPipelineRasterizationState
  1070. { "drag_margin_bottom", "drag_bottom_margin" }, // Camera2D
  1071. { "drag_margin_h_enabled", "drag_horizontal_enabled" }, // Camera2D
  1072. { "drag_margin_left", "drag_left_margin" }, // Camera2D
  1073. { "drag_margin_right", "drag_right_margin" }, // Camera2D
  1074. { "drag_margin_top", "drag_top_margin" }, // Camera2D
  1075. { "drag_margin_v_enabled", "drag_vertical_enabled" }, // Camera2D
  1076. { "enabled_focus_mode", "focus_mode" }, // BaseButton - Removed
  1077. { "extents", "size" }, // BoxShape3D, LightmapGI, ReflectionProbe
  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. { "Extents", "Size" }, // BoxShape3D, LightmapGI, ReflectionProbe
  1176. { "ExtraSpacingBottom", "SpacingBottom" }, // Font
  1177. { "ExtraSpacingTop", "SpacingTop" }, // Font
  1178. { "FocusNeighbourBottom", "FocusNeighborBottom" }, // Control
  1179. { "FocusNeighbourLeft", "FocusNeighborLeft" }, // Control
  1180. { "FocusNeighbourRight", "FocusNeighborRight" }, // Control
  1181. { "FocusNeighbourTop", "FocusNeighborTop" }, // Control
  1182. { "FollowViewportEnable", "FollowViewportEnabled" }, // CanvasItem
  1183. { "FileIconModulate", "FileIconColor" }, // Theme
  1184. { "FilesDisabled", "FileDisabledColor" }, // Theme
  1185. { "FolderIconModulate", "FolderIconColor" }, // Theme
  1186. { "GlobalRateScale", "PlaybackSpeedScale" }, // AudioServer
  1187. { "GravityDistanceScale", "GravityPointDistanceScale" }, // Area2D
  1188. { "GravityVec", "GravityDirection" }, // Area2D
  1189. { "HintTooltip", "TooltipText" }, // Control
  1190. { "Hseparation", "HSeparation" }, // Theme
  1191. { "IconAlign", "IconAlignment" }, // Button
  1192. { "IterationsPerSecond", "PhysicsTicksPerSecond" }, // Engine
  1193. { "InvertEnable", "InvertEnabled" }, // Polygon2D
  1194. { "MarginBottom", "OffsetBottom" }, // Control -- Breaks NinePatchRect, StyleBox.
  1195. { "MarginLeft", "OffsetLeft" }, // Control -- Breaks NinePatchRect, StyleBox.
  1196. { "MarginRight", "OffsetRight" }, // Control -- Breaks NinePatchRect, StyleBox.
  1197. { "MarginTop", "OffsetTop" }, // Control -- Breaks NinePatchRect, StyleBox.
  1198. { "MidHeight", "Height" }, // CapsuleMesh
  1199. { "Navpoly", "NavigationPolygon" }, // NavigationRegion2D
  1200. { "Navmesh", "NavigationMesh" }, // NavigationRegion3D
  1201. { "NeighborDist", "NeighborDistance" }, // NavigationAgent2D, NavigationAgent3D
  1202. { "Octaves", "FractalOctaves" }, // OpenSimplexNoise -> FastNoiseLite
  1203. { "OffsetH", "DragHorizontalOffset" }, // Camera2D
  1204. { "OffsetV", "DragVerticalOffset" }, // Camera2D
  1205. { "OffDisabled", "UncheckedDisabled" }, // Theme
  1206. { "OnDisabled", "CheckedDisabled" }, // Theme
  1207. { "Oneshot", "OneShot" }, // AnimatedTexture
  1208. { "OutOfRangeMode", "MaxPolyphony" }, // AudioStreamPlayer3D
  1209. { "PauseMode", "ProcessMode" }, // Node
  1210. { "Perpendicular", "Orthogonal" }, // Vector2 - Only exists in C#
  1211. { "PhysicalScancode", "PhysicalKeycode" }, // InputEventKey
  1212. { "PopupExclusive", "Exclusive" }, // Window
  1213. { "ProximityFadeEnable", "ProximityFadeEnabled" }, // Material
  1214. { "RectPosition", "Position" }, // Control
  1215. { "RectGlobalPosition", "GlobalPosition" }, // Control
  1216. { "RectSize", "Size" }, // Control
  1217. { "RectMinSize", "CustomMinimumSize" }, // Control
  1218. { "RectRotation", "Rotation" }, // Control
  1219. { "RectScale", "Scale" }, // Control
  1220. { "RectPivotOffset", "PivotOffset" }, // Control
  1221. { "RectClipContent", "ClipContents" }, // Control
  1222. { "RefuseNewNetworkConnections", "RefuseNewConnections" }, // MultiplayerAPI
  1223. { "RegionFilterClip", "RegionFilterClipEnabled" }, // Sprite2D
  1224. { "ReverbBusEnable", "ReverbBusEnabled" }, // Area3D
  1225. { "Scancode", "Keycode" }, // InputEventKey
  1226. { "Selectedframe", "SelectedFrame" }, // Theme
  1227. { "SizeOverrideStretch", "Size2dOverrideStretch" }, // SubViewport
  1228. { "SlipsOnSlope", "SlideOnSlope" }, // SeparationRayShape2D
  1229. { "SmoothingEnabled", "PositionSmoothingEnabled" }, // Camera2D
  1230. { "SmoothingSpeed", "PositionSmoothingSpeed" }, // Camera2D
  1231. { "SsReflectionsDepthTolerance", "SsrDepthTolerance" }, // Environment
  1232. { "SsReflectionsEnabled", "SsrEnabled" }, // Environment
  1233. { "SsReflectionsFadeIn", "SsrFadeIn" }, // Environment
  1234. { "SsReflectionsFadeOut", "SsrFadeOut" }, // Environment
  1235. { "SsReflectionsMaxSteps", "SsrMaxSteps" }, // Environment
  1236. { "StateMachineSelectedframe", "StateMachineSelectedFrame" }, // Theme
  1237. { "SyntaxHighlighting", "SyntaxHighlighter" }, // TextEdit
  1238. { "TabAlign", "TabAlignment" }, // TabContainer
  1239. { "TableHseparation", "TableHSeparation" }, // Theme
  1240. { "TableVseparation", "TableVSeparation" }, // Theme
  1241. { "Tangent", "Orthogonal" }, // Vector2
  1242. { "TargetLocation", "TargetPosition" }, // NavigationAgent2D, NavigationAgent3D
  1243. { "Toplevel", "TopLevel" }, // Node
  1244. { "Translation", "Position" }, // Node3D
  1245. { "UnitDb", "VolumeDb" }, // AudioStreamPlayer3D
  1246. { "UnitOffset", "ProgressRatio" }, // PathFollow2D, PathFollow3D
  1247. { "Vseparation", "VSeparation" }, // Theme
  1248. { nullptr, nullptr },
  1249. };
  1250. const char *RenamesMap3To4::gdscript_signals_renames[][2] = {
  1251. // NOTE: Commented out renames are disabled because deemed not suitable for
  1252. // the current way the regex-based converter works.
  1253. // When uncommenting any of those as suitable for conversion, please move it
  1254. // to the block with other enabled conversions, ordered alphabetically, and
  1255. // make sure to add it to the C# rename map too.
  1256. // Too common words, users may use these names for variables or in comments.
  1257. // { "hide", "hidden" }, // CanvasItem
  1258. // { "changed", "settings_changed" }, // EditorSettings
  1259. { "about_to_show", "about_to_popup" }, // Popup
  1260. { "button_release", "button_released" }, // XRController3D
  1261. { "cancelled", "canceled" }, // AcceptDialog
  1262. { "item_double_clicked", "item_icon_double_clicked" }, // Tree
  1263. { "network_peer_connected", "peer_connected" }, // MultiplayerAPI
  1264. { "network_peer_disconnected", "peer_disconnected" }, // MultiplayerAPI
  1265. { "network_peer_packet", "peer_packet" }, // MultiplayerAPI
  1266. { "node_unselected", "node_deselected" }, // GraphEdit
  1267. { "offset_changed", "position_offset_changed" }, // GraphNode
  1268. { "settings_changed", "changed" }, // TileMap -- Breaks EditorSettings
  1269. { "skeleton_updated", "pose_updated" }, // Skeleton3D
  1270. { "tab_close", "tab_closed" }, // TextEdit
  1271. { "tab_hover", "tab_hovered" }, // TextEdit
  1272. { "text_entered", "text_submitted" }, // LineEdit
  1273. { nullptr, nullptr },
  1274. };
  1275. const char *RenamesMap3To4::csharp_signals_renames[][2] = {
  1276. { "AboutToShow", "AboutToPopup" }, // Popup
  1277. { "ButtonRelease", "ButtonReleased" }, // XRController3D
  1278. { "Cancelled", "Canceled" }, // AcceptDialog
  1279. { "ItemDoubleClicked", "ItemIconDoubleClicked" }, // Tree
  1280. { "NetworkPeerConnected", "PeerConnected" }, // MultiplayerAPI
  1281. { "NetworkPeerDisconnected", "PeerDisconnected" }, // MultiplayerAPI
  1282. { "NetworkPeerPacket", "PeerPacket" }, // MultiplayerAPI
  1283. { "NodeUnselected", "NodeDeselected" }, // GraphEdit
  1284. { "OffsetChanged", "PositionOffsetChanged" }, // GraphNode
  1285. { "SettingsChanged", "Changed" }, // TileMap -- Breaks EditorSettings
  1286. { "SkeletonUpdated", "PoseUpdated" }, //
  1287. { "TabClose", "TabClosed" }, // TextEdit
  1288. { "TabHover", "TabHovered" }, // TextEdit
  1289. { "TextEntered", "TextSubmitted" }, // LineEdit
  1290. { nullptr, nullptr },
  1291. };
  1292. const char *RenamesMap3To4::project_settings_renames[][2] = {
  1293. // Project setting paths in scripts include the category, but in project.godot,
  1294. // the category is the section delimiter, so we need to support the paths without it.
  1295. // The project.godot remaps are defined in the project_godot_renames, keep them in sync!
  1296. { "audio/channel_disable_threshold_db", "audio/buses/channel_disable_threshold_db" },
  1297. { "audio/channel_disable_time", "audio/buses/channel_disable_time" },
  1298. { "audio/default_bus_layout", "audio/buses/default_bus_layout" },
  1299. { "audio/driver", "audio/driver/driver" },
  1300. { "audio/enable_audio_input", "audio/driver/enable_input" },
  1301. { "audio/mix_rate", "audio/driver/mix_rate" },
  1302. { "audio/output_latency", "audio/driver/output_latency" },
  1303. { "audio/output_latency.web", "audio/driver/output_latency.web" },
  1304. { "audio/video_delay_compensation_ms", "audio/video/video_delay_compensation_ms" },
  1305. { "display/window/size/width", "display/window/size/viewport_width" },
  1306. { "display/window/size/height", "display/window/size/viewport_height" },
  1307. { "display/window/size/test_width", "display/window/size/window_width_override" },
  1308. { "display/window/size/test_height", "display/window/size/window_height_override" },
  1309. { "display/window/vsync/use_vsync", "display/window/vsync/vsync_mode" },
  1310. { "editor/main_run_args", "editor/run/main_run_args" },
  1311. { "gui/common/swap_ok_cancel", "gui/common/swap_cancel_ok" },
  1312. { "network/limits/debugger_stdout/max_chars_per_second", "network/limits/debugger/max_chars_per_second" },
  1313. { "network/limits/debugger_stdout/max_errors_per_second", "network/limits/debugger/max_errors_per_second" },
  1314. { "network/limits/debugger_stdout/max_messages_per_frame", "network/limits/debugger/max_queued_messages" },
  1315. { "network/limits/debugger_stdout/max_warnings_per_second", "network/limits/debugger/max_warnings_per_second" },
  1316. { "network/ssl/certificates", "network/tls/certificate_bundle_override" },
  1317. { "physics/2d/thread_model", "physics/2d/run_on_thread" }, // TODO: Not sure.
  1318. { "rendering/environment/default_clear_color", "rendering/environment/defaults/default_clear_color" },
  1319. { "rendering/environment/default_environment", "rendering/environment/defaults/default_environment" },
  1320. { "rendering/quality/depth_prepass/disable_for_vendors", "rendering/driver/depth_prepass/disable_for_vendors" },
  1321. { "rendering/quality/depth_prepass/enable", "rendering/driver/depth_prepass/enable" },
  1322. { "rendering/quality/shading/force_blinn_over_ggx", "rendering/shading/overrides/force_blinn_over_ggx" },
  1323. { "rendering/quality/shading/force_blinn_over_ggx.mobile", "rendering/shading/overrides/force_blinn_over_ggx.mobile" },
  1324. { "rendering/quality/shading/force_lambert_over_burley", "rendering/shading/overrides/force_lambert_over_burley" },
  1325. { "rendering/quality/shading/force_lambert_over_burley.mobile", "rendering/shading/overrides/force_lambert_over_burley.mobile" },
  1326. { "rendering/quality/shading/force_vertex_shading", "rendering/shading/overrides/force_vertex_shading" },
  1327. { "rendering/quality/shading/force_vertex_shading.mobile", "rendering/shading/overrides/force_vertex_shading.mobile" },
  1328. { "rendering/quality/shadow_atlas/quadrant_0_subdiv", "rendering/lights_and_shadows/shadow_atlas/quadrant_0_subdiv" },
  1329. { "rendering/quality/shadow_atlas/quadrant_1_subdiv", "rendering/lights_and_shadows/shadow_atlas/quadrant_1_subdiv" },
  1330. { "rendering/quality/shadow_atlas/quadrant_2_subdiv", "rendering/lights_and_shadows/shadow_atlas/quadrant_2_subdiv" },
  1331. { "rendering/quality/shadow_atlas/quadrant_3_subdiv", "rendering/lights_and_shadows/shadow_atlas/quadrant_3_subdiv" },
  1332. { "rendering/quality/shadow_atlas/size", "rendering/lights_and_shadows/shadow_atlas/size" },
  1333. { "rendering/quality/shadow_atlas/size.mobile", "rendering/lights_and_shadows/shadow_atlas/size.mobile" },
  1334. { "rendering/vram_compression/import_etc2", "rendering/textures/vram_compression/import_etc2_astc" },
  1335. { "rendering/vram_compression/import_s3tc", "rendering/textures/vram_compression/import_s3tc_bptc" },
  1336. { nullptr, nullptr },
  1337. };
  1338. const char *RenamesMap3To4::project_godot_renames[][2] = {
  1339. // Should be kept in sync with project_settings_renames.
  1340. { "channel_disable_threshold_db", "buses/channel_disable_threshold_db" },
  1341. { "channel_disable_time", "buses/channel_disable_time" },
  1342. { "default_bus_layout", "buses/default_bus_layout" },
  1343. // { "driver", "driver/driver" }, -- Risk of conflicts.
  1344. { "enable_audio_input", "driver/enable_input" },
  1345. // { "mix_rate", "driver/mix_rate" }, -- Risk of conflicts.
  1346. { "output_latency", "driver/output_latency" },
  1347. { "output_latency.web", "driver/output_latency.web" },
  1348. { "video_delay_compensation_ms", "video/video_delay_compensation_ms" },
  1349. { "window/size/width", "window/size/viewport_width" },
  1350. { "window/size/height", "window/size/viewport_height" },
  1351. { "window/size/test_width", "window/size/window_width_override" },
  1352. { "window/size/test_height", "window/size/window_height_override" },
  1353. { "window/vsync/use_vsync", "window/vsync/vsync_mode" },
  1354. { "main_run_args", "run/main_run_args" },
  1355. { "common/swap_ok_cancel", "common/swap_cancel_ok" },
  1356. { "limits/debugger_stdout/max_chars_per_second", "limits/debugger/max_chars_per_second" },
  1357. { "limits/debugger_stdout/max_errors_per_second", "limits/debugger/max_errors_per_second" },
  1358. { "limits/debugger_stdout/max_messages_per_frame", "limits/debugger/max_queued_messages" },
  1359. { "limits/debugger_stdout/max_warnings_per_second", "limits/debugger/max_warnings_per_second" },
  1360. { "ssl/certificates", "tls/certificate_bundle_override" },
  1361. { "2d/thread_model", "2d/run_on_thread" }, // TODO: Not sure.
  1362. { "environment/default_clear_color", "environment/defaults/default_clear_color" },
  1363. { "environment/default_environment", "environment/defaults/default_environment" },
  1364. { "quality/depth_prepass/disable_for_vendors", "driver/depth_prepass/disable_for_vendors" },
  1365. { "quality/depth_prepass/enable", "driver/depth_prepass/enable" },
  1366. { "quality/shading/force_blinn_over_ggx", "shading/overrides/force_blinn_over_ggx" },
  1367. { "quality/shading/force_blinn_over_ggx.mobile", "shading/overrides/force_blinn_over_ggx.mobile" },
  1368. { "quality/shading/force_lambert_over_burley", "shading/overrides/force_lambert_over_burley" },
  1369. { "quality/shading/force_lambert_over_burley.mobile", "shading/overrides/force_lambert_over_burley.mobile" },
  1370. { "quality/shading/force_vertex_shading", "shading/overrides/force_vertex_shading" },
  1371. { "quality/shading/force_vertex_shading.mobile", "shading/overrides/force_vertex_shading.mobile" },
  1372. { "quality/shadow_atlas/quadrant_0_subdiv", "lights_and_shadows/shadow_atlas/quadrant_0_subdiv" },
  1373. { "quality/shadow_atlas/quadrant_1_subdiv", "lights_and_shadows/shadow_atlas/quadrant_1_subdiv" },
  1374. { "quality/shadow_atlas/quadrant_2_subdiv", "lights_and_shadows/shadow_atlas/quadrant_2_subdiv" },
  1375. { "quality/shadow_atlas/quadrant_3_subdiv", "lights_and_shadows/shadow_atlas/quadrant_3_subdiv" },
  1376. { "quality/shadow_atlas/size", "lights_and_shadows/shadow_atlas/size" },
  1377. { "quality/shadow_atlas/size.mobile", "lights_and_shadows/shadow_atlas/size.mobile" },
  1378. { "vram_compression/import_etc2", "textures/vram_compression/import_etc2_astc" },
  1379. { "vram_compression/import_s3tc", "textures/vram_compression/import_s3tc_bptc" },
  1380. { nullptr, nullptr },
  1381. };
  1382. const char *RenamesMap3To4::input_map_renames[][2] = {
  1383. { ",\"alt\":", ",\"alt_pressed\":" },
  1384. { ",\"shift\":", ",\"shift_pressed\":" },
  1385. { ",\"control\":", ",\"ctrl_pressed\":" },
  1386. { ",\"meta\":", ",\"meta_pressed\":" },
  1387. { ",\"scancode\":", ",\"keycode\":" },
  1388. { ",\"physical_scancode\":", ",\"physical_keycode\":" },
  1389. { ",\"doubleclick\":", ",\"double_click\":" },
  1390. { nullptr, nullptr },
  1391. };
  1392. const char *RenamesMap3To4::builtin_types_renames[][2] = {
  1393. { "PoolByteArray", "PackedByteArray" },
  1394. { "PoolColorArray", "PackedColorArray" },
  1395. { "PoolIntArray", "PackedInt32Array" },
  1396. { "PoolRealArray", "PackedFloat32Array" },
  1397. { "PoolStringArray", "PackedStringArray" },
  1398. { "PoolVector2Array", "PackedVector2Array" },
  1399. { "PoolVector3Array", "PackedVector3Array" },
  1400. { "Quat", "Quaternion" },
  1401. { "Transform", "Transform3D" },
  1402. { nullptr, nullptr },
  1403. };
  1404. const char *RenamesMap3To4::shaders_renames[][2] = {
  1405. { "ALPHA_SCISSOR", "ALPHA_SCISSOR_THRESHOLD" },
  1406. { "CAMERA_MATRIX", "INV_VIEW_MATRIX" },
  1407. { "INV_CAMERA_MATRIX", "VIEW_MATRIX" },
  1408. { "NORMALMAP", "NORMAL_MAP" },
  1409. { "NORMALMAP_DEPTH", "NORMAL_MAP_DEPTH" },
  1410. { "TRANSMISSION", "BACKLIGHT" },
  1411. { "WORLD_MATRIX", "MODEL_MATRIX" },
  1412. { "depth_draw_alpha_prepass", "depth_prepass_alpha" },
  1413. { "hint_albedo", "source_color" },
  1414. { "hint_aniso", "hint_anisotropy" },
  1415. { "hint_black", "hint_default_black" },
  1416. { "hint_black_albedo", "hint_default_black" },
  1417. { "hint_color", "source_color" },
  1418. { "hint_white", "hint_default_white" },
  1419. { nullptr, nullptr },
  1420. };
  1421. const char *RenamesMap3To4::class_renames[][2] = {
  1422. // { "Particles", "GPUParticles3D" }, // Common word, and incompatible class.
  1423. // { "World", "World3D" }, // Too common.
  1424. // Risky as fairly common words, but worth it given how ubiquitous they are.
  1425. { "Area", "Area3D" },
  1426. { "Camera", "Camera3D" },
  1427. { "Path", "Path3D" },
  1428. { "Reference", "RefCounted" },
  1429. { "Shape", "Shape3D" },
  1430. { "Tabs", "TabBar" },
  1431. { "ARVRAnchor", "XRAnchor3D" },
  1432. { "ARVRCamera", "XRCamera3D" },
  1433. { "ARVRController", "XRController3D" },
  1434. { "ARVRInterface", "XRInterface" },
  1435. { "ARVRInterfaceGDNative", "Node3D" },
  1436. { "ARVROrigin", "XROrigin3D" },
  1437. { "ARVRPositionalTracker", "XRPositionalTracker" },
  1438. { "ARVRServer", "XRServer" },
  1439. { "AStar", "AStar3D" },
  1440. { "AnimatedSprite", "AnimatedSprite2D" },
  1441. { "AudioStreamOGGVorbis", "AudioStreamOggVorbis" },
  1442. { "AudioStreamRandomPitch", "AudioStreamRandomizer" },
  1443. { "AudioStreamSample", "AudioStreamWAV" },
  1444. { "BakedLightmap", "LightmapGI" },
  1445. { "BakedLightmapData", "LightmapGIData" },
  1446. { "BitmapFont", "FontFile" },
  1447. { "BoneAttachment", "BoneAttachment3D" },
  1448. { "BoxShape", "BoxShape3D" },
  1449. { "CPUParticles", "CPUParticles3D" },
  1450. { "CSGBox", "CSGBox3D" },
  1451. { "CSGCombiner", "CSGCombiner3D" },
  1452. { "CSGCylinder", "CSGCylinder3D" },
  1453. { "CSGMesh", "CSGMesh3D" },
  1454. { "CSGPolygon", "CSGPolygon3D" },
  1455. { "CSGPrimitive", "CSGPrimitive3D" },
  1456. { "CSGShape", "CSGShape3D" },
  1457. { "CSGSphere", "CSGSphere3D" },
  1458. { "CSGTorus", "CSGTorus3D" },
  1459. { "CapsuleShape", "CapsuleShape3D" },
  1460. { "ClippedCamera", "Camera3D" },
  1461. { "CollisionObject", "CollisionObject3D" },
  1462. { "CollisionPolygon", "CollisionPolygon3D" },
  1463. { "CollisionShape", "CollisionShape3D" },
  1464. { "ConcavePolygonShape", "ConcavePolygonShape3D" },
  1465. { "ConeTwistJoint", "ConeTwistJoint3D" },
  1466. { "ConvexPolygonShape", "ConvexPolygonShape3D" },
  1467. { "CubeMap", "Cubemap" },
  1468. { "CubeMesh", "BoxMesh" },
  1469. { "CylinderShape", "CylinderShape3D" },
  1470. { "DirectionalLight", "DirectionalLight3D" },
  1471. { "Directory", "DirAccess" },
  1472. { "DynamicFont", "FontFile" },
  1473. { "DynamicFontData", "FontFile" },
  1474. { "EditorNavigationMeshGenerator", "NavigationMeshGenerator" },
  1475. { "EditorSceneImporter", "EditorSceneFormatImporter" },
  1476. { "EditorSceneImporterFBX", "EditorSceneFormatImporterFBX" },
  1477. { "EditorSceneImporterGLTF", "EditorSceneFormatImporterGLTF" },
  1478. { "EditorSpatialGizmo", "EditorNode3DGizmo" },
  1479. { "EditorSpatialGizmoPlugin", "EditorNode3DGizmoPlugin" },
  1480. { "ExternalTexture", "ImageTexture" },
  1481. { "GIProbe", "VoxelGI" },
  1482. { "GIProbeData", "VoxelGIData" },
  1483. { "Generic6DOFJoint", "Generic6DOFJoint3D" },
  1484. { "GeometryInstance", "GeometryInstance3D" },
  1485. { "GradientTexture", "GradientTexture2D" },
  1486. { "HeightMapShape", "HeightMapShape3D" },
  1487. { "HingeJoint", "HingeJoint3D" },
  1488. { "IP_Unix", "IPUnix" },
  1489. { "ImmediateGeometry", "ImmediateMesh" },
  1490. { "ImmediateGeometry3D", "ImmediateMesh" },
  1491. { "InterpolatedCamera", "Camera3D" },
  1492. { "InterpolatedCamera3D", "Camera3D" },
  1493. { "JSONParseResult", "JSON" },
  1494. { "Joint", "Joint3D" },
  1495. { "KinematicBody", "CharacterBody3D" },
  1496. { "KinematicBody2D", "CharacterBody2D" },
  1497. { "KinematicCollision", "KinematicCollision3D" },
  1498. { "LargeTexture", "ImageTexture" },
  1499. { "Light", "Light3D" },
  1500. { "Light2D", "PointLight2D" },
  1501. { "LineShape2D", "WorldBoundaryShape2D" },
  1502. { "Listener", "AudioListener3D" },
  1503. { "Listener2D", "AudioListener2D" },
  1504. { "MeshInstance", "MeshInstance3D" },
  1505. { "MultiMeshInstance", "MultiMeshInstance3D" },
  1506. { "MultiplayerPeerGDNative", "MultiplayerPeerExtension" },
  1507. { "Navigation2DServer", "NavigationServer2D" },
  1508. { "NavigationAgent", "NavigationAgent3D" },
  1509. { "NavigationMeshInstance", "NavigationRegion3D" },
  1510. { "NavigationObstacle", "NavigationObstacle3D" },
  1511. { "NavigationPolygonInstance", "NavigationRegion2D" },
  1512. { "NavigationRegion", "NavigationRegion3D" },
  1513. { "NavigationServer", "NavigationServer3D" },
  1514. { "NetworkedMultiplayerCustom", "MultiplayerPeerExtension" },
  1515. { "NetworkedMultiplayerENet", "ENetMultiplayerPeer" },
  1516. { "NetworkedMultiplayerPeer", "MultiplayerPeer" },
  1517. { "Occluder", "OccluderInstance3D" },
  1518. { "OmniLight", "OmniLight3D" },
  1519. { "OpenSimplexNoise", "FastNoiseLite" },
  1520. { "PHashTranslation", "OptimizedTranslation" },
  1521. { "PacketPeerGDNative", "PacketPeerExtension" },
  1522. { "PanoramaSky", "Sky" },
  1523. { "Particles2D", "GPUParticles2D" },
  1524. { "ParticlesMaterial", "ParticleProcessMaterial" },
  1525. { "PathFollow", "PathFollow3D" },
  1526. { "PhysicalBone", "PhysicalBone3D" },
  1527. { "Physics2DDirectBodyState", "PhysicsDirectBodyState2D" },
  1528. { "Physics2DDirectSpaceState", "PhysicsDirectSpaceState2D" },
  1529. { "Physics2DServer", "PhysicsServer2D" },
  1530. { "Physics2DServerSW", "GodotPhysicsServer2D" },
  1531. { "Physics2DShapeQueryParameters", "PhysicsShapeQueryParameters2D" },
  1532. { "Physics2DTestMotionResult", "PhysicsTestMotionResult2D" },
  1533. { "PhysicsBody", "PhysicsBody3D" },
  1534. { "PhysicsDirectBodyState", "PhysicsDirectBodyState3D" },
  1535. { "PhysicsDirectSpaceState", "PhysicsDirectSpaceState3D" },
  1536. { "PhysicsServer", "PhysicsServer3D" },
  1537. { "PhysicsShapeQueryParameters", "PhysicsShapeQueryParameters3D" },
  1538. { "PhysicsTestMotionResult", "PhysicsTestMotionResult3D" },
  1539. { "PinJoint", "PinJoint3D" },
  1540. { "PlaneShape", "WorldBoundaryShape3D" },
  1541. { "PopupDialog", "Popup" },
  1542. { "Position2D", "Marker2D" },
  1543. { "Position3D", "Marker3D" },
  1544. { "ProceduralSky", "Sky" },
  1545. { "RayCast", "RayCast3D" },
  1546. { "RayShape", "SeparationRayShape3D" },
  1547. { "RayShape2D", "SeparationRayShape2D" },
  1548. { "RemoteTransform", "RemoteTransform3D" },
  1549. { "ResourceInteractiveLoader", "ResourceLoader" },
  1550. { "RigidBody", "RigidBody3D" },
  1551. { "SceneTreeTween", "Tween" },
  1552. { "ShortCut", "Shortcut" },
  1553. { "Skeleton", "Skeleton3D" },
  1554. { "SkeletonIK", "SkeletonIK3D" },
  1555. { "SliderJoint", "SliderJoint3D" },
  1556. { "SoftBody", "SoftBody3D" },
  1557. { "Spatial", "Node3D" },
  1558. { "SpatialGizmo", "Node3DGizmo" },
  1559. { "SpatialMaterial", "StandardMaterial3D" },
  1560. { "SphereShape", "SphereShape3D" },
  1561. { "SpotLight", "SpotLight3D" },
  1562. { "SpringArm", "SpringArm3D" },
  1563. { "Sprite", "Sprite2D" },
  1564. { "StaticBody", "StaticBody3D" },
  1565. { "StreamCubemap", "CompressedCubemap" },
  1566. { "StreamCubemapArray", "CompressedCubemapArray" },
  1567. { "StreamPeerGDNative", "StreamPeerExtension" },
  1568. { "StreamPeerSSL", "StreamPeerTLS" },
  1569. { "StreamTexture", "CompressedTexture2D" },
  1570. { "StreamTexture2D", "CompressedTexture2D" },
  1571. { "StreamTexture2DArray", "CompressedTexture2DArray" },
  1572. { "StreamTextureLayered", "CompressedTextureLayered" },
  1573. { "TCP_Server", "TCPServer" },
  1574. { "TextFile", "Node3D" },
  1575. { "Texture", "Texture2D" }, // May break TextureRect.
  1576. { "TextureArray", "Texture2DArray" },
  1577. { "TextureProgress", "TextureProgressBar" },
  1578. { "ToolButton", "Button" },
  1579. { "VehicleBody", "VehicleBody3D" },
  1580. { "VehicleWheel", "VehicleWheel3D" },
  1581. { "VideoPlayer", "VideoStreamPlayer" },
  1582. { "Viewport", "SubViewport" },
  1583. { "ViewportContainer", "SubViewportContainer" },
  1584. { "VisibilityEnabler", "VisibleOnScreenEnabler3D" },
  1585. { "VisibilityEnabler2D", "VisibleOnScreenEnabler2D" },
  1586. { "VisibilityNotifier", "VisibleOnScreenNotifier3D" },
  1587. { "VisibilityNotifier2D", "VisibleOnScreenNotifier2D" },
  1588. { "VisibilityNotifier3D", "VisibleOnScreenNotifier3D" },
  1589. { "VisualInstance", "VisualInstance3D" },
  1590. { "VisualServer", "RenderingServer" },
  1591. { "VisualShaderNodeCubeMap", "VisualShaderNodeCubemap" },
  1592. { "VisualShaderNodeScalarClamp", "VisualShaderNodeClamp" },
  1593. { "VisualShaderNodeScalarConstant", "VisualShaderNodeFloatConstant" },
  1594. { "VisualShaderNodeScalarFunc", "VisualShaderNodeFloatFunc" },
  1595. { "VisualShaderNodeScalarInterp", "VisualShaderNodeMix" },
  1596. { "VisualShaderNodeScalarOp", "VisualShaderNodeFloatOp" },
  1597. { "VisualShaderNodeScalarSmoothStep", "VisualShaderNodeSmoothStep" },
  1598. { "VisualShaderNodeScalarSwitch", "VisualShaderNodeSwitch" },
  1599. { "VisualShaderNodeScalarTransformMult", "VisualShaderNodeTransformOp" },
  1600. { "VisualShaderNodeTransformMult", "VisualShaderNode" },
  1601. { "VisualShaderNodeVectorClamp", "VisualShaderNodeClamp" },
  1602. { "VisualShaderNodeVectorInterp", "VisualShaderNodeMix" },
  1603. { "VisualShaderNodeVectorScalarMix", "VisualShaderNodeMix" },
  1604. { "VisualShaderNodeVectorScalarSmoothStep", "VisualShaderNodeSmoothStep" },
  1605. { "VisualShaderNodeVectorScalarStep", "VisualShaderNodeStep" },
  1606. { "VisualShaderNodeVectorSmoothStep", "VisualShaderNodeSmoothStep" },
  1607. { "VisualShaderNodeBooleanUniform", "VisualShaderNodeBooleanParameter" },
  1608. { "VisualShaderNodeColorUniform", "VisualShaderNodeColorParameter" },
  1609. { "VisualShaderNodeScalarUniform", "VisualShaderNodeFloatParameter" },
  1610. { "VisualShaderNodeCubemapUniform", "VisualShaderNodeCubemapParameter" },
  1611. { "VisualShaderNodeTextureUniform", "VisualShaderNodeTexture2DParameter" },
  1612. { "VisualShaderNodeTextureUniformTriplanar", "VisualShaderNodeTextureParameterTriplanar" },
  1613. { "VisualShaderNodeTransformUniform", "VisualShaderNodeTransformParameter" },
  1614. { "VisualShaderNodeVec3Uniform", "VisualShaderNodeVec3Parameter" },
  1615. { "VisualShaderNodeUniform", "VisualShaderNodeParameter" },
  1616. { "VisualShaderNodeUniformRef", "VisualShaderNodeParameterRef" },
  1617. { "WebRTCDataChannelGDNative", "WebRTCDataChannelExtension" },
  1618. { "WebRTCMultiplayer", "WebRTCMultiplayerPeer" },
  1619. { "WebRTCPeerConnectionGDNative", "WebRTCPeerConnectionExtension" },
  1620. { "WindowDialog", "Window" },
  1621. { "XRAnchor", "XRAnchor3D" },
  1622. { "XRController", "XRController3D" },
  1623. { "XROrigin", "XROrigin3D" },
  1624. { "YSort", "Node2D" }, // CanvasItem has a new "y_sort_enabled" property.
  1625. { nullptr, nullptr },
  1626. };
  1627. const char *RenamesMap3To4::color_renames[][2] = {
  1628. { "aliceblue", "ALICE_BLUE" },
  1629. { "antiquewhite", "ANTIQUE_WHITE" },
  1630. { "aqua", "AQUA" },
  1631. { "aquamarine", "AQUAMARINE" },
  1632. { "azure", "AZURE" },
  1633. { "beige", "BEIGE" },
  1634. { "bisque", "BISQUE" },
  1635. { "black", "BLACK" },
  1636. { "blanchedalmond", "BLANCHED_ALMOND" },
  1637. { "blue", "BLUE" },
  1638. { "blueviolet", "BLUE_VIOLET" },
  1639. { "brown", "BROWN" },
  1640. { "burlywood", "BURLYWOOD" },
  1641. { "cadetblue", "CADET_BLUE" },
  1642. { "chartreuse", "CHARTREUSE" },
  1643. { "chocolate", "CHOCOLATE" },
  1644. { "coral", "CORAL" },
  1645. { "cornflowerblue", "CORNFLOWER_BLUE" },
  1646. { "cornsilk", "CORNSILK" },
  1647. { "crimson", "CRIMSON" },
  1648. { "cyan", "CYAN" },
  1649. { "darkblue", "DARK_BLUE" },
  1650. { "darkcyan", "DARK_CYAN" },
  1651. { "darkgoldenrod", "DARK_GOLDENROD" },
  1652. { "darkgray", "DARK_GRAY" },
  1653. { "darkgreen", "DARK_GREEN" },
  1654. { "darkkhaki", "DARK_KHAKI" },
  1655. { "darkmagenta", "DARK_MAGENTA" },
  1656. { "darkolivegreen", "DARK_OLIVE_GREEN" },
  1657. { "darkorange", "DARK_ORANGE" },
  1658. { "darkorchid", "DARK_ORCHID" },
  1659. { "darkred", "DARK_RED" },
  1660. { "darksalmon", "DARK_SALMON" },
  1661. { "darkseagreen", "DARK_SEA_GREEN" },
  1662. { "darkslateblue", "DARK_SLATE_BLUE" },
  1663. { "darkslategray", "DARK_SLATE_GRAY" },
  1664. { "darkturquoise", "DARK_TURQUOISE" },
  1665. { "darkviolet", "DARK_VIOLET" },
  1666. { "deeppink", "DEEP_PINK" },
  1667. { "deepskyblue", "DEEP_SKY_BLUE" },
  1668. { "dimgray", "DIM_GRAY" },
  1669. { "dodgerblue", "DODGER_BLUE" },
  1670. { "firebrick", "FIREBRICK" },
  1671. { "floralwhite", "FLORAL_WHITE" },
  1672. { "forestgreen", "FOREST_GREEN" },
  1673. { "fuchsia", "FUCHSIA" },
  1674. { "gainsboro", "GAINSBORO" },
  1675. { "ghostwhite", "GHOST_WHITE" },
  1676. { "gold", "GOLD" },
  1677. { "goldenrod", "GOLDENROD" },
  1678. { "gray", "GRAY" },
  1679. { "green", "GREEN" },
  1680. { "greenyellow", "GREEN_YELLOW" },
  1681. { "honeydew", "HONEYDEW" },
  1682. { "hotpink", "HOT_PINK" },
  1683. { "indianred", "INDIAN_RED" },
  1684. { "indigo", "INDIGO" },
  1685. { "ivory", "IVORY" },
  1686. { "khaki", "KHAKI" },
  1687. { "lavender", "LAVENDER" },
  1688. { "lavenderblush", "LAVENDER_BLUSH" },
  1689. { "lawngreen", "LAWN_GREEN" },
  1690. { "lemonchiffon", "LEMON_CHIFFON" },
  1691. { "lightblue", "LIGHT_BLUE" },
  1692. { "lightcoral", "LIGHT_CORAL" },
  1693. { "lightcyan", "LIGHT_CYAN" },
  1694. { "lightgoldenrod", "LIGHT_GOLDENROD" },
  1695. { "lightgray", "LIGHT_GRAY" },
  1696. { "lightgreen", "LIGHT_GREEN" },
  1697. { "lightpink", "LIGHT_PINK" },
  1698. { "lightsalmon", "LIGHT_SALMON" },
  1699. { "lightseagreen", "LIGHT_SEA_GREEN" },
  1700. { "lightskyblue", "LIGHT_SKY_BLUE" },
  1701. { "lightslategray", "LIGHT_SLATE_GRAY" },
  1702. { "lightsteelblue", "LIGHT_STEEL_BLUE" },
  1703. { "lightyellow", "LIGHT_YELLOW" },
  1704. { "lime", "LIME" },
  1705. { "limegreen", "LIME_GREEN" },
  1706. { "linen", "LINEN" },
  1707. { "magenta", "MAGENTA" },
  1708. { "maroon", "MAROON" },
  1709. { "mediumaquamarine", "MEDIUM_AQUAMARINE" },
  1710. { "mediumblue", "MEDIUM_BLUE" },
  1711. { "mediumorchid", "MEDIUM_ORCHID" },
  1712. { "mediumpurple", "MEDIUM_PURPLE" },
  1713. { "mediumseagreen", "MEDIUM_SEA_GREEN" },
  1714. { "mediumslateblue", "MEDIUM_SLATE_BLUE" },
  1715. { "mediumspringgreen", "MEDIUM_SPRING_GREEN" },
  1716. { "mediumturquoise", "MEDIUM_TURQUOISE" },
  1717. { "mediumvioletred", "MEDIUM_VIOLET_RED" },
  1718. { "midnightblue", "MIDNIGHT_BLUE" },
  1719. { "mintcream", "MINT_CREAM" },
  1720. { "mistyrose", "MISTY_ROSE" },
  1721. { "moccasin", "MOCCASIN" },
  1722. { "navajowhite", "NAVAJO_WHITE" },
  1723. { "navyblue", "NAVY_BLUE" },
  1724. { "oldlace", "OLD_LACE" },
  1725. { "olive", "OLIVE" },
  1726. { "olivedrab", "OLIVE_DRAB" },
  1727. { "orange", "ORANGE" },
  1728. { "orangered", "ORANGE_RED" },
  1729. { "orchid", "ORCHID" },
  1730. { "palegoldenrod", "PALE_GOLDENROD" },
  1731. { "palegreen", "PALE_GREEN" },
  1732. { "paleturquoise", "PALE_TURQUOISE" },
  1733. { "palevioletred", "PALE_VIOLET_RED" },
  1734. { "papayawhip", "PAPAYA_WHIP" },
  1735. { "peachpuff", "PEACH_PUFF" },
  1736. { "peru", "PERU" },
  1737. { "pink", "PINK" },
  1738. { "plum", "PLUM" },
  1739. { "powderblue", "POWDER_BLUE" },
  1740. { "purple", "PURPLE" },
  1741. { "rebeccapurple", "REBECCA_PURPLE" },
  1742. { "red", "RED" },
  1743. { "rosybrown", "ROSY_BROWN" },
  1744. { "royalblue", "ROYAL_BLUE" },
  1745. { "saddlebrown", "SADDLE_BROWN" },
  1746. { "salmon", "SALMON" },
  1747. { "sandybrown", "SANDY_BROWN" },
  1748. { "seagreen", "SEA_GREEN" },
  1749. { "seashell", "SEASHELL" },
  1750. { "sienna", "SIENNA" },
  1751. { "silver", "SILVER" },
  1752. { "skyblue", "SKY_BLUE" },
  1753. { "slateblue", "SLATE_BLUE" },
  1754. { "slategray", "SLATE_GRAY" },
  1755. { "snow", "SNOW" },
  1756. { "springgreen", "SPRING_GREEN" },
  1757. { "steelblue", "STEEL_BLUE" },
  1758. { "tan", "TAN" },
  1759. { "teal", "TEAL" },
  1760. { "thistle", "THISTLE" },
  1761. { "tomato", "TOMATO" },
  1762. { "transparent", "TRANSPARENT" },
  1763. { "turquoise", "TURQUOISE" },
  1764. { "violet", "VIOLET" },
  1765. { "webgray", "WEB_GRAY" },
  1766. { "webgreen", "WEB_GREEN" },
  1767. { "webmaroon", "WEB_MAROON" },
  1768. { "webpurple", "WEB_PURPLE" },
  1769. { "wheat", "WHEAT" },
  1770. { "white", "WHITE" },
  1771. { "whitesmoke", "WHITE_SMOKE" },
  1772. { "yellow", "YELLOW" },
  1773. { "yellowgreen", "YELLOW_GREEN" },
  1774. { nullptr, nullptr },
  1775. };
  1776. const char *RenamesMap3To4::theme_override_renames[][2] = {
  1777. // First rename the generic prefixes.
  1778. { "custom_colors/", "theme_override_colors/" },
  1779. { "custom_constants/", "theme_override_constants/" },
  1780. { "custom_fonts/", "theme_override_fonts/" },
  1781. { "custom_icons/", "theme_override_icons/" },
  1782. { "custom_styles/", "theme_override_styles/" },
  1783. // MarginContainer
  1784. // The margin_* properties are renamed to offset_* in a previous conversion step.
  1785. // This is fine everywhere except for the MarginContainer theme_override_constants.
  1786. { "theme_override_constants/offset_right", "theme_override_constants/margin_right" },
  1787. { "theme_override_constants/offset_top", "theme_override_constants/margin_top" },
  1788. { "theme_override_constants/offset_left", "theme_override_constants/margin_left" },
  1789. { "theme_override_constants/offset_bottom", "theme_override_constants/margin_bottom" },
  1790. // Panel/PanelContainer/TabContainer/PopupPanel/PopupMenu
  1791. { "theme_override_styles/panel", "theme_override_styles/panel" },
  1792. // TabContainer/Tabs(TabBar)
  1793. { "theme_override_styles/tab_bg", "theme_override_styles/tab_unselected" },
  1794. { "theme_override_styles/tab_fg", "theme_override_styles/tab_selected" },
  1795. // { "theme_override_styles/bg", "theme_override_styles/bg" }, // GraphEdit
  1796. // { "theme_override_styles/bg", "theme_override_styles/panel" }, // ScrollContainer
  1797. // { "theme_override_styles/bg", "theme_override_styles/background" }, // ProgressBar
  1798. // { "theme_override_styles/fg", "theme_override_styles/fill" }, // ProgressBar
  1799. { "theme_override_colors/font_color_hover", "theme_override_colors/font_hover_color" },
  1800. { "theme_override_colors/font_color_pressed", "theme_override_colors/font_pressed_color" },
  1801. { "theme_override_colors/font_color_disabled", "theme_override_colors/font_disabled_color" },
  1802. { "theme_override_colors/font_color_focus", "theme_override_colors/font_focus_color" },
  1803. { "theme_override_colors/font_color_hover_pressed", "theme_override_colors/font_hover_pressed_color" },
  1804. { "theme_override_colors/font_outline_modulate", "theme_override_colors/font_outline_color" },
  1805. { "theme_override_colors/font_color_shadow", "theme_override_colors/font_shadow_color" },
  1806. { "theme_override_constants/shadow_as_outline", "theme_override_constants/shadow_outline_size" }, // 0 or 1
  1807. { "theme_override_constants/table_vseparation", "theme_override_constants/table_v_separation" },
  1808. { "theme_override_constants/table_hseparation", "theme_override_constants/table_h_separation" },
  1809. { nullptr, nullptr },
  1810. };
  1811. #endif // DISABLE_DEPRECATED