v1.2.0: fixed item slots in wndbag not being disabled in some cases
This commit is contained in:
parent
8ce8d485dc
commit
992df8f179
|
@ -308,6 +308,10 @@ public class WndBag extends WndTabbed {
|
|||
};
|
||||
slot.setRect( x, y, slotWidth, slotHeight );
|
||||
add(slot);
|
||||
|
||||
if (item == null || (selector != null && !selector.itemSelectable(item))){
|
||||
slot.enable(false);
|
||||
}
|
||||
|
||||
if (++col >= nCols) {
|
||||
col = 0;
|
||||
|
|
Loading…
Reference in New Issue
Block a user