mirror of
https://github.com/zhenyan121/Cubed.git
synced 2026-08-08 17:57:02 +08:00
refactor: argument (#33)
* refactor(config): remove TOML config loading and replace is_client with host_game * feat(network): add net_error_message helper and use for error logging
This commit is contained in:
@@ -98,7 +98,9 @@ void MainMenuUIManager::init() {
|
||||
|
||||
player_name.set_text(
|
||||
tr("menu.main.player_name",
|
||||
arg("name", m_scene.scene_manager().app().argument().player)));
|
||||
arg("name",
|
||||
m_scene.scene_manager().app().argument().player.value_or(
|
||||
"Unknown"))));
|
||||
|
||||
auto& version = info_layout.add_child<Label>();
|
||||
version.set_scale(SCALE);
|
||||
|
||||
Reference in New Issue
Block a user