From cd4dd40c44c84dbd423bb43cdb4af36b42dca5bd Mon Sep 17 00:00:00 2001 From: past-due <30942300+past-due@users.noreply.github.com> Date: Sun, 27 Aug 2023 20:01:54 -0400 Subject: [PATCH] IntFancyButton::displayBlank: Make question mark configurable --- src/intdisplay.cpp | 9 ++++++--- src/intdisplay.h | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/intdisplay.cpp b/src/intdisplay.cpp index e2f3f362144..588f253d0e4 100644 --- a/src/intdisplay.cpp +++ b/src/intdisplay.cpp @@ -1258,7 +1258,7 @@ void IntFancyButton::displayImage(AtlasImage image, int xOffset, int yOffset) } // Create a blank button. -void IntFancyButton::displayBlank(int xOffset, int yOffset) +void IntFancyButton::displayBlank(int xOffset, int yOffset, bool withQuestionMark) { UDWORD ox, oy; @@ -1273,8 +1273,11 @@ void IntFancyButton::displayBlank(int xOffset, int yOffset) displayClear(xOffset, yOffset); - // Draw a question mark, bit of quick hack this. - iV_DrawImage(IntImages, IMAGE_QUESTION_MARK, xOffset + x() + ox + 10, yOffset + y() + oy + 3); + if (withQuestionMark) + { + // Draw a question mark, bit of quick hack this. + iV_DrawImage(IntImages, IMAGE_QUESTION_MARK, xOffset + x() + ox + 10, yOffset + y() + oy + 3); + } } // Returns true if the droid is currently building something. diff --git a/src/intdisplay.h b/src/intdisplay.h index cb585600a1a..55b702033d8 100644 --- a/src/intdisplay.h +++ b/src/intdisplay.h @@ -130,7 +130,7 @@ class IntFancyButton : public W_CLICKFORM void displayClear(int xOffset, int yOffset); void displayIMD(AtlasImage image, ImdObject imdObject, int xOffset, int yOffset); void displayImage(AtlasImage image, int xOffset, int yOffset); - void displayBlank(int xOffset, int yOffset); + void displayBlank(int xOffset, int yOffset, bool withQuestionMark = true); void displayIfHighlight(int xOffset, int yOffset); struct