Reset buy/sell to unchecked state when config called

This commit is contained in:
Collin Smith
2020-07-04 02:41:20 -07:00
parent dfbd3a3e6f
commit eff7d8cdd8

View File

@ -242,6 +242,8 @@ public class VendorPanel extends WidgetGroup implements Disposable {
}
public void config(int flags) {
btnBuy.setChecked(false);
btnSell.setChecked(false);
btnBuy.setVisible((flags & BUY) == BUY);
btnSell.setVisible((flags & SELL) == SELL);
btnRepair.setVisible((flags & REPAIR) == REPAIR);