reverse numbering
This commit is contained in:
@@ -339,6 +339,9 @@ class SampleStorageWidget(BECWidget, QWidget):
|
||||
grid.setContentsMargins(0, 0, 0, 0)
|
||||
for idx, slot in enumerate(STORAGE_SLOTS):
|
||||
r, c = divmod(idx, STORAGE_COLS)
|
||||
# display each row right-to-left (5..1, 10..6, ...) rather than
|
||||
# left-to-right, to match the physical magazine orientation
|
||||
c = STORAGE_COLS - 1 - c
|
||||
cell = _SlotCell(slot, self, COLOR_SLOT_BORDER)
|
||||
self._cells[slot] = cell
|
||||
grid.addWidget(cell, r, c)
|
||||
|
||||
Reference in New Issue
Block a user