scene_string_names.cpp 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  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-2020 Juan Linietsky, Ariel Manzur. */
  9. /* Copyright (c) 2014-2020 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_shader = StaticCString::create("shader/shader");
  44. shader_unshaded = StaticCString::create("shader/unshaded");
  45. shading_mode = StaticCString::create("shader/shading_mode");
  46. enter_tree = StaticCString::create("enter_tree");
  47. exit_tree = StaticCString::create("exit_tree");
  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. animation_changed = StaticCString::create("animation_changed");
  54. animation_started = StaticCString::create("animation_started");
  55. mouse_enter = StaticCString::create("mouse_enter");
  56. mouse_exit = StaticCString::create("mouse_exit");
  57. focus_enter = StaticCString::create("focus_enter");
  58. focus_exit = StaticCString::create("focus_exit");
  59. sort_children = StaticCString::create("sort_children");
  60. body_enter_shape = StaticCString::create("body_enter_shape");
  61. body_enter = StaticCString::create("body_enter");
  62. body_exit_shape = StaticCString::create("body_exit_shape");
  63. body_exit = StaticCString::create("body_exit");
  64. area_enter_shape = StaticCString::create("area_enter_shape");
  65. area_exit_shape = StaticCString::create("area_exit_shape");
  66. _body_inout = StaticCString::create("_body_inout");
  67. _area_inout = StaticCString::create("_area_inout");
  68. idle = StaticCString::create("idle");
  69. iteration = StaticCString::create("iteration");
  70. update = StaticCString::create("update");
  71. updated = StaticCString::create("updated");
  72. _get_gizmo_geometry = StaticCString::create("_get_gizmo_geometry");
  73. _can_gizmo_scale = StaticCString::create("_can_gizmo_scale");
  74. _fixed_process = StaticCString::create("_fixed_process");
  75. _process = StaticCString::create("_process");
  76. _enter_tree = StaticCString::create("_enter_tree");
  77. _exit_tree = StaticCString::create("_exit_tree");
  78. _enter_world = StaticCString::create("_enter_world");
  79. _exit_world = StaticCString::create("_exit_world");
  80. _ready = StaticCString::create("_ready");
  81. _update_scroll = StaticCString::create("_update_scroll");
  82. _update_xform = StaticCString::create("_update_xform");
  83. _proxgroup_add = StaticCString::create("_proxgroup_add");
  84. _proxgroup_remove = StaticCString::create("_proxgroup_remove");
  85. grouped = StaticCString::create("grouped");
  86. ungrouped = StaticCString::create("ungrouped");
  87. enter_screen = StaticCString::create("enter_screen");
  88. exit_screen = StaticCString::create("exit_screen");
  89. enter_viewport = StaticCString::create("enter_viewport");
  90. exit_viewport = StaticCString::create("exit_viewport");
  91. enter_camera = StaticCString::create("enter_camera");
  92. exit_camera = StaticCString::create("exit_camera");
  93. _body_enter_tree = StaticCString::create("_body_enter_tree");
  94. _body_exit_tree = StaticCString::create("_body_exit_tree");
  95. _area_enter_tree = StaticCString::create("_area_enter_tree");
  96. _area_exit_tree = StaticCString::create("_area_exit_tree");
  97. _input_event = StaticCString::create("_input_event");
  98. changed = StaticCString::create("changed");
  99. _shader_changed = StaticCString::create("_shader_changed");
  100. _spatial_editor_group = StaticCString::create("_spatial_editor_group");
  101. _request_gizmo = StaticCString::create("_request_gizmo");
  102. offset = StaticCString::create("offset");
  103. unit_offset = StaticCString::create("unit_offset");
  104. rotation_mode = StaticCString::create("rotation_mode");
  105. rotate = StaticCString::create("rotate");
  106. h_offset = StaticCString::create("h_offset");
  107. v_offset = StaticCString::create("v_offset");
  108. transform_pos = StaticCString::create("transform/pos");
  109. transform_rot = StaticCString::create("transform/rot");
  110. transform_scale = StaticCString::create("transform/scale");
  111. _update_remote = StaticCString::create("_update_remote");
  112. _update_pairs = StaticCString::create("_update_pairs");
  113. get_minimum_size = StaticCString::create("get_minimum_size");
  114. area_enter = StaticCString::create("area_enter");
  115. area_exit = StaticCString::create("area_exit");
  116. has_point = StaticCString::create("has_point");
  117. line_separation = StaticCString::create("line_separation");
  118. play_play = StaticCString::create("play/play");
  119. get_drag_data = StaticCString::create("get_drag_data");
  120. drop_data = StaticCString::create("drop_data");
  121. can_drop_data = StaticCString::create("can_drop_data");
  122. _im_update = StaticCString::create("_im_update");
  123. _queue_update = StaticCString::create("_queue_update");
  124. baked_light_changed = StaticCString::create("baked_light_changed");
  125. _baked_light_changed = StaticCString::create("_baked_light_changed");
  126. _mouse_enter = StaticCString::create("_mouse_enter");
  127. _mouse_exit = StaticCString::create("_mouse_exit");
  128. _pressed = StaticCString::create("_pressed");
  129. _toggled = StaticCString::create("_toggled");
  130. frame_changed = StaticCString::create("frame_changed");
  131. playback_speed = StaticCString::create("playback/speed");
  132. playback_active = StaticCString::create("playback/active");
  133. autoplay = StaticCString::create("autoplay");
  134. blend_times = StaticCString::create("blend_times");
  135. speed = StaticCString::create("speed");
  136. node_configuration_warning_changed = StaticCString::create("node_configuration_warning_changed");
  137. path_pp = NodePath("..");
  138. _default = StaticCString::create("default");
  139. for (int i = 0; i < MAX_MATERIALS; i++) {
  140. mesh_materials[i] = "material/" + itos(i);
  141. }
  142. _mesh_changed = StaticCString::create("_mesh_changed");
  143. }