Prepare game 0.2.0 and standalone editor 0.5.0 releases (by Codex)
OBW Editor / editor (linux-x64, ubuntu-24.04) (push) Waiting to run
OBW Editor / editor (macos-arm64, macos-14) (push) Waiting to run
OBW Editor / editor (windows-x64, windows-2022) (push) Waiting to run
Prepare release packages / build (push) Blocked by required conditions
Build without game data / build (linux-x64, ubuntu-24.04) (push) Waiting to run
Build without game data / build (macos-arm64, macos-14) (push) Waiting to run
Build without game data / build (windows-x64, windows-2022) (push) Waiting to run
OBW Editor / editor (linux-x64, ubuntu-24.04) (push) Waiting to run
OBW Editor / editor (macos-arm64, macos-14) (push) Waiting to run
OBW Editor / editor (windows-x64, windows-2022) (push) Waiting to run
Prepare release packages / build (push) Blocked by required conditions
Build without game data / build (linux-x64, ubuntu-24.04) (push) Waiting to run
Build without game data / build (macos-arm64, macos-14) (push) Waiting to run
Build without game data / build (windows-x64, windows-2022) (push) Waiting to run
This commit is contained in:
1 parent
6636308cad
commit
a447d9282a
22 files changed
+185
-38
No files matched your search
+4
-1
@@ -1,6 +1,7 @@
|
||||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
#include "editor/ui.hpp"
|
||||
#include "editor/images.hpp"
|
||||
#include "editor/version.hpp"
|
||||
#include "launch/rml_path.hpp"
|
||||
#include <RmlUi/Core.h>
|
||||
#include <RmlUi/Core/Elements/ElementFormControl.h>
|
||||
@@ -183,6 +184,8 @@ class EditorUi final : public Rml::EventListener {
|
||||
if (name.is_object() && name.contains(options_.language) && name[options_.language].is_string())
|
||||
return name[options_.language];
|
||||
auto result = text(name);
|
||||
if (result.empty() && row.contains("name"))
|
||||
return t("unknown");
|
||||
return result.empty() ? str(row, "key", str(row, "id")) : result;
|
||||
}
|
||||
std::string ref(const Json &row, const std::string &key) const {
|
||||
@@ -383,7 +386,7 @@ class EditorUi final : public Rml::EventListener {
|
||||
}
|
||||
void chrome() {
|
||||
doc_->SetClassNames(options_.theme);
|
||||
label("tagline", t("poc"));
|
||||
label("tagline", t("editor_tagline") + " · " + std::string(kEditorVersion));
|
||||
label("nav-label", t("data_areas"));
|
||||
label("profile-note", t("not_playable"));
|
||||
label("world-caption", info_.value("loaded", false) ? str(info_, "title") : "");
|
||||
|
||||
Reference in new issue
Block a user