Skip to content

Commit

Permalink
Merge pull request #109 from arnauddupuis/v1.2.x
Browse files Browse the repository at this point in the history
V1.2.x
  • Loading branch information
arnauddupuis committed Oct 6, 2020
2 parents cdd5b2a + c8db2c4 commit 98f7d68
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pgl-editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -1135,6 +1135,11 @@ def first_use():
model=game.current_board().ui_board_void_cell
)
)
game.current_board()._overlapped_matrix[x].append(
board_items.BoardItemVoid(
model=game.current_board().ui_board_void_cell
)
)
is_modified = True

elif key == "2":
Expand All @@ -1143,6 +1148,7 @@ def first_use():
if nw >= game.current_board().size[1]:
old_value = game.current_board().size[1]
game.current_board().size[1] = nw
# TODO: We should use list completion here
for x in range(old_value, nw, 1):
new_array = []
for y in range(0, game.current_board().size[0], 1):
Expand All @@ -1152,6 +1158,8 @@ def first_use():
)
)
game.current_board()._matrix.append(new_array)
# TODO: Need to test side effects
game.current_board()._overlapped_matrix.append(deepcopy(new_array))
is_modified = True

elif key == "3":
Expand Down

0 comments on commit 98f7d68

Please sign in to comment.