limboai/util/limbo_string_names.cpp

139 lines
4.3 KiB
C++
Raw Normal View History

/**
* limbo_string_names.cpp
* =============================================================================
* Copyright 2021-2023 Serhii Snitsaruk
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* =============================================================================
*/
2022-08-28 10:54:34 +00:00
#include "limbo_string_names.h"
2024-01-07 04:54:17 +00:00
#ifdef LIMBOAI_MODULE
2024-01-09 12:34:24 +00:00
2024-01-07 04:54:17 +00:00
#define SN(m_arg) (StaticCString::create(m_arg))
2024-01-09 12:34:24 +00:00
#endif // ! LIMBOAI_MODULE
2024-01-07 04:54:17 +00:00
#ifdef LIMBOAI_GDEXTENSION
2024-01-09 12:34:24 +00:00
#include "godot_cpp/variant/string_name.hpp"
2024-01-07 04:54:17 +00:00
#define SN(m_arg) (StringName(m_arg))
2024-01-09 12:34:24 +00:00
#endif // ! LIMBOAI_GDEXTENSION
2024-01-07 04:54:17 +00:00
2022-08-28 10:54:34 +00:00
LimboStringNames *LimboStringNames::singleton = nullptr;
LimboStringNames::LimboStringNames() {
2024-01-09 12:34:24 +00:00
_draw_failure_status = SN("_draw_failure_status");
_draw_probability = SN("_draw_probability");
_draw_running_status = SN("_draw_running_status");
_draw_success_status = SN("_draw_success_status");
2024-01-07 04:54:17 +00:00
_enter = SN("_enter");
_exit = SN("_exit");
2024-01-09 12:34:24 +00:00
_generate_name = SN("_generate_name");
2024-01-13 16:10:42 +00:00
_get_configuration_warnings = SN("_get_configuration_warnings");
2024-01-09 12:34:24 +00:00
_replace_task = SN("_replace_task");
_setup = SN("_setup");
2024-01-07 04:54:17 +00:00
_tick = SN("_tick");
_update = SN("_update");
2024-01-09 12:34:24 +00:00
_update_banners = SN("_update_banners");
2024-01-07 04:54:17 +00:00
_weight_ = SN("_weight_");
2024-01-09 12:34:24 +00:00
accent_color = SN("accent_color");
add_child = SN("add_child");
add_child_at_index = SN("add_child_at_index");
AnimationFilter = SN("AnimationFilter");
Back = SN("Back");
2024-01-07 04:54:17 +00:00
behavior_tree = SN("behavior_tree");
2024-01-09 12:34:24 +00:00
behavior_tree_finished = SN("behavior_tree_finished");
BehaviorTree = SN("BehaviorTree");
2024-01-07 05:51:34 +00:00
bold = SN("bold");
2024-01-09 12:34:24 +00:00
BTAlwaysFail = SN("BTAlwaysFail");
BTAlwaysSucceed = SN("BTAlwaysSucceed");
changed = SN("changed");
2024-01-07 12:45:27 +00:00
connect = SN("connect");
2024-01-09 12:34:24 +00:00
Debug = SN("Debug");
disabled_font_color = SN("disabled_font_color");
doc_italic = SN("doc_italic");
draw = SN("draw");
Duplicate = SN("Duplicate");
Editor = SN("Editor");
EditorFonts = SN("EditorFonts");
EditorIcons = SN("EditorIcons");
2024-01-09 20:47:22 +00:00
EditorStyles = SN("EditorStyles");
2024-01-09 12:34:24 +00:00
emit_changed = SN("emit_changed");
entered = SN("entered");
error_value = SN("error_value");
exited = SN("exited");
favorite_tasks_changed = SN("favorite_tasks_changed");
Favorites = SN("Favorites");
font = SN("font");
font_color = SN("font_color");
font_size = SN("font_size");
2024-01-09 23:02:24 +00:00
Forward = SN("Forward");
gui_input = SN("gui_input");
GuiTreeArrowDown = SN("GuiTreeArrowDown");
GuiTreeArrowRight = SN("GuiTreeArrowRight");
Help = SN("Help");
2024-01-09 12:34:24 +00:00
icon_max_width = SN("icon_max_width");
id_pressed = SN("id_pressed");
item_collapsed = SN("item_collapsed");
2024-01-09 20:47:22 +00:00
item_selected = SN("item_selected");
2024-01-09 12:34:24 +00:00
LimboDeselectAll = SN("LimboDeselectAll");
LimboExtraClock = SN("LimboExtraClock");
LimboPercent = SN("LimboPercent");
LimboSelectAll = SN("LimboSelectAll");
LineEdit = SN("LineEdit");
Load = SN("Load");
managed = SN("managed");
mode_changed = SN("mode_changed");
MoveDown = SN("MoveDown");
MoveUp = SN("MoveUp");
New = SN("New");
NewRoot = SN("NewRoot");
NodeWarning = SN("NodeWarning");
NonFavorite = SN("NonFavorite");
normal = SN("normal");
2024-01-09 12:34:24 +00:00
popup_hide = SN("popup_hide");
pressed = SN("pressed");
2024-01-07 20:04:18 +00:00
probability_clicked = SN("probability_clicked");
2024-01-09 12:34:24 +00:00
refresh = SN("refresh");
Reload = SN("Reload");
Remove = SN("Remove");
remove_child = SN("remove_child");
Rename = SN("Rename");
2024-01-09 20:47:22 +00:00
request_open_in_screen = SN("request_open_in_screen");
2024-01-07 20:04:18 +00:00
rmb_pressed = SN("rmb_pressed");
2024-01-09 12:34:24 +00:00
Save = SN("Save");
Script = SN("Script");
ScriptCreate = SN("ScriptCreate");
Search = SN("Search");
set_custom_name = SN("set_custom_name");
set_root_task = SN("set_root_task");
setup = SN("setup");
2024-01-09 20:47:22 +00:00
started = SN("started");
2024-01-09 12:34:24 +00:00
state_changed = SN("state_changed");
StatusWarning = SN("StatusWarning");
2024-01-09 20:47:22 +00:00
stopped = SN("stopped");
2024-01-07 20:04:18 +00:00
task_activated = SN("task_activated");
2024-01-09 12:34:24 +00:00
task_button_pressed = SN("task_button_pressed");
task_button_rmb = SN("task_button_rmb");
2024-01-07 20:04:18 +00:00
task_dragged = SN("task_dragged");
2024-01-09 12:34:24 +00:00
task_meta = SN("task_meta");
task_selected = SN("task_selected");
text_changed = SN("text_changed");
timeout = SN("timeout");
toggled = SN("toggled");
2024-01-10 00:17:09 +00:00
Tools = SN("Tools");
2024-01-09 12:34:24 +00:00
update_task = SN("update_task");
update_tree = SN("update_tree");
updated = SN("updated");
visibility_changed = SN("visibility_changed");
2024-01-09 20:47:22 +00:00
window_visibility_changed = SN("window_visibility_changed");
2024-01-07 04:54:17 +00:00
EVENT_FINISHED = "finished";
repeat_forever.parse_utf8("Repeat ∞");
2024-01-13 16:10:42 +00:00
}