scene_string_names.cpp 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  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-2017 Juan Linietsky, Ariel Manzur. */
  9. /* Copyright (c) 2014-2017 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_exited = StaticCString::create("tree_exited");
  48. item_rect_changed = StaticCString::create("item_rect_changed");
  49. size_flags_changed = StaticCString::create("size_flags_changed");
  50. minimum_size_changed = StaticCString::create("minimum_size_changed");
  51. sleeping_state_changed = StaticCString::create("sleeping_state_changed");
  52. finished = StaticCString::create("finished");
  53. emission_finished = StaticCString::create("emission_finished");
  54. animation_finished = StaticCString::create("animation_finished");
  55. animation_changed = StaticCString::create("animation_changed");
  56. animation_started = StaticCString::create("animation_started");
  57. mouse_entered = StaticCString::create("mouse_entered");
  58. mouse_exited = StaticCString::create("mouse_exited");
  59. focus_entered = StaticCString::create("focus_entered");
  60. focus_exited = StaticCString::create("focus_exited");
  61. sort_children = StaticCString::create("sort_children");
  62. body_shape_entered = StaticCString::create("body_shape_entered");
  63. body_entered = StaticCString::create("body_entered");
  64. body_shape_exited = StaticCString::create("body_shape_exited");
  65. body_exited = StaticCString::create("body_exited");
  66. area_shape_entered = StaticCString::create("area_shape_entered");
  67. area_shape_exited = StaticCString::create("area_shape_exited");
  68. _body_inout = StaticCString::create("_body_inout");
  69. _area_inout = StaticCString::create("_area_inout");
  70. idle = StaticCString::create("idle");
  71. iteration = StaticCString::create("iteration");
  72. update = StaticCString::create("update");
  73. updated = StaticCString::create("updated");
  74. _get_gizmo_geometry = StaticCString::create("_get_gizmo_geometry");
  75. _can_gizmo_scale = StaticCString::create("_can_gizmo_scale");
  76. _physics_process = StaticCString::create("_physics_process");
  77. _process = StaticCString::create("_process");
  78. _enter_tree = StaticCString::create("_enter_tree");
  79. _exit_tree = StaticCString::create("_exit_tree");
  80. _enter_world = StaticCString::create("_enter_world");
  81. _exit_world = StaticCString::create("_exit_world");
  82. _ready = StaticCString::create("_ready");
  83. _update_scroll = StaticCString::create("_update_scroll");
  84. _update_xform = StaticCString::create("_update_xform");
  85. _proxgroup_add = StaticCString::create("_proxgroup_add");
  86. _proxgroup_remove = StaticCString::create("_proxgroup_remove");
  87. grouped = StaticCString::create("grouped");
  88. ungrouped = StaticCString::create("ungrouped");
  89. screen_entered = StaticCString::create("screen_entered");
  90. screen_exited = StaticCString::create("screen_exited");
  91. viewport_entered = StaticCString::create("viewport_entered");
  92. viewport_exited = StaticCString::create("viewport_exited");
  93. camera_entered = StaticCString::create("camera_entered");
  94. camera_exited = StaticCString::create("camera_exited");
  95. _body_enter_tree = StaticCString::create("_body_enter_tree");
  96. _body_exit_tree = StaticCString::create("_body_exit_tree");
  97. _area_enter_tree = StaticCString::create("_area_enter_tree");
  98. _area_exit_tree = StaticCString::create("_area_exit_tree");
  99. _input = StaticCString::create("_input");
  100. _input_event = StaticCString::create("_input_event");
  101. gui_input = StaticCString::create("gui_input");
  102. _gui_input = StaticCString::create("_gui_input");
  103. _unhandled_input = StaticCString::create("_unhandled_input");
  104. _unhandled_key_input = StaticCString::create("_unhandled_key_input");
  105. changed = StaticCString::create("changed");
  106. _shader_changed = StaticCString::create("_shader_changed");
  107. _spatial_editor_group = StaticCString::create("_spatial_editor_group");
  108. _request_gizmo = StaticCString::create("_request_gizmo");
  109. offset = StaticCString::create("offset");
  110. unit_offset = StaticCString::create("unit_offset");
  111. rotation_mode = StaticCString::create("rotation_mode");
  112. rotate = StaticCString::create("rotate");
  113. h_offset = StaticCString::create("h_offset");
  114. v_offset = StaticCString::create("v_offset");
  115. transform_pos = StaticCString::create("position");
  116. transform_rot = StaticCString::create("rotation_deg");
  117. transform_scale = StaticCString::create("scale");
  118. _update_remote = StaticCString::create("_update_remote");
  119. _update_pairs = StaticCString::create("_update_pairs");
  120. _get_minimum_size = StaticCString::create("_get_minimum_size");
  121. area_entered = StaticCString::create("area_entered");
  122. area_exited = StaticCString::create("area_exited");
  123. has_point = StaticCString::create("has_point");
  124. line_separation = StaticCString::create("line_separation");
  125. get_drag_data = StaticCString::create("get_drag_data");
  126. drop_data = StaticCString::create("drop_data");
  127. can_drop_data = StaticCString::create("can_drop_data");
  128. _im_update = StaticCString::create("_im_update");
  129. _queue_update = StaticCString::create("_queue_update");
  130. baked_light_changed = StaticCString::create("baked_light_changed");
  131. _baked_light_changed = StaticCString::create("_baked_light_changed");
  132. _mouse_enter = StaticCString::create("_mouse_enter");
  133. _mouse_exit = StaticCString::create("_mouse_exit");
  134. _pressed = StaticCString::create("_pressed");
  135. _toggled = StaticCString::create("_toggled");
  136. frame_changed = StaticCString::create("frame_changed");
  137. playback_speed = StaticCString::create("playback/speed");
  138. playback_active = StaticCString::create("playback/active");
  139. autoplay = StaticCString::create("autoplay");
  140. blend_times = StaticCString::create("blend_times");
  141. speed = StaticCString::create("speed");
  142. node_configuration_warning_changed = StaticCString::create("node_configuration_warning_changed");
  143. path_pp = NodePath("..");
  144. _default = StaticCString::create("default");
  145. for (int i = 0; i < MAX_MATERIALS; i++) {
  146. mesh_materials[i] = "material/" + itos(i);
  147. }
  148. _mesh_changed = StaticCString::create("_mesh_changed");
  149. }