Skip to content

Commit 2b68318

Browse files
fix: Bank Buttons
Added a new color to detect when button is being hovered
1 parent bb95d36 commit 2b68318

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

osr/interfaces/mainscreen/bank.simba

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,11 +299,13 @@ begin
299299
case button of
300300
ERSBankDepositButton.WORN:
301301
for i := 0 to High(buttons) do
302-
if SRL.CountColor(CTS2(8885663, 17, 0.09, 0.35), buttons[i].Bounds) > 5 then
302+
if (SRL.CountColor(CTS2(8885663, 17, 0.09, 0.35), buttons[i].Bounds) > 5)
303+
or (SRL.CountColor(CTS2(7635336, 12, 0.17, 0.35), buttons[i].Bounds) > 5) then // Different color if hovered
303304
Exit(buttons[i]);
304305
ERSBankDepositButton.INVENTORY:
305306
for i := 0 to High(buttons) do
306-
if SRL.CountColor(CTS2(997739, 13, 0.10, 1.12), buttons[i].Bounds) > 5 then
307+
if (SRL.CountColor(CTS2(997739, 13, 0.10, 1.12), buttons[i].Bounds) > 5)
308+
or (SRL.CountColor(CTS2(2441311, 10, 0.14, 0.96), buttons[i].Bounds) > 5) then // Different color if hovered
307309
Exit(buttons[i]);
308310

309311
ERSBankDepositButton.CONTAINERS:

0 commit comments

Comments
 (0)