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:
parent
e8e3167394
commit
c6e2f2dac4
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user