1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-11-04 17:27:16 -05:00

Fixed button press text offset

This commit is contained in:
Tim Sarbin 2018-11-23 00:52:01 -05:00
parent e8e3167394
commit c6e2f2dac4

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);