feat: Adds BaseGump.GetGumpOffsetForItemGraphic (#2116)
This commit is contained in:
parent
40479c946a
commit
2d0957119e
1 changed files with 6 additions and 0 deletions
|
|
@ -113,4 +113,10 @@ public abstract class BaseGump
|
||||||
|
|
||||||
return new Point2D(x, y);
|
return new Point2D(x, y);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static Point2D GetGumpOffsetForItemGraphic(int itemId, int relativeX, int relativeY)
|
||||||
|
{
|
||||||
|
var offset = GetItemGraphicOffset(itemId);
|
||||||
|
return new Point2D(relativeX * 22 - relativeY * 22 + offset.X, relativeX * 22 + relativeY * 22 + offset.Y);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue