(7125fc611) DIY translations for the last few missing connection texts. Pretty confident these are correct, hacked the lines together from existing texts and "verified" with Google Translate.
This commit is contained in:
@@ -218,6 +218,22 @@ namespace Barotrauma
|
||||
return true;
|
||||
}
|
||||
|
||||
private bool RefreshJoinButtonState(GUIComponent component, object obj)
|
||||
{
|
||||
if (obj == null || waitingForRefresh) { return false; }
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(clientNameBox.Text) && !string.IsNullOrWhiteSpace(ipBox.Text))
|
||||
{
|
||||
joinButton.Enabled = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
joinButton.Enabled = false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
private bool SelectServer(GUIComponent component, object obj)
|
||||
{
|
||||
if (obj == null || waitingForRefresh) { return false; }
|
||||
|
||||
@@ -133,39 +133,6 @@ namespace Barotrauma.Items.Components
|
||||
DisplayName = Name;
|
||||
}
|
||||
|
||||
//if displayname is not present, attempt to find it from the prefab
|
||||
if (element.Attribute("displayname") == null)
|
||||
{
|
||||
foreach (XElement subElement in item.Prefab.ConfigElement.Elements())
|
||||
{
|
||||
if (subElement.Name.ToString().ToLowerInvariant() != "connectionpanel") { continue; }
|
||||
|
||||
foreach (XElement connectionElement in subElement.Elements())
|
||||
{
|
||||
if (connectionElement.Name.ToString() != element.Name.ToString()) { continue; }
|
||||
|
||||
string prefabConnectionName = element.GetAttributeString("name", (IsOutput) ? "output" : "input");
|
||||
if (prefabConnectionName == Name)
|
||||
{
|
||||
DisplayName = TextManager.GetServerMessage(connectionElement.GetAttributeString("displayname", ""));
|
||||
}
|
||||
}
|
||||
}
|
||||
#if DEBUG
|
||||
if (string.IsNullOrEmpty(DisplayName))
|
||||
{
|
||||
DebugConsole.ThrowError("Missing display name in connection " + item.Name + ": " + Name);
|
||||
DisplayName = Name;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
else
|
||||
{
|
||||
DisplayName = TextManager.GetServerMessage(element.GetAttributeString("displayname", Name));
|
||||
}
|
||||
|
||||
|
||||
|
||||
IsPower = Name == "power_in" || Name == "power" || Name == "power_out";
|
||||
|
||||
effects = new List<StatusEffect>();
|
||||
|
||||
Reference in New Issue
Block a user