diff options
author | kobewi <kobewi4e@gmail.com> | 2023-08-13 02:33:39 +0200 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2023-09-03 19:58:18 +0200 |
commit | 6de34fde27f650f738a1e46992f1b783f2cf9e76 (patch) | |
tree | a1c1785f2c20e8874d622aae75ff70be43192ece /editor/editor_string_names.cpp | |
parent | fa3428ff25bc577d2a3433090478a6d615567056 (diff) | |
download | redot-engine-6de34fde27f650f738a1e46992f1b783f2cf9e76.tar.gz |
Add EditorStringNames singleton
Diffstat (limited to 'editor/editor_string_names.cpp')
-rw-r--r-- | editor/editor_string_names.cpp | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/editor/editor_string_names.cpp b/editor/editor_string_names.cpp new file mode 100644 index 0000000000..bd31d32b2d --- /dev/null +++ b/editor/editor_string_names.cpp @@ -0,0 +1,40 @@ +/**************************************************************************/ +/* editor_string_names.cpp */ +/**************************************************************************/ +/* This file is part of: */ +/* GODOT ENGINE */ +/* https://godotengine.org */ +/**************************************************************************/ +/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */ +/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/**************************************************************************/ + +#include "editor_string_names.h" + +EditorStringNames *EditorStringNames::singleton = nullptr; + +EditorStringNames::EditorStringNames() { + Editor = StaticCString::create("Editor"); + EditorFonts = StaticCString::create("EditorFonts"); + EditorIcons = StaticCString::create("EditorIcons"); + EditorStyles = StaticCString::create("EditorStyles"); +} |