| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
#pragma once |
| 32 |
|
| 33 |
#include "core/string/node_path.h" |
| 34 |
#include "core/string/string_name.h" |
| 35 |
|
| 36 |
class SceneStringNames { |
| 37 |
inline static SceneStringNames *singleton = nullptr; |
| 38 |
|
| 39 |
public: |
| 40 |
static void create() { singleton = memnew(SceneStringNames); } |
| 41 |
static void free() { |
| 42 |
memdelete(singleton); |
| 43 |
singleton = nullptr; |
| 44 |
} |
| 45 |
|
| 46 |
_FORCE_INLINE_ static SceneStringNames *get_singleton() { return singleton; } |
| 47 |
|
| 48 |
const StringName resized = "resized"; |
| 49 |
const StringName draw = "draw"; |
| 50 |
const StringName hidden = "hidden"; |
| 51 |
const StringName visibility_changed = "visibility_changed"; |
| 52 |
|
| 53 |
const StringName input_event = "input_event"; |
| 54 |
const StringName gui_input = "gui_input"; |
| 55 |
const StringName window_input = "window_input"; |
| 56 |
const StringName nonclient_window_input = "nonclient_window_input"; |
| 57 |
|
| 58 |
const StringName tree_entered = "tree_entered"; |
| 59 |
const StringName tree_exiting = "tree_exiting"; |
| 60 |
const StringName tree_exited = "tree_exited"; |
| 61 |
const StringName ready = "ready"; |
| 62 |
const StringName _ready = "_ready"; |
| 63 |
|
| 64 |
const StringName item_rect_changed = "item_rect_changed"; |
| 65 |
const StringName size_flags_changed = "size_flags_changed"; |
| 66 |
const StringName minimum_size_changed = "minimum_size_changed"; |
| 67 |
const StringName sleeping_state_changed = "sleeping_state_changed"; |
| 68 |
const StringName node_configuration_warning_changed = "node_configuration_warning_changed"; |
| 69 |
const StringName update = "update"; |
| 70 |
const StringName updated = "updated"; |
| 71 |
|
| 72 |
const StringName line_separation = "line_separation"; |
| 73 |
const StringName paragraph_separation = "paragraph_separation"; |
| 74 |
const StringName font = "font"; |
| 75 |
const StringName font_size = "font_size"; |
| 76 |
const StringName font_color = "font_color"; |
| 77 |
|
| 78 |
const StringName mouse_entered = "mouse_entered"; |
| 79 |
const StringName mouse_exited = "mouse_exited"; |
| 80 |
const StringName mouse_shape_entered = "mouse_shape_entered"; |
| 81 |
const StringName mouse_shape_exited = "mouse_shape_exited"; |
| 82 |
const StringName focus_entered = "focus_entered"; |
| 83 |
const StringName focus_exited = "focus_exited"; |
| 84 |
|
| 85 |
const StringName pre_sort_children = "pre_sort_children"; |
| 86 |
const StringName sort_children = "sort_children"; |
| 87 |
|
| 88 |
const StringName finished = "finished"; |
| 89 |
const StringName animation_finished = "animation_finished"; |
| 90 |
const StringName animation_changed = "animation_changed"; |
| 91 |
const StringName animation_started = "animation_started"; |
| 92 |
const StringName RESET = "RESET"; |
| 93 |
|
| 94 |
const StringName pose_updated = "pose_updated"; |
| 95 |
const StringName skeleton_updated = "skeleton_updated"; |
| 96 |
const StringName bone_enabled_changed = "bone_enabled_changed"; |
| 97 |
const StringName show_rest_only_changed = "show_rest_only_changed"; |
| 98 |
|
| 99 |
const StringName body_shape_entered = "body_shape_entered"; |
| 100 |
const StringName body_entered = "body_entered"; |
| 101 |
const StringName body_shape_exited = "body_shape_exited"; |
| 102 |
const StringName body_exited = "body_exited"; |
| 103 |
|
| 104 |
const StringName area_shape_entered = "area_shape_entered"; |
| 105 |
const StringName area_shape_exited = "area_shape_exited"; |
| 106 |
|
| 107 |
const StringName screen_entered = "screen_entered"; |
| 108 |
const StringName screen_exited = "screen_exited"; |
| 109 |
|
| 110 |
const StringName _spatial_editor_group = "_spatial_editor_group"; |
| 111 |
const StringName _request_gizmo = "_request_gizmo"; |
| 112 |
|
| 113 |
const StringName offset = "offset"; |
| 114 |
const StringName rotation_mode = "rotation_mode"; |
| 115 |
const StringName rotate = "rotate"; |
| 116 |
const StringName h_offset = "h_offset"; |
| 117 |
const StringName v_offset = "v_offset"; |
| 118 |
|
| 119 |
const StringName area_entered = "area_entered"; |
| 120 |
const StringName area_exited = "area_exited"; |
| 121 |
|
| 122 |
const StringName frame_changed = "frame_changed"; |
| 123 |
const StringName texture_changed = "texture_changed"; |
| 124 |
|
| 125 |
const StringName autoplay = "autoplay"; |
| 126 |
const StringName blend_times = "blend_times"; |
| 127 |
const StringName speed = "speed"; |
| 128 |
|
| 129 |
const NodePath path_pp = NodePath(".."); |
| 130 |
|
| 131 |
const StringName default_ = "default"; |
| 132 |
const StringName output = "output"; |
| 133 |
|
| 134 |
const StringName Master = "Master"; |
| 135 |
|
| 136 |
const StringName theme_changed = "theme_changed"; |
| 137 |
const StringName shader = "shader"; |
| 138 |
const StringName shader_overrides_group = "_shader_overrides_group_"; |
| 139 |
const StringName shader_overrides_group_active = "_shader_overrides_group_active_"; |
| 140 |
|
| 141 |
const StringName _custom_type_script = "_custom_type_script"; |
| 142 |
|
| 143 |
const StringName pressed = "pressed"; |
| 144 |
const StringName id_pressed = "id_pressed"; |
| 145 |
const StringName toggled = "toggled"; |
| 146 |
const StringName hover = "hover"; |
| 147 |
|
| 148 |
const StringName panel = "panel"; |
| 149 |
const StringName item_selected = "item_selected"; |
| 150 |
const StringName confirmed = "confirmed"; |
| 151 |
|
| 152 |
const StringName text_changed = "text_changed"; |
| 153 |
const StringName text_submitted = "text_submitted"; |
| 154 |
const StringName value_changed = "value_changed"; |
| 155 |
|
| 156 |
const StringName Start = "Start"; |
| 157 |
const StringName End = "End"; |
| 158 |
const StringName state_started = "state_started"; |
| 159 |
const StringName state_finished = "state_finished"; |
| 160 |
|
| 161 |
const StringName FlatButton = "FlatButton"; |
| 162 |
}; |
| 163 |
|
| 164 |
#define SceneStringName(m_name) SceneStringNames::get_singleton()->m_name |