Fixed button press text offset

This commit is contained in:
Tim Sarbin 2018-11-23 00:52:01 -05:00
parent e8e3167394
commit c6e2f2dac4
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ namespace OpenDiablo2.Core.UI
public void Render()
{
renderWindow.Draw(sprite, buttonLayout.XSegments, 1, pressed ? 1 : 0);
var offset = pressed ? -3 : 0;
var offset = pressed ? -2 : 0;
label.Location = new Point(location.X + offset + labelOffset.X, location.Y - offset + labelOffset.Y);
renderWindow.Draw(label);