scene_string_names.cpp 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. /*************************************************************************/
  2. /* scene_string_names.cpp */
  3. /*************************************************************************/
  4. /* This file is part of: */
  5. /* GODOT ENGINE */
  6. /* https://godotengine.org */
  7. /*************************************************************************/
  8. /* Copyright (c) 2007-2021 Juan Linietsky, Ariel Manzur. */
  9. /* Copyright (c) 2014-2021 Godot Engine contributors (cf. AUTHORS.md). */
  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 "scene_string_names.h"
  31. SceneStringNames *SceneStringNames::singleton = NULL;
  32. SceneStringNames::SceneStringNames() {
  33. _estimate_cost = StaticCString::create("_estimate_cost");
  34. _compute_cost = StaticCString::create("_compute_cost");
  35. resized = StaticCString::create("resized");
  36. dot = StaticCString::create(".");
  37. doubledot = StaticCString::create("..");
  38. draw = StaticCString::create("draw");
  39. _draw = StaticCString::create("_draw");
  40. hide = StaticCString::create("hide");
  41. visibility_changed = StaticCString::create("visibility_changed");
  42. input_event = StaticCString::create("input_event");
  43. shader = StaticCString::create("shader");
  44. shader_unshaded = StaticCString::create("shader/unshaded");
  45. shading_mode = StaticCString::create("shader/shading_mode");
  46. tree_entered = StaticCString::create("tree_entered");
  47. tree_exiting = StaticCString::create("tree_exiting");
  48. tree_exited = StaticCString::create("tree_exited");
  49. ready = StaticCString::create("ready");
  50. item_rect_changed = StaticCString::create("item_rect_changed");
  51. size_flags_changed = StaticCString::create("size_flags_changed");
  52. minimum_size_changed = StaticCString::create("minimum_size_changed");
  53. sleeping_state_changed = StaticCString::create("sleeping_state_changed");
  54. finished = StaticCString::create("finished");
  55. emission_finished = StaticCString::create("emission_finished");
  56. animation_finished = StaticCString::create("animation_finished");
  57. animation_changed = StaticCString::create("animation_changed");
  58. animation_started = StaticCString::create("animation_started");
  59. mouse_entered = StaticCString::create("mouse_entered");
  60. mouse_exited = StaticCString::create("mouse_exited");
  61. focus_entered = StaticCString::create("focus_entered");
  62. focus_exited = StaticCString::create("focus_exited");
  63. sort_children = StaticCString::create("sort_children");
  64. body_shape_entered = StaticCString::create("body_shape_entered");
  65. body_entered = StaticCString::create("body_entered");
  66. body_shape_exited = StaticCString::create("body_shape_exited");
  67. body_exited = StaticCString::create("body_exited");
  68. area_shape_entered = StaticCString::create("area_shape_entered");
  69. area_shape_exited = StaticCString::create("area_shape_exited");
  70. _body_inout = StaticCString::create("_body_inout");
  71. _area_inout = StaticCString::create("_area_inout");
  72. idle = StaticCString::create("idle");
  73. iteration = StaticCString::create("iteration");
  74. update = StaticCString::create("update");
  75. updated = StaticCString::create("updated");
  76. _get_gizmo_geometry = StaticCString::create("_get_gizmo_geometry");
  77. _can_gizmo_scale = StaticCString::create("_can_gizmo_scale");
  78. _physics_process = StaticCString::create("_physics_process");
  79. _process = StaticCString::create("_process");
  80. _enter_tree = StaticCString::create("_enter_tree");
  81. _exit_tree = StaticCString::create("_exit_tree");
  82. _enter_world = StaticCString::create("_enter_world");
  83. _exit_world = StaticCString::create("_exit_world");
  84. _ready = StaticCString::create("_ready");
  85. _update_scroll = StaticCString::create("_update_scroll");
  86. _update_xform = StaticCString::create("_update_xform");
  87. _clips_input = StaticCString::create("_clips_input");
  88. _proxgroup_add = StaticCString::create("_proxgroup_add");
  89. _proxgroup_remove = StaticCString::create("_proxgroup_remove");
  90. grouped = StaticCString::create("grouped");
  91. ungrouped = StaticCString::create("ungrouped");
  92. screen_entered = StaticCString::create("screen_entered");
  93. screen_exited = StaticCString::create("screen_exited");
  94. viewport_entered = StaticCString::create("viewport_entered");
  95. viewport_exited = StaticCString::create("viewport_exited");
  96. camera_entered = StaticCString::create("camera_entered");
  97. camera_exited = StaticCString::create("camera_exited");
  98. _body_enter_tree = StaticCString::create("_body_enter_tree");
  99. _body_exit_tree = StaticCString::create("_body_exit_tree");
  100. _area_enter_tree = StaticCString::create("_area_enter_tree");
  101. _area_exit_tree = StaticCString::create("_area_exit_tree");
  102. _input = StaticCString::create("_input");
  103. _input_event = StaticCString::create("_input_event");
  104. gui_input = StaticCString::create("gui_input");
  105. _gui_input = StaticCString::create("_gui_input");
  106. _unhandled_input = StaticCString::create("_unhandled_input");
  107. _unhandled_key_input = StaticCString::create("_unhandled_key_input");
  108. changed = StaticCString::create("changed");
  109. _shader_changed = StaticCString::create("_shader_changed");
  110. _spatial_editor_group = StaticCString::create("_spatial_editor_group");
  111. _request_gizmo = StaticCString::create("_request_gizmo");
  112. offset = StaticCString::create("offset");
  113. unit_offset = StaticCString::create("unit_offset");
  114. rotation_mode = StaticCString::create("rotation_mode");
  115. rotate = StaticCString::create("rotate");
  116. h_offset = StaticCString::create("h_offset");
  117. v_offset = StaticCString::create("v_offset");
  118. transform_pos = StaticCString::create("position");
  119. transform_rot = StaticCString::create("rotation_degrees");
  120. transform_scale = StaticCString::create("scale");
  121. _update_remote = StaticCString::create("_update_remote");
  122. _update_pairs = StaticCString::create("_update_pairs");
  123. _get_minimum_size = StaticCString::create("_get_minimum_size");
  124. area_entered = StaticCString::create("area_entered");
  125. area_exited = StaticCString::create("area_exited");
  126. has_point = StaticCString::create("has_point");
  127. line_separation = StaticCString::create("line_separation");
  128. get_drag_data = StaticCString::create("get_drag_data");
  129. drop_data = StaticCString::create("drop_data");
  130. can_drop_data = StaticCString::create("can_drop_data");
  131. _im_update = StaticCString::create("_im_update");
  132. _queue_update = StaticCString::create("_queue_update");
  133. baked_light_changed = StaticCString::create("baked_light_changed");
  134. _baked_light_changed = StaticCString::create("_baked_light_changed");
  135. _mouse_enter = StaticCString::create("_mouse_enter");
  136. _mouse_exit = StaticCString::create("_mouse_exit");
  137. _pressed = StaticCString::create("_pressed");
  138. _toggled = StaticCString::create("_toggled");
  139. frame_changed = StaticCString::create("frame_changed");
  140. playback_speed = StaticCString::create("playback/speed");
  141. playback_active = StaticCString::create("playback/active");
  142. autoplay = StaticCString::create("autoplay");
  143. blend_times = StaticCString::create("blend_times");
  144. speed = StaticCString::create("speed");
  145. node_configuration_warning_changed = StaticCString::create("node_configuration_warning_changed");
  146. output = StaticCString::create("output");
  147. path_pp = NodePath("..");
  148. _default = StaticCString::create("default");
  149. for (int i = 0; i < MAX_MATERIALS; i++) {
  150. mesh_materials[i] = "material/" + itos(i);
  151. }
  152. _mesh_changed = StaticCString::create("_mesh_changed");
  153. parameters_base_path = "parameters/";
  154. tracks_changed = "tracks_changed";
  155. }