CatalogText struct
#include <Jazz2/Editor/Events/EventCatalog.h>
Text of a description of an event, a literal is shown as it is, a text translated by _x() is kept.
The descriptions of the game are built on their first use, after the language is loaded, so only what's translated there by _x("editor", ...) is translated. Such a text is copied, it stays valid when the language is unloaded — the editor keeps the language it was first opened in.
Constructors, destructors, conversion operators
-
CatalogText(std::
nullptr_t) constexpr noexcept - No text.
- CatalogText(const char* text) constexpr noexcept
- Text shown as it is.
- CatalogText(StringView translated)
- Translated text, it's copied.
Public variables
- const char* Text
- Text,
nullptrfor none.