Skip to content

Commit

Permalink
Merge branch 'master' into fix-inventory-drag-item
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanmoffat committed Sep 28, 2022
2 parents b2ca533 + b21ab37 commit 3c7d3c9
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 8 deletions.
6 changes: 3 additions & 3 deletions EndlessClient/ControlSets/InitialControlSet.cs
Expand Up @@ -134,7 +134,7 @@ private IXNAButton MainButtonCreationHelper(GameControlIdentifier whichControl)
var outSource = new Rectangle(0, i * heightFactor, widthFactor, heightFactor);
var overSource = new Rectangle(widthFactor, i * heightFactor, widthFactor, heightFactor);

return new XNAButton(_mainButtonTexture, new Vector2(26, 278 + i * 40), outSource, overSource);
return new XNAButton(_mainButtonTexture, new Vector2(25, 280 + i * 40), outSource, overSource);
}

private IXNALabel GetVersionInfoLabel()
Expand All @@ -148,8 +148,8 @@ private IXNALabel GetVersionInfoLabel()
_configProvider.VersionBuild,
_configProvider.Host,
_configProvider.Port),
ForeColor = Color.Black,
DrawArea = new Rectangle(20, 459, 1, 1)
ForeColor = Color.FromNonPremultiplied(190, 170, 150, 255),
DrawArea = new Rectangle(28, 457, 1, 1)
};
}

Expand Down
8 changes: 5 additions & 3 deletions EndlessClient/Dialogs/EOMessageBox.cs
Expand Up @@ -48,9 +48,11 @@ public class EOMessageBox : BaseEODialog
AutoSize = true,
ForeColor = ColorConstants.LightYellowText,
Text = message,
TextWidth = 254,
DrawPosition = new Vector2(18, useSmallHeader ? 40 : 57)
TextWidth = 240,
DrawPosition = new Vector2(21, useSmallHeader ? 40 : 62),
WrapBehavior = WrapBehavior.WrapToNewLine,
};

_messageLabel.SetParentControl(this);

_captionLabel = new XNALabel(Constants.FontSize10)
Expand All @@ -59,7 +61,7 @@ public class EOMessageBox : BaseEODialog
ForeColor = ColorConstants.LightYellowText,
Text = caption,
TextWidth = 254,
DrawPosition = useSmallHeader ? new Vector2(18, 12) : new Vector2(59, 23)
DrawPosition = useSmallHeader ? new Vector2(18, 12) : new Vector2(60, 27)
};
_captionLabel.SetParentControl(this);

Expand Down
11 changes: 9 additions & 2 deletions EndlessClient/GameExecution/GameRunnerBase.cs
Expand Up @@ -6,6 +6,7 @@
using EOLib.Graphics;
using EOLib.Localization;
using System;
using System.Net;

#if !LINUX
using System.Windows.Forms;
Expand Down Expand Up @@ -71,8 +72,14 @@ public virtual bool SetupDependencies()
if (string.Equals(arg, "--host") && i < _args.Length - 1)
{
var host = _args[i + 1];
_registry.Resolve<IConfigurationRepository>()
.Host = host;

if (IPEndPoint.TryParse(host, out var endpoint)) {
_registry.Resolve<IConfigurationRepository>()
.Host = endpoint.Address.ToString();

_registry.Resolve<IConfigurationRepository>()
.Port = endpoint.Port;
}

i++;
}
Expand Down

0 comments on commit 3c7d3c9

Please sign in to comment.