Skip to content

Commit def4900

Browse files
committed
fix(TRSAnvil): quantity buttons offset
1 parent 7454a84 commit def4900

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

osrs/interfaces/mainscreen/anvil.simba

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ begin
108108
Self.Items.Setup('Anvil.Items', @Self.Slots, [0, 0]);
109109

110110
with Self.Bounds do
111-
boxes := TBoxArray.Create([X2-46, Y1+36], 1, 6, 36, 36, [0,9]);
111+
boxes := TBoxArray.Create([X2-43, Y1+36], 1, 6, 36, 36, [0,9]);
112112

113113
SetLength(Self.QuantityButtons, 6);
114114
for i := 0 to High(boxes) do
@@ -257,10 +257,11 @@ begin
257257
slot := Self.Items.IndexOf([item]);
258258
if slot = -1 then Exit;
259259

260-
if not Target.HasColor($00FF00, 0, 1, Self.Slots.Box(slot)) then
260+
if not Target.HasColor(RSFonts.GREEN, 0, 1, Self.Slots.Box(slot)) then
261261
Exit;
262262

263-
if not Self.SetQuantity(quantity) then Exit;
263+
if not Self.SetQuantity(quantity) then
264+
Exit;
264265

265266
if keyboardProbability < 0 then
266267
keyboardProbability := Biometrics.RandomDouble(0.5);

0 commit comments

Comments
 (0)