limboai/util/limbo_string_names.h

158 lines
3.9 KiB
C
Raw Normal View History

/**
* limbo_string_names.h
* =============================================================================
* 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
#ifndef LIMBO_STRING_NAMES_H
#define LIMBO_STRING_NAMES_H
#ifdef LIMBOAI_MODULE
#include "core/string/string_name.h"
2022-08-28 10:54:34 +00:00
#include "core/typedefs.h"
#include "modules/register_module_types.h"
2024-01-09 12:34:24 +00:00
#endif // ! LIMBOAI_MODULE
#ifdef LIMBOAI_GDEXTENSION
2024-01-07 05:51:34 +00:00
#include "godot_cpp/variant/string.hpp"
#include <godot_cpp/variant/string_name.hpp>
2024-01-07 05:51:34 +00:00
using namespace godot;
2024-01-09 12:34:24 +00:00
#endif // ! LIMBOAI_GDEXTENSION
2022-08-28 10:54:34 +00:00
class LimboStringNames {
friend void initialize_limboai_module(ModuleInitializationLevel p_level);
friend void uninitialize_limboai_module(ModuleInitializationLevel p_level);
2022-08-28 10:54:34 +00:00
static LimboStringNames *singleton;
static void create() { singleton = memnew(LimboStringNames); }
static void free() {
memdelete(singleton);
singleton = nullptr;
}
LimboStringNames();
public:
_FORCE_INLINE_ static LimboStringNames *get_singleton() { return singleton; }
2024-01-09 12:34:24 +00:00
StringName _draw_failure_status;
StringName _draw_probability;
StringName _draw_running_status;
StringName _draw_success_status;
2022-08-28 10:54:34 +00:00
StringName _enter;
StringName _exit;
2024-01-09 12:34:24 +00:00
StringName _generate_name;
StringName _get_configuration_warning;
StringName _replace_task;
StringName _setup;
2022-08-28 10:54:34 +00:00
StringName _tick;
2024-01-09 12:34:24 +00:00
StringName _update_banners;
2022-09-28 10:48:45 +00:00
StringName _update;
StringName _weight_;
2024-01-09 12:34:24 +00:00
StringName accent_color;
StringName add_child_at_index;
StringName add_child;
StringName AnimationFilter;
StringName Back;
StringName behavior_tree_finished;
StringName behavior_tree;
2024-01-09 12:34:24 +00:00
StringName BehaviorTree;
2024-01-07 05:51:34 +00:00
StringName bold;
2024-01-09 12:34:24 +00:00
StringName BTAlwaysFail;
StringName BTAlwaysSucceed;
StringName changed;
2024-01-07 12:45:27 +00:00
StringName connect;
2024-01-09 12:34:24 +00:00
StringName Debug;
StringName disabled_font_color;
StringName doc_italic;
StringName draw;
StringName Duplicate;
StringName Editor;
StringName EditorFonts;
StringName EditorIcons;
2024-01-09 20:47:22 +00:00
StringName EditorStyles;
2024-01-09 12:34:24 +00:00
StringName emit_changed;
StringName entered;
StringName error_value;
StringName exited;
StringName favorite_tasks_changed;
StringName Favorites;
StringName font_color;
StringName font_size;
StringName font;
StringName Forward;
StringName gui_input;
StringName GuiTreeArrowDown;
StringName GuiTreeArrowRight;
StringName Help;
2024-01-09 12:34:24 +00:00
StringName icon_max_width;
StringName id_pressed;
StringName item_collapsed;
2024-01-09 20:47:22 +00:00
StringName item_selected;
2024-01-09 12:34:24 +00:00
StringName LimboDeselectAll;
StringName LimboExtraClock;
StringName LimboExtractSubtree;
StringName LimboPercent;
StringName LimboSelectAll;
StringName LineEdit;
StringName Load;
StringName managed;
StringName mode_changed;
StringName MoveDown;
StringName MoveUp;
StringName New;
StringName NewRoot;
StringName NodeWarning;
StringName NonFavorite;
StringName normal;
2024-01-09 12:34:24 +00:00
StringName popup_hide;
StringName pressed;
2024-01-07 20:04:18 +00:00
StringName probability_clicked;
2024-01-09 12:34:24 +00:00
StringName refresh;
StringName Reload;
StringName remove_child;
StringName Remove;
StringName Rename;
2024-01-09 20:47:22 +00:00
StringName request_open_in_screen;
2024-01-07 20:04:18 +00:00
StringName rmb_pressed;
2024-01-09 12:34:24 +00:00
StringName Save;
StringName Script;
StringName ScriptCreate;
StringName Search;
StringName set_custom_name;
StringName set_root_task;
StringName setup;
2024-01-09 20:47:22 +00:00
StringName started;
2024-01-09 12:34:24 +00:00
StringName state_changed;
StringName StatusWarning;
2024-01-09 20:47:22 +00:00
StringName stopped;
2024-01-07 20:04:18 +00:00
StringName task_activated;
2024-01-09 12:34:24 +00:00
StringName task_button_pressed;
StringName task_button_rmb;
2024-01-07 20:04:18 +00:00
StringName task_dragged;
2024-01-09 12:34:24 +00:00
StringName task_meta;
StringName task_selected;
StringName text_changed;
StringName timeout;
StringName toggled;
StringName Tools;
StringName update_task;
StringName update_tree;
StringName updated;
StringName visibility_changed;
2024-01-09 20:47:22 +00:00
StringName window_visibility_changed;
2024-01-07 04:54:17 +00:00
String EVENT_FINISHED;
String repeat_forever;
2022-08-28 10:54:34 +00:00
};
2024-01-09 12:42:54 +00:00
#define LW_NAME(m_arg) LimboStringNames::get_singleton()->m_arg
2022-08-28 10:54:34 +00:00
#endif // LIMBO_STRING_NAMES_H