disable castling buttons
Some checks failed
Linux arm64 / Build (push) Failing after 22s

This commit is contained in:
2025-05-17 17:22:55 +02:00
parent 6bc164937b
commit e52988e511

View File

@@ -203,13 +203,18 @@ public class DDDView extends GameAdapter implements CommandSender {
}
private void onFooterRender() {
CastlingResult allowedCastlings = getAllowedCastlings();
ImGui.beginDisabled(allowedCastlings == CastlingResult.None || allowedCastlings == CastlingResult.Big);
if (ImGui.button("Roque")) {
sendCastling();
}
ImGui.endDisabled();
ImGui.sameLine();
ImGui.beginDisabled(allowedCastlings == CastlingResult.None || allowedCastlings == CastlingResult.Small);
if (ImGui.button("Grand Roque")) {
sendBigCastling();
}
ImGui.endDisabled();
ImGui.sameLine();
if (ImGui.button("Annuler le coup précédent")) {
sendUndo();