This commit is contained in:
@@ -117,6 +117,7 @@ public class SudokuRenderer {
|
|||||||
ImGui.sameLine();
|
ImGui.sameLine();
|
||||||
int index = y * doku.getWidth() + x;
|
int index = y * doku.getWidth() + x;
|
||||||
Cell cell = doku.getCell(x, y);
|
Cell cell = doku.getCell(x, y);
|
||||||
|
ImGui.beginDisabled(cell == null);
|
||||||
if (cell == null) {
|
if (cell == null) {
|
||||||
ImGui.pushStyleColor(ImGuiCol.Border, TRANSPARENT);
|
ImGui.pushStyleColor(ImGuiCol.Border, TRANSPARENT);
|
||||||
ImGui.pushStyleColor(ImGuiCol.Button, TRANSPARENT);
|
ImGui.pushStyleColor(ImGuiCol.Button, TRANSPARENT);
|
||||||
@@ -141,6 +142,7 @@ public class SudokuRenderer {
|
|||||||
currentCell = cell;
|
currentCell = cell;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
ImGui.endDisabled();
|
||||||
ImGui.popStyleColor(2);
|
ImGui.popStyleColor(2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user