diff --git a/Content.Client/ADT/Language/UI/HumanoidProfileEditor.Languages.cs b/Content.Client/ADT/Language/UI/HumanoidProfileEditor.Languages.cs index 94a3297645..e5c6ea9af8 100644 --- a/Content.Client/ADT/Language/UI/HumanoidProfileEditor.Languages.cs +++ b/Content.Client/ADT/Language/UI/HumanoidProfileEditor.Languages.cs @@ -12,7 +12,7 @@ public void RefreshLanguages() { LanguagesList.DisposeAllChildren(); TabContainer.SetTabTitle(1, Loc.GetString("humanoid-profile-editor-languages-tab")); - SetDefaultLanguagesButton.OnPressed += SetDefaultLanguages; + SetDefaultLanguagesButton.OnPressed += _ => SetDefaultLanguages(); if (Profile == null) return; @@ -73,7 +73,7 @@ public void SelectLanguage(string protoId) RefreshLanguages(); } - private void SetDefaultLanguages(BaseButton.ButtonEventArgs args) + public void SetDefaultLanguages() { if (Profile == null) return; diff --git a/Content.Client/Lobby/UI/HumanoidProfileEditor.xaml.cs b/Content.Client/Lobby/UI/HumanoidProfileEditor.xaml.cs index 565f99e8a9..9eb97ffe42 100644 --- a/Content.Client/Lobby/UI/HumanoidProfileEditor.xaml.cs +++ b/Content.Client/Lobby/UI/HumanoidProfileEditor.xaml.cs @@ -272,7 +272,14 @@ public HumanoidProfileEditor( } else { - _speciesWindow = new(Profile, prototypeManager, entManager, _controller, _resManager, _parsingMan); + _speciesWindow = new( + Profile, + prototypeManager, + entManager, + _controller, + _resManager, + _parsingMan); + _speciesWindow.OpenCenteredLeft(); var oldProfile = Profile.Clone(); _speciesWindow.ChooseAction += args => @@ -285,6 +292,7 @@ public HumanoidProfileEditor( var name1 = _prototypeManager.Index(Profile?.Species ?? "Human").Name; NewSpeciesButton.Text = Loc.GetString(name1); NewSpeciesButton.Pressed = false; + this.SetDefaultLanguages(); }; _speciesWindow.OnClose += () => {