diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2017-03-05 16:44:50 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2017-03-05 16:44:50 +0100 |
commit | 5dbf1809c6e3e905b94b8764e99491e608122261 (patch) | |
tree | 5e5a5360db15d86d59ec8c6e4f7eb511388c5a9a /scene/scene_string_names.cpp | |
parent | 45438e9918d421b244bfd7776a30e67dc7f2d3e3 (diff) |
A Whole New World (clang-format edition)
I can show you the code
Pretty, with proper whitespace
Tell me, coder, now when did
You last write readable code?
I can open your eyes
Make you see your bad indent
Force you to respect the style
The core devs agreed upon
A whole new world
A new fantastic code format
A de facto standard
With some sugar
Enforced with clang-format
A whole new world
A dazzling style we all dreamed of
And when we read it through
It's crystal clear
That now we're in a whole new world of code
Diffstat (limited to 'scene/scene_string_names.cpp')
-rw-r--r-- | scene/scene_string_names.cpp | 186 |
1 files changed, 93 insertions, 93 deletions
diff --git a/scene/scene_string_names.cpp b/scene/scene_string_names.cpp index d3a913680b..ae939ead5f 100644 --- a/scene/scene_string_names.cpp +++ b/scene/scene_string_names.cpp @@ -28,39 +28,39 @@ /*************************************************************************/ #include "scene_string_names.h" -SceneStringNames* SceneStringNames::singleton=NULL; +SceneStringNames *SceneStringNames::singleton = NULL; SceneStringNames::SceneStringNames() { - resized=StaticCString::create("resized"); - dot=StaticCString::create("."); - doubledot=StaticCString::create(".."); - draw=StaticCString::create("draw"); - _draw=StaticCString::create("_draw"); - hide=StaticCString::create("hide"); - visibility_changed=StaticCString::create("visibility_changed"); - input_event=StaticCString::create("input_event"); - shader_shader=StaticCString::create("shader/shader"); - shader_unshaded=StaticCString::create("shader/unshaded"); - shading_mode=StaticCString::create("shader/shading_mode"); - tree_entered=StaticCString::create("tree_entered"); - tree_exited=StaticCString::create("tree_exited"); - item_rect_changed=StaticCString::create("item_rect_changed"); - size_flags_changed=StaticCString::create("size_flags_changed"); - minimum_size_changed=StaticCString::create("minimum_size_changed"); - sleeping_state_changed=StaticCString::create("sleeping_state_changed"); - - finished=StaticCString::create("finished"); - emission_finished=StaticCString::create("emission_finished"); - animation_finished=StaticCString::create("animation_finished"); - animation_changed=StaticCString::create("animation_changed"); - animation_started=StaticCString::create("animation_started"); - - mouse_entered=StaticCString::create("mouse_entered"); - mouse_exited=StaticCString::create("mouse_exited"); - - focus_entered=StaticCString::create("focus_entered"); - focus_exited=StaticCString::create("focus_exited"); + resized = StaticCString::create("resized"); + dot = StaticCString::create("."); + doubledot = StaticCString::create(".."); + draw = StaticCString::create("draw"); + _draw = StaticCString::create("_draw"); + hide = StaticCString::create("hide"); + visibility_changed = StaticCString::create("visibility_changed"); + input_event = StaticCString::create("input_event"); + shader_shader = StaticCString::create("shader/shader"); + shader_unshaded = StaticCString::create("shader/unshaded"); + shading_mode = StaticCString::create("shader/shading_mode"); + tree_entered = StaticCString::create("tree_entered"); + tree_exited = StaticCString::create("tree_exited"); + item_rect_changed = StaticCString::create("item_rect_changed"); + size_flags_changed = StaticCString::create("size_flags_changed"); + minimum_size_changed = StaticCString::create("minimum_size_changed"); + sleeping_state_changed = StaticCString::create("sleeping_state_changed"); + + finished = StaticCString::create("finished"); + emission_finished = StaticCString::create("emission_finished"); + animation_finished = StaticCString::create("animation_finished"); + animation_changed = StaticCString::create("animation_changed"); + animation_started = StaticCString::create("animation_started"); + + mouse_entered = StaticCString::create("mouse_entered"); + mouse_exited = StaticCString::create("mouse_exited"); + + focus_entered = StaticCString::create("focus_entered"); + focus_exited = StaticCString::create("focus_exited"); sort_children = StaticCString::create("sort_children"); @@ -75,40 +75,40 @@ SceneStringNames::SceneStringNames() { _body_inout = StaticCString::create("_body_inout"); _area_inout = StaticCString::create("_area_inout"); - idle=StaticCString::create("idle"); - iteration=StaticCString::create("iteration"); - update=StaticCString::create("update"); - updated=StaticCString::create("updated"); + idle = StaticCString::create("idle"); + iteration = StaticCString::create("iteration"); + update = StaticCString::create("update"); + updated = StaticCString::create("updated"); - _get_gizmo_geometry=StaticCString::create("_get_gizmo_geometry"); - _can_gizmo_scale=StaticCString::create("_can_gizmo_scale"); + _get_gizmo_geometry = StaticCString::create("_get_gizmo_geometry"); + _can_gizmo_scale = StaticCString::create("_can_gizmo_scale"); - _fixed_process=StaticCString::create("_fixed_process"); - _process=StaticCString::create("_process"); + _fixed_process = StaticCString::create("_fixed_process"); + _process = StaticCString::create("_process"); - _enter_tree=StaticCString::create("_enter_tree"); - _exit_tree=StaticCString::create("_exit_tree"); - _enter_world=StaticCString::create("_enter_world"); - _exit_world=StaticCString::create("_exit_world"); - _ready=StaticCString::create("_ready"); + _enter_tree = StaticCString::create("_enter_tree"); + _exit_tree = StaticCString::create("_exit_tree"); + _enter_world = StaticCString::create("_enter_world"); + _exit_world = StaticCString::create("_exit_world"); + _ready = StaticCString::create("_ready"); - _update_scroll=StaticCString::create("_update_scroll"); - _update_xform=StaticCString::create("_update_xform"); + _update_scroll = StaticCString::create("_update_scroll"); + _update_xform = StaticCString::create("_update_xform"); - _proxgroup_add=StaticCString::create("_proxgroup_add"); - _proxgroup_remove=StaticCString::create("_proxgroup_remove"); + _proxgroup_add = StaticCString::create("_proxgroup_add"); + _proxgroup_remove = StaticCString::create("_proxgroup_remove"); - grouped=StaticCString::create("grouped"); - ungrouped=StaticCString::create("ungrouped"); + grouped = StaticCString::create("grouped"); + ungrouped = StaticCString::create("ungrouped"); - screen_entered=StaticCString::create("screen_entered"); - screen_exited=StaticCString::create("screen_exited"); + screen_entered = StaticCString::create("screen_entered"); + screen_exited = StaticCString::create("screen_exited"); - viewport_entered=StaticCString::create("viewport_entered"); - viewport_exited=StaticCString::create("viewport_exited"); + viewport_entered = StaticCString::create("viewport_entered"); + viewport_exited = StaticCString::create("viewport_exited"); - camera_entered=StaticCString::create("camera_entered"); - camera_exited=StaticCString::create("camera_exited"); + camera_entered = StaticCString::create("camera_entered"); + camera_exited = StaticCString::create("camera_exited"); _body_enter_tree = StaticCString::create("_body_enter_tree"); _body_exit_tree = StaticCString::create("_body_exit_tree"); @@ -117,38 +117,38 @@ SceneStringNames::SceneStringNames() { _area_exit_tree = StaticCString::create("_area_exit_tree"); _input = StaticCString::create("_input"); - _input_event=StaticCString::create("_input_event"); + _input_event = StaticCString::create("_input_event"); - gui_input=StaticCString::create("gui_input"); - _gui_input=StaticCString::create("_gui_input"); + gui_input = StaticCString::create("gui_input"); + _gui_input = StaticCString::create("_gui_input"); - _unhandled_input=StaticCString::create("_unhandled_input"); - _unhandled_key_input=StaticCString::create("_unhandled_key_input"); + _unhandled_input = StaticCString::create("_unhandled_input"); + _unhandled_key_input = StaticCString::create("_unhandled_key_input"); - changed=StaticCString::create("changed"); - _shader_changed=StaticCString::create("_shader_changed"); + changed = StaticCString::create("changed"); + _shader_changed = StaticCString::create("_shader_changed"); - _spatial_editor_group=StaticCString::create("_spatial_editor_group"); - _request_gizmo=StaticCString::create("_request_gizmo"); + _spatial_editor_group = StaticCString::create("_spatial_editor_group"); + _request_gizmo = StaticCString::create("_request_gizmo"); - offset=StaticCString::create("offset"); - unit_offset=StaticCString::create("unit_offset"); - rotation_mode=StaticCString::create("rotation_mode"); - rotate=StaticCString::create("rotate"); - h_offset=StaticCString::create("h_offset"); - v_offset=StaticCString::create("v_offset"); + offset = StaticCString::create("offset"); + unit_offset = StaticCString::create("unit_offset"); + rotation_mode = StaticCString::create("rotation_mode"); + rotate = StaticCString::create("rotate"); + h_offset = StaticCString::create("h_offset"); + v_offset = StaticCString::create("v_offset"); - transform_pos=StaticCString::create("transform/pos"); - transform_rot=StaticCString::create("transform/rot"); - transform_scale=StaticCString::create("transform/scale"); + transform_pos = StaticCString::create("transform/pos"); + transform_rot = StaticCString::create("transform/rot"); + transform_scale = StaticCString::create("transform/scale"); - _update_remote=StaticCString::create("_update_remote"); - _update_pairs=StaticCString::create("_update_pairs"); + _update_remote = StaticCString::create("_update_remote"); + _update_pairs = StaticCString::create("_update_pairs"); - get_minimum_size=StaticCString::create("get_minimum_size"); + get_minimum_size = StaticCString::create("get_minimum_size"); - area_entered=StaticCString::create("area_entered"); - area_exited=StaticCString::create("area_exited"); + area_entered = StaticCString::create("area_entered"); + area_exited = StaticCString::create("area_exited"); has_point = StaticCString::create("has_point"); @@ -166,30 +166,30 @@ SceneStringNames::SceneStringNames() { baked_light_changed = StaticCString::create("baked_light_changed"); _baked_light_changed = StaticCString::create("_baked_light_changed"); - _mouse_enter=StaticCString::create("_mouse_enter"); - _mouse_exit=StaticCString::create("_mouse_exit"); + _mouse_enter = StaticCString::create("_mouse_enter"); + _mouse_exit = StaticCString::create("_mouse_exit"); - _pressed=StaticCString::create("_pressed"); - _toggled=StaticCString::create("_toggled"); + _pressed = StaticCString::create("_pressed"); + _toggled = StaticCString::create("_toggled"); - frame_changed=StaticCString::create("frame_changed"); + frame_changed = StaticCString::create("frame_changed"); - playback_speed=StaticCString::create("playback/speed"); - playback_active=StaticCString::create("playback/active"); - autoplay=StaticCString::create("autoplay"); - blend_times=StaticCString::create("blend_times"); - speed=StaticCString::create("speed"); + playback_speed = StaticCString::create("playback/speed"); + playback_active = StaticCString::create("playback/active"); + autoplay = StaticCString::create("autoplay"); + blend_times = StaticCString::create("blend_times"); + speed = StaticCString::create("speed"); node_configuration_warning_changed = StaticCString::create("node_configuration_warning_changed"); - path_pp=NodePath(".."); + path_pp = NodePath(".."); - _default=StaticCString::create("default"); + _default = StaticCString::create("default"); - for(int i=0;i<MAX_MATERIALS;i++) { + for (int i = 0; i < MAX_MATERIALS; i++) { - mesh_materials[i]="material/"+itos(i); + mesh_materials[i] = "material/" + itos(i); } - _mesh_changed=StaticCString::create("_mesh_changed"); + _mesh_changed = StaticCString::create("_mesh_changed"); } |