Jazz2/Editor/Shell/LevelTextLanguages.h file

Namespaces

namespace Jazz2
Root namespace of Jazz² Resurrection.
namespace Jazz2::UI
User interface and menus.
namespace Jazz2::UI::Windows
Toolkit of windows, panels and controls, compiled only if WITH_UI_WINDOWS.
namespace Jazz2::Editor

Classes

struct Jazz2::Editor::LevelTextLanguageState
Language of the translations shown in the dialog of the level texts.

Functions

void AddLevelTextLanguageBar(Stack* content, IEditorContext& session, const std::shared_ptr<LevelTextLanguageState>& state)
Adds the choice of the language and the buttons to export and import the texts for translators.
void AddLevelTextTranslationBox(Stack* row, IEditorContext& session, const std::shared_ptr<LevelTextLanguageState>& state, std::int32_t index)
Adds the box of the translation of a text, shown only while a language is chosen.
void SetLevelTextTranslation(IEditorContext& session, StringView language, std::int32_t index, StringView text)
Changes the translation of a text as an undoable step, an empty one removes it.